blob: 76616170195d7c02527e37108e58726348df821b [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 Julliardd494bda2010-07-16 17:05:45 +02003# Generated by GNU Autoconf 2.65 for Wine 1.2.
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 Julliardd494bda2010-07-16 17:05:45 +0200555PACKAGE_VERSION='1.2'
556PACKAGE_STRING='Wine 1.2'
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 Julliardabf50482008-10-31 12:56:53 +0100651CARBONLIB
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100652FRAMEWORK_OPENAL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100653COREAUDIO
654DISKARBITRATIONLIB
655LDEXECFLAGS
656IOKITLIB
657COREFOUNDATIONLIB
658SECURITYLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100659DLLWRAP
660DLLTOOL
661LDD
662LDRPATH_LOCAL
663LDRPATH_INSTALL
664IMPLIBEXT
665LIBEXT
666LDDLLFLAGS
667LDSHARED
668DLLFLAGS
669DLLEXT
Alexandre Julliard40664c02009-02-11 20:40:58 +0100670CPP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100671OPENGL_LIBS
672XLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100673PRELINK
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
783with_jack
784with_jpeg
785with_ldap
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500786with_mpg123
Alexandre Julliardabf50482008-10-31 12:56:53 +0100787with_nas
Chris Robinson862965f2009-08-25 03:26:35 -0700788with_openal
Alexandre Julliardabf50482008-10-31 12:56:53 +0100789with_opengl
790with_openssl
791with_oss
792with_png
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100793with_pthread
Alexandre Julliardabf50482008-10-31 12:56:53 +0100794with_sane
Vincent Povirk73cd5692010-03-08 17:07:29 -0600795with_tiff
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +0100796with_v4l
Alexandre Julliardabf50482008-10-31 12:56:53 +0100797with_xcomposite
798with_xcursor
799with_xinerama
800with_xinput
801with_xml
802with_xrandr
803with_xrender
804with_xshape
805with_xshm
806with_xslt
807with_xxf86vm
808with_wine_tools
Alexandre Julliard39a75d32009-08-13 19:45:31 +0200809with_wine64
Eric Pouechbc56c4e2009-08-25 19:33:28 +0200810enable_largefile
Alexandre Julliardabf50482008-10-31 12:56:53 +0100811with_x
812'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200813 ac_precious_vars='build_alias
814host_alias
815target_alias
816CC
817CFLAGS
818LDFLAGS
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100819LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200820CPPFLAGS
821CXX
822CXXFLAGS
823CCC
Alexandre Julliard40664c02009-02-11 20:40:58 +0100824CPP
825XMKMF'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200826
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000827
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000828# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000829ac_init_help=
830ac_init_version=false
Alexandre Julliardabf50482008-10-31 12:56:53 +0100831ac_unrecognized_opts=
832ac_unrecognized_sep=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000833# The variables have the same names as the options, with
834# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000835cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000836exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000837no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000838no_recursion=
839prefix=NONE
840program_prefix=NONE
841program_suffix=NONE
842program_transform_name=s,x,x,
843silent=
844site=
845srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000846verbose=
847x_includes=NONE
848x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000849
850# Installation directory options.
851# These are left unexpanded so users can "make install exec_prefix=/foo"
852# and all the variables that are supposed to be based on exec_prefix
853# by default will actually change.
854# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200855# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000856bindir='${exec_prefix}/bin'
857sbindir='${exec_prefix}/sbin'
858libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200859datarootdir='${prefix}/share'
860datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000861sysconfdir='${prefix}/etc'
862sharedstatedir='${prefix}/com'
863localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000864includedir='${prefix}/include'
865oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200866docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867infodir='${datarootdir}/info'
868htmldir='${docdir}'
869dvidir='${docdir}'
870pdfdir='${docdir}'
871psdir='${docdir}'
872libdir='${exec_prefix}/lib'
873localedir='${datarootdir}/locale'
874mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000875
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000876ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200877ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000878for ac_option
879do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200882 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000883 ac_prev=
884 continue
885 fi
886
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200887 case $ac_option in
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *) ac_optarg=yes ;;
890 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000891
892 # Accept the important Cygnus configure options, so we can diagnose typos.
893
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000897
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000901 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000902
903 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000904 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000906 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000917
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200918 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000919 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000921 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000922
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000930 -disable-* | --disable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000932 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200934 as_fn_error "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939"enable_$ac_useropt"
940"*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000955
956 -enable-* | --enable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000958 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200960 as_fn_error "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965"enable_$ac_useropt"
966"*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000979 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000991
992 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000993 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000994 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000995 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000996
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001008 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001013 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001018 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001025 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001026
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001032 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001033 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001037 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001042 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001043
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001049 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001063 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001064
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001068 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001075 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001082 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001099 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001100
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 ac_prev=sbindir ;;
1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001119 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001120
1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123 | --sharedst | --shareds | --shared | --share | --shar \
1124 | --sha | --sh)
1125 ac_prev=sharedstatedir ;;
1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001130 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001131
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001132 -site | --site | --sit)
1133 ac_prev=site ;;
1134 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001135 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001136
1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 ac_prev=srcdir ;;
1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001140 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001141
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143 | --syscon | --sysco | --sysc | --sys | --sy)
1144 ac_prev=sysconfdir ;;
1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001147 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001148
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001149 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001150 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001152 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001153
1154 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 verbose=yes ;;
1156
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001157 -version | --version | --versio | --versi | --vers | -V)
1158 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001159
1160 -with-* | --with-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001162 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001164 as_fn_error "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001175
1176 -without-* | --without-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001178 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001180 as_fn_error "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185"with_$ac_useropt"
1186"*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001191
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1195
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001201 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001202
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001208 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001209
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001210 -*) as_fn_error "unrecognized option: \`$ac_option'
1211Try \`$0 --help' for more information."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001212 ;;
1213
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001214 *=*)
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001217 case $ac_envvar in #(
1218 '' | [0-9]* | *[!_$as_cr_alnum]* )
1219 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1220 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001221 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001222 export $ac_envvar ;;
1223
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001224 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001225 # FIXME: should be removed in autoconf 3.0.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01001228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001230 ;;
1231
1232 esac
1233done
1234
1235if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001237 as_fn_error "missing argument to $ac_option"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001238fi
1239
Alexandre Julliardabf50482008-10-31 12:56:53 +01001240if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in
1242 no) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001243 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +01001244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1246fi
1247
1248# Check all directory arguments for consistency.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001253do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001254 eval ac_val=\$$ac_var
Alexandre Julliardabf50482008-10-31 12:56:53 +01001255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001262 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001265 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001266 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001267done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001268
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001269# There might be people who depend on the old broken behavior: `$host'
1270# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001271# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001272build=$build_alias
1273host=$host_alias
1274target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001275
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001276# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001277if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
Alexandre Julliardabf50482008-10-31 12:56:53 +01001280 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1284 fi
1285fi
1286
1287ac_tool_prefix=
1288test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001291
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001292
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001293ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294ac_ls_di=`ls -di .` &&
1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001296 as_fn_error "working directory cannot be determined"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001297test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001298 as_fn_error "pwd does not report name of working directory"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001299
1300
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001301# Find the source files, if location was not specified.
1302if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001304 # Try the directory containing this script, then the parent directory.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310$as_echo X"$as_myself" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\).*/{
1324 s//\1/
1325 q
1326 }
1327 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001328 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001329 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001330 srcdir=..
1331 fi
1332else
1333 ac_srcdir_defaulted=no
1334fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001335if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001337 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001338fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001342 pwd)`
1343# When building in place, set srcdir=.
1344if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1346fi
1347# Remove unnecessary trailing slashes from srcdir.
1348# Double slashes in file names in object file debugging info
1349# mess up M-x gdb in Emacs.
1350case $srcdir in
1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352esac
1353for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001359
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001360#
1361# Report the --help message.
1362#
1363if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001366 cat <<_ACEOF
Alexandre Julliardd494bda2010-07-16 17:05:45 +02001367\`configure' configures Wine 1.2 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001368
1369Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372VAR=VALUE. See below for descriptions of some of the useful variables.
1373
1374Defaults for the options are specified in brackets.
1375
1376Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001387Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001389 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001391 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001392
1393By default, \`make install' will install all the files in
1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396for instance \`--prefix=\$HOME'.
1397
1398For better control, use the options below.
1399
1400Fine tuning of the installation directories:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001420_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001421
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001422 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001423
1424X features:
1425 --x-includes=DIR X include files are in DIR
1426 --x-libraries=DIR X library files are in DIR
1427
1428System types:
1429 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001431_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001432fi
1433
1434if test -n "$ac_init_help"; then
1435 case $ac_init_help in
Alexandre Julliardd494bda2010-07-16 17:05:45 +02001436 short | recursive ) echo "Configuration of Wine 1.2:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001437 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001438 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001439
1440Optional Features:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001441 --disable-option-checking ignore unrecognized --enable/--with options
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001444 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001445 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1446 binaries)
Alexandre Julliard35078f42008-11-21 10:16:12 +01001447 --disable-tests do not build the regression tests
Alexandre Julliard9d037222008-03-20 13:00:12 +01001448 --enable-maintainer-mode
1449 enable maintainer-specific build rules
Eric Pouechbc56c4e2009-08-25 19:33:28 +02001450 --disable-largefile omit support for large files
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001451
1452Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001455 --without-alsa do not use the Alsa sound support
1456 --without-audioio do not use the AudioIO sound support
1457 --without-capi do not use CAPI (ISDN support)
1458 --without-cms do not use CMS (color management support)
1459 --without-coreaudio do not use the CoreAudio sound support
1460 --without-cups do not use CUPS
1461 --without-curses do not use (n)curses
1462 --without-esd do not use the EsounD sound support
1463 --without-fontconfig do not use fontconfig
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02001464 --without-freetype do not use the FreeType library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001465 --without-gphoto do not use gphoto (Digital Camera support)
Alexandre Julliardad798732008-05-01 13:29:02 +02001466 --without-glu do not use the GLU library
Henri Verbeet874c9ef2008-09-22 22:13:19 +02001467 --without-gnutls do not use GnuTLS (schannel support)
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02001468 --without-gsm do not use libgsm (GSM 06.10 codec support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001469 --without-hal do not use HAL (dynamic device support)
1470 --without-jack do not use the Jack sound support
1471 --without-jpeg do not use JPEG
1472 --without-ldap do not use LDAP
Aric Stewartdb71d7c2009-08-19 09:37:48 -05001473 --without-mpg123 do not use the mpg123 library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001474 --without-nas do not use the NAS sound support
Chris Robinson862965f2009-08-25 03:26:35 -07001475 --without-openal do not use OpenAL
Eric Pouech53fa0d52004-02-05 01:27:38 +00001476 --without-opengl do not use OpenGL
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001477 --without-openssl do not use OpenSSL
1478 --without-oss do not use the OSS sound support
1479 --without-png do not use PNG
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01001480 --without-pthread do not use the pthread library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001481 --without-sane do not use SANE (scanner support)
Vincent Povirk73cd5692010-03-08 17:07:29 -06001482 --without-tiff do not use TIFF
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01001483 --without-v4l do not use v4l1 (v4l support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001484 --without-xcomposite do not use the Xcomposite extension
1485 --without-xcursor do not use the Xcursor extension
1486 --without-xinerama do not use Xinerama (multi-monitor support)
1487 --without-xinput do not use the Xinput extension
1488 --without-xml do not use XML
1489 --without-xrandr do not use Xrandr (resolution changes)
1490 --without-xrender do not use the Xrender extension
1491 --without-xshape do not use the Xshape extension
1492 --without-xshm do not use XShm (shared memory extension)
1493 --without-xslt do not use XSLT
Francois Gougeta49beb42008-06-26 14:02:17 +02001494 --without-xxf86vm do not use XFree video mode extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001495 --with-wine-tools=DIR use Wine tools from directory DIR
Alexandre Julliard39a75d32009-08-13 19:45:31 +02001496 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001497 --with-x use the X Window System
1498
1499Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01001504 LIBS libraries to pass to the linker, e.g. -l<library>
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001506 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001507 CXX C++ compiler command
1508 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +00001509 CPP C preprocessor
Alexandre Julliard40664c02009-02-11 20:40:58 +01001510 XMKMF Path to xmkmf, Makefile generator for X Window System
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001511
1512Use these variables to override the choices made by `configure' or to help
1513it to find libraries and programs with nonstandard names/locations.
1514
Alexandre Julliard875927f2004-01-02 01:55:29 +00001515Report bugs to <wine-devel@winehq.org>.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001516Wine home page: <http://www.winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001517_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001518ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001519fi
1520
1521if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01001524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001527 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001528
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001533 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001544
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001545case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001546 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001547 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001551 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001558esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001560
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001563 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001564 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001567 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001568 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001569 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01001570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001573 done
1574fi
1575
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001576test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001577if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001578 cat <<\_ACEOF
Alexandre Julliardd494bda2010-07-16 17:05:45 +02001579Wine configure 1.2
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001580generated by GNU Autoconf 2.65
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001581
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001582Copyright (C) 2009 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001583This configure script is free software; the Free Software Foundation
1584gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001585_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001586 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001587fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001588
1589## ------------------------ ##
1590## Autoconf initialization. ##
1591## ------------------------ ##
1592
1593# ac_fn_c_try_compile LINENO
1594# --------------------------
1595# Try to compile conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_compile ()
1597{
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001627 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001628
1629} # ac_fn_c_try_compile
1630
1631# ac_fn_cxx_try_compile LINENO
1632# ----------------------------
1633# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_cxx_try_compile ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_cxx_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001665 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001666
1667} # ac_fn_cxx_try_compile
1668
1669# ac_fn_c_try_link LINENO
1670# -----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_link ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 $as_test_x conftest$ac_exeext
1697 }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704fi
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001711 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001712
1713} # ac_fn_c_try_link
1714
1715# ac_fn_c_try_cpp LINENO
1716# ----------------------
1717# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_cpp ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } >/dev/null && {
1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001748 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001749
1750} # ac_fn_c_try_cpp
1751
1752# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753# -------------------------------------------------------
1754# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755# the include files in INCLUDES and setting the cache variable VAR
1756# accordingly.
1757ac_fn_c_check_header_mongrel ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1764 $as_echo_n "(cached) " >&6
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769else
1770 # Is the header compilable?
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772$as_echo_n "checking $2 usability... " >&6; }
1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1780else
1781 ac_header_compiler=no
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785$as_echo "$ac_header_compiler" >&6; }
1786
1787# Is the header present?
1788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789$as_echo_n "checking $2 presence... " >&6; }
1790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1796else
1797 ac_header_preproc=no
1798fi
1799rm -f conftest.err conftest.$ac_ext
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801$as_echo "$ac_header_preproc" >&6; }
1802
1803# So? What about this header?
1804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805 yes:no: )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ;;
1811 no:yes:* )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822( cat <<\_ASBOX
1823## ------------------------------------ ##
1824## Report this to wine-devel@winehq.org ##
1825## ------------------------------------ ##
1826_ASBOX
1827 ) | sed "s/^/$as_me: WARNING: /" >&2
1828 ;;
1829esac
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834else
1835 eval "$3=\$ac_header_compiler"
1836fi
1837eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840fi
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842
1843} # ac_fn_c_check_header_mongrel
1844
1845# ac_fn_c_try_run LINENO
1846# ----------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848# that executables *can* be run.
1849ac_fn_c_try_run ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=$ac_status
1880fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001883 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001884
1885} # ac_fn_c_try_run
1886
1887# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1888# -------------------------------------------------------
1889# Tests whether HEADER exists and can be compiled using the include files in
1890# INCLUDES, setting the cache variable VAR accordingly.
1891ac_fn_c_check_header_compile ()
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1898else
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h. */
1901$4
1902#include <$2>
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905 eval "$3=yes"
1906else
1907 eval "$3=no"
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910fi
1911eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
1916} # ac_fn_c_check_header_compile
1917
1918# ac_fn_c_check_func LINENO FUNC VAR
1919# ----------------------------------
1920# Tests whether FUNC exists, setting the cache variable VAR accordingly
1921ac_fn_c_check_func ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1933#define $2 innocuous_$2
1934
1935/* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $2 (); below.
1937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938 <limits.h> exists even on freestanding compilers. */
1939
1940#ifdef __STDC__
1941# include <limits.h>
1942#else
1943# include <assert.h>
1944#endif
1945
1946#undef $2
1947
1948/* Override any GCC internal prototype to avoid an error.
1949 Use char because int might match the return type of a GCC
1950 builtin and then its argument prototype would still apply. */
1951#ifdef __cplusplus
1952extern "C"
1953#endif
1954char $2 ();
1955/* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958#if defined __stub_$2 || defined __stub___$2
1959choke me
1960#endif
1961
1962int
1963main ()
1964{
1965return $2 ();
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_link "$LINENO"; then :
1971 eval "$3=yes"
1972else
1973 eval "$3=no"
1974fi
1975rm -f core conftest.err conftest.$ac_objext \
1976 conftest$ac_exeext conftest.$ac_ext
1977fi
1978eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982
1983} # ac_fn_c_check_func
1984
1985# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986# ----------------------------------------------------
1987# Tries to find if the field MEMBER exists in type AGGR, after including
1988# INCLUDES, setting cache variable VAR accordingly.
1989ac_fn_c_check_member ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993$as_echo_n "checking for $2.$3... " >&6; }
1994if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1996else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$5
2000int
2001main ()
2002{
2003static $2 ac_aggr;
2004if (ac_aggr.$3)
2005return 0;
2006 ;
2007 return 0;
2008}
2009_ACEOF
2010if ac_fn_c_try_compile "$LINENO"; then :
2011 eval "$4=yes"
2012else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h. */
2015$5
2016int
2017main ()
2018{
2019static $2 ac_aggr;
2020if (sizeof ac_aggr.$3)
2021return 0;
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$4=yes"
2028else
2029 eval "$4=no"
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034fi
2035eval ac_res=\$$4
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037$as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
2040} # ac_fn_c_check_member
2041
2042# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2043# -------------------------------------------
2044# Tests whether TYPE exists after having included INCLUDES, setting cache
2045# variable VAR accordingly.
2046ac_fn_c_check_type ()
2047{
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050$as_echo_n "checking for $2... " >&6; }
2051if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2052 $as_echo_n "(cached) " >&6
2053else
2054 eval "$3=no"
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h. */
2057$4
2058int
2059main ()
2060{
2061if (sizeof ($2))
2062 return 0;
2063 ;
2064 return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h. */
2070$4
2071int
2072main ()
2073{
2074if (sizeof (($2)))
2075 return 0;
2076 ;
2077 return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081
2082else
2083 eval "$3=yes"
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088fi
2089eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093
2094} # ac_fn_c_check_type
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002095cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002096This file contains any messages produced by compilers while
2097running configure, to aid debugging if configure makes a mistake.
2098
Alexandre Julliardd494bda2010-07-16 17:05:45 +02002099It was created by Wine $as_me 1.2, which was
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002100generated by GNU Autoconf 2.65. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002101
2102 $ $0 $@
2103
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002104_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002105exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002106{
2107cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002108## --------- ##
2109## Platform. ##
2110## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002111
2112hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2113uname -m = `(uname -m) 2>/dev/null || echo unknown`
2114uname -r = `(uname -r) 2>/dev/null || echo unknown`
2115uname -s = `(uname -s) 2>/dev/null || echo unknown`
2116uname -v = `(uname -v) 2>/dev/null || echo unknown`
2117
2118/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2119/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2120
2121/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2122/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2123/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002124/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002125/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2126/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2127/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2128
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002129_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002130
2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132for as_dir in $PATH
2133do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002136 $as_echo "PATH: $as_dir"
2137 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002138IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002139
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002140} >&5
2141
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002142cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002143
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002144
2145## ----------- ##
2146## Core tests. ##
2147## ----------- ##
2148
2149_ACEOF
2150
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002151
2152# Keep a trace of the command line.
2153# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002154# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002155# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002156# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002157ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002158ac_configure_args0=
2159ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002160ac_must_keep_next=false
2161for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002162do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002163 for ac_arg
2164 do
2165 case $ac_arg in
2166 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2168 | -silent | --silent | --silen | --sile | --sil)
2169 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002170 *\'*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01002171 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002172 esac
2173 case $ac_pass in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002174 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002175 2)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002176 as_fn_append ac_configure_args1 " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002177 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00002178 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002179 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00002180 case $ac_arg in
2181 *=* | --config-cache | -C | -disable-* | --disable-* \
2182 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2183 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2184 | -with-* | --with-* | -without-* | --without-* | --x)
2185 case "$ac_configure_args0 " in
2186 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2187 esac
2188 ;;
2189 -* ) ac_must_keep_next=true ;;
2190 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002191 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002192 as_fn_append ac_configure_args " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002193 ;;
2194 esac
2195 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002196done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002197{ ac_configure_args0=; unset ac_configure_args0;}
2198{ ac_configure_args1=; unset ac_configure_args1;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002199
2200# When interrupted or exit'd, cleanup temporary files, and complete
2201# config.log. We remove comments because anyway the quotes in there
2202# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002203# WARNING: Use '\'' to represent an apostrophe within the trap.
2204# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002205trap 'exit_status=$?
2206 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002207 {
2208 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002209
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002210 cat <<\_ASBOX
2211## ---------------- ##
2212## Cache variables. ##
2213## ---------------- ##
2214_ASBOX
2215 echo
2216 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002217(
2218 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in #(
2221 *${as_nl}*)
2222 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002223 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002224$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002225 esac
2226 case $ac_var in #(
2227 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +01002228 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002229 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002230 esac ;;
2231 esac
2232 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002233 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002234 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2235 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002236 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002237 "s/'\''/'\''\\\\'\'''\''/g;
2238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002240 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002242 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002243 esac |
2244 sort
2245)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002246 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002247
2248 cat <<\_ASBOX
2249## ----------------- ##
2250## Output variables. ##
2251## ----------------- ##
2252_ASBOX
2253 echo
2254 for ac_var in $ac_subst_vars
2255 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002256 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002257 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002258 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002259 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002260 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002261 done | sort
2262 echo
2263
2264 if test -n "$ac_subst_files"; then
2265 cat <<\_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002266## ------------------- ##
2267## File substitutions. ##
2268## ------------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002269_ASBOX
2270 echo
2271 for ac_var in $ac_subst_files
2272 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002273 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002274 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002276 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002277 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002278 done | sort
2279 echo
2280 fi
2281
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002282 if test -s confdefs.h; then
2283 cat <<\_ASBOX
2284## ----------- ##
2285## confdefs.h. ##
2286## ----------- ##
2287_ASBOX
2288 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002289 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002290 echo
2291 fi
2292 test "$ac_signal" != 0 &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01002293 $as_echo "$as_me: caught signal $ac_signal"
2294 $as_echo "$as_me: exit $exit_status"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002295 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002296 rm -f core *.core core.conftest.* &&
2297 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002298 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002299' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002300for ac_signal in 1 2 13 15; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002301 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002302done
2303ac_signal=0
2304
2305# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002306rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002307
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002308$as_echo "/* confdefs.h */" > confdefs.h
2309
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002310# Predefined preprocessor variables.
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_NAME "$PACKAGE_NAME"
2314_ACEOF
2315
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2318_ACEOF
2319
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_VERSION "$PACKAGE_VERSION"
2322_ACEOF
2323
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_STRING "$PACKAGE_STRING"
2326_ACEOF
2327
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2330_ACEOF
2331
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_URL "$PACKAGE_URL"
2334_ACEOF
2335
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002336
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002337# Let the site file select an alternate cache file if it wants to.
Alexandre Julliardabf50482008-10-31 12:56:53 +01002338# Prefer an explicitly selected file to automatically selected ones.
2339ac_site_file1=NONE
2340ac_site_file2=NONE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002341if test -n "$CONFIG_SITE"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002342 ac_site_file1=$CONFIG_SITE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002343elif test "x$prefix" != xNONE; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002344 ac_site_file1=$prefix/share/config.site
2345 ac_site_file2=$prefix/etc/config.site
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002346else
Alexandre Julliardabf50482008-10-31 12:56:53 +01002347 ac_site_file1=$ac_default_prefix/share/config.site
2348 ac_site_file2=$ac_default_prefix/etc/config.site
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002349fi
Alexandre Julliardabf50482008-10-31 12:56:53 +01002350for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002351do
Alexandre Julliardabf50482008-10-31 12:56:53 +01002352 test "x$ac_site_file" = xNONE && continue
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002353 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002355$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002356 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002357 . "$ac_site_file"
2358 fi
2359done
2360
2361if test -r "$cache_file"; then
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002362 # Some versions of bash will fail to source /dev/null (special files
2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002366$as_echo "$as_me: loading cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002367 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002370 esac
2371 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002372else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002374$as_echo "$as_me: creating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002375 >$cache_file
2376fi
2377
2378# Check that the precious variables saved in the cache have kept the same
2379# value.
2380ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002381for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002384 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002386 case $ac_old_set,$ac_new_set in
2387 set,)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002389$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002390 ac_cache_corrupted=: ;;
2391 ,set)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002393$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002394 ac_cache_corrupted=: ;;
2395 ,);;
2396 *)
2397 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002398 # differences in whitespace do not lead to failure.
2399 ac_old_val_w=`echo x $ac_old_val`
2400 ac_new_val_w=`echo x $ac_new_val`
2401 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002403$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404 ac_cache_corrupted=:
2405 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002406 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002407$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408 eval $ac_var=\$ac_old_val
2409 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002411$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002413$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002414 fi;;
2415 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002416 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002417 if test "$ac_new_set" = set; then
2418 case $ac_new_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002420 *) ac_arg=$ac_var=$ac_new_val ;;
2421 esac
2422 case " $ac_configure_args " in
2423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002424 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002425 esac
2426 fi
2427done
2428if $ac_cache_corrupted; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002432$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002433 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002434fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002435## -------------------- ##
2436## Main body of script. ##
2437## -------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002438
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002439ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002440ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002444
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002445
2446
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002447ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002448
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002449ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02002450for ac_dir in tools "$srcdir"/tools; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002451 for ac_t in install-sh install.sh shtool; do
2452 if test -f "$ac_dir/$ac_t"; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/$ac_t -c"
2455 break 2
2456 fi
2457 done
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002458done
2459if test -z "$ac_aux_dir"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002460 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002461fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002462
2463# These three variables are undocumented and unsupported,
2464# and are intended to be withdrawn in a future Autoconf release.
2465# They can cause serious problems if a builder's source tree is in a directory
2466# whose full name contains unusual characters.
2467ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
Howard Abrams13277481999-07-10 13:16:29 +00002471
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002472
2473
Alexandre Julliardd59227e2010-02-20 12:36:04 +01002474
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002475# Check whether --enable-win16 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002476if test "${enable_win16+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002477 enableval=$enable_win16;
2478fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00002479
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002480# Check whether --enable-win64 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002481if test "${enable_win64+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002482 enableval=$enable_win64;
2483fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00002484
Alexandre Julliard35078f42008-11-21 10:16:12 +01002485# Check whether --enable-tests was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002486if test "${enable_tests+set}" = set; then :
Alexandre Julliard35078f42008-11-21 10:16:12 +01002487 enableval=$enable_tests;
2488fi
2489
Alexandre Julliard9d037222008-03-20 13:00:12 +01002490# Check whether --enable-maintainer-mode was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002491if test "${enable_maintainer_mode+set}" = set; then :
Alexandre Julliard9d037222008-03-20 13:00:12 +01002492 enableval=$enable_maintainer_mode;
Alexandre Julliard9d037222008-03-20 13:00:12 +01002493fi
2494
Alexandre Julliardb8074992002-11-21 21:51:24 +00002495
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002496
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002497# Check whether --with-alsa was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002498if test "${with_alsa+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002499 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2500fi
2501
2502
2503# Check whether --with-audioio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002504if test "${with_audioio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002505 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2506fi
2507
2508
2509# Check whether --with-capi was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002510if test "${with_capi+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002511 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2512fi
2513
2514
2515# Check whether --with-cms was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002516if test "${with_cms+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002517 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2518fi
2519
2520
2521# Check whether --with-coreaudio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002522if test "${with_coreaudio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002523 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2524fi
2525
2526
2527# Check whether --with-cups was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002528if test "${with_cups+set}" = set; then :
Francois Gouget289ea332008-07-24 16:09:07 +02002529 withval=$with_cups;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002530fi
2531
2532
2533# Check whether --with-curses was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002534if test "${with_curses+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002535 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2536fi
2537
2538
2539# Check whether --with-esd was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002540if test "${with_esd+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002541 withval=$with_esd;
2542fi
2543
2544
2545# Check whether --with-fontconfig was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002546if test "${with_fontconfig+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002547 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2548fi
2549
2550
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002551# Check whether --with-freetype was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002552if test "${with_freetype+set}" = set; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002553 withval=$with_freetype;
2554fi
2555
2556
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002557# Check whether --with-gphoto was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002558if test "${with_gphoto+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002559 withval=$with_gphoto;
2560fi
2561
2562
Alexandre Julliardad798732008-05-01 13:29:02 +02002563# Check whether --with-glu was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002564if test "${with_glu+set}" = set; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02002565 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2566fi
2567
2568
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002569# Check whether --with-gnutls was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002570if test "${with_gnutls+set}" = set; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002571 withval=$with_gnutls;
2572fi
2573
2574
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02002575# Check whether --with-gsm was given.
2576if test "${with_gsm+set}" = set; then :
2577 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 +02002578fi
2579
2580
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002581# Check whether --with-hal was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002582if test "${with_hal+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002583 withval=$with_hal;
2584fi
2585
2586
2587# Check whether --with-jack was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002588if test "${with_jack+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002589 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2590fi
2591
2592
2593# Check whether --with-jpeg was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002594if test "${with_jpeg+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002595 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2596fi
2597
2598
2599# Check whether --with-ldap was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002600if test "${with_ldap+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002601 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2602fi
2603
2604
Aric Stewartdb71d7c2009-08-19 09:37:48 -05002605# Check whether --with-mpg123 was given.
2606if test "${with_mpg123+set}" = set; then :
2607 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2608fi
2609
2610
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002611# Check whether --with-nas was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002612if test "${with_nas+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002613 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2614fi
2615
2616
Chris Robinson862965f2009-08-25 03:26:35 -07002617# Check whether --with-openal was given.
2618if test "${with_openal+set}" = set; then :
Ken Thomases0b08f192009-09-09 22:23:35 -05002619 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 -07002620fi
2621
2622
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002623# Check whether --with-opengl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002624if test "${with_opengl+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002625 withval=$with_opengl;
2626fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002627
Alexandre Julliardf90efa91998-06-14 15:24:15 +00002628
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002629# Check whether --with-openssl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002630if test "${with_openssl+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002631 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2632fi
2633
2634
2635# Check whether --with-oss was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002636if test "${with_oss+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002637 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
2638fi
2639
2640
2641# Check whether --with-png was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002642if test "${with_png+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002643 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2644fi
2645
2646
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002647# Check whether --with-pthread was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002648if test "${with_pthread+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002649 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2650fi
2651
2652
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002653# Check whether --with-sane was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002654if test "${with_sane+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002655 withval=$with_sane;
2656fi
2657
2658
Vincent Povirk73cd5692010-03-08 17:07:29 -06002659# Check whether --with-tiff was given.
2660if test "${with_tiff+set}" = set; then :
2661 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2662fi
2663
2664
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01002665# Check whether --with-v4l was given.
2666if test "${with_v4l+set}" = set; then :
2667 withval=$with_v4l;
2668fi
2669
2670
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002671# Check whether --with-xcomposite was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002672if test "${with_xcomposite+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002673 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2674fi
2675
2676
2677# Check whether --with-xcursor was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002678if test "${with_xcursor+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002679 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2680fi
2681
2682
2683# Check whether --with-xinerama was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002684if test "${with_xinerama+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002685 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2686fi
2687
2688
2689# Check whether --with-xinput was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002690if test "${with_xinput+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002691 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2692fi
2693
2694
2695# Check whether --with-xml was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002696if test "${with_xml+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002697 withval=$with_xml;
2698fi
2699
2700
2701# Check whether --with-xrandr was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002702if test "${with_xrandr+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002703 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2704fi
2705
2706
2707# Check whether --with-xrender was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002708if test "${with_xrender+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002709 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2710fi
2711
2712
2713# Check whether --with-xshape was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002714if test "${with_xshape+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002715 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2716fi
2717
2718
2719# Check whether --with-xshm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002720if test "${with_xshm+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002721 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2722fi
2723
2724
2725# Check whether --with-xslt was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002726if test "${with_xslt+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002727 withval=$with_xslt;
2728fi
2729
2730
Francois Gougeta49beb42008-06-26 14:02:17 +02002731# Check whether --with-xxf86vm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002732if test "${with_xxf86vm+set}" = set; then :
André Hentschel7b285a42009-09-19 19:08:09 +02002733 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 +01002734fi
2735
2736
2737
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002738# Check whether --with-wine-tools was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002739if test "${with_wine_tools+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002740 withval=$with_wine_tools;
2741fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002742
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002743
Alexandre Julliard39a75d32009-08-13 19:45:31 +02002744# Check whether --with-wine64 was given.
2745if test "${with_wine64+set}" = set; then :
2746 withval=$with_wine64;
2747fi
2748
2749
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002750# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02002751$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002752 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00002753
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002755$as_echo_n "checking build system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002756if test "${ac_cv_build+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002757 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002758else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002759 ac_build_alias=$build_alias
2760test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002762test "x$ac_build_alias" = x &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002763 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Jeremy White0ebeb532006-06-20 13:18:41 +02002764ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002765 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002766
2767fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002769$as_echo "$ac_cv_build" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002770case $ac_cv_build in
2771*-*-*) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002772*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002773esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002774build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002775ac_save_IFS=$IFS; IFS='-'
2776set x $ac_cv_build
2777shift
2778build_cpu=$1
2779build_vendor=$2
2780shift; shift
2781# Remember, the first character of IFS is used to create $*,
2782# except with old shells:
2783build_os=$*
2784IFS=$ac_save_IFS
2785case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002786
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002787
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002789$as_echo_n "checking host system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002790if test "${ac_cv_host+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002791 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002792else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002793 if test "x$host_alias" = x; then
2794 ac_cv_host=$ac_cv_build
2795else
Jeremy White0ebeb532006-06-20 13:18:41 +02002796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002797 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002798fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002799
2800fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002802$as_echo "$ac_cv_host" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002803case $ac_cv_host in
2804*-*-*) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002805*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002806esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002807host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002808ac_save_IFS=$IFS; IFS='-'
2809set x $ac_cv_host
2810shift
2811host_cpu=$1
2812host_vendor=$2
2813shift; shift
2814# Remember, the first character of IFS is used to create $*,
2815# except with old shells:
2816host_os=$*
2817IFS=$ac_save_IFS
2818case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002819
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002820
Alexandre Julliard71440f32005-05-19 14:28:17 +00002821
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002822case "$srcdir" in
2823 .) ;;
2824 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002825 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2826You need to run 'make distclean' in the source tree first." "$LINENO" 5
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002827 fi ;;
2828esac
2829
Alexandre Julliard71440f32005-05-19 14:28:17 +00002830
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002832$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2833set x ${MAKE-make}
2834ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002835if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002836 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002837else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002838 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002839SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002840all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002841 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002842_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002843# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002844case `${MAKE-make} -f conftest.make 2>/dev/null` in
2845 *@@@%%%=?*=@@@%%%*)
2846 eval ac_cv_prog_make_${ac_make}_set=yes;;
2847 *)
2848 eval ac_cv_prog_make_${ac_make}_set=no;;
2849esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002850rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002851fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002852if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002854$as_echo "yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002855 SET_MAKE=
2856else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002858$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002859 SET_MAKE="MAKE=${MAKE-make}"
2860fi
2861
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002862ac_ext=c
2863ac_cpp='$CPP $CPPFLAGS'
2864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2869set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002871$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002872if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002873 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002874else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002883 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002884 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 +00002885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002887 break 2
2888 fi
2889done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002890 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002891IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002892
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002893fi
2894fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002895CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002896if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002898$as_echo "$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002899else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002901$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002902fi
2903
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002904
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002905fi
2906if test -z "$ac_cv_prog_CC"; then
2907 ac_ct_CC=$CC
2908 # Extract the first word of "gcc", so it can be a program name with args.
2909set dummy gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002911$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002912if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002913 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002914else
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002923 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002924 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 +00002925 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002927 break 2
2928 fi
2929done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002930 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002931IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002932
2933fi
2934fi
2935ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002938$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002939else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002941$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002942fi
2943
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002944 if test "x$ac_ct_CC" = x; then
2945 CC=""
2946 else
2947 case $cross_compiling:$ac_tool_warned in
2948yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002951ac_tool_warned=yes ;;
2952esac
2953 CC=$ac_ct_CC
2954 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002955else
2956 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002957fi
2958
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002959if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002960 if test -n "$ac_tool_prefix"; then
2961 # 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 +00002962set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002964$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002965if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002966 $as_echo_n "(cached) " >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002967else
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2970else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002976 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002977 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 +00002978 ac_cv_prog_CC="${ac_tool_prefix}cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002980 break 2
2981 fi
2982done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002983 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002984IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002985
2986fi
2987fi
2988CC=$ac_cv_prog_CC
2989if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002991$as_echo "$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002992else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002994$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002995fi
2996
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002997
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002998 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002999fi
3000if test -z "$CC"; then
3001 # Extract the first word of "cc", so it can be a program name with args.
3002set dummy cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003004$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003005if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003006 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003007else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003011 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003017 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003018 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 +00003019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3020 ac_prog_rejected=yes
3021 continue
3022 fi
3023 ac_cv_prog_CC="cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003025 break 2
3026 fi
3027done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003028 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003029IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003030
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003031if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3034 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003035 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3039 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003041 fi
3042fi
3043fi
3044fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003045CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003046if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003048$as_echo "$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003049else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003051$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003052fi
3053
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003054
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003055fi
3056if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003058 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003059 do
3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003063$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003064if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003065 $as_echo_n "(cached) " >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00003066else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003075 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003076 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 +00003077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003079 break 2
3080 fi
3081done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003082 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003083IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003084
Eric Pouech18ad24a2000-01-16 22:16:33 +00003085fi
3086fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003087CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00003088if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003090$as_echo "$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003091else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003093$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003094fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003095
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003096
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003097 test -n "$CC" && break
3098 done
3099fi
3100if test -z "$CC"; then
3101 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003102 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003103do
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003107$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003108if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003109 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003110else
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003119 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003120 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 +00003121 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003123 break 2
3124 fi
3125done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003126 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003127IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003128
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003129fi
3130fi
3131ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003134$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003135else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003137$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003138fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003139
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003140
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003141 test -n "$ac_ct_CC" && break
3142done
Eric Pouech18ad24a2000-01-16 22:16:33 +00003143
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003144 if test "x$ac_ct_CC" = x; then
3145 CC=""
3146 else
3147 case $cross_compiling:$ac_tool_warned in
3148yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003151ac_tool_warned=yes ;;
3152esac
3153 CC=$ac_ct_CC
3154 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003155fi
3156
3157fi
3158
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003159
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003160test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003162as_fn_error "no acceptable C compiler found in \$PATH
3163See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003164
3165# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003166$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003167set X $ac_compile
3168ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003169for ac_option in --version -v -V -qversion; do
3170 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003171case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176$as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003178 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003179 if test -s conftest.err; then
3180 sed '10a\
3181... rest of stderr output deleted ...
3182 10q' conftest.err >conftest.er1
3183 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003184 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003185 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3188done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003189
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003191/* end confdefs.h. */
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003192
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201ac_clean_files_save=$ac_clean_files
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003202ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003203# Try to create an executable without -o first, disregard a.out.
3204# It will help us diagnose broken compilers, and finding out an intuition
3205# of exeext.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3207$as_echo_n "checking whether the C compiler works... " >&6; }
Alexandre Julliardabf50482008-10-31 12:56:53 +01003208ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3209
3210# The possible output files:
3211ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3212
Jeremy White0ebeb532006-06-20 13:18:41 +02003213ac_rmfiles=
3214for ac_file in $ac_files
3215do
3216 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003218 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3219 esac
3220done
3221rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003222
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003223if { { ac_try="$ac_link_default"
Jeremy White0ebeb532006-06-20 13:18:41 +02003224case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003230 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003231 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3235# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3236# in a Makefile. We should not override ac_cv_exeext if it was cached,
3237# so that the user can short-circuit this test for compilers unknown to
3238# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003239for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003240do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003241 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003242 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jeremy White0ebeb532006-06-20 13:18:41 +02003244 ;;
3245 [ab].out )
3246 # We found the default executable, but exeext='' is most
3247 # certainly right.
3248 break;;
3249 *.* )
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jeremy White0ebeb532006-06-20 13:18:41 +02003251 then :; else
3252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3253 fi
3254 # We set ac_cv_exeext here because the later test for it is not
3255 # safe: cross compilers may not add the suffix if given an `-o'
3256 # argument, so we may need to know it at that point already.
3257 # Even if this section looks crufty: it has the advantage of
3258 # actually working.
3259 break;;
3260 * )
3261 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003262 esac
3263done
Jeremy White0ebeb532006-06-20 13:18:41 +02003264test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003265
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003266else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003267 ac_file=''
3268fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003269if test -z "$ac_file"; then :
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271$as_echo "no" >&6; }
3272$as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003273sed 's/^/| /' conftest.$ac_ext >&5
3274
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003275{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003277{ as_fn_set_status 77
3278as_fn_error "C compiler cannot create executables
3279See \`config.log' for more details." "$LINENO" 5; }; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003280else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282$as_echo "yes" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003283fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285$as_echo_n "checking for C compiler default output file name... " >&6; }
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287$as_echo "$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003288ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02003289
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003290rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jeremy White0ebeb532006-06-20 13:18:41 +02003291ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003293$as_echo_n "checking for suffix of executables... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003294if { { ac_try="$ac_link"
Jeremy White0ebeb532006-06-20 13:18:41 +02003295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003301 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003302 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307# work properly (i.e., refer to `conftest.exe'), while it won't with
3308# `rm'.
3309for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3311 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 break;;
3315 * ) break;;
3316 esac
3317done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003318else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003321as_fn_error "cannot compute suffix of executables: cannot compile and link
3322See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003323fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003324rm -f conftest conftest$ac_cv_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003326$as_echo "$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003327
3328rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003329EXEEXT=$ac_cv_exeext
3330ac_exeext=$EXEEXT
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h. */
3333#include <stdio.h>
3334int
3335main ()
3336{
3337FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3339
3340 ;
3341 return 0;
3342}
3343_ACEOF
3344ac_clean_files="$ac_clean_files conftest.out"
3345# Check that the compiler produces executables we can run. If not, either
3346# the compiler is broken, or we cross compile.
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348$as_echo_n "checking whether we are cross compiling... " >&6; }
3349if test "$cross_compiling" != yes; then
3350 { { ac_try="$ac_link"
3351case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354esac
3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356$as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 if { ac_try='./conftest$ac_cv_exeext'
3362 { { case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_try") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; }; then
3372 cross_compiling=no
3373 else
3374 if test "$cross_compiling" = maybe; then
3375 cross_compiling=yes
3376 else
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379as_fn_error "cannot run C compiled programs.
3380If you meant to cross compile, use \`--host'.
3381See \`config.log' for more details." "$LINENO" 5; }
3382 fi
3383 fi
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386$as_echo "$cross_compiling" >&6; }
3387
3388rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003391$as_echo_n "checking for suffix of object files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003392if test "${ac_cv_objext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003393 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003394else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeremy White0ebeb532006-06-20 13:18:41 +02003396/* end confdefs.h. */
3397
3398int
3399main ()
3400{
3401
3402 ;
3403 return 0;
3404}
3405_ACEOF
3406rm -f conftest.o conftest.obj
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003407if { { ac_try="$ac_compile"
Jeremy White0ebeb532006-06-20 13:18:41 +02003408case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003414 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003415 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003420 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423 break;;
3424 esac
3425done
3426else
Alexandre Julliardabf50482008-10-31 12:56:53 +01003427 $as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003428sed 's/^/| /' conftest.$ac_ext >&5
3429
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003432as_fn_error "cannot compute suffix of object files: cannot compile
3433See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003434fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003435rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003436fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003438$as_echo "$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003439OBJEXT=$ac_cv_objext
3440ac_objext=$OBJEXT
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003442$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003443if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003444 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003445else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003447/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003448
3449int
3450main ()
3451{
3452#ifndef __GNUC__
3453 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003454#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003455
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003456 ;
3457 return 0;
3458}
3459_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003460if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003461 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00003462else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003463 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00003464fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003466ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00003467
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003468fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003470$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471if test $ac_compiler_gnu = yes; then
3472 GCC=yes
3473else
3474 GCC=
3475fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003476ac_test_CFLAGS=${CFLAGS+set}
3477ac_save_CFLAGS=$CFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003479$as_echo_n "checking whether $CC accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003480if test "${ac_cv_prog_cc_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003481 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003482else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3485 ac_cv_prog_cc_g=no
3486 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003488/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003489
3490int
3491main ()
3492{
3493
3494 ;
3495 return 0;
3496}
3497_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003498if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003499 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003500else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003501 CFLAGS=""
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003503/* end confdefs.h. */
3504
3505int
3506main ()
3507{
3508
3509 ;
3510 return 0;
3511}
3512_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003513if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003514
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003515else
3516 ac_c_werror_flag=$ac_save_c_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003517 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003519/* end confdefs.h. */
3520
3521int
3522main ()
3523{
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003529if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003530 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003531fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003533fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003535fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003537 ac_c_werror_flag=$ac_save_c_werror_flag
3538fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003540$as_echo "$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003541if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003542 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003543elif test $ac_cv_prog_cc_g = yes; then
3544 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003545 CFLAGS="-g -O2"
3546 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003547 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003548 fi
3549else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003550 if test "$GCC" = yes; then
3551 CFLAGS="-O2"
3552 else
3553 CFLAGS=
3554 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003555fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003557$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003558if test "${ac_cv_prog_cc_c89+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003559 $as_echo_n "(cached) " >&6
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003560else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003561 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003562ac_save_CC=$CC
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003564/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003565#include <stdarg.h>
3566#include <stdio.h>
3567#include <sys/types.h>
3568#include <sys/stat.h>
3569/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3570struct buf { int x; };
3571FILE * (*rcsopen) (struct buf *, struct stat *, int);
3572static char *e (p, i)
3573 char **p;
3574 int i;
3575{
3576 return p[i];
3577}
3578static char *f (char * (*g) (char **, int), char **p, ...)
3579{
3580 char *s;
3581 va_list v;
3582 va_start (v,p);
3583 s = g (p, va_arg (v,int));
3584 va_end (v);
3585 return s;
3586}
Alexandre Julliard875927f2004-01-02 01:55:29 +00003587
3588/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3589 function prototypes and stuff, but not '\xHH' hex character constants.
3590 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003591 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00003592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3593 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003594 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003595int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02003597/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3598 inside strings and character constants. */
3599#define FOO(x) 'x'
3600int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003602int test (int i, double x);
3603struct s1 {int (*f) (int a);};
3604struct s2 {int (*f) (double a);};
3605int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3606int argc;
3607char **argv;
3608int
3609main ()
3610{
3611return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3612 ;
3613 return 0;
3614}
3615_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003616for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003618do
3619 CC="$ac_save_CC $ac_arg"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003620 if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003621 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003622fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003623rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003624 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003625done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003626rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003627CC=$ac_save_CC
3628
3629fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003630# AC_CACHE_VAL
3631case "x$ac_cv_prog_cc_c89" in
3632 x)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003634$as_echo "none needed" >&6; } ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003635 xno)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003637$as_echo "unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003638 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003639 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003641$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003642esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003643if test "x$ac_cv_prog_cc_c89" != xno; then :
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003644
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003645fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003646
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003647ac_ext=c
3648ac_cpp='$CPP $CPPFLAGS'
3649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003653ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003654ac_cpp='$CXXCPP $CPPFLAGS'
3655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003658if test -z "$CXX"; then
3659 if test -n "$CCC"; then
3660 CXX=$CCC
3661 else
3662 if test -n "$ac_tool_prefix"; then
3663 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 +00003664 do
3665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003668$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003669if test "${ac_cv_prog_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003670 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003671else
3672 if test -n "$CXX"; then
3673 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003680 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003681 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 +00003682 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003684 break 2
3685 fi
3686done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003687 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003688IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003689
3690fi
3691fi
3692CXX=$ac_cv_prog_CXX
3693if test -n "$CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003695$as_echo "$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003696else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003698$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003699fi
3700
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003701
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003702 test -n "$CXX" && break
3703 done
3704fi
3705if test -z "$CXX"; then
3706 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003707 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 +00003708do
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003712$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003713if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003714 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003715else
3716 if test -n "$ac_ct_CXX"; then
3717 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3718else
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003724 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003725 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 +00003726 ac_cv_prog_ac_ct_CXX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003728 break 2
3729 fi
3730done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003731 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003732IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003733
3734fi
3735fi
3736ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3737if test -n "$ac_ct_CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003739$as_echo "$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003740else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003742$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003743fi
3744
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003745
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003746 test -n "$ac_ct_CXX" && break
3747done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003748
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003749 if test "x$ac_ct_CXX" = x; then
3750 CXX="g++"
3751 else
3752 case $cross_compiling:$ac_tool_warned in
3753yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003756ac_tool_warned=yes ;;
3757esac
3758 CXX=$ac_ct_CXX
3759 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003760fi
3761
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003762 fi
3763fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003764# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003765$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003766set X $ac_compile
3767ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003768for ac_option in --version -v -V -qversion; do
3769 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003770case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775$as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003777 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003778 if test -s conftest.err; then
3779 sed '10a\
3780... rest of stderr output deleted ...
3781 10q' conftest.err >conftest.er1
3782 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003783 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003784 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }
3787done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003788
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003790$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003791if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003792 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003793else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003795/* end confdefs.h. */
3796
3797int
3798main ()
3799{
3800#ifndef __GNUC__
3801 choke me
3802#endif
3803
3804 ;
3805 return 0;
3806}
3807_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003808if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003809 ac_compiler_gnu=yes
3810else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003811 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003812fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003814ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3815
3816fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003818$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3819if test $ac_compiler_gnu = yes; then
3820 GXX=yes
3821else
3822 GXX=
3823fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003824ac_test_CXXFLAGS=${CXXFLAGS+set}
3825ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003827$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003828if test "${ac_cv_prog_cxx_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003829 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003830else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003831 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3832 ac_cxx_werror_flag=yes
3833 ac_cv_prog_cxx_g=no
3834 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003836/* end confdefs.h. */
3837
3838int
3839main ()
3840{
3841
3842 ;
3843 return 0;
3844}
3845_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003846if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003847 ac_cv_prog_cxx_g=yes
3848else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003849 CXXFLAGS=""
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003851/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003852
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003853int
3854main ()
3855{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003856
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003857 ;
3858 return 0;
3859}
3860_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003861if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003862
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003863else
3864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003865 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003867/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003868
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003869int
3870main ()
3871{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003872
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003873 ;
3874 return 0;
3875}
3876_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003877if ac_fn_cxx_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003878 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003879fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003881fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003883fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3886fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003888$as_echo "$ac_cv_prog_cxx_g" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003889if test "$ac_test_CXXFLAGS" = set; then
3890 CXXFLAGS=$ac_save_CXXFLAGS
3891elif test $ac_cv_prog_cxx_g = yes; then
3892 if test "$GXX" = yes; then
3893 CXXFLAGS="-g -O2"
3894 else
3895 CXXFLAGS="-g"
3896 fi
3897else
3898 if test "$GXX" = yes; then
3899 CXXFLAGS="-O2"
3900 else
3901 CXXFLAGS=
3902 fi
3903fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003904ac_ext=c
3905ac_cpp='$CPP $CPPFLAGS'
3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003910if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3912set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003914$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003915if test "${ac_cv_prog_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003916 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003917else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003918 if test -n "$CPPBIN"; then
3919 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003920else
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003926 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003927 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 +00003928 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003930 break 2
3931 fi
3932done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003933 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003934IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003935
3936fi
3937fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003938CPPBIN=$ac_cv_prog_CPPBIN
3939if test -n "$CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003941$as_echo "$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003942else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003944$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003945fi
3946
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003947
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003948fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003949if test -z "$ac_cv_prog_CPPBIN"; then
3950 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003951 # Extract the first word of "cpp", so it can be a program name with args.
3952set dummy cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003954$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003955if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003956 $as_echo_n "(cached) " >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003957else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003958 if test -n "$ac_ct_CPPBIN"; then
3959 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003960else
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003966 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003967 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 +00003968 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003970 break 2
3971 fi
3972done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003973 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003974IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003975
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003976fi
3977fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003978ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3979if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003981$as_echo "$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003982else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003984$as_echo "no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003985fi
3986
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003987 if test "x$ac_ct_CPPBIN" = x; then
3988 CPPBIN="cpp"
3989 else
3990 case $cross_compiling:$ac_tool_warned in
3991yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003994ac_tool_warned=yes ;;
3995esac
3996 CPPBIN=$ac_ct_CPPBIN
3997 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003998else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003999 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004000fi
4001
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004002
Alexandre Julliard1aea4ef2009-08-27 13:35:46 +02004003cat >>confdefs.h <<_ACEOF
4004#define EXEEXT "$ac_exeext"
4005_ACEOF
4006
4007
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004008case $host in
Ken Thomases42664332009-05-01 22:59:52 -05004009 *-darwin*)
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004010 if test "x$enable_win64" = "xyes"
Ken Thomases42664332009-05-01 22:59:52 -05004011 then
4012 CC="$CC -m64"
4013 CXX="$CXX -m64"
4014 LD="${LD:-ld} -arch x86_64"
4015 AS="${AS:-as} -arch x86_64"
4016 host_cpu="x86_64"
4017 notice_platform="64-bit "
4018 TARGETFLAGS="-m64"
4019
4020 else
4021 CC="$CC -m32"
4022 CXX="$CXX -m32"
4023 LD="${LD:-ld} -arch i386"
4024 AS="${AS:-as} -arch i386"
4025 host_cpu="i386"
4026 notice_platform="32-bit "
4027 TARGETFLAGS="-m32"
4028
4029 enable_win16=${enable_win16:-yes}
4030 fi
4031 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004032 x86_64*)
Alexandre Julliard6b4ed0f2009-01-12 19:29:43 +01004033 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004034 then
4035 CC="$CC -m32"
4036 CXX="$CXX -m32"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004038$as_echo_n "checking whether $CC works... " >&6; }
4039
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004041/* end confdefs.h. */
4042
4043int
4044main ()
4045{
4046
4047 ;
4048 return 0;
4049}
4050_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004051if ac_fn_c_try_link "$LINENO"; then :
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004053$as_echo "yes" >&6; }
4054else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004056$as_echo "no" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004057 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 +01004058fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004059rm -f core conftest.err conftest.$ac_objext \
4060 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004061 LD="${LD:-ld} -m elf_i386"
4062 AS="${AS:-as} --32"
4063 host_cpu="i386"
4064 notice_platform="32-bit "
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004065 TARGETFLAGS="-m32"
4066
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004067 enable_win16=${enable_win16:-yes}
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004068 else
Alexandre Julliard8812d242009-06-14 11:19:54 +02004069 if test "x${GCC}" = "xyes"
4070 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004072$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard8812d242009-06-14 11:19:54 +02004074/* end confdefs.h. */
4075#include <stdarg.h>
4076int
4077main ()
4078{
4079void func(__builtin_ms_va_list *args);
4080 ;
4081 return 0;
4082}
4083_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004084if ac_fn_c_try_compile "$LINENO"; then :
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004086$as_echo "yes" >&6; }
4087else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004089$as_echo "no" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004090 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004091fi
Alexandre Julliard8812d242009-06-14 11:19:54 +02004092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004094 TARGETFLAGS="-m64"
4095
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004096 fi
4097 ;;
Alexandre Julliard391fce62009-04-02 12:59:52 +02004098 *-mingw32*|*-cygwin*)
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004099 enable_win16=${enable_win16:-no}
Alexandre Goujonac0a38c2010-03-01 21:39:40 +01004100 CFLAGS="$CFLAGS -D_WIN32"
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004101 ;;
4102 i[3456789]86*)
4103 enable_win16=${enable_win16:-yes}
4104 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004105esac
4106
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004107enable_win16=${enable_win16:-no}
Alexandre Julliard776820e2009-02-23 17:46:33 +01004108
Alexandre Julliard95081552010-02-09 19:08:17 +01004109enable_winetest=${enable_winetest:-$enable_tests}
4110
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004111if test -n "$with_wine64"
4112then
4113 if test "x$enable_win64" = "xyes"
4114 then
4115 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4116--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4117 fi
Alexandre Julliard90647772009-08-13 19:48:42 +02004118 WOW64_DISABLE=\#
4119
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004120 enable_fonts=${enable_fonts:-no}
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004121 enable_server=${enable_server:-no}
4122 enable_tools=${enable_tools:-no}
Alexandre Julliardb3265322010-04-21 12:28:22 +02004123elif test "x$enable_win64" = "xyes"
4124then
4125 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004126fi
4127
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004129$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004130if test "${wine_cv_toolsdir+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004131 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004132else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004133 wine_cv_toolsdir="$with_wine_tools"
4134 if test -z "$with_wine_tools"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004135 if test "$cross_compiling" = "yes"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004136 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004137 elif test -n "$with_wine64"; then
4138 wine_cv_toolsdir="$with_wine64"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004139 fi
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004140 fi
4141 if test -z "$wine_cv_toolsdir"; then
4142 wine_cv_toolsdir="\$(TOPOBJDIR)"
4143 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4144 case "$wine_cv_toolsdir" in
4145 /*) ;;
4146 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004147 esac
4148 else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004149 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004150 fi
4151fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004153$as_echo "$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004154TOOLSDIR=$wine_cv_toolsdir
4155
Alexandre Julliard4d135d92009-02-16 13:08:44 +01004156if test -n "$host_alias" -a "$host_alias" != "$build_alias"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004157then
Alexandre Julliard0fea4a52009-02-12 10:28:23 +01004158 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004159
4160fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004161
Alexandre Julliard40916272007-03-08 13:19:50 +01004162for ac_prog in flex
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004163do
4164 # Extract the first word of "$ac_prog", so it can be a program name with args.
4165set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004167$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004168if test "${ac_cv_prog_FLEX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004169 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004170else
Alexandre Julliard40916272007-03-08 13:19:50 +01004171 if test -n "$FLEX"; then
4172 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004173else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004179 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004180 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 +01004181 ac_cv_prog_FLEX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004183 break 2
4184 fi
4185done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004186 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004187IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004188
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004189fi
4190fi
Alexandre Julliard40916272007-03-08 13:19:50 +01004191FLEX=$ac_cv_prog_FLEX
4192if test -n "$FLEX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004194$as_echo "$FLEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004195else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004197$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004198fi
4199
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004200
Alexandre Julliard40916272007-03-08 13:19:50 +01004201 test -n "$FLEX" && break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004202done
Alexandre Julliard40916272007-03-08 13:19:50 +01004203test -n "$FLEX" || FLEX="none"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004204
Alexandre Julliard40916272007-03-08 13:19:50 +01004205if test "$FLEX" = "none"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004206then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004207 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004208fi
Michael Stefaniucce307332009-12-29 18:07:02 +01004209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4210$as_echo_n "checking whether flex is recent enough... " >&6; }
4211cat >conftest.l <<EOF
4212%top{
4213#include "prediluvian.h"
4214}
4215%%
4216EOF
Alexandre Julliard27816c72010-07-28 11:04:46 +02004217if $FLEX -t conftest.l >/dev/null 2>&5
Michael Stefaniucce307332009-12-29 18:07:02 +01004218then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4220$as_echo "yes" >&6; }
4221else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223$as_echo "no" >&6; }
4224 as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4225fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004226
Mike McCormackc068f672004-03-16 03:11:39 +00004227for ac_prog in bison
4228do
4229 # Extract the first word of "$ac_prog", so it can be a program name with args.
4230set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004232$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004233if test "${ac_cv_prog_BISON+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004234 $as_echo_n "(cached) " >&6
Mike McCormackc068f672004-03-16 03:11:39 +00004235else
4236 if test -n "$BISON"; then
4237 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4238else
4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004244 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004245 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 +00004246 ac_cv_prog_BISON="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackc068f672004-03-16 03:11:39 +00004248 break 2
4249 fi
4250done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004251 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004252IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00004253
4254fi
4255fi
4256BISON=$ac_cv_prog_BISON
4257if test -n "$BISON"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004259$as_echo "$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004260else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004262$as_echo "no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004263fi
4264
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004265
Mike McCormackc068f672004-03-16 03:11:39 +00004266 test -n "$BISON" && break
4267done
4268test -n "$BISON" || BISON="none"
4269
4270if test "$BISON" = "none"
4271then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004272 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
Mike McCormackc068f672004-03-16 03:11:39 +00004273fi
4274
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004275if test -n "$ac_tool_prefix"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004276 for ac_prog in ar gar
4277 do
4278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004281$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004282if test "${ac_cv_prog_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004283 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004284else
4285 if test -n "$AR"; then
4286 ac_cv_prog_AR="$AR" # Let the user override the test.
4287else
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004293 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004294 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 +02004295 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004297 break 2
4298 fi
4299done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004300 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004301IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004302
4303fi
4304fi
4305AR=$ac_cv_prog_AR
4306if test -n "$AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004308$as_echo "$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004309else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004311$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004312fi
4313
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004314
Francois Gouget86bd0462008-06-26 14:05:57 +02004315 test -n "$AR" && break
4316 done
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004317fi
Francois Gouget86bd0462008-06-26 14:05:57 +02004318if test -z "$AR"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004319 ac_ct_AR=$AR
Francois Gouget86bd0462008-06-26 14:05:57 +02004320 for ac_prog in ar gar
4321do
4322 # Extract the first word of "$ac_prog", so it can be a program name with args.
4323set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004325$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004326if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004327 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004328else
4329 if test -n "$ac_ct_AR"; then
4330 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4331else
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004337 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004338 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 +02004339 ac_cv_prog_ac_ct_AR="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004341 break 2
4342 fi
4343done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004344 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004345IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004346
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004347fi
4348fi
4349ac_ct_AR=$ac_cv_prog_ac_ct_AR
4350if test -n "$ac_ct_AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004352$as_echo "$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004353else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004355$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004356fi
4357
Francois Gouget86bd0462008-06-26 14:05:57 +02004358
4359 test -n "$ac_ct_AR" && break
4360done
4361
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004362 if test "x$ac_ct_AR" = x; then
4363 AR="ar"
4364 else
4365 case $cross_compiling:$ac_tool_warned in
4366yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004369ac_tool_warned=yes ;;
4370esac
4371 AR=$ac_ct_AR
4372 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004373fi
4374
Rob Shearman0c694d72008-03-04 15:53:41 +00004375ARFLAGS=rc
4376
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004377if test -n "$ac_tool_prefix"; then
4378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4379set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004381$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004382if test "${ac_cv_prog_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004383 $as_echo_n "(cached) " >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004384else
4385 if test -n "$RANLIB"; then
4386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4387else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004393 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004394 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 +00004395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004397 break 2
4398 fi
4399done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004400 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004401IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004402
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004403fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004404fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004405RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004406if test -n "$RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004408$as_echo "$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004409else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004411$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004412fi
4413
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004414
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004415fi
4416if test -z "$ac_cv_prog_RANLIB"; then
4417 ac_ct_RANLIB=$RANLIB
4418 # Extract the first word of "ranlib", so it can be a program name with args.
4419set dummy ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004421$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004422if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004423 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004424else
4425 if test -n "$ac_ct_RANLIB"; then
4426 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4427else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004433 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004434 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 +00004435 ac_cv_prog_ac_ct_RANLIB="ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004437 break 2
4438 fi
4439done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004440 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004441IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004442
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004443fi
4444fi
4445ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4446if test -n "$ac_ct_RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004448$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004449else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004451$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004452fi
4453
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004454 if test "x$ac_ct_RANLIB" = x; then
4455 RANLIB=":"
4456 else
4457 case $cross_compiling:$ac_tool_warned in
4458yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004461ac_tool_warned=yes ;;
4462esac
4463 RANLIB=$ac_ct_RANLIB
4464 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004465else
4466 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004467fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004468
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004469if test -n "$ac_tool_prefix"; then
4470 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4471set dummy ${ac_tool_prefix}strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004473$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004474if test "${ac_cv_prog_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004475 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004476else
4477 if test -n "$STRIP"; then
4478 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004485 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004486 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 +00004487 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004489 break 2
4490 fi
4491done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004492 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004493IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004494
4495fi
4496fi
4497STRIP=$ac_cv_prog_STRIP
4498if test -n "$STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004500$as_echo "$STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004501else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004503$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004504fi
4505
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004506
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004507fi
4508if test -z "$ac_cv_prog_STRIP"; then
4509 ac_ct_STRIP=$STRIP
4510 # Extract the first word of "strip", so it can be a program name with args.
4511set dummy strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004513$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004514if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004515 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004516else
4517 if test -n "$ac_ct_STRIP"; then
4518 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004525 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004526 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 +00004527 ac_cv_prog_ac_ct_STRIP="strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004529 break 2
4530 fi
4531done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004532 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004533IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004534
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004535fi
4536fi
4537ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4538if test -n "$ac_ct_STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004540$as_echo "$ac_ct_STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004541else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004543$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004544fi
4545
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004546 if test "x$ac_ct_STRIP" = x; then
4547 STRIP="strip"
4548 else
4549 case $cross_compiling:$ac_tool_warned in
4550yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004553ac_tool_warned=yes ;;
4554esac
4555 STRIP=$ac_ct_STRIP
4556 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004557else
4558 STRIP="$ac_cv_prog_STRIP"
4559fi
4560
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004562$as_echo_n "checking whether ln -s works... " >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004563LN_S=$as_ln_s
4564if test "$LN_S" = "ln -s"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004566$as_echo "yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004567else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004569$as_echo "no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004570fi
4571
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004573$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004574if test "${ac_cv_path_GREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004575 $as_echo_n "(cached) " >&6
Alexandre Julliardc6264912004-08-16 20:09:37 +00004576else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004577 if test -z "$GREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004578 ac_path_GREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004579 # Loop through the user's path and test for each of PROGNAME-LIST
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004581for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004585 for ac_prog in grep ggrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4588 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4589# Check for GNU ac_path_GREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004590 # Check for GNU $ac_path_GREP
4591case `"$ac_path_GREP" --version 2>&1` in
4592*GNU*)
4593 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4594*)
4595 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004596 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004597 while :
4598 do
4599 cat "conftest.in" "conftest.in" >"conftest.tmp"
4600 mv "conftest.tmp" "conftest.in"
4601 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004602 $as_echo 'GREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004603 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004605 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004606 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4607 # Best one so far, save it but keep looking for a better one
4608 ac_cv_path_GREP="$ac_path_GREP"
4609 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00004610 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004611 # 10*(2^10) chars as input seems more than enough
4612 test $ac_count -gt 10 && break
4613 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004615esac
4616
Alexandre Julliardabf50482008-10-31 12:56:53 +01004617 $ac_path_GREP_found && break 3
4618 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004619 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004620 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004621IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004622 if test -z "$ac_cv_path_GREP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004623 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 +01004624 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004625else
4626 ac_cv_path_GREP=$GREP
4627fi
4628
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004629fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004631$as_echo "$ac_cv_path_GREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004632 GREP="$ac_cv_path_GREP"
4633
4634
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004636$as_echo_n "checking for egrep... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004637if test "${ac_cv_path_EGREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004638 $as_echo_n "(cached) " >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004639else
4640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4641 then ac_cv_path_EGREP="$GREP -E"
4642 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004643 if test -z "$EGREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004644 ac_path_EGREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004645 # Loop through the user's path and test for each of PROGNAME-LIST
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004647for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004651 for ac_prog in egrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4654 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4655# Check for GNU ac_path_EGREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004656 # Check for GNU $ac_path_EGREP
4657case `"$ac_path_EGREP" --version 2>&1` in
4658*GNU*)
4659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4660*)
4661 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004662 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004663 while :
4664 do
4665 cat "conftest.in" "conftest.in" >"conftest.tmp"
4666 mv "conftest.tmp" "conftest.in"
4667 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004668 $as_echo 'EGREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004671 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4673 # Best one so far, save it but keep looking for a better one
4674 ac_cv_path_EGREP="$ac_path_EGREP"
4675 ac_path_EGREP_max=$ac_count
4676 fi
4677 # 10*(2^10) chars as input seems more than enough
4678 test $ac_count -gt 10 && break
4679 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004681esac
4682
Alexandre Julliardabf50482008-10-31 12:56:53 +01004683 $ac_path_EGREP_found && break 3
4684 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004685 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004686 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004687IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004688 if test -z "$ac_cv_path_EGREP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004689 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 +01004690 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004691else
4692 ac_cv_path_EGREP=$EGREP
4693fi
4694
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004695 fi
4696fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004698$as_echo "$ac_cv_path_EGREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004699 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00004700
4701
James Juranffe6b761999-06-12 08:21:57 +00004702# Extract the first word of "ldconfig", so it can be a program name with args.
4703set dummy ldconfig; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004705$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004706if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004707 $as_echo_n "(cached) " >&6
James Juranffe6b761999-06-12 08:21:57 +00004708else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004709 case $LDCONFIG in
4710 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004711 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4712 ;;
4713 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004715for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004716do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004719 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004720 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 +00004721 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004723 break 2
4724 fi
4725done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004726 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004727IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004728
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004729 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004730 ;;
4731esac
4732fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004733LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00004734if test -n "$LDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004736$as_echo "$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004737else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004739$as_echo "no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004740fi
4741
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004742
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004743# Find a good install program. We prefer a C program (faster),
4744# so one script is as good as another. But avoid the broken or
4745# incompatible versions:
4746# SysV /etc/install, /usr/sbin/install
4747# SunOS /usr/etc/install
4748# IRIX /sbin/install
4749# AIX /bin/install
4750# AmigaOS /C/install, which installs bootblocks on floppy discs
4751# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4752# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4753# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00004754# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004755# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardabf50482008-10-31 12:56:53 +01004756# Reject install programs that cannot install multiple files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004758$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004759if test -z "$INSTALL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004760if test "${ac_cv_path_install+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004761 $as_echo_n "(cached) " >&6
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004762else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004768 # Account for people who put trailing slashes in PATH elements.
4769case $as_dir/ in #((
4770 ./ | .// | /[cC]/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004772 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004773 /usr/ucb/* ) ;;
4774 *)
4775 # OSF1 and SCO ODT 3.0 have their own names for install.
4776 # Don't use installbsd from OSF since it installs stuff as root
4777 # by default.
4778 for ac_prog in ginstall scoinst install; do
4779 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004780 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 +00004781 if test $ac_prog = install &&
4782 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4783 # AIX install. It has an incompatible calling convention.
4784 :
4785 elif test $ac_prog = install &&
4786 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4787 # program-specific install script used by HP pwplus--don't use.
4788 :
4789 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004790 rm -rf conftest.one conftest.two conftest.dir
4791 echo one > conftest.one
4792 echo two > conftest.two
4793 mkdir conftest.dir
4794 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4795 test -s conftest.one && test -s conftest.two &&
4796 test -s conftest.dir/conftest.one &&
4797 test -s conftest.dir/conftest.two
4798 then
4799 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4800 break 3
4801 fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004802 fi
4803 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004804 done
4805 done
4806 ;;
4807esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01004808
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004809 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004810IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004811
Alexandre Julliardabf50482008-10-31 12:56:53 +01004812rm -rf conftest.one conftest.two conftest.dir
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004813
4814fi
4815 if test "${ac_cv_path_install+set}" = set; then
4816 INSTALL=$ac_cv_path_install
4817 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004818 # As a last resort, use the slow shell script. Don't cache a
4819 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004820 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004821 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004822 INSTALL=$ac_install_sh
4823 fi
4824fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004826$as_echo "$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004827
4828# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4829# It thinks the first close brace ends the variable substitution.
4830test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4831
4832test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4833
4834test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4835
4836case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004837 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004838 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4839esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004840
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004841for ac_prog in lclint lint
4842do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004843 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004844set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004846$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004847if test "${ac_cv_prog_LINT+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004848 $as_echo_n "(cached) " >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004849else
4850 if test -n "$LINT"; then
4851 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4852else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH
4855do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004858 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004859 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 +00004860 ac_cv_prog_LINT="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004862 break 2
4863 fi
4864done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004865 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004866IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004867
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004868fi
4869fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004870LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004871if test -n "$LINT"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004873$as_echo "$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004874else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004876$as_echo "no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004877fi
4878
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004879
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004880 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004881done
4882
4883if test "$LINT" = "lint"
4884then
4885 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4886 fi
4887
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004888
4889
Huw Davies00acb5f2004-08-17 22:33:14 +00004890for ac_prog in fontforge
4891do
4892 # Extract the first word of "$ac_prog", so it can be a program name with args.
4893set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004895$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004896if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004897 $as_echo_n "(cached) " >&6
Huw Davies00acb5f2004-08-17 22:33:14 +00004898else
4899 if test -n "$FONTFORGE"; then
4900 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004907 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004908 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 +00004909 ac_cv_prog_FONTFORGE="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Huw Davies00acb5f2004-08-17 22:33:14 +00004911 break 2
4912 fi
4913done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004914 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004915IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00004916
4917fi
4918fi
4919FONTFORGE=$ac_cv_prog_FONTFORGE
4920if test -n "$FONTFORGE"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004922$as_echo "$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004923else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004925$as_echo "no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004926fi
4927
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004928
Huw Davies00acb5f2004-08-17 22:33:14 +00004929 test -n "$FONTFORGE" && break
4930done
4931test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00004932
Mike McCormack90c75bd2005-08-08 18:36:53 +00004933for ac_prog in pkg-config
4934do
4935 # Extract the first word of "$ac_prog", so it can be a program name with args.
4936set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004938$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004939if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004940 $as_echo_n "(cached) " >&6
Mike McCormack90c75bd2005-08-08 18:36:53 +00004941else
4942 if test -n "$PKG_CONFIG"; then
4943 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4944else
4945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH
4947do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004950 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004951 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 +00004952 ac_cv_prog_PKG_CONFIG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormack90c75bd2005-08-08 18:36:53 +00004954 break 2
4955 fi
4956done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004957 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004958IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00004959
4960fi
4961fi
4962PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4963if test -n "$PKG_CONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004965$as_echo "$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004966else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004968$as_echo "no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004969fi
4970
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004971
Mike McCormack90c75bd2005-08-08 18:36:53 +00004972 test -n "$PKG_CONFIG" && break
4973done
4974test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4975
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004976for ac_prog in rsvg
4977do
4978 # Extract the first word of "$ac_prog", so it can be a program name with args.
4979set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004981$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004982if test "${ac_cv_prog_RSVG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004983 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004984else
4985 if test -n "$RSVG"; then
4986 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004993 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_prog_RSVG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004997 break 2
4998 fi
4999done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005000 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005001IFS=$as_save_IFS
5002
5003fi
5004fi
5005RSVG=$ac_cv_prog_RSVG
5006if test -n "$RSVG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005008$as_echo "$RSVG" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005009else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005011$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005012fi
5013
5014
5015 test -n "$RSVG" && break
5016done
5017test -n "$RSVG" || RSVG="false"
5018
Joel Holdsworth476a2be2010-04-05 11:15:03 +01005019for ac_prog in convert
5020do
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022set dummy $ac_prog; ac_word=$2
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if test "${ac_cv_prog_CONVERT+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 if test -n "$CONVERT"; then
5029 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5030else
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_CONVERT="$ac_prog"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042done
5043 done
5044IFS=$as_save_IFS
5045
5046fi
5047fi
5048CONVERT=$ac_cv_prog_CONVERT
5049if test -n "$CONVERT"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5051$as_echo "$CONVERT" >&6; }
5052else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057
5058 test -n "$CONVERT" && break
5059done
5060test -n "$CONVERT" || CONVERT="false"
5061
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005062for ac_prog in icotool
5063do
5064 # Extract the first word of "$ac_prog", so it can be a program name with args.
5065set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005067$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005068if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005069 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005070else
5071 if test -n "$ICOTOOL"; then
5072 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005079 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_ICOTOOL="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005083 break 2
5084 fi
5085done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005086 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005087IFS=$as_save_IFS
5088
5089fi
5090fi
5091ICOTOOL=$ac_cv_prog_ICOTOOL
5092if test -n "$ICOTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005094$as_echo "$ICOTOOL" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005095else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005097$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005098fi
5099
5100
5101 test -n "$ICOTOOL" && break
5102done
5103test -n "$ICOTOOL" || ICOTOOL="false"
5104
5105
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005106if test "x$enable_maintainer_mode" != "xyes"
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005107then
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005108 MAINTAINER_MODE=\#
5109
5110else
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01005111 if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5112 if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005113
5114 if test "$CONVERT" = false
5115 then
5116 as_fn_append wine_warnings "|imagemagick is missing, icons can't be rebuilt."
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5119$as_echo_n "checking for recent enough imagemagick... " >&6; }
5120 convert_version=`convert --version | head -n1`
5121 if test "x$convert_version" != "x"
5122 then
5123 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5124 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5125 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5126 then
5127 CONVERT=false
5128 as_fn_append wine_warnings "|imagemagick version 6.6 or newer is needed to rebuild icons."
5129 fi
5130 fi
5131 if test "$CONVERT" = false
5132 then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5134$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5137$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5138 fi
5139 fi
Joel Holdsworth425f1382010-04-05 11:14:47 +01005140
5141 if test "$ICOTOOL" = false
5142 then
5143 as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5146$as_echo_n "checking for recent enough icotool... " >&6; }
5147 icotool_version=`icotool --version | head -n1`
5148 if test "x$icotool_version" != "x"
5149 then
Joel Holdsworth9571f782010-05-16 23:07:33 +01005150 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5151 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
Joel Holdsworth425f1382010-04-05 11:14:47 +01005152 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5153 then
5154 ICOTOOL=false
5155 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5156 fi
5157 fi
5158 if test "$ICOTOOL" = false
5159 then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5161$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5164$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5165 fi
5166 fi
5167
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005168fi
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005169
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005170case $host_cpu in
5171 *i[3456789]86*)
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005172 # Extract the first word of "prelink", so it can be a program name with args.
5173set dummy prelink; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005175$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005176if test "${ac_cv_path_PRELINK+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005177 $as_echo_n "(cached) " >&6
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005178else
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005179 case $PRELINK in
5180 [\\/]* | ?:[\\/]*)
5181 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5182 ;;
5183 *)
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005185for as_dir in /sbin /usr/sbin $PATH
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005189 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01005190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005191 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005193 break 2
5194 fi
5195done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005196 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005197IFS=$as_save_IFS
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005198
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005199 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5200 ;;
5201esac
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005202fi
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005203PRELINK=$ac_cv_path_PRELINK
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005204if test -n "$PRELINK"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005206$as_echo "$PRELINK" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005207else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005209$as_echo "no" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005210fi
5211
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005212
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005213 ;;
5214esac
5215
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005216
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005218$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005219if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005220 $as_echo_n "(cached) " >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005221else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005222 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005223LIBS="-li386 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005225/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005226
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005227/* Override any GCC internal prototype to avoid an error.
5228 Use char because int might match the return type of a GCC
5229 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005230#ifdef __cplusplus
5231extern "C"
5232#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005233char i386_set_ldt ();
5234int
5235main ()
5236{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005237return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005238 ;
5239 return 0;
5240}
5241_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005242if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005243 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005244else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005245 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005246fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005247rm -f core conftest.err conftest.$ac_objext \
5248 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005249LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005250fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005252$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005253if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005254 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005255#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005256_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005257
5258 LIBS="-li386 $LIBS"
5259
Alexandre Julliard02e90081998-01-04 17:49:09 +00005260fi
5261
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005263$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005264if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005265 $as_echo_n "(cached) " >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005266else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005267 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005268LIBS="-lossaudio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005270/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005271
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005272/* Override any GCC internal prototype to avoid an error.
5273 Use char because int might match the return type of a GCC
5274 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005275#ifdef __cplusplus
5276extern "C"
5277#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005278char _oss_ioctl ();
5279int
5280main ()
5281{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005282return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005283 ;
5284 return 0;
5285}
5286_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005287if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005288 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005289else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005290 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005291fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005292rm -f core conftest.err conftest.$ac_objext \
5293 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005294LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005295fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005297$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005298if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005299 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005300#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005301_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005302
5303 LIBS="-lossaudio $LIBS"
5304
Todd Vierlingecc76691998-12-15 17:49:02 +00005305fi
5306
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005307
Alexandre Julliard82776022005-08-08 11:17:25 +00005308XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005309
Huw Daviese82dfab2004-08-04 19:10:26 +00005310OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005311
Rein Klazes7ff12562004-11-09 20:16:35 +00005312
Alexandre Julliard82776022005-08-08 11:17:25 +00005313
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005314# Check whether --enable-largefile was given.
5315if test "${enable_largefile+set}" = set; then :
5316 enableval=$enable_largefile;
5317fi
5318
5319if test "$enable_largefile" != no; then
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5322$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5323if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325else
5326 ac_cv_sys_largefile_CC=no
5327 if test "$GCC" != yes; then
5328 ac_save_CC=$CC
5329 while :; do
5330 # IRIX 6.2 and later do not support large files by default,
5331 # so use the C compiler's -n32 option if that helps.
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h. */
5334#include <sys/types.h>
5335 /* Check that off_t can represent 2**63 - 1 correctly.
5336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5337 since some C++ compilers masquerading as C compilers
5338 incorrectly reject 9223372036854775807. */
5339#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5341 && LARGE_OFF_T % 2147483647 == 1)
5342 ? 1 : -1];
5343int
5344main ()
5345{
5346
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 break
5353fi
5354rm -f core conftest.err conftest.$ac_objext
5355 CC="$CC -n32"
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357 ac_cv_sys_largefile_CC=' -n32'; break
5358fi
5359rm -f core conftest.err conftest.$ac_objext
5360 break
5361 done
5362 CC=$ac_save_CC
5363 rm -f conftest.$ac_ext
5364 fi
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5367$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5368 if test "$ac_cv_sys_largefile_CC" != no; then
5369 CC=$CC$ac_cv_sys_largefile_CC
5370 fi
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5373$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5374if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376else
5377 while :; do
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h. */
5380#include <sys/types.h>
5381 /* Check that off_t can represent 2**63 - 1 correctly.
5382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5383 since some C++ compilers masquerading as C compilers
5384 incorrectly reject 9223372036854775807. */
5385#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5387 && LARGE_OFF_T % 2147483647 == 1)
5388 ? 1 : -1];
5389int
5390main ()
5391{
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397if ac_fn_c_try_compile "$LINENO"; then :
5398 ac_cv_sys_file_offset_bits=no; break
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h. */
5403#define _FILE_OFFSET_BITS 64
5404#include <sys/types.h>
5405 /* Check that off_t can represent 2**63 - 1 correctly.
5406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5407 since some C++ compilers masquerading as C compilers
5408 incorrectly reject 9223372036854775807. */
5409#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5411 && LARGE_OFF_T % 2147483647 == 1)
5412 ? 1 : -1];
5413int
5414main ()
5415{
5416
5417 ;
5418 return 0;
5419}
5420_ACEOF
5421if ac_fn_c_try_compile "$LINENO"; then :
5422 ac_cv_sys_file_offset_bits=64; break
5423fi
5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 ac_cv_sys_file_offset_bits=unknown
5426 break
5427done
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5430$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5431case $ac_cv_sys_file_offset_bits in #(
5432 no | unknown) ;;
5433 *)
5434cat >>confdefs.h <<_ACEOF
5435#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5436_ACEOF
5437;;
5438esac
5439rm -rf conftest*
5440 if test $ac_cv_sys_file_offset_bits = unknown; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5442$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5443if test "${ac_cv_sys_large_files+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445else
5446 while :; do
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448/* end confdefs.h. */
5449#include <sys/types.h>
5450 /* Check that off_t can represent 2**63 - 1 correctly.
5451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5452 since some C++ compilers masquerading as C compilers
5453 incorrectly reject 9223372036854775807. */
5454#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5456 && LARGE_OFF_T % 2147483647 == 1)
5457 ? 1 : -1];
5458int
5459main ()
5460{
5461
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"; then :
5467 ac_cv_sys_large_files=no; break
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h. */
5472#define _LARGE_FILES 1
5473#include <sys/types.h>
5474 /* Check that off_t can represent 2**63 - 1 correctly.
5475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5476 since some C++ compilers masquerading as C compilers
5477 incorrectly reject 9223372036854775807. */
5478#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5480 && LARGE_OFF_T % 2147483647 == 1)
5481 ? 1 : -1];
5482int
5483main ()
5484{
5485
5486 ;
5487 return 0;
5488}
5489_ACEOF
5490if ac_fn_c_try_compile "$LINENO"; then :
5491 ac_cv_sys_large_files=1; break
5492fi
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_cv_sys_large_files=unknown
5495 break
5496done
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5499$as_echo "$ac_cv_sys_large_files" >&6; }
5500case $ac_cv_sys_large_files in #(
5501 no | unknown) ;;
5502 *)
5503cat >>confdefs.h <<_ACEOF
5504#define _LARGE_FILES $ac_cv_sys_large_files
5505_ACEOF
5506;;
5507esac
5508rm -rf conftest*
5509 fi
5510fi
5511
5512
Alexandre Julliard40664c02009-02-11 20:40:58 +01005513ac_ext=c
5514ac_cpp='$CPP $CPPFLAGS'
5515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005519$as_echo_n "checking how to run the C preprocessor... " >&6; }
5520# On Suns, sometimes $CPP names a directory.
5521if test -n "$CPP" && test -d "$CPP"; then
5522 CPP=
5523fi
5524if test -z "$CPP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005525 if test "${ac_cv_prog_CPP+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005526 $as_echo_n "(cached) " >&6
5527else
5528 # Double quotes because CPP needs to be expanded
5529 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5530 do
5531 ac_preproc_ok=false
5532for ac_c_preproc_warn_flag in '' yes
5533do
5534 # Use a header file that comes with gcc, so configuring glibc
5535 # with a fresh cross-compiler works.
5536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5537 # <limits.h> exists even on freestanding compilers.
5538 # On the NeXT, cc -E runs the code through the compiler's parser,
5539 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005541/* end confdefs.h. */
5542#ifdef __STDC__
5543# include <limits.h>
5544#else
5545# include <assert.h>
5546#endif
5547 Syntax error
5548_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005549if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005550
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005551else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005552 # Broken: fails on valid input.
5553continue
5554fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005555rm -f conftest.err conftest.$ac_ext
5556
5557 # OK, works on sane cases. Now check whether nonexistent headers
5558 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005560/* end confdefs.h. */
5561#include <ac_nonexistent.h>
5562_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005563if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005564 # Broken: success on invalid input.
5565continue
5566else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005567 # Passes both tests.
5568ac_preproc_ok=:
5569break
5570fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005571rm -f conftest.err conftest.$ac_ext
5572
5573done
5574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5575rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005576if $ac_preproc_ok; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005577 break
5578fi
5579
5580 done
5581 ac_cv_prog_CPP=$CPP
5582
5583fi
5584 CPP=$ac_cv_prog_CPP
5585else
5586 ac_cv_prog_CPP=$CPP
5587fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005589$as_echo "$CPP" >&6; }
5590ac_preproc_ok=false
5591for ac_c_preproc_warn_flag in '' yes
5592do
5593 # Use a header file that comes with gcc, so configuring glibc
5594 # with a fresh cross-compiler works.
5595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5596 # <limits.h> exists even on freestanding compilers.
5597 # On the NeXT, cc -E runs the code through the compiler's parser,
5598 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005600/* end confdefs.h. */
5601#ifdef __STDC__
5602# include <limits.h>
5603#else
5604# include <assert.h>
5605#endif
5606 Syntax error
5607_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005608if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005609
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005610else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005611 # Broken: fails on valid input.
5612continue
5613fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005614rm -f conftest.err conftest.$ac_ext
5615
5616 # OK, works on sane cases. Now check whether nonexistent headers
5617 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005619/* end confdefs.h. */
5620#include <ac_nonexistent.h>
5621_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005622if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005623 # Broken: success on invalid input.
5624continue
5625else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005626 # Passes both tests.
5627ac_preproc_ok=:
5628break
5629fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005630rm -f conftest.err conftest.$ac_ext
5631
5632done
5633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5634rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005635if $ac_preproc_ok; then :
5636
Alexandre Julliard40664c02009-02-11 20:40:58 +01005637else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005640as_fn_error "C preprocessor \"$CPP\" fails sanity check
5641See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliard40664c02009-02-11 20:40:58 +01005642fi
5643
5644ac_ext=c
5645ac_cpp='$CPP $CPPFLAGS'
5646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005652$as_echo_n "checking for ANSI C header files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005653if test "${ac_cv_header_stdc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005654 $as_echo_n "(cached) " >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005655else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005657/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005658#include <stdlib.h>
5659#include <stdarg.h>
5660#include <string.h>
5661#include <float.h>
5662
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005663int
5664main ()
5665{
5666
5667 ;
5668 return 0;
5669}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005670_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005671if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005672 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005673else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005674 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005675fi
Jeremy White0ebeb532006-06-20 13:18:41 +02005676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005677
5678if test $ac_cv_header_stdc = yes; then
5679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005681/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005682#include <string.h>
5683
5684_ACEOF
5685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005686 $EGREP "memchr" >/dev/null 2>&1; then :
5687
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005688else
5689 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005690fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005691rm -f conftest*
5692
5693fi
5694
5695if test $ac_cv_header_stdc = yes; then
5696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005698/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005699#include <stdlib.h>
5700
5701_ACEOF
5702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005703 $EGREP "free" >/dev/null 2>&1; then :
5704
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005705else
5706 ac_cv_header_stdc=no
5707fi
5708rm -f conftest*
5709
5710fi
5711
5712if test $ac_cv_header_stdc = yes; then
5713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005714 if test "$cross_compiling" = yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005715 :
5716else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005718/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005719#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005720#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005721#if ((' ' & 0x0FF) == 0x020)
5722# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5723# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5724#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005725# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005726 (('a' <= (c) && (c) <= 'i') \
5727 || ('j' <= (c) && (c) <= 'r') \
5728 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005729# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5730#endif
5731
5732#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5733int
5734main ()
5735{
5736 int i;
5737 for (i = 0; i < 256; i++)
5738 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00005739 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005740 return 2;
5741 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005742}
5743_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005744if ac_fn_c_try_run "$LINENO"; then :
5745
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005746else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005747 ac_cv_header_stdc=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005748fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5750 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005751fi
5752
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005753fi
5754fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005756$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005757if test $ac_cv_header_stdc = yes; then
5758
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005759$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005760
5761fi
5762
5763# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005764for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005765 inttypes.h stdint.h unistd.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005766do :
5767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5768ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5769"
5770eval as_val=\$$as_ac_Header
5771 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005772 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005773#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005774_ACEOF
5775
5776fi
5777
5778done
5779
5780
Rein Klazes7ff12562004-11-09 20:16:35 +00005781for ac_header in \
Chris Robinson862965f2009-08-25 03:26:35 -07005782 AL/al.h \
Aric Stewart4430ab42010-03-17 10:58:32 -05005783 AudioToolbox/AudioConverter.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005784 AudioUnit/AudioUnit.h \
Pierre d'Herbemont08884512006-10-24 15:26:33 +02005785 Carbon/Carbon.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005786 CoreAudio/CoreAudio.h \
Alexandre Julliard66f45a52006-11-06 13:33:16 +01005787 DiskArbitration/DiskArbitration.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00005788 IOKit/IOKitLib.h \
Aric Stewart225a4942009-03-10 14:59:20 -05005789 IOKit/hid/IOHIDLib.h \
Ken Thomases0b08f192009-09-09 22:23:35 -05005790 OpenAL/al.h \
Eric Durbin020b0ef2008-06-24 22:45:51 -05005791 alias.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005792 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005793 arpa/inet.h \
5794 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00005795 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005796 capi20.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005797 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005798 direct.h \
Rob Shearman87175c62008-10-03 12:55:21 +01005799 dirent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005800 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005801 elf.h \
5802 float.h \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +02005803 fnmatch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005804 fontconfig/fontconfig.h \
5805 getopt.h \
Alexandre Julliard46678dc2008-12-09 17:09:42 +01005806 grp.h \
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02005807 gsm.h \
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +02005808 gsm/gsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005809 ieeefp.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005810 inet/mib2.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005811 io.h \
5812 jack/jack.h \
5813 jpeglib.h \
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +01005814 kstat.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005815 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005816 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005817 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005818 ldap.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005819 libaudioio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005820 link.h \
5821 linux/cdrom.h \
5822 linux/compiler.h \
5823 linux/hdreg.h \
5824 linux/input.h \
5825 linux/ioctl.h \
5826 linux/joystick.h \
5827 linux/major.h \
5828 linux/param.h \
5829 linux/serial.h \
Francois Gougetda1a3522008-12-28 10:35:02 +01005830 linux/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005831 linux/ucdrom.h \
Ken Thomasesd35c0e82009-03-11 09:05:53 -05005832 mach-o/nlist.h \
Alexandre Julliard150b5dc2006-12-29 20:02:02 +01005833 mach/mach.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005834 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005835 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005836 machine/limits.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005837 machine/soundcard.h \
Austin English40b3d2e2010-05-23 21:18:17 -05005838 machine/sysarch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005839 mntent.h \
Aric Stewartdb71d7c2009-08-19 09:37:48 -05005840 mpg123.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005841 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005842 netdb.h \
5843 netinet/in.h \
5844 netinet/in_systm.h \
5845 netinet/tcp.h \
5846 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01005847 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005848 openssl/ssl.h \
Alexandre Julliard00302152007-07-02 19:54:00 +02005849 png.h \
Steven Edwards57279182005-03-04 12:38:36 +00005850 poll.h \
Albert Lee01b972d2009-11-20 18:35:26 -05005851 port.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005852 process.h \
5853 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005854 pwd.h \
5855 regex.h \
5856 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005857 scsi/scsi.h \
5858 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005859 scsi/sg.h \
5860 soundcard.h \
Austin English2d7ccb32009-06-13 18:01:24 -05005861 stdbool.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005862 stdint.h \
5863 strings.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005864 stropts.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005865 sys/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005866 sys/cdio.h \
5867 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005868 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005869 sys/errno.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02005870 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005871 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005872 sys/filio.h \
Alexandre Julliard61a70362009-06-26 15:45:03 +02005873 sys/inotify.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005874 sys/ioctl.h \
5875 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00005876 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005877 sys/link.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005878 sys/mman.h \
5879 sys/modem.h \
5880 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01005881 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005882 sys/param.h \
5883 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02005884 sys/prctl.h \
Austin English94021a12009-01-20 17:42:53 -06005885 sys/protosw.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005886 sys/ptrace.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09005887 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005888 sys/scsiio.h \
5889 sys/shm.h \
5890 sys/signal.h \
5891 sys/socket.h \
Mark Adams25696352007-07-10 23:39:21 -04005892 sys/socketvar.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005893 sys/sockio.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005894 sys/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005895 sys/statvfs.h \
5896 sys/strtio.h \
5897 sys/syscall.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005898 sys/tihdr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005899 sys/time.h \
Austin English8b195912009-01-21 21:59:11 -06005900 sys/timeout.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005901 sys/times.h \
5902 sys/uio.h \
5903 sys/un.h \
Alexandre Julliard66eb4bd2008-12-09 19:33:06 +01005904 sys/utsname.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005905 sys/vm86.h \
5906 sys/wait.h \
5907 syscall.h \
5908 termios.h \
Vincent Povirk73cd5692010-03-08 17:07:29 -06005909 tiffio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005910 unistd.h \
5911 utime.h \
John Reiser0a2c94e2008-07-24 13:31:53 -07005912 valgrind/memcheck.h \
Jacek Caban11ca05f2009-05-29 23:35:13 +02005913 valgrind/valgrind.h \
5914 zlib.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005915
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005916do :
5917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5918ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5919eval as_val=\$$as_ac_Header
5920 if test "x$as_val" = x""yes; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005921 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005922#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Rein Klazes7ff12562004-11-09 20:16:35 +00005923_ACEOF
5924
5925fi
5926
5927done
5928
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005930$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005931if test "${ac_cv_header_stat_broken+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005932 $as_echo_n "(cached) " >&6
Rein Klazes7ff12562004-11-09 20:16:35 +00005933else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005935/* end confdefs.h. */
5936#include <sys/types.h>
5937#include <sys/stat.h>
5938
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005939#if defined S_ISBLK && defined S_IFDIR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005940extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005941#endif
5942
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005943#if defined S_ISBLK && defined S_IFCHR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005944extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005945#endif
5946
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005947#if defined S_ISLNK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005948extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005949#endif
5950
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005951#if defined S_ISSOCK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005952extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005953#endif
5954
5955_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005956if ac_fn_c_try_compile "$LINENO"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005957 ac_cv_header_stat_broken=no
Phil Krylovf0ca5862006-11-05 23:03:46 +03005958else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005959 ac_cv_header_stat_broken=yes
Phil Krylovf0ca5862006-11-05 23:03:46 +03005960fi
Phil Krylovf0ca5862006-11-05 23:03:46 +03005961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005962fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005964$as_echo "$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00005965if test $ac_cv_header_stat_broken = yes; then
5966
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005967$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005968
5969fi
5970
5971
5972
Austin English51094be2008-12-27 14:53:53 -06005973for 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 +02005974do :
5975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5976ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005977 #ifdef HAVE_SYS_PARAM_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005978 # include <sys/param.h>
5979 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005980"
5981eval as_val=\$$as_ac_Header
5982 if test "x$as_val" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005983 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005984#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005985_ACEOF
5986
5987fi
5988
5989done
5990
5991
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005992for ac_header in \
5993 netinet/ip.h \
5994 net/if.h \
5995 net/if_arp.h \
5996 net/if_dl.h \
5997 net/if_types.h \
5998 net/route.h \
5999 netinet/if_ether.h \
Austin English337067a2009-01-22 10:44:06 -06006000 netinet/if_inarp.h \
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006001 netinet/in_pcb.h \
6002 netinet/ip_icmp.h \
6003 netinet/ip_var.h \
6004 netinet/udp.h \
6005 netipx/ipx.h \
6006
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>
Francois Gouget9e67edf2008-03-06 12:34:48 +01006010 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006011 # include <sys/socket.h>
6012 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006013 #ifdef HAVE_SYS_SOCKETVAR_H
Ken Thomasesa609fee2007-10-19 16:18:17 -05006014 # include <sys/socketvar.h>
6015 #endif
Austin Englishbb3f2582009-01-26 23:34:42 -06006016 #ifdef HAVE_NET_ROUTE_H
6017 # include <net/route.h>
6018 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006019 #ifdef HAVE_NETINET_IN_H
Ken Thomasesffd78b12007-10-19 16:18:27 -05006020 # include <netinet/in.h>
6021 #endif
Austin English03173932009-01-23 13:29:42 -06006022 #ifdef HAVE_NETINET_IN_SYSTM_H
6023 # include <netinet/in_systm.h>
6024 #endif
Alexandre Julliardd7e846c2009-01-30 14:01:12 +01006025 #ifdef HAVE_NET_IF_H
6026 # include <net/if.h>
6027 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006028 #ifdef HAVE_NETINET_IP_H
6029 # include <netinet/ip.h>
6030 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006031"
6032eval as_val=\$$as_ac_Header
6033 if test "x$as_val" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006034 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006036_ACEOF
6037
6038fi
6039
6040done
6041
Mark Adams25696352007-07-10 23:39:21 -04006042
Austin English03173932009-01-23 13:29:42 -06006043for 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 +02006044do :
6045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6046ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Eric Durbin020b0ef2008-06-24 22:45:51 -05006047 #ifdef HAVE_ALIAS_H
6048 # include <alias.h>
6049 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006050 #ifdef HAVE_SYS_SOCKET_H
Mark Adams25696352007-07-10 23:39:21 -04006051 # include <sys/socket.h>
6052 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006053 #ifdef HAVE_SYS_SOCKETVAR_H
Mark Adams25696352007-07-10 23:39:21 -04006054 # include <sys/socketvar.h>
6055 #endif
Austin English53d3c462009-01-26 23:47:49 -06006056 #ifdef HAVE_SYS_TIMEOUT_H
6057 # include <sys/timeout.h>
6058 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006059 #ifdef HAVE_NETINET_IN_H
Mark Adams25696352007-07-10 23:39:21 -04006060 # include <netinet/in.h>
6061 #endif
Austin English03173932009-01-23 13:29:42 -06006062 #ifdef HAVE_NETINET_IN_SYSTM_H
6063 # include <netinet/in_systm.h>
6064 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006065 #ifdef HAVE_NETINET_IP_H
6066 # include <netinet/ip.h>
6067 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006068 #ifdef HAVE_NETINET_IP_VAR_H
6069 # include <netinet/ip_var.h>
6070 #endif
Eric Durbin020b0ef2008-06-24 22:45:51 -05006071 #ifdef HAVE_NETINET_IP_ICMP_H
6072 # include <netinet/ip_icmp.h>
6073 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006074 #ifdef HAVE_NETINET_UDP_H
6075 # include <netinet/udp.h>
6076 #endif
Mark Adams25696352007-07-10 23:39:21 -04006077 #ifdef HAVE_NETINET_TCP_H
6078 # include <netinet/tcp.h>
6079 #endif
Austin English03173932009-01-23 13:29:42 -06006080 #ifdef HAVE_NETINET_TCP_TIMER_H
6081 #include <netinet/tcp_timer.h>
6082 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006083"
6084eval as_val=\$$as_ac_Header
6085 if test "x$as_val" = x""yes; then :
Mark Adams25696352007-07-10 23:39:21 -04006086 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006087#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mark Adams25696352007-07-10 23:39:21 -04006088_ACEOF
6089
6090fi
6091
6092done
6093
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006094
Juan Lang0ce420d2009-08-12 09:14:16 -07006095for ac_header in linux/ipx.h linux/irda.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006096do :
Juan Lang0ce420d2009-08-12 09:14:16 -07006097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gougetfaf05df2006-08-07 21:52:36 +02006099 #ifdef HAVE_ASM_TYPES_H
6100 # include <asm/types.h>
6101 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006102 #ifdef HAVE_SYS_SOCKET_H
Francois Gougetfaf05df2006-08-07 21:52:36 +02006103 # include <sys/socket.h>
6104 #endif
Francois Gougetda1a3522008-12-28 10:35:02 +01006105 #ifdef HAVE_LINUX_TYPES_H
6106 # include <linux/types.h>
6107 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006108"
Juan Lang0ce420d2009-08-12 09:14:16 -07006109eval as_val=\$$as_ac_Header
6110 if test "x$as_val" = x""yes; then :
Francois Gougetfaf05df2006-08-07 21:52:36 +02006111 cat >>confdefs.h <<_ACEOF
Juan Lang0ce420d2009-08-12 09:14:16 -07006112#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Gougetfaf05df2006-08-07 21:52:36 +02006113_ACEOF
6114
6115fi
6116
6117done
6118
6119
Austin English2d7ccb32009-06-13 18:01:24 -05006120for ac_header in mach-o/dyld_images.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006121do :
6122 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 -05006123 # include <stdbool.h>
6124 #endif
6125 #ifdef HAVE_STDINT_H
6126 # include <stdint.h>
6127 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006128"
6129if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
Austin English2d7ccb32009-06-13 18:01:24 -05006130 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006131#define HAVE_MACH_O_DYLD_IMAGES_H 1
Austin English2d7ccb32009-06-13 18:01:24 -05006132_ACEOF
6133
6134fi
6135
6136done
6137
6138
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006139for ac_header in resolv.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006140do :
6141 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 +01006142 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006143 # include <sys/socket.h>
6144 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006145 #ifdef HAVE_NETINET_IN_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006146 # include <netinet/in.h>
6147 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006148 #ifdef HAVE_ARPA_NAMESER_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006149 # include <arpa/nameser.h>
6150 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006151"
6152if test "x$ac_cv_header_resolv_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006153 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006154#define HAVE_RESOLV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006155_ACEOF
6156
6157fi
6158
6159done
6160
6161
Juan Lange3c0e302010-03-11 18:36:46 -08006162for ac_header in ifaddrs.h
6163do :
6164 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6165"
6166if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6167 cat >>confdefs.h <<_ACEOF
6168#define HAVE_IFADDRS_H 1
6169_ACEOF
6170
6171fi
6172
6173done
6174
6175
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006176for ac_header in ucontext.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006177do :
6178 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6179"
6180if test "x$ac_cv_header_ucontext_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006181 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006182#define HAVE_UCONTEXT_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006183_ACEOF
6184
6185fi
6186
6187done
6188
6189
Tijl Coosemans60833da2007-08-08 00:25:24 +02006190for ac_header in sys/thr.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006191do :
6192 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 +01006193#ifdef HAVE_UCONTEXT_H
Tijl Coosemans60833da2007-08-08 00:25:24 +02006194#include <ucontext.h>
6195#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006196"
6197if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
Tijl Coosemans60833da2007-08-08 00:25:24 +02006198 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006199#define HAVE_SYS_THR_H 1
Tijl Coosemans60833da2007-08-08 00:25:24 +02006200_ACEOF
6201
6202fi
6203
6204done
6205
6206
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006207for ac_header in pthread_np.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006208do :
6209 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 +02006210#include <pthread.h>
6211#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006212"
6213if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006214 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006215#define HAVE_PTHREAD_NP_H 1
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006216_ACEOF
6217
6218fi
6219
6220done
6221
6222
Francois Gougetfaf05df2006-08-07 21:52:36 +02006223for ac_header in linux/videodev.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006224do :
6225 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 +02006226#include <sys/time.h>
6227#endif
6228#include <sys/types.h>
6229#ifdef HAVE_ASM_TYPES_H
6230#include <asm/types.h>
6231#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006232"
6233if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006234 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006235#define HAVE_LINUX_VIDEODEV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006236_ACEOF
6237
6238fi
6239
6240done
6241
6242
Alexandre Julliardb079add2006-02-24 11:46:17 +01006243for ac_header in linux/capi.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006244do :
6245 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6246"
6247if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
Alexandre Julliardb079add2006-02-24 11:46:17 +01006248 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006249#define HAVE_LINUX_CAPI_H 1
Alexandre Julliardb079add2006-02-24 11:46:17 +01006250_ACEOF
6251
6252fi
6253
6254done
6255
6256
6257
Alexandre Julliarda3097622007-07-02 17:27:48 +02006258DLLEXT=""
6259
6260DLLFLAGS="-D_REENTRANT"
6261
6262LDSHARED=""
6263
6264LDDLLFLAGS=""
6265
6266LIBEXT="so"
6267
6268IMPLIBEXT="def"
6269
6270LDRPATH_INSTALL=""
6271
6272LDRPATH_LOCAL=""
6273
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006274STATIC_IMPLIBEXT="def.a"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006275# Extract the first word of "ldd", so it can be a program name with args.
6276set dummy ldd; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006278$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006279if test "${ac_cv_path_LDD+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006280 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006281else
6282 case $LDD in
6283 [\\/]* | ?:[\\/]*)
6284 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6285 ;;
6286 *)
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288as_dummy="/sbin:/usr/sbin:$PATH"
6289for as_dir in $as_dummy
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006293 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006297 break 2
6298 fi
6299done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006300 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006301IFS=$as_save_IFS
6302
6303 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6304 ;;
6305esac
6306fi
6307LDD=$ac_cv_path_LDD
6308if test -n "$LDD"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006310$as_echo "$LDD" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006311else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006313$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006314fi
6315
6316
6317
6318case $host_os in
6319 cygwin*|mingw32*)
6320 if test -n "$ac_tool_prefix"; then
6321 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6322set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006324$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006325if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006326 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006327else
6328 if test -n "$DLLTOOL"; then
6329 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6330else
6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006336 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006340 break 2
6341 fi
6342done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006343 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006344IFS=$as_save_IFS
6345
6346fi
6347fi
6348DLLTOOL=$ac_cv_prog_DLLTOOL
6349if test -n "$DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006351$as_echo "$DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006352else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006354$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006355fi
6356
6357
6358fi
6359if test -z "$ac_cv_prog_DLLTOOL"; then
6360 ac_ct_DLLTOOL=$DLLTOOL
6361 # Extract the first word of "dlltool", so it can be a program name with args.
6362set dummy dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006364$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006365if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006366 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006367else
6368 if test -n "$ac_ct_DLLTOOL"; then
6369 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6370else
6371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372for as_dir in $PATH
6373do
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006376 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006380 break 2
6381 fi
6382done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006383 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006384IFS=$as_save_IFS
6385
6386fi
6387fi
6388ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6389if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006391$as_echo "$ac_ct_DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006392else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006394$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006395fi
6396
6397 if test "x$ac_ct_DLLTOOL" = x; then
6398 DLLTOOL="false"
6399 else
6400 case $cross_compiling:$ac_tool_warned in
6401yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006404ac_tool_warned=yes ;;
6405esac
6406 DLLTOOL=$ac_ct_DLLTOOL
6407 fi
6408else
6409 DLLTOOL="$ac_cv_prog_DLLTOOL"
6410fi
6411
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6414set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006416$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006417if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006418 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006419else
6420 if test -n "$DLLWRAP"; then
6421 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6422else
6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006428 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006432 break 2
6433 fi
6434done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006435 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006436IFS=$as_save_IFS
6437
6438fi
6439fi
6440DLLWRAP=$ac_cv_prog_DLLWRAP
6441if test -n "$DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006443$as_echo "$DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006444else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006446$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006447fi
6448
6449
6450fi
6451if test -z "$ac_cv_prog_DLLWRAP"; then
6452 ac_ct_DLLWRAP=$DLLWRAP
6453 # Extract the first word of "dllwrap", so it can be a program name with args.
6454set dummy dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006456$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006457if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006458 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006459else
6460 if test -n "$ac_ct_DLLWRAP"; then
6461 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6462else
6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
6465do
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006468 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006472 break 2
6473 fi
6474done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006475 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006476IFS=$as_save_IFS
6477
6478fi
6479fi
6480ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6481if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006483$as_echo "$ac_ct_DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006484else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006486$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006487fi
6488
6489 if test "x$ac_ct_DLLWRAP" = x; then
6490 DLLWRAP="false"
6491 else
6492 case $cross_compiling:$ac_tool_warned in
6493yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006496ac_tool_warned=yes ;;
6497esac
6498 DLLWRAP=$ac_ct_DLLWRAP
6499 fi
6500else
6501 DLLWRAP="$ac_cv_prog_DLLWRAP"
6502fi
6503
Alexandre Julliarda3097622007-07-02 17:27:48 +02006504 if test "$DLLWRAP" = "false"; then
6505 LIBEXT="a"
6506 else
6507 LIBEXT="dll"
6508 fi
6509 IMPLIBEXT="a"
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006510 STATIC_IMPLIBEXT="a"
Alexandre Julliardec1ebfb2008-09-04 12:29:07 +02006511 enable_iphlpapi=${enable_iphlpapi:-no}
6512 enable_kernel32=${enable_kernel32:-no}
6513 enable_msvcrt=${enable_msvcrt:-no}
6514 enable_ntdll=${enable_ntdll:-no}
6515 enable_ws2_32=${enable_ws2_32:-no}
6516 enable_loader=${enable_loader:-no}
6517 enable_server=${enable_server:-no}
Alexandre Julliard40664c02009-02-11 20:40:58 +01006518 with_x=${with_x:-no}
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01006519 with_pthread=${with_pthread:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006520 ;;
6521 darwin*|macosx*)
6522 DLLEXT=".so"
6523 LIBEXT="dylib"
6524 DLLFLAGS="$DLLFLAGS -fPIC"
6525 LDDLLFLAGS="-bundle -multiply_defined suppress"
6526 LIBWINE_LDFLAGS="-multiply_defined suppress"
6527 LDSHARED="\$(CC) -dynamiclib"
6528 STRIP="$STRIP -x"
6529 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 +00006530 SECURITYLIB="-framework Security -framework CoreFoundation"
6531
6532 COREFOUNDATIONLIB="-framework CoreFoundation"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006533
6534 IOKITLIB="-framework IOKit -framework CoreFoundation"
6535
Alexandre Julliard691bdbd2009-06-23 20:51:37 +02006536 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006537
6538 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6539 then
6540 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6541
6542 fi
6543 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6544 then
6545 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6546
6547 fi
Ken Thomases0b08f192009-09-09 22:23:35 -05006548 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6549 then
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006550 FRAMEWORK_OPENAL="-framework OpenAL"
Ken Thomases0b08f192009-09-09 22:23:35 -05006551
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006552
6553cat >>confdefs.h <<_ACEOF
6554#define HAVE_OPENAL 1
6555_ACEOF
6556
6557 ac_cv_lib_openal=yes
Ken Thomases0b08f192009-09-09 22:23:35 -05006558 fi
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006559 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6560 then
6561 ac_save_LIBS="$LIBS"
6562 LIBS="$LIBS $IOKITLIB"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006563 for ac_func in IOHIDManagerCreate
6564do :
6565 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6566if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006567 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006568#define HAVE_IOHIDMANAGERCREATE 1
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006569_ACEOF
6570
6571fi
6572done
6573
6574 LIBS="$ac_save_LIBS"
6575 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006576 case $host_cpu in
6577 *powerpc*)
6578 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6579 esac
6580 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6581 then
6582 CARBONLIB="-framework Carbon"
6583
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02006584 enable_winequartz_drv=${enable_winequartz_drv:-yes}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006585 fi
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006586 if test "x$enable_win16" = "xyes"
6587 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006589$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006590 if test "$cross_compiling" = yes; then :
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006592$as_echo "cross-compiling, assuming yes" >&6; }
6593else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006595/* end confdefs.h. */
6596asm(".text\n"
6597 "bad:\tnop;nop\n"
6598 "good:\tnop;nop\n\t"
6599 ".globl _testfunc\n"
6600 "_testfunc:\tcallw good");
6601 extern void testfunc();
6602int
6603main ()
6604{
6605unsigned short *p = (unsigned short *)testfunc;
6606 return p[0] != 0xe866 || p[1] != 0xfffa
6607 ;
6608 return 0;
6609}
6610_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006611if ac_fn_c_try_run "$LINENO"; then :
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006613$as_echo "yes" >&6; }
6614else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006616$as_echo "no" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006617 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 +02006618fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6620 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006621fi
6622
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006623 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006624 ;;
6625 *)
6626 DLLFLAGS="$DLLFLAGS -fPIC"
6627 DLLEXT=".so"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006628 { $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 +01006629$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006630if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006631 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006632else
6633 ac_wine_try_cflags_saved=$CFLAGS
6634CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006637void myfunc() {}
6638_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006639if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006640 ac_cv_c_dll_gnuelf="yes"
6641else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006642 ac_cv_c_dll_gnuelf="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006643fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006644rm -f core conftest.err conftest.$ac_objext \
6645 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006646CFLAGS=$ac_wine_try_cflags_saved
6647fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006649$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006650 if test "$ac_cv_c_dll_gnuelf" = "yes"
6651 then
6652 LDSHARED="\$(CC) -shared"
6653 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006654 { $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 +01006655$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006656if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006657 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006658else
6659 ac_wine_try_cflags_saved=$CFLAGS
6660CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006662/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006663int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006664_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006665if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006666 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6667else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006668 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006669fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006670rm -f core conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006672CFLAGS=$ac_wine_try_cflags_saved
6673fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006674{ $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 +01006675$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006676if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006677 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6678else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006679 { $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 +01006680$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006681if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006682 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006683else
6684 ac_wine_try_cflags_saved=$CFLAGS
6685CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006687/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006688int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006689_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006690if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006691 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6692else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006693 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006694fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006695rm -f core conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006697CFLAGS=$ac_wine_try_cflags_saved
6698fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006699{ $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 +01006700$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006701if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006702 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6703fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006704fi
6705
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006706 { $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 +01006707$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006708if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006709 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006710else
6711 ac_wine_try_cflags_saved=$CFLAGS
6712CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006714/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006715int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006716_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006717if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006718 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6719else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006720 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006721fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006722rm -f core conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006724CFLAGS=$ac_wine_try_cflags_saved
6725fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006727$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006728if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006729 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6730fi
6731
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006732 { $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 +01006733$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 +02006734if 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 +01006735 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006736else
6737 ac_wine_try_cflags_saved=$CFLAGS
6738CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006740/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006741int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006742_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006743if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006744 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6745else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006746 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006747fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006748rm -f core conftest.err conftest.$ac_objext \
6749 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006750CFLAGS=$ac_wine_try_cflags_saved
6751fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006752{ $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 +01006753$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 +02006754if 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 +02006755 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6756fi
6757
Alexandre Julliarda3097622007-07-02 17:27:48 +02006758 echo '{ global: *; };' >conftest.map
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006759 { $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 +01006760$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006761if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006762 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006763else
6764 ac_wine_try_cflags_saved=$CFLAGS
6765CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006767/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006768int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006769_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006770if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006771 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6772else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006773 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006774fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006775rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006777CFLAGS=$ac_wine_try_cflags_saved
6778fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006780$as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006781if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006782 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6783fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006784 rm -f conftest.map
6785
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006787$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006788if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006789 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006790else
6791 ac_wine_try_cflags_saved=$CFLAGS
6792CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006794/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006795int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006796_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006797if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006798 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6799else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006800 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006801fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006802rm -f core conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006804CFLAGS=$ac_wine_try_cflags_saved
6805fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006807$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006808if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006809 LDEXECFLAGS="-Wl,--export-dynamic"
6810
6811fi
6812
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006813 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6814{ $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 +01006815$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006816if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006817 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006818else
6819 ac_wine_try_cflags_saved=$CFLAGS
6820CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006822/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006823int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006824_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006825if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006826 eval "$as_ac_var=yes"
6827else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006828 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006829fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006830rm -f core conftest.err conftest.$ac_objext \
6831 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006832CFLAGS=$ac_wine_try_cflags_saved
6833fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006834eval ac_res=\$$as_ac_var
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006836$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006837if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006838 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6839 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6840else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006841 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6842{ $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 +01006843$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006844if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006845 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006846else
6847 ac_wine_try_cflags_saved=$CFLAGS
6848CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006850/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006851int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006852_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006853if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006854 eval "$as_ac_var=yes"
6855else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006856 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006857fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006858rm -f core conftest.err conftest.$ac_objext \
6859 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006860CFLAGS=$ac_wine_try_cflags_saved
6861fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006862eval ac_res=\$$as_ac_var
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006864$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006865if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006866 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6867 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6868fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006869fi
6870
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006872$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006873if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006874 $as_echo_n "(cached) " >&6
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006875else
6876 ac_wine_try_cflags_saved=$CFLAGS
6877CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006879/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006880int main(int argc, char **argv) { return 0; }
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006881_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006882if ac_fn_c_try_link "$LINENO"; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006883 ac_cv_cflags__Wl___enable_new_dtags=yes
6884else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006885 ac_cv_cflags__Wl___enable_new_dtags=no
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006886fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006887rm -f core conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006889CFLAGS=$ac_wine_try_cflags_saved
6890fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006892$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006893if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006894 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6895fi
6896
Alexandre Julliarda3097622007-07-02 17:27:48 +02006897 case $host_cpu in
6898 *i[3456789]86* | x86_64)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006899 { $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 +01006900$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006901if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006902 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006903else
6904 ac_wine_try_cflags_saved=$CFLAGS
6905CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006907/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006908int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006909_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006910if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006911 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6912else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006913 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006914fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006915rm -f core conftest.err conftest.$ac_objext \
6916 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006917CFLAGS=$ac_wine_try_cflags_saved
6918fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006920$as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006921if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006922 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6923fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006924 ;;
6925 esac
6926
6927 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006929$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006930if test "${ac_cv_c_dll_unixware+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006931 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006932else
6933 ac_wine_try_cflags_saved=$CFLAGS
6934CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006937void myfunc() {}
6938_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006939if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006940 ac_cv_c_dll_unixware="yes"
6941else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006942 ac_cv_c_dll_unixware="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006943fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006944rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006946CFLAGS=$ac_wine_try_cflags_saved
6947fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006949$as_echo "$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006950 if test "$ac_cv_c_dll_unixware" = "yes"
6951 then
6952 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6953 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6954
6955 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006957$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006958if test "${ac_cv_c_dll_hpux+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006959 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006960else
6961 ac_wine_try_cflags_saved=$CFLAGS
6962CFLAGS="$CFLAGS -shared"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006965void myfunc() {}
6966_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006967if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006968 ac_cv_c_dll_hpux="yes"
6969else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006970 ac_cv_c_dll_hpux="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006971fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006972rm -f core conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006974CFLAGS=$ac_wine_try_cflags_saved
6975fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006977$as_echo "$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006978 if test "$ac_cv_c_dll_hpux" = "yes"
6979 then
6980 LIBEXT="sl"
6981 DLLEXT=".sl"
6982 LDDLLFLAGS="-shared -fPIC"
6983 LDSHARED="\$(CC) -shared"
6984 fi
6985 fi
6986 fi
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006987 ;;
6988esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02006989
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006990enable_winequartz_drv=${enable_winequartz_drv:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006991
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006992if test "$LIBEXT" = "a"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006993 as_fn_error "could not find a way to build shared libraries.
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006994It is currently not possible to build Wine without shared library
6995(.so) support to allow transparent switch between .so and .dll files.
6996If you are using Linux, you will need a newer binutils.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006997" "$LINENO" 5
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006998fi
6999
Alexandre Julliard7d2e7722010-07-26 12:13:47 +02007000CROSSTEST_DISABLE=\#
7001
7002if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007003then
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007004 case "$host_cpu" in
7005 i[3456789]86*)
7006 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 " ;;
7007 x86_64)
7008 ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
7009 *)
7010 ac_prefix_list="" ;;
7011esac
7012for ac_prog in $ac_prefix_list
Alexandre Julliarda3097622007-07-02 17:27:48 +02007013do
7014 # Extract the first word of "$ac_prog", so it can be a program name with args.
7015set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007017$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007018if test "${ac_cv_prog_CROSSCC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007019 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007020else
7021 if test -n "$CROSSCC"; then
7022 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007029 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02007030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_prog_CROSSCC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02007033 break 2
7034 fi
7035done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007036 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02007037IFS=$as_save_IFS
7038
7039fi
7040fi
7041CROSSCC=$ac_cv_prog_CROSSCC
7042if test -n "$CROSSCC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007044$as_echo "$CROSSCC" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007045else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007047$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007048fi
7049
7050
7051 test -n "$CROSSCC" && break
7052done
7053test -n "$CROSSCC" || CROSSCC="false"
7054
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007055 if test "$CROSSCC" != "false"
7056 then
Alexandre Julliard7d2e7722010-07-26 12:13:47 +02007057 CROSSTEST_DISABLE=""
Alexandre Julliard72a95ff2009-06-22 14:50:51 +02007058 set x $CROSSCC
7059 shift
7060 target=""
7061 while test $# -ge 1
7062 do
7063 case "$1" in
7064 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7065 esac
7066 shift
7067 done
7068 if test -n "$target"
7069 then
Alexandre Julliard1f254212010-01-23 20:26:49 +01007070 CROSSTARGET="$target"
Alexandre Julliarda2d88ab2009-05-30 17:08:06 +02007071
Alexandre Julliard72a95ff2009-06-22 14:50:51 +02007072 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007073 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007074fi
7075
7076
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007077if test "$ac_cv_header_pthread_h" = "yes"
7078then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007080$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007081if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007082 $as_echo_n "(cached) " >&6
7083else
7084 ac_check_lib_save_LIBS=$LIBS
7085LIBS="-lpthread $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007087/* end confdefs.h. */
7088
7089/* Override any GCC internal prototype to avoid an error.
7090 Use char because int might match the return type of a GCC
7091 builtin and then its argument prototype would still apply. */
7092#ifdef __cplusplus
7093extern "C"
7094#endif
7095char pthread_create ();
7096int
7097main ()
7098{
7099return pthread_create ();
7100 ;
7101 return 0;
7102}
7103_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007104if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007105 ac_cv_lib_pthread_pthread_create=yes
7106else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007107 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007108fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007109rm -f core conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007111LIBS=$ac_check_lib_save_LIBS
7112fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007114$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007115if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007116 LIBPTHREAD="-lpthread"
7117
7118fi
7119
7120fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007121if test "x$LIBPTHREAD" = "x"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007122 case "x$with_pthread" in
7123 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007124 *) as_fn_error "pthread ${notice_platform}development files not found.
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007125Wine cannot support threads without libpthread.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007126Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007127esac
7128fi
7129
7130
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007132$as_echo_n "checking for X... " >&6; }
7133
7134
7135# Check whether --with-x was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007136if test "${with_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007137 withval=$with_x;
7138fi
7139
7140# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7141if test "x$with_x" = xno; then
7142 # The user explicitly disabled X.
7143 have_x=disabled
7144else
7145 case $x_includes,$x_libraries in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007146 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7147 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007148 $as_echo_n "(cached) " >&6
7149else
7150 # One or both of the vars are not set, and there is no cached value.
7151ac_x_includes=no ac_x_libraries=no
7152rm -f -r conftest.dir
7153if mkdir conftest.dir; then
7154 cd conftest.dir
7155 cat >Imakefile <<'_ACEOF'
7156incroot:
7157 @echo incroot='${INCROOT}'
7158usrlibdir:
7159 @echo usrlibdir='${USRLIBDIR}'
7160libdir:
7161 @echo libdir='${LIBDIR}'
7162_ACEOF
7163 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7165 for ac_var in incroot usrlibdir libdir; do
7166 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7167 done
7168 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7169 for ac_extension in a so sl dylib la dll; do
7170 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7171 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7172 ac_im_usrlibdir=$ac_im_libdir; break
7173 fi
7174 done
7175 # Screen out bogus values from the imake configuration. They are
7176 # bogus both because they are the default anyway, and because
7177 # using them would break gcc on systems where it needs fixed includes.
7178 case $ac_im_incroot in
7179 /usr/include) ac_x_includes= ;;
7180 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7181 esac
7182 case $ac_im_usrlibdir in
7183 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7184 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7185 esac
7186 fi
7187 cd ..
7188 rm -f -r conftest.dir
7189fi
7190
7191# Standard set of common directories for X headers.
7192# Check X11 before X11Rn because it is often a symlink to the current release.
7193ac_x_header_dirs='
7194/usr/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007195/usr/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007196/usr/X11R6/include
7197/usr/X11R5/include
7198/usr/X11R4/include
7199
7200/usr/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007201/usr/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007202/usr/include/X11R6
7203/usr/include/X11R5
7204/usr/include/X11R4
7205
7206/usr/local/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007207/usr/local/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007208/usr/local/X11R6/include
7209/usr/local/X11R5/include
7210/usr/local/X11R4/include
7211
7212/usr/local/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007213/usr/local/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007214/usr/local/include/X11R6
7215/usr/local/include/X11R5
7216/usr/local/include/X11R4
7217
7218/usr/X386/include
7219/usr/x386/include
7220/usr/XFree86/include/X11
7221
7222/usr/include
7223/usr/local/include
7224/usr/unsupported/include
7225/usr/athena/include
7226/usr/local/x11r5/include
7227/usr/lpp/Xamples/include
7228
7229/usr/openwin/include
7230/usr/openwin/share/include'
7231
7232if test "$ac_x_includes" = no; then
7233 # Guess where to find include files, by looking for Xlib.h.
7234 # First, try using that file with no special directory specified.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007236/* end confdefs.h. */
7237#include <X11/Xlib.h>
7238_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007239if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007240 # We can compile using X headers with no special include directory.
7241ac_x_includes=
7242else
Alexandre Julliard40664c02009-02-11 20:40:58 +01007243 for ac_dir in $ac_x_header_dirs; do
7244 if test -r "$ac_dir/X11/Xlib.h"; then
7245 ac_x_includes=$ac_dir
7246 break
7247 fi
7248done
7249fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01007250rm -f conftest.err conftest.$ac_ext
7251fi # $ac_x_includes = no
7252
7253if test "$ac_x_libraries" = no; then
7254 # Check for the libraries.
7255 # See if we find them without any special options.
7256 # Don't add to $LIBS permanently.
7257 ac_save_LIBS=$LIBS
7258 LIBS="-lX11 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007260/* end confdefs.h. */
7261#include <X11/Xlib.h>
7262int
7263main ()
7264{
7265XrmInitialize ()
7266 ;
7267 return 0;
7268}
7269_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007270if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007271 LIBS=$ac_save_LIBS
7272# We can link X programs with no special library path.
7273ac_x_libraries=
7274else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007275 LIBS=$ac_save_LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +01007276for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7277do
7278 # Don't even attempt the hair of trying to link an X program!
7279 for ac_extension in a so sl dylib la dll; do
7280 if test -r "$ac_dir/libX11.$ac_extension"; then
7281 ac_x_libraries=$ac_dir
7282 break 2
7283 fi
7284 done
7285done
7286fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007287rm -f core conftest.err conftest.$ac_objext \
7288 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007289fi # $ac_x_libraries = no
7290
7291case $ac_x_includes,$ac_x_libraries in #(
7292 no,* | *,no | *\'*)
7293 # Didn't find X, or a directory has "'" in its name.
7294 ac_cv_have_x="have_x=no";; #(
7295 *)
7296 # Record where we found X for the cache.
7297 ac_cv_have_x="have_x=yes\
7298 ac_x_includes='$ac_x_includes'\
7299 ac_x_libraries='$ac_x_libraries'"
7300esac
7301fi
7302;; #(
7303 *) have_x=yes;;
7304 esac
7305 eval "$ac_cv_have_x"
7306fi # $with_x != no
7307
7308if test "$have_x" != yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007310$as_echo "$have_x" >&6; }
7311 no_x=yes
7312else
7313 # If each of the values was on the command line, it overrides each guess.
7314 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7315 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7316 # Update the cache value to reflect the command line values.
7317 ac_cv_have_x="have_x=yes\
7318 ac_x_includes='$x_includes'\
7319 ac_x_libraries='$x_libraries'"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007321$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7322fi
7323
7324if test "$no_x" = yes; then
7325 # Not all programs may use this symbol, but it does not hurt to define it.
7326
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007327$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
Alexandre Julliard40664c02009-02-11 20:40:58 +01007328
7329 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7330else
7331 if test -n "$x_includes"; then
7332 X_CFLAGS="$X_CFLAGS -I$x_includes"
7333 fi
7334
7335 # It would also be nice to do this for all -L options, not just this one.
7336 if test -n "$x_libraries"; then
7337 X_LIBS="$X_LIBS -L$x_libraries"
7338 # For Solaris; some versions of Sun CC require a space after -R and
7339 # others require no space. Words are not sufficient . . . .
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007341$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7342 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7343 ac_xsave_c_werror_flag=$ac_c_werror_flag
7344 ac_c_werror_flag=yes
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007346/* end confdefs.h. */
7347
7348int
7349main ()
7350{
7351
7352 ;
7353 return 0;
7354}
7355_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007356if ac_fn_c_try_link "$LINENO"; then :
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007358$as_echo "no" >&6; }
7359 X_LIBS="$X_LIBS -R$x_libraries"
7360else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007361 LIBS="$ac_xsave_LIBS -R $x_libraries"
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007363/* end confdefs.h. */
7364
7365int
7366main ()
7367{
7368
7369 ;
7370 return 0;
7371}
7372_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007373if ac_fn_c_try_link "$LINENO"; then :
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007375$as_echo "yes" >&6; }
7376 X_LIBS="$X_LIBS -R $x_libraries"
7377else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007379$as_echo "neither works" >&6; }
7380fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007381rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007383fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007384rm -f core conftest.err conftest.$ac_objext \
7385 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007386 ac_c_werror_flag=$ac_xsave_c_werror_flag
7387 LIBS=$ac_xsave_LIBS
7388 fi
7389
7390 # Check for system-dependent libraries X programs must link with.
7391 # Do this before checking for the system-independent R6 libraries
7392 # (-lICE), since we may need -lsocket or whatever for X linking.
7393
7394 if test "$ISC" = yes; then
7395 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7396 else
7397 # Martyn Johnson says this is needed for Ultrix, if the X
7398 # libraries were built with DECnet support. And Karl Berry says
7399 # the Alpha needs dnet_stub (dnet does not exist).
7400 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007402/* end confdefs.h. */
7403
7404/* Override any GCC internal prototype to avoid an error.
7405 Use char because int might match the return type of a GCC
7406 builtin and then its argument prototype would still apply. */
7407#ifdef __cplusplus
7408extern "C"
7409#endif
7410char XOpenDisplay ();
7411int
7412main ()
7413{
7414return XOpenDisplay ();
7415 ;
7416 return 0;
7417}
7418_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007419if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007420
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007421else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007423$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007424if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007425 $as_echo_n "(cached) " >&6
7426else
7427 ac_check_lib_save_LIBS=$LIBS
7428LIBS="-ldnet $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007430/* end confdefs.h. */
7431
7432/* Override any GCC internal prototype to avoid an error.
7433 Use char because int might match the return type of a GCC
7434 builtin and then its argument prototype would still apply. */
7435#ifdef __cplusplus
7436extern "C"
7437#endif
7438char dnet_ntoa ();
7439int
7440main ()
7441{
7442return dnet_ntoa ();
7443 ;
7444 return 0;
7445}
7446_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007447if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007448 ac_cv_lib_dnet_dnet_ntoa=yes
7449else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007450 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007451fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007452rm -f core conftest.err conftest.$ac_objext \
7453 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007454LIBS=$ac_check_lib_save_LIBS
7455fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007457$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007458if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007459 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7460fi
7461
7462 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007464$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007465if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007466 $as_echo_n "(cached) " >&6
7467else
7468 ac_check_lib_save_LIBS=$LIBS
7469LIBS="-ldnet_stub $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007471/* end confdefs.h. */
7472
7473/* Override any GCC internal prototype to avoid an error.
7474 Use char because int might match the return type of a GCC
7475 builtin and then its argument prototype would still apply. */
7476#ifdef __cplusplus
7477extern "C"
7478#endif
7479char dnet_ntoa ();
7480int
7481main ()
7482{
7483return dnet_ntoa ();
7484 ;
7485 return 0;
7486}
7487_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007488if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007489 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7490else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007491 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007492fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007493rm -f core conftest.err conftest.$ac_objext \
7494 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007495LIBS=$ac_check_lib_save_LIBS
7496fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007498$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007499if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007500 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7501fi
7502
7503 fi
7504fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007505rm -f core conftest.err conftest.$ac_objext \
7506 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007507 LIBS="$ac_xsave_LIBS"
7508
7509 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7510 # to get the SysV transport functions.
7511 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7512 # needs -lnsl.
7513 # The nsl library prevents programs from opening the X display
7514 # on Irix 5.2, according to T.E. Dickey.
7515 # The functions gethostbyname, getservbyname, and inet_addr are
7516 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007517 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7518if test "x$ac_cv_func_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007519
Alexandre Julliard40664c02009-02-11 20:40:58 +01007520fi
7521
Alexandre Julliard40664c02009-02-11 20:40:58 +01007522 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007524$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007525if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007526 $as_echo_n "(cached) " >&6
7527else
7528 ac_check_lib_save_LIBS=$LIBS
7529LIBS="-lnsl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007531/* end confdefs.h. */
7532
7533/* Override any GCC internal prototype to avoid an error.
7534 Use char because int might match the return type of a GCC
7535 builtin and then its argument prototype would still apply. */
7536#ifdef __cplusplus
7537extern "C"
7538#endif
7539char gethostbyname ();
7540int
7541main ()
7542{
7543return gethostbyname ();
7544 ;
7545 return 0;
7546}
7547_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007548if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007549 ac_cv_lib_nsl_gethostbyname=yes
7550else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007551 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007552fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007553rm -f core conftest.err conftest.$ac_objext \
7554 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007555LIBS=$ac_check_lib_save_LIBS
7556fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007558$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007559if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007560 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7561fi
7562
7563 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007565$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007566if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007567 $as_echo_n "(cached) " >&6
7568else
7569 ac_check_lib_save_LIBS=$LIBS
7570LIBS="-lbsd $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007572/* end confdefs.h. */
7573
7574/* Override any GCC internal prototype to avoid an error.
7575 Use char because int might match the return type of a GCC
7576 builtin and then its argument prototype would still apply. */
7577#ifdef __cplusplus
7578extern "C"
7579#endif
7580char gethostbyname ();
7581int
7582main ()
7583{
7584return gethostbyname ();
7585 ;
7586 return 0;
7587}
7588_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007589if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007590 ac_cv_lib_bsd_gethostbyname=yes
7591else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007592 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007593fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007594rm -f core conftest.err conftest.$ac_objext \
7595 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007596LIBS=$ac_check_lib_save_LIBS
7597fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007599$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007600if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7602fi
7603
7604 fi
7605 fi
7606
7607 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7608 # socket/setsockopt and other routines are undefined under SCO ODT
7609 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7610 # on later versions), says Simon Leinen: it contains gethostby*
7611 # variants that don't use the name server (or something). -lsocket
7612 # must be given before -lnsl if both are needed. We assume that
7613 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007614 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7615if test "x$ac_cv_func_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007616
Alexandre Julliard40664c02009-02-11 20:40:58 +01007617fi
7618
Alexandre Julliard40664c02009-02-11 20:40:58 +01007619 if test $ac_cv_func_connect = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007621$as_echo_n "checking for connect in -lsocket... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007622if test "${ac_cv_lib_socket_connect+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007623 $as_echo_n "(cached) " >&6
7624else
7625 ac_check_lib_save_LIBS=$LIBS
7626LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007628/* end confdefs.h. */
7629
7630/* Override any GCC internal prototype to avoid an error.
7631 Use char because int might match the return type of a GCC
7632 builtin and then its argument prototype would still apply. */
7633#ifdef __cplusplus
7634extern "C"
7635#endif
7636char connect ();
7637int
7638main ()
7639{
7640return connect ();
7641 ;
7642 return 0;
7643}
7644_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007645if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007646 ac_cv_lib_socket_connect=yes
7647else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007648 ac_cv_lib_socket_connect=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007649fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007650rm -f core conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007652LIBS=$ac_check_lib_save_LIBS
7653fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007655$as_echo "$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007656if test "x$ac_cv_lib_socket_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007657 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7658fi
7659
7660 fi
7661
7662 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007663 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7664if test "x$ac_cv_func_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007665
Alexandre Julliard40664c02009-02-11 20:40:58 +01007666fi
7667
Alexandre Julliard40664c02009-02-11 20:40:58 +01007668 if test $ac_cv_func_remove = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007670$as_echo_n "checking for remove in -lposix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007671if test "${ac_cv_lib_posix_remove+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007672 $as_echo_n "(cached) " >&6
7673else
7674 ac_check_lib_save_LIBS=$LIBS
7675LIBS="-lposix $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007677/* end confdefs.h. */
7678
7679/* Override any GCC internal prototype to avoid an error.
7680 Use char because int might match the return type of a GCC
7681 builtin and then its argument prototype would still apply. */
7682#ifdef __cplusplus
7683extern "C"
7684#endif
7685char remove ();
7686int
7687main ()
7688{
7689return remove ();
7690 ;
7691 return 0;
7692}
7693_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007694if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007695 ac_cv_lib_posix_remove=yes
7696else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007697 ac_cv_lib_posix_remove=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007698fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007699rm -f core conftest.err conftest.$ac_objext \
7700 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007701LIBS=$ac_check_lib_save_LIBS
7702fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007704$as_echo "$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007705if test "x$ac_cv_lib_posix_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7707fi
7708
7709 fi
7710
7711 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007712 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7713if test "x$ac_cv_func_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007714
Alexandre Julliard40664c02009-02-11 20:40:58 +01007715fi
7716
Alexandre Julliard40664c02009-02-11 20:40:58 +01007717 if test $ac_cv_func_shmat = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007719$as_echo_n "checking for shmat in -lipc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007720if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007721 $as_echo_n "(cached) " >&6
7722else
7723 ac_check_lib_save_LIBS=$LIBS
7724LIBS="-lipc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007726/* end confdefs.h. */
7727
7728/* Override any GCC internal prototype to avoid an error.
7729 Use char because int might match the return type of a GCC
7730 builtin and then its argument prototype would still apply. */
7731#ifdef __cplusplus
7732extern "C"
7733#endif
7734char shmat ();
7735int
7736main ()
7737{
7738return shmat ();
7739 ;
7740 return 0;
7741}
7742_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007743if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007744 ac_cv_lib_ipc_shmat=yes
7745else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007746 ac_cv_lib_ipc_shmat=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007747fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007748rm -f core conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007750LIBS=$ac_check_lib_save_LIBS
7751fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007753$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007754if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7756fi
7757
7758 fi
7759 fi
7760
7761 # Check for libraries that X11R6 Xt/Xaw programs need.
7762 ac_save_LDFLAGS=$LDFLAGS
7763 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7764 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7765 # check for ICE first), but we must link in the order -lSM -lICE or
7766 # we get undefined symbols. So assume we have SM if we have ICE.
7767 # These have to be linked with before -lX11, unlike the other
7768 # libraries we check for below, so use a different variable.
7769 # John Interrante, Karl Berry
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007771$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007772if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007773 $as_echo_n "(cached) " >&6
7774else
7775 ac_check_lib_save_LIBS=$LIBS
7776LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007778/* end confdefs.h. */
7779
7780/* Override any GCC internal prototype to avoid an error.
7781 Use char because int might match the return type of a GCC
7782 builtin and then its argument prototype would still apply. */
7783#ifdef __cplusplus
7784extern "C"
7785#endif
7786char IceConnectionNumber ();
7787int
7788main ()
7789{
7790return IceConnectionNumber ();
7791 ;
7792 return 0;
7793}
7794_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007795if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007796 ac_cv_lib_ICE_IceConnectionNumber=yes
7797else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007798 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007799fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007800rm -f core conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007802LIBS=$ac_check_lib_save_LIBS
7803fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007805$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007806if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007807 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7808fi
7809
7810 LDFLAGS=$ac_save_LDFLAGS
7811
7812fi
7813
7814
Rein Klazes7ff12562004-11-09 20:16:35 +00007815if test "$have_x" = "yes"
7816then
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007817 XLIB="-lX11"
Rein Klazes7ff12562004-11-09 20:16:35 +00007818 ac_save_CPPFLAGS="$CPPFLAGS"
7819 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7820
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007822$as_echo_n "checking for -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007823if test "${ac_cv_lib_soname_X11+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007824 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007825else
7826 ac_check_soname_save_LIBS=$LIBS
7827LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007829/* end confdefs.h. */
7830
7831/* Override any GCC internal prototype to avoid an error.
7832 Use char because int might match the return type of a GCC
7833 builtin and then its argument prototype would still apply. */
7834#ifdef __cplusplus
7835extern "C"
7836#endif
7837char XCreateWindow ();
7838int
7839main ()
7840{
7841return XCreateWindow ();
7842 ;
7843 return 0;
7844}
7845_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007846if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007847 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007848 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 +02007849 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'` ;;
7850 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7851 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007852fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007853rm -f core conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007855 LIBS=$ac_check_soname_save_LIBS
7856fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007857if test "x$ac_cv_lib_soname_X11" = "x"; then :
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007859$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007860
7861else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007863$as_echo "$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007864
7865cat >>confdefs.h <<_ACEOF
7866#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7867_ACEOF
7868
7869
7870fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007872$as_echo_n "checking for -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007873if test "${ac_cv_lib_soname_Xext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007874 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007875else
7876 ac_check_soname_save_LIBS=$LIBS
7877LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007879/* end confdefs.h. */
7880
7881/* Override any GCC internal prototype to avoid an error.
7882 Use char because int might match the return type of a GCC
7883 builtin and then its argument prototype would still apply. */
7884#ifdef __cplusplus
7885extern "C"
7886#endif
7887char XextCreateExtension ();
7888int
7889main ()
7890{
7891return XextCreateExtension ();
7892 ;
7893 return 0;
7894}
7895_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007896if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007897 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007898 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 +02007899 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'` ;;
7900 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7901 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007902fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007903rm -f core conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007905 LIBS=$ac_check_soname_save_LIBS
7906fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007907if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007909$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007910
7911else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007913$as_echo "$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007914
7915cat >>confdefs.h <<_ACEOF
7916#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7917_ACEOF
7918
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007919 XLIB="-lXext $XLIB"
Alexandre Julliarda8518542007-07-09 22:43:45 +02007920fi
7921
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007922 for ac_header in X11/Xlib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007923 X11/XKBlib.h \
7924 X11/Xutil.h \
Andrew Riedi23e2cb12007-03-22 12:06:19 -07007925 X11/Xcursor/Xcursor.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007926 X11/extensions/shape.h \
7927 X11/extensions/XInput.h \
7928 X11/extensions/XShm.h \
Chris Robinson42584652007-09-22 18:19:08 -07007929 X11/extensions/Xcomposite.h \
Alexandre Julliard7d00b052006-10-23 13:46:34 +02007930 X11/extensions/Xinerama.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007931 X11/extensions/Xrandr.h \
7932 X11/extensions/Xrender.h \
André Hentschel7b285a42009-09-19 19:08:09 +02007933 X11/extensions/xf86vmode.h \
7934 X11/extensions/xf86vmproto.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007935do :
7936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7937ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
Alexandre Julliard73482142005-08-03 19:21:04 +00007938# include <X11/Xlib.h>
7939#endif
7940#ifdef HAVE_X11_XUTIL_H
7941# include <X11/Xutil.h>
7942#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007943"
7944eval as_val=\$$as_ac_Header
7945 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007946 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01007947#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007948_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007949
7950fi
7951
7952done
7953
7954
7955 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7956 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007958$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007959if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007960 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007961else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007962 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007963LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007965/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007966
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007967/* Override any GCC internal prototype to avoid an error.
7968 Use char because int might match the return type of a GCC
7969 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007970#ifdef __cplusplus
7971extern "C"
7972#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007973char XkbQueryExtension ();
7974int
7975main ()
7976{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007977return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007978 ;
7979 return 0;
7980}
7981_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007982if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007983 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007984else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007985 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007986fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007987rm -f core conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007989LIBS=$ac_check_lib_save_LIBS
7990fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007992$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007993if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
Patrik Stridvall24110281999-02-04 10:09:54 +00007994
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007995$as_echo "#define HAVE_XKB 1" >>confdefs.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007996
Patrik Stridvall24110281999-02-04 10:09:54 +00007997fi
7998
Alexandre Julliard255b4862003-10-15 04:09:55 +00007999 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008000
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008001 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8002 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008004$as_echo_n "checking for -lXcursor... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008005if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008006 $as_echo_n "(cached) " >&6
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008007else
8008 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008009LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008011/* end confdefs.h. */
8012
8013/* Override any GCC internal prototype to avoid an error.
8014 Use char because int might match the return type of a GCC
8015 builtin and then its argument prototype would still apply. */
8016#ifdef __cplusplus
8017extern "C"
8018#endif
8019char XcursorImageLoadCursor ();
8020int
8021main ()
8022{
8023return XcursorImageLoadCursor ();
8024 ;
8025 return 0;
8026}
8027_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008028if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008029 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008030 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 +02008031 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'` ;;
8032 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8033 esac
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008034fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008035rm -f core conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008037 LIBS=$ac_check_soname_save_LIBS
8038fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008039if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008041$as_echo "not found" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008042
8043else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008045$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008046
8047cat >>confdefs.h <<_ACEOF
8048#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8049_ACEOF
8050
8051
8052fi
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008053 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008054 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008055 case "x$with_xcursor" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008056 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 +01008057 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008058 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8059This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008060esac
8061fi
8062
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008063 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8064 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008066$as_echo_n "checking for -lXi... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008067if test "${ac_cv_lib_soname_Xi+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008068 $as_echo_n "(cached) " >&6
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008069else
8070 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008071LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008073/* end confdefs.h. */
8074
8075/* Override any GCC internal prototype to avoid an error.
8076 Use char because int might match the return type of a GCC
8077 builtin and then its argument prototype would still apply. */
8078#ifdef __cplusplus
8079extern "C"
8080#endif
8081char XOpenDevice ();
8082int
8083main ()
8084{
8085return XOpenDevice ();
8086 ;
8087 return 0;
8088}
8089_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008090if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008091 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008092 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 +02008093 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'` ;;
8094 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8095 esac
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008096fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008097rm -f core conftest.err conftest.$ac_objext \
8098 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008099 LIBS=$ac_check_soname_save_LIBS
8100fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008101if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008103$as_echo "not found" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008104
8105else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008107$as_echo "$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008108
8109cat >>confdefs.h <<_ACEOF
8110#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8111_ACEOF
8112
8113
8114fi
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008115 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008116 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008117 case "x$with_xinput" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008118 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 +01008119 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008120 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8121This is an error since --with-xinput was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008122esac
8123fi
8124
Alexandre Julliard255b4862003-10-15 04:09:55 +00008125 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8126 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008128$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008129if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008130 $as_echo_n "(cached) " >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00008131else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008132 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008133LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008135/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008136
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008137/* Override any GCC internal prototype to avoid an error.
8138 Use char because int might match the return type of a GCC
8139 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008140#ifdef __cplusplus
8141extern "C"
8142#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008143char XShmQueryExtension ();
8144int
8145main ()
8146{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008147return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008148 ;
8149 return 0;
8150}
8151_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008152if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008153 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008154else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008155 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008156fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008157rm -f core conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008159LIBS=$ac_check_lib_save_LIBS
8160fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008162$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008163if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
Francois Jacques5b6879c2000-07-28 23:04:54 +00008164
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008165$as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00008166
Francois Jacques5b6879c2000-07-28 23:04:54 +00008167fi
8168
Alexandre Julliard255b4862003-10-15 04:09:55 +00008169 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008170 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008171 case "x$with_xshm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008172 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 +01008173 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008174 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8175This is an error since --with-xshm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008176esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008177fi
8178
Alexandre Julliard255b4862003-10-15 04:09:55 +00008179 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8180 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008182$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008183if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008184 $as_echo_n "(cached) " >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008185else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008186 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008187LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008189/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008190
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008191/* Override any GCC internal prototype to avoid an error.
8192 Use char because int might match the return type of a GCC
8193 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008194#ifdef __cplusplus
8195extern "C"
8196#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008197char XShapeQueryExtension ();
8198int
8199main ()
8200{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008201return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008202 ;
8203 return 0;
8204}
8205_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008206if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008207 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008208else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008209 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008210fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008211rm -f core conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008213LIBS=$ac_check_lib_save_LIBS
8214fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008216$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008217if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
Ove Kaavenc90fb252001-01-02 22:39:14 +00008218
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008219$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00008220
Ove Kaavenc90fb252001-01-02 22:39:14 +00008221fi
8222
Alexandre Julliard255b4862003-10-15 04:09:55 +00008223 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008224 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008225 case "x$with_xshape" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008226 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 +01008227 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008228 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8229This is an error since --with-xshape was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008230esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008231fi
8232
André Hentschel7b285a42009-09-19 19:08:09 +02008233 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 +00008234 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008236$as_echo_n "checking for -lXxf86vm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008237if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008238 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008239else
Francois Gougeta49beb42008-06-26 14:02:17 +02008240 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008241LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008243/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008244
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008245/* Override any GCC internal prototype to avoid an error.
8246 Use char because int might match the return type of a GCC
8247 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008248#ifdef __cplusplus
8249extern "C"
8250#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008251char XF86VidModeQueryExtension ();
8252int
8253main ()
8254{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008255return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008256 ;
8257 return 0;
8258}
8259_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008260if ac_fn_c_try_link "$LINENO"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008261 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008262 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 +02008263 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'` ;;
8264 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8265 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008266fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008267rm -f core conftest.err conftest.$ac_objext \
8268 conftest$ac_exeext conftest.$ac_ext
Francois Gougeta49beb42008-06-26 14:02:17 +02008269 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008270fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008271if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008273$as_echo "not found" >&6; }
Patrik Stridvall24110281999-02-04 10:09:54 +00008274
Francois Gougeta49beb42008-06-26 14:02:17 +02008275else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008277$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
Francois Gougeta49beb42008-06-26 14:02:17 +02008278
8279cat >>confdefs.h <<_ACEOF
8280#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008281_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008282
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008283
Patrik Stridvall24110281999-02-04 10:09:54 +00008284fi
Alexandre Julliard255b4862003-10-15 04:09:55 +00008285 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008286 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008287 case "x$with_xxf86vm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008288 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 +01008289 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008290 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8291This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008292esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008293fi
8294
Alexandre Julliarda8518542007-07-09 22:43:45 +02008295 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 +02008296 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008298$as_echo_n "checking for -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008299if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008300 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008301else
8302 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008303LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008305/* end confdefs.h. */
8306
8307/* Override any GCC internal prototype to avoid an error.
8308 Use char because int might match the return type of a GCC
8309 builtin and then its argument prototype would still apply. */
8310#ifdef __cplusplus
8311extern "C"
8312#endif
8313char XRenderQueryExtension ();
8314int
8315main ()
8316{
8317return XRenderQueryExtension ();
8318 ;
8319 return 0;
8320}
8321_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008322if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008323 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008324 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 +02008325 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'` ;;
8326 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8327 esac
Alexandre Julliard629639e2007-07-04 12:47:57 +02008328fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008329rm -f core conftest.err conftest.$ac_objext \
8330 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008331 LIBS=$ac_check_soname_save_LIBS
8332fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008333if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008335$as_echo "not found" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008336
8337else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008339$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008340
8341cat >>confdefs.h <<_ACEOF
8342#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8343_ACEOF
8344
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008346$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008347if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008348 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008349else
8350 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008351LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008353/* end confdefs.h. */
8354
8355/* Override any GCC internal prototype to avoid an error.
8356 Use char because int might match the return type of a GCC
8357 builtin and then its argument prototype would still apply. */
8358#ifdef __cplusplus
8359extern "C"
8360#endif
8361char XRenderSetPictureTransform ();
8362int
8363main ()
8364{
8365return XRenderSetPictureTransform ();
8366 ;
8367 return 0;
8368}
8369_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008370if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008371 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8372else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008373 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Alexandre Julliard629639e2007-07-04 12:47:57 +02008374fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008375rm -f core conftest.err conftest.$ac_objext \
8376 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008377LIBS=$ac_check_lib_save_LIBS
8378fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008380$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008381if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008382
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008383$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
Alexandre Julliard629639e2007-07-04 12:47:57 +02008384
8385fi
8386
8387fi
8388
Alexandre Julliard629639e2007-07-04 12:47:57 +02008389 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008390 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008391 case "x$with_xrender" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008392 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 +01008393 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008394 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8395This is an error since --with-xrender was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008396esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008397fi
8398
Alexandre Julliard629639e2007-07-04 12:47:57 +02008399 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 +00008400 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008402/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008403#include <X11/Xlib.h>
8404#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008405int
8406main ()
8407{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008408static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008409 ;
8410 return 0;
8411}
8412_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008413if ac_fn_c_try_compile "$LINENO"; then :
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008415$as_echo_n "checking for -lXrandr... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008416if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008417 $as_echo_n "(cached) " >&6
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008418else
8419 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008420LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008422/* end confdefs.h. */
8423
8424/* Override any GCC internal prototype to avoid an error.
8425 Use char because int might match the return type of a GCC
8426 builtin and then its argument prototype would still apply. */
8427#ifdef __cplusplus
8428extern "C"
8429#endif
8430char XRRQueryExtension ();
8431int
8432main ()
8433{
8434return XRRQueryExtension ();
8435 ;
8436 return 0;
8437}
8438_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008439if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008440 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008441 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 +02008442 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'` ;;
8443 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8444 esac
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008445fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008446rm -f core conftest.err conftest.$ac_objext \
8447 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008448 LIBS=$ac_check_soname_save_LIBS
8449fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008450if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008452$as_echo "not found" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008453
8454else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008456$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008457
8458cat >>confdefs.h <<_ACEOF
8459#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8460_ACEOF
8461
8462
8463fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008464fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008466 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008467 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008468 case "x$with_xrandr" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008469 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 +01008470 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008471 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8472This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008473esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008474fi
8475
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008476 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8477 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008479/* end confdefs.h. */
8480#include <X11/Xlib.h>
8481#include <X11/extensions/Xinerama.h>
8482int
8483main ()
8484{
8485static typeof(XineramaQueryScreens) * func;
8486 ;
8487 return 0;
8488}
8489_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008490if ac_fn_c_try_compile "$LINENO"; then :
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008492$as_echo_n "checking for -lXinerama... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008493if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008494 $as_echo_n "(cached) " >&6
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008495else
8496 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008497LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008499/* end confdefs.h. */
8500
8501/* Override any GCC internal prototype to avoid an error.
8502 Use char because int might match the return type of a GCC
8503 builtin and then its argument prototype would still apply. */
8504#ifdef __cplusplus
8505extern "C"
8506#endif
8507char XineramaQueryScreens ();
8508int
8509main ()
8510{
8511return XineramaQueryScreens ();
8512 ;
8513 return 0;
8514}
8515_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008516if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008517 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008518 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 +02008519 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'` ;;
8520 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8521 esac
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008522fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008523rm -f core conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008525 LIBS=$ac_check_soname_save_LIBS
8526fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008527if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008529$as_echo "not found" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008530
8531else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008533$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008534
8535cat >>confdefs.h <<_ACEOF
8536#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8537_ACEOF
8538
8539
8540fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008541fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008544 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008545 case "x$with_xinerama" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008546 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 +01008547 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008548 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8549This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008550esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008551fi
8552
Chris Robinson42584652007-09-22 18:19:08 -07008553 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8554 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008556$as_echo_n "checking for -lXcomposite... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008557if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008558 $as_echo_n "(cached) " >&6
Chris Robinson42584652007-09-22 18:19:08 -07008559else
8560 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008561LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008563/* end confdefs.h. */
8564
8565/* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8568#ifdef __cplusplus
8569extern "C"
8570#endif
8571char XCompositeRedirectWindow ();
8572int
8573main ()
8574{
8575return XCompositeRedirectWindow ();
8576 ;
8577 return 0;
8578}
8579_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008580if ac_fn_c_try_link "$LINENO"; then :
Chris Robinson42584652007-09-22 18:19:08 -07008581 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008582 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 -07008583 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'` ;;
8584 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8585 esac
Chris Robinson42584652007-09-22 18:19:08 -07008586fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008587rm -f core conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008589 LIBS=$ac_check_soname_save_LIBS
8590fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008591if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008593$as_echo "not found" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008594
8595else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008597$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008598
8599cat >>confdefs.h <<_ACEOF
8600#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8601_ACEOF
8602
8603
8604fi
Chris Robinson42584652007-09-22 18:19:08 -07008605 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008606 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008607 case "x$with_xcomposite" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008608 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 +01008609 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008610 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8611This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008612esac
Chris Robinson42584652007-09-22 18:19:08 -07008613fi
8614
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008615 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 +09008616#include <X11/Xlib.h>
8617#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008618"
8619if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008620
8621cat >>confdefs.h <<_ACEOF
8622#define HAVE_XICCALLBACK_CALLBACK 1
8623_ACEOF
8624
8625
8626fi
8627
8628
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008629
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008630 opengl_msg=""
8631 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008632 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008633 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8634do :
8635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8636ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008637# include <GL/glx.h>
8638#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008639"
8640eval as_val=\$$as_ac_Header
8641 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008642 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008644_ACEOF
8645
8646fi
8647
8648done
8649
Alexandre Julliard73482142005-08-03 19:21:04 +00008650 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8651 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008653$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008654if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008655 $as_echo_n "(cached) " >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008656else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008658/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008659#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008660int
8661main ()
8662{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008663GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008664 ;
8665 return 0;
8666}
8667_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008668if ac_fn_c_try_compile "$LINENO"; then :
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008669 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008670else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008671 wine_cv_opengl_header_version_OK="no"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008672fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008674fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008676$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008677
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02008678 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008679 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008681$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008682if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008683 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008684else
Alexandre Julliard31353e12007-07-04 12:44:12 +02008685 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008686LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008688/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008689
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008690/* Override any GCC internal prototype to avoid an error.
8691 Use char because int might match the return type of a GCC
8692 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008693#ifdef __cplusplus
8694extern "C"
8695#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008696char glXCreateContext ();
8697int
8698main ()
8699{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008700return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008701 ;
8702 return 0;
8703}
8704_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008705if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard31353e12007-07-04 12:44:12 +02008706 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008707 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 +02008708 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'` ;;
8709 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8710 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008711fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008712rm -f core conftest.err conftest.$ac_objext \
8713 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard31353e12007-07-04 12:44:12 +02008714 LIBS=$ac_check_soname_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008715fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008716if test "x$ac_cv_lib_soname_GL" = "x"; then :
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008718$as_echo "not found" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008720$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008721if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008722 $as_echo_n "(cached) " >&6
Francois Gougetd701ee22007-12-18 10:17:20 +01008723else
8724 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008725LIBS="-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 +02008726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008727/* end confdefs.h. */
8728
8729/* Override any GCC internal prototype to avoid an error.
8730 Use char because int might match the return type of a GCC
8731 builtin and then its argument prototype would still apply. */
8732#ifdef __cplusplus
8733extern "C"
8734#endif
8735char glXCreateContext ();
8736int
8737main ()
8738{
8739return glXCreateContext ();
8740 ;
8741 return 0;
8742}
8743_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008744if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetd701ee22007-12-18 10:17:20 +01008745 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008746 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 +01008747 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'` ;;
8748 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8749 esac
Francois Gougetd701ee22007-12-18 10:17:20 +01008750fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008751rm -f core conftest.err conftest.$ac_objext \
8752 conftest$ac_exeext conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008753 LIBS=$ac_check_soname_save_LIBS
8754fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008755if test "x$ac_cv_lib_soname_GL" = "x"; then :
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008757$as_echo "not found" >&6; }
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008758 if test -f /usr/X11R6/lib/libGL.a
Francois Gougetd701ee22007-12-18 10:17:20 +01008759 then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008760 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008761This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
Francois Gougetd701ee22007-12-18 10:17:20 +01008762 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008763 opengl_msg="No OpenGL library found on this system."
Francois Gougetd701ee22007-12-18 10:17:20 +01008764 fi
8765else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008767$as_echo "$ac_cv_lib_soname_GL" >&6; }
Francois Gougetd701ee22007-12-18 10:17:20 +01008768
8769cat >>confdefs.h <<_ACEOF
8770#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8771_ACEOF
8772
8773 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 +01008774
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008775$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Francois Gougetd701ee22007-12-18 10:17:20 +01008776
8777fi
Alexandre Julliard31353e12007-07-04 12:44:12 +02008778else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008780$as_echo "$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard31353e12007-07-04 12:44:12 +02008781
8782cat >>confdefs.h <<_ACEOF
8783#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8784_ACEOF
8785
8786 OPENGL_LIBS="-lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008787
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008788$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008789
Alexandre Julliardc84c4782006-09-22 09:36:12 +02008790fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008791 if test "$ac_cv_header_GL_glu_h" = "yes"
8792 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008794$as_echo_n "checking for -lGLU... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008795if test "${ac_cv_lib_soname_GLU+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008796 $as_echo_n "(cached) " >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008797else
Alexandre Julliardad798732008-05-01 13:29:02 +02008798 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008799LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008801/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008802
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008803/* Override any GCC internal prototype to avoid an error.
8804 Use char because int might match the return type of a GCC
8805 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008806#ifdef __cplusplus
8807extern "C"
8808#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008809char gluLookAt ();
8810int
8811main ()
8812{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008813return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008814 ;
8815 return 0;
8816}
8817_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008818if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008819 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008820 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 +02008821 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'` ;;
8822 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8823 esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008824fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008825rm -f core conftest.err conftest.$ac_objext \
8826 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardad798732008-05-01 13:29:02 +02008827 LIBS=$ac_check_soname_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008828fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008829if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008831$as_echo "not found" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008832
Alexandre Julliardad798732008-05-01 13:29:02 +02008833else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008835$as_echo "$ac_cv_lib_soname_GLU" >&6; }
Alexandre Julliardad798732008-05-01 13:29:02 +02008836
8837cat >>confdefs.h <<_ACEOF
8838#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8839_ACEOF
8840
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008841
Alexandre Julliardad798732008-05-01 13:29:02 +02008842fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008843 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008844 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008845 case "x$with_glu" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008846 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 +02008847 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008848 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8849This is an error since --with-glu was requested." "$LINENO" 5 ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008850esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008851fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008852 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008853 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008854 fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008855 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008856 opengl_msg="OpenGL development headers not found."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008857 fi
Alexandre Julliard8e9504d2008-09-24 13:11:11 +02008858 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8859 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8860 else
8861 enable_opengl32=${enable_opengl32:-no}
8862 enable_glu32=${enable_glu32:-no}
Patrik Stridvall24110281999-02-04 10:09:54 +00008863 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008864 if test -n "$opengl_msg"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008865 case "x$with_opengl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008866 x) as_fn_append wine_warnings "|$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008867OpenGL and Direct3D won't be supported." ;;
8868 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008869 *) as_fn_error "$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008870OpenGL and Direct3D won't be supported.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008871This is an error since --with-opengl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008872esac
8873fi
8874
Francois Gouget6f670b12002-10-10 17:54:27 +00008875 NASLIBS=""
8876
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008877 for ac_header in audio/audiolib.h
8878do :
8879 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8880if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008881 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008882#define HAVE_AUDIO_AUDIOLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008883_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008884 for ac_header in audio/soundlib.h
8885do :
8886 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8887"
8888if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008889 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008890#define HAVE_AUDIO_SOUNDLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008891_ACEOF
8892
8893fi
8894
8895done
8896
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008898$as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008899if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008900 $as_echo_n "(cached) " >&6
Francois Gouget6f670b12002-10-10 17:54:27 +00008901else
8902 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008903LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008905/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008906
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008907/* Override any GCC internal prototype to avoid an error.
8908 Use char because int might match the return type of a GCC
8909 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008910#ifdef __cplusplus
8911extern "C"
8912#endif
Francois Gouget6f670b12002-10-10 17:54:27 +00008913char AuCreateFlow ();
8914int
8915main ()
8916{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008917return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +00008918 ;
8919 return 0;
8920}
8921_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008922if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008923 ac_cv_lib_audio_AuCreateFlow=yes
8924else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008925 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +00008926fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008927rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008929LIBS=$ac_check_lib_save_LIBS
8930fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008932$as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008933if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008934
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008935$as_echo "#define HAVE_NAS 1" >>confdefs.h
Francois Gouget6f670b12002-10-10 17:54:27 +00008936
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008938$as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008939if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008940 $as_echo_n "(cached) " >&6
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008941else
8942 ac_check_lib_save_LIBS=$LIBS
8943LIBS="-lXau $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008945/* end confdefs.h. */
8946
8947/* Override any GCC internal prototype to avoid an error.
8948 Use char because int might match the return type of a GCC
8949 builtin and then its argument prototype would still apply. */
8950#ifdef __cplusplus
8951extern "C"
8952#endif
8953char XauGetBestAuthByAddr ();
8954int
8955main ()
8956{
8957return XauGetBestAuthByAddr ();
8958 ;
8959 return 0;
8960}
8961_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008962if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008963 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8964else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008965 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008966fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008967rm -f core conftest.err conftest.$ac_objext \
8968 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008969LIBS=$ac_check_lib_save_LIBS
8970fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008972$as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008973if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008974 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008975else
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008976 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008977fi
8978
8979
Francois Gouget6f670b12002-10-10 17:54:27 +00008980fi
8981
8982fi
8983
8984done
8985
8986
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008987 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00008988else
8989 XLIB=""
8990 X_CFLAGS=""
8991 X_LIBS=""
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008992 enable_winex11_drv=${enable_winex11_drv:-no}
8993 enable_opengl32=${enable_opengl32:-no}
8994 enable_glu32=${enable_glu32:-no}
Patrik Stridvallea584721998-11-01 16:22:07 +00008995fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008996if test "x$XLIB" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008997 case "x$with_x" in
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008998 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008999 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009000without X support, which probably isn't what you want. You will need to install
Alexandre Julliardd2c8bfb2008-11-24 13:45:25 +01009001${notice_platform}development packages of Xlib/Xfree86 at the very least.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009002Use the --without-x option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009003esac
9004fi
9005
Alexandre Julliard902da691995-11-05 14:39:02 +00009006
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009007XML2LIBS=""
9008
9009XML2INCL=""
9010
Mike McCormackf3719a82005-09-03 09:39:38 +00009011XSLTINCL=""
9012
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009013if test "x$with_xml" != "xno"
Mike McCormack90c75bd2005-08-08 18:36:53 +00009014then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009015 ac_save_CPPFLAGS="$CPPFLAGS"
9016 if test "$PKG_CONFIG" != "false"
9017 then
9018 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9019 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9020 else
9021 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9022 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9023 fi
9024 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009025 for ac_header in libxml/parser.h
9026do :
9027 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9028if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009029 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009030#define HAVE_LIBXML_PARSER_H 1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009031_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009033$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009034if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009035 $as_echo_n "(cached) " >&6
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009036else
9037 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009038LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009040/* end confdefs.h. */
9041
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009042/* Override any GCC internal prototype to avoid an error.
9043 Use char because int might match the return type of a GCC
9044 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009045#ifdef __cplusplus
9046extern "C"
9047#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009048char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009049int
9050main ()
9051{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009052return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009053 ;
9054 return 0;
9055}
9056_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009057if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack90c75bd2005-08-08 18:36:53 +00009058 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009059else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009060 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009061fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009062rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009064LIBS=$ac_check_lib_save_LIBS
9065fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009067$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009068if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009069
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009070$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009071
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009072 XML2LIBS="$ac_xml_libs"
9073 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009074fi
9075
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009077$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009078if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009079 $as_echo_n "(cached) " >&6
Mike McCormack70adb8f2005-08-12 10:35:17 +00009080else
9081 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009082LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009084/* end confdefs.h. */
9085
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009086/* Override any GCC internal prototype to avoid an error.
9087 Use char because int might match the return type of a GCC
9088 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +00009089#ifdef __cplusplus
9090extern "C"
9091#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +00009092char xmlReadMemory ();
9093int
9094main ()
9095{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009096return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +00009097 ;
9098 return 0;
9099}
9100_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009101if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009102 ac_cv_lib_xml2_xmlReadMemory=yes
9103else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009104 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +00009105fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009106rm -f core conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009108LIBS=$ac_check_lib_save_LIBS
9109fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009111$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009112if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009113
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009114$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
Mike McCormack70adb8f2005-08-12 10:35:17 +00009115
9116fi
9117
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009119$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009120if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009121 $as_echo_n "(cached) " >&6
Lei Zhang6a530ab2006-11-29 15:59:03 -08009122else
9123 ac_check_lib_save_LIBS=$LIBS
9124LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009126/* end confdefs.h. */
9127
9128/* Override any GCC internal prototype to avoid an error.
9129 Use char because int might match the return type of a GCC
9130 builtin and then its argument prototype would still apply. */
9131#ifdef __cplusplus
9132extern "C"
9133#endif
9134char xmlNewDocPI ();
9135int
9136main ()
9137{
9138return xmlNewDocPI ();
9139 ;
9140 return 0;
9141}
9142_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009143if ac_fn_c_try_link "$LINENO"; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009144 ac_cv_lib_xml2_xmlNewDocPI=yes
9145else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009146 ac_cv_lib_xml2_xmlNewDocPI=no
Lei Zhang6a530ab2006-11-29 15:59:03 -08009147fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009148rm -f core conftest.err conftest.$ac_objext \
9149 conftest$ac_exeext conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009150LIBS=$ac_check_lib_save_LIBS
9151fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009153$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009154if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009155
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009156$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
Lei Zhang6a530ab2006-11-29 15:59:03 -08009157
9158fi
9159
Mike McCormack70adb8f2005-08-12 10:35:17 +00009160
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009161fi
9162
9163done
9164
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009165 CPPFLAGS="$ac_save_CPPFLAGS"
9166fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009167if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009168 case "x$with_xml" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009169 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 +01009170 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009171 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9172This is an error since --with-xml was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009173esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009174fi
9175
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009176if test "x$with_xslt" != "xno"
Emmanuel Maillard2a98b402007-06-22 02:58:39 +02009177then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009178 if test "$PKG_CONFIG" != "false"
9179 then
9180 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9181 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9182 else
9183 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9184 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9185 fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009186 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009187 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009188 for ac_header in libxslt/pattern.h libxslt/transform.h
9189do :
9190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9191ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
Vincent Bérond7f64242005-09-15 09:39:09 +00009192# include <libxslt/pattern.h>
9193#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009194"
9195eval as_val=\$$as_ac_Header
9196 if test "x$as_val" = x""yes; then :
Mike McCormackf3719a82005-09-03 09:39:38 +00009197 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009198#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackf3719a82005-09-03 09:39:38 +00009199_ACEOF
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009200
9201fi
9202
9203done
9204
9205 CPPFLAGS="$ac_save_CPPFLAGS"
9206 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9207 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009209$as_echo_n "checking for -lxslt... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009210if test "${ac_cv_lib_soname_xslt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009211 $as_echo_n "(cached) " >&6
Mike McCormackf3719a82005-09-03 09:39:38 +00009212else
Francois Gouget3d384f12008-11-17 19:29:32 +01009213 ac_check_soname_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009214LIBS="-lxslt $ac_xslt_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +00009216/* end confdefs.h. */
9217
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009218/* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +00009221#ifdef __cplusplus
9222extern "C"
9223#endif
Mike McCormackf3719a82005-09-03 09:39:38 +00009224char xsltCompilePattern ();
9225int
9226main ()
9227{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009228return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +00009229 ;
9230 return 0;
9231}
9232_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009233if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget3d384f12008-11-17 19:29:32 +01009234 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009235 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 +01009236 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'` ;;
9237 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9238 esac
Mike McCormackf3719a82005-09-03 09:39:38 +00009239fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009240rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3d384f12008-11-17 19:29:32 +01009242 LIBS=$ac_check_soname_save_LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009243fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009244if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009246$as_echo "not found" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +00009247
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009248else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009250$as_echo "$ac_cv_lib_soname_xslt" >&6; }
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009251
Francois Gouget3d384f12008-11-17 19:29:32 +01009252cat >>confdefs.h <<_ACEOF
9253#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009254_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +00009255
Francois Gouget3d384f12008-11-17 19:29:32 +01009256 XSLTINCL="$ac_xslt_cflags"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009257fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009258 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009259fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009260if test "x$ac_cv_lib_soname_xslt" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009261 case "x$with_xslt" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009262 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 +01009263 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009264 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9265This is an error since --with-xslt was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009266esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009267fi
9268
Alexandre Julliard00068982006-04-18 16:47:53 +02009269HALINCL=""
9270
Francois Gouget295a0cd2009-01-09 20:22:22 +01009271if test "x$with_hal" != "xno"
Alexandre Julliard00068982006-04-18 16:47:53 +02009272then
9273 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009274 if test "$PKG_CONFIG" != "false"
9275 then
9276 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9277 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9278 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9279 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009280 for ac_header in dbus/dbus.h hal/libhal.h
9281do :
9282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9283ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9284eval as_val=\$$as_ac_Header
9285 if test "x$as_val" = x""yes; then :
Alexandre Julliard00068982006-04-18 16:47:53 +02009286 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliard00068982006-04-18 16:47:53 +02009288_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009289
9290fi
9291
9292done
9293
9294 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9295 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009297$as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009298if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009299 $as_echo_n "(cached) " >&6
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009300else
9301 ac_check_lib_save_LIBS=$LIBS
9302LIBS="-ldbus-1 $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009304/* end confdefs.h. */
9305
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009306/* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009309#ifdef __cplusplus
9310extern "C"
9311#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009312char dbus_connection_close ();
9313int
9314main ()
9315{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009316return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009317 ;
9318 return 0;
9319}
9320_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009321if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009322 ac_cv_lib_dbus_1_dbus_connection_close=yes
9323else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009324 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009325fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009326rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009328LIBS=$ac_check_lib_save_LIBS
9329fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009331$as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009332if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009334$as_echo_n "checking for -lhal... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009335if test "${ac_cv_lib_soname_hal+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009336 $as_echo_n "(cached) " >&6
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009337else
9338 ac_check_soname_save_LIBS=$LIBS
9339LIBS="-lhal $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009341/* end confdefs.h. */
Alexandre Julliard00068982006-04-18 16:47:53 +02009342
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009343/* Override any GCC internal prototype to avoid an error.
9344 Use char because int might match the return type of a GCC
9345 builtin and then its argument prototype would still apply. */
9346#ifdef __cplusplus
9347extern "C"
9348#endif
9349char libhal_ctx_new ();
9350int
9351main ()
9352{
9353return libhal_ctx_new ();
9354 ;
9355 return 0;
9356}
9357_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009358if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009359 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009360 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 +02009361 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'` ;;
9362 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9363 esac
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009364fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009365rm -f core conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009367 LIBS=$ac_check_soname_save_LIBS
9368fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009369if test "x$ac_cv_lib_soname_hal" = "x"; then :
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009371$as_echo "not found" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009372
9373else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009375$as_echo "$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009376
9377cat >>confdefs.h <<_ACEOF
9378#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
Alexandre Julliard00068982006-04-18 16:47:53 +02009379_ACEOF
9380
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009381 HALINCL="$ac_hal_cflags"
Alexandre Julliard00068982006-04-18 16:47:53 +02009382fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009383fi
9384
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009385 fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009386 CPPFLAGS="$ac_save_CPPFLAGS"
9387fi
Alexandre Julliardd8062732010-04-26 06:57:49 -05009388if 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 +01009389 case "x$with_hal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009390 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 +01009391 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009392 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9393This is an error since --with-hal was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009394esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009395fi
9396
Francois Gouget295a0cd2009-01-09 20:22:22 +01009397if test "x$with_gnutls" != "xno"
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009398then
9399 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009400 if test "$PKG_CONFIG" != "false"
9401 then
9402 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9403 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9404 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9405 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009406 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9407if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gouget3aae9542008-10-24 11:24:58 +02009409/* end confdefs.h. */
9410#include <gnutls/gnutls.h>
9411int
9412main ()
9413{
Henri Verbeet8c4a2972008-12-30 09:45:20 +01009414typeof(gnutls_mac_get_key_size) *pfunc;
Francois Gouget3aae9542008-10-24 11:24:58 +02009415 ;
9416 return 0;
9417}
9418_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009419if ac_fn_c_try_compile "$LINENO"; then :
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009421$as_echo_n "checking for -lgnutls... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009422if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009423 $as_echo_n "(cached) " >&6
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009424else
9425 ac_check_soname_save_LIBS=$LIBS
9426LIBS="-lgnutls $ac_gnutls_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009428/* end confdefs.h. */
9429
9430/* Override any GCC internal prototype to avoid an error.
9431 Use char because int might match the return type of a GCC
9432 builtin and then its argument prototype would still apply. */
9433#ifdef __cplusplus
9434extern "C"
9435#endif
9436char gnutls_global_init ();
9437int
9438main ()
9439{
9440return gnutls_global_init ();
9441 ;
9442 return 0;
9443}
9444_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009445if ac_fn_c_try_link "$LINENO"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009446 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009447 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 +02009448 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'` ;;
9449 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9450 esac
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009451fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009452rm -f core conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009454 LIBS=$ac_check_soname_save_LIBS
9455fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009456if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009458$as_echo "not found" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009459
9460else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009462$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009463
9464cat >>confdefs.h <<_ACEOF
9465#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9466_ACEOF
9467
9468 GNUTLSINCL="$ac_gnutls_cflags"
9469
9470fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009471fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009473fi
9474
9475
9476 CPPFLAGS="$ac_save_CPPFLAGS"
9477fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009478if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009479 case "x$with_gnutls" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009480 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009481 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009482 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9483This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009484esac
9485fi
9486
Alexandre Julliard48957682001-12-26 23:08:31 +00009487CURSESLIBS=""
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009488if test "$ac_cv_header_ncurses_h" = "yes"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009489then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009491$as_echo_n "checking for -lncurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009492if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009493 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009494else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009495 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009496LIBS="-lncurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009498/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009499
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009500/* Override any GCC internal prototype to avoid an error.
9501 Use char because int might match the return type of a GCC
9502 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009503#ifdef __cplusplus
9504extern "C"
9505#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009506char waddch ();
9507int
9508main ()
9509{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009510return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009511 ;
9512 return 0;
9513}
9514_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009515if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009516 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009517 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 +02009518 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'` ;;
9519 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9520 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009521fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009522rm -f core conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009524 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009525fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009526if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009528$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009529
9530else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009532$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009533
9534cat >>confdefs.h <<_ACEOF
9535#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9536_ACEOF
9537
9538 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009539fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009540elif test "$ac_cv_header_curses_h" = "yes"
9541then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009543$as_echo_n "checking for -lcurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009544if test "${ac_cv_lib_soname_curses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009545 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009546else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009547 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009548LIBS="-lcurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009550/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009551
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009552/* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009555#ifdef __cplusplus
9556extern "C"
9557#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009558char waddch ();
9559int
9560main ()
9561{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009562return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009563 ;
9564 return 0;
9565}
9566_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009567if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009568 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009569 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 +02009570 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'` ;;
9571 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9572 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009573fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009574rm -f core conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009576 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009577fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009578if test "x$ac_cv_lib_soname_curses" = "x"; then :
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009580$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009581
9582else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009584$as_echo "$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009585
9586cat >>confdefs.h <<_ACEOF
9587#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9588_ACEOF
9589
9590 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009591fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009592fi
9593ac_save_LIBS="$LIBS"
9594LIBS="$LIBS $CURSESLIBS"
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009595for ac_func in mousemask
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009596do :
9597 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9598if test "x$ac_cv_func_mousemask" = x""yes; then :
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009599 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009600#define HAVE_MOUSEMASK 1
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009601_ACEOF
9602
9603fi
9604done
9605
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009606LIBS="$ac_save_LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009607if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009608 case "x$with_curses" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009609 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 +01009610 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009611 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9612This is an error since --with-curses was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009613esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009614fi
9615
Francois Gouget3fe5d802009-01-14 14:16:06 +01009616if test "x$with_sane" != "xno"
9617then
9618 ac_save_CPPFLAGS="$CPPFLAGS"
9619 # Extract the first word of "sane-config", so it can be a program name with args.
Shi Quan He6b0720f2002-03-21 02:58:39 +00009620set dummy sane-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009622$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009623if test "${ac_cv_prog_sane_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009624 $as_echo_n "(cached) " >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009625else
9626 if test -n "$sane_devel"; then
9627 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9628else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630for as_dir in $PATH
9631do
9632 IFS=$as_save_IFS
9633 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009634 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009635 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 +00009636 ac_cv_prog_sane_devel="sane-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009638 break 2
9639 fi
9640done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009641 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009642IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +00009643
9644 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9645fi
9646fi
9647sane_devel=$ac_cv_prog_sane_devel
9648if test -n "$sane_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009650$as_echo "$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009651else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009653$as_echo "no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009654fi
9655
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009656
Francois Gouget3fe5d802009-01-14 14:16:06 +01009657 if test "$sane_devel" != "no"
9658 then
9659 ac_sane_incl="`$sane_devel --cflags`"
9660 ac_sane_libs="`$sane_devel --ldflags`"
9661 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9662 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009663 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9664if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009666$as_echo_n "checking for -lsane... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009667if test "${ac_cv_lib_soname_sane+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009668 $as_echo_n "(cached) " >&6
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009669else
9670 ac_check_soname_save_LIBS=$LIBS
Francois Gougeta9d7bab2008-07-20 22:41:41 +02009671LIBS="-lsane $ac_sane_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009673/* end confdefs.h. */
9674
9675/* Override any GCC internal prototype to avoid an error.
9676 Use char because int might match the return type of a GCC
9677 builtin and then its argument prototype would still apply. */
9678#ifdef __cplusplus
9679extern "C"
9680#endif
9681char sane_init ();
9682int
9683main ()
9684{
9685return sane_init ();
9686 ;
9687 return 0;
9688}
9689_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009690if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009691 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009692 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 +02009693 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'` ;;
9694 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9695 esac
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009696fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009697rm -f core conftest.err conftest.$ac_objext \
9698 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009699 LIBS=$ac_check_soname_save_LIBS
9700fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009701if test "x$ac_cv_lib_soname_sane" = "x"; then :
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009703$as_echo "not found" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009704
9705else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009707$as_echo "$ac_cv_lib_soname_sane" >&6; }
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009708
9709cat >>confdefs.h <<_ACEOF
9710#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9711_ACEOF
9712
9713 SANEINCL="$ac_sane_incl"
9714
9715fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009716fi
9717
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009718
Shi Quan He6b0720f2002-03-21 02:58:39 +00009719 CPPFLAGS="$ac_save_CPPFLAGS"
9720fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009721if test "x$ac_cv_lib_soname_sane" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009722 case "x$with_sane" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009723 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 +01009724 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009725 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9726This is an error since --with-sane was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009727esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009728fi
9729
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009730if test "x$with_v4l" != "xno"
9731then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9733$as_echo_n "checking for -lv4l1... " >&6; }
9734if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9735 $as_echo_n "(cached) " >&6
9736else
9737 ac_check_soname_save_LIBS=$LIBS
9738LIBS="-lv4l1 $LIBS"
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740/* end confdefs.h. */
9741
9742/* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
9745#ifdef __cplusplus
9746extern "C"
9747#endif
9748char v4l1_open ();
9749int
9750main ()
9751{
9752return v4l1_open ();
9753 ;
9754 return 0;
9755}
9756_ACEOF
9757if ac_fn_c_try_link "$LINENO"; then :
9758 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009759 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 +01009760 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'` ;;
9761 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9762 esac
9763fi
9764rm -f core conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_soname_save_LIBS
9767fi
9768if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9770$as_echo "not found" >&6; }
9771
9772else
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9774$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9775
9776cat >>confdefs.h <<_ACEOF
9777#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9778_ACEOF
9779
9780
9781fi
9782fi
9783if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9784 case "x$with_v4l" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009785 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009786 xno) ;;
9787 *) as_fn_error "libv4l ${notice_platform}development files not found.
9788This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9789esac
9790fi
9791
Francois Gouget3fe5d802009-01-14 14:16:06 +01009792if test "x$with_gphoto" != "xno"
9793then
9794 ac_save_CPPFLAGS="$CPPFLAGS"
9795 # Extract the first word of "gphoto2-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009796set dummy gphoto2-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009798$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009799if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009800 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009801else
9802 if test -n "$gphoto2_devel"; then
9803 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9804else
9805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806for as_dir in $PATH
9807do
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009810 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009811 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 +02009812 ac_cv_prog_gphoto2_devel="gphoto2-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009814 break 2
9815 fi
9816done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009817 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009818IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009819
9820 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9821fi
9822fi
9823gphoto2_devel=$ac_cv_prog_gphoto2_devel
9824if test -n "$gphoto2_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009826$as_echo "$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009827else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009829$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009830fi
9831
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009832
Francois Gouget3fe5d802009-01-14 14:16:06 +01009833 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009834set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009836$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009837if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009838 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009839else
9840 if test -n "$gphoto2port_devel"; then
9841 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9842else
9843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844for as_dir in $PATH
9845do
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009848 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009849 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 +02009850 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009852 break 2
9853 fi
9854done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009855 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009856IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009857
9858 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9859fi
9860fi
9861gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9862if test -n "$gphoto2port_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009864$as_echo "$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009865else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009867$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009868fi
9869
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009870
Francois Gouget3fe5d802009-01-14 14:16:06 +01009871 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9872 then
9873 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9874 ac_gphoto2_libs=""
9875 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9876 do
9877 case "$i" in
9878 -L/usr/lib|-L/usr/lib64) ;;
9879 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9880 esac
9881 done
9882 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9883 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +09009884 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009885 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9886if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009888$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009889if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009890 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009891else
9892 ac_check_lib_save_LIBS=$LIBS
Francois Gouget4bc03fe2008-07-21 17:10:45 +02009893LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009895/* end confdefs.h. */
9896
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009897/* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009900#ifdef __cplusplus
9901extern "C"
9902#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009903char gp_camera_new ();
9904int
9905main ()
9906{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009907return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009908 ;
9909 return 0;
9910}
9911_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009912if ac_fn_c_try_link "$LINENO"; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009913 ac_cv_lib_gphoto2_gp_camera_new=yes
9914else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009915 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009916fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009917rm -f core conftest.err conftest.$ac_objext \
9918 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009919LIBS=$ac_check_lib_save_LIBS
9920fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009922$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009923if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009924
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009925$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009926
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009927 GPHOTO2LIBS="$ac_gphoto2_libs"
9928
9929 GPHOTO2INCL="$ac_gphoto2_incl"
9930
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009931fi
9932
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009933fi
9934
9935
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009936 CPPFLAGS="$ac_save_CPPFLAGS"
9937fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009938if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009939 case "x$with_gphoto" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009940 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 +01009941 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009942 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9943This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009944esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009945fi
9946
9947
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009948RESOLVLIBS=""
9949
9950if test "$ac_cv_header_resolv_h" = "yes"
9951then
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009952 ac_save_LIBS="$LIBS"
9953 LIBS="$LIBS -lresolv"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009955/* end confdefs.h. */
Rob Shearmanba349212009-01-02 12:12:06 +00009956#ifdef HAVE_NETINET_IN_H
9957#include <netinet/in.h>
9958#endif
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009959#include <resolv.h>
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009960int
9961main ()
9962{
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009963res_init();
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009964 ;
9965 return 0;
9966}
9967_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009968if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009969
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009970$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009971
9972 RESOLVLIBS="-lresolv"
9973fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009974rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009976 LIBS="$ac_save_LIBS"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009977fi
9978
Hans Leidekkerd3447022005-07-15 10:09:43 +00009979LCMSLIBS=""
9980
9981if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9982then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009984$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009985if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009986 $as_echo_n "(cached) " >&6
Hans Leidekkerd3447022005-07-15 10:09:43 +00009987else
9988 ac_check_lib_save_LIBS=$LIBS
9989LIBS="-llcms $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +00009991/* end confdefs.h. */
9992
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009993/* Override any GCC internal prototype to avoid an error.
9994 Use char because int might match the return type of a GCC
9995 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +00009996#ifdef __cplusplus
9997extern "C"
9998#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +00009999char cmsOpenProfileFromFile ();
10000int
10001main ()
10002{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010003return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000010004 ;
10005 return 0;
10006}
10007_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010008if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010009 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10010else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010011 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000010012fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010013rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010015LIBS=$ac_check_lib_save_LIBS
10016fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010018$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010019if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010020
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010021$as_echo "#define HAVE_LCMS 1" >>confdefs.h
Hans Leidekkerd3447022005-07-15 10:09:43 +000010022
10023 LCMSLIBS="-llcms"
10024fi
10025
10026fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010027if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010028 case "x$with_cms" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010029 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 +010010030 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010031 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10032This is an error since --with-cms was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010033esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010034fi
10035
Francois Gouget3fe5d802009-01-14 14:16:06 +010010036if test "x$with_freetype" != "xno"
10037then
10038 for ac_prog in freetype-config freetype2-config
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010039do
10040 # Extract the first word of "$ac_prog", so it can be a program name with args.
10041set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010043$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010044if test "${ac_cv_prog_ft_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010045 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010046else
10047 if test -n "$ft_devel"; then
10048 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10049else
10050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051for as_dir in $PATH
10052do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010055 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010056 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 +020010057 ac_cv_prog_ft_devel="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010059 break 2
10060 fi
10061done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010062 done
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010063IFS=$as_save_IFS
10064
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010065fi
10066fi
10067ft_devel=$ac_cv_prog_ft_devel
10068if test -n "$ft_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010070$as_echo "$ft_devel" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010071else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010073$as_echo "no" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010074fi
10075
10076
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010077 test -n "$ft_devel" && break
10078done
Francois Gouget3fe5d802009-01-14 14:16:06 +010010079test -n "$ft_devel" || ft_devel="no"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010080
Francois Gouget3fe5d802009-01-14 14:16:06 +010010081 if test "$ft_devel" != "no"
10082 then
10083 ac_freetype_incl=`$ft_devel --cflags`
10084 ac_freetype_libs=`$ft_devel --libs`
10085 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010086 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010088$as_echo_n "checking for -lfreetype... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010089if test "${ac_cv_lib_soname_freetype+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010090 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010091else
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010092 ac_check_soname_save_LIBS=$LIBS
10093LIBS="-lfreetype $ac_freetype_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010095/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010096
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010097/* Override any GCC internal prototype to avoid an error.
10098 Use char because int might match the return type of a GCC
10099 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010100#ifdef __cplusplus
10101extern "C"
10102#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010103char FT_Init_FreeType ();
10104int
10105main ()
10106{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010107return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010108 ;
10109 return 0;
10110}
10111_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010112if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010113 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010114 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 +020010115 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'` ;;
10116 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10117 esac
Ian Pilcher563598d2001-05-16 20:56:05 +000010118fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010119rm -f core conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010121 LIBS=$ac_check_soname_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010122fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010123if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010125$as_echo "not found" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010126 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010127else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010129$as_echo "$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010130
10131cat >>confdefs.h <<_ACEOF
10132#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10133_ACEOF
10134
10135 ft_lib=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010136fi
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010137 if test "$ft_lib" = "yes"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010138 then
Ian Pilcher40432fe2001-06-06 21:05:23 +000010139 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010140 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010141 for ac_header in ft2build.h \
Rein Klazese617a9c2003-11-19 02:18:13 +000010142 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010143 freetype/ftglyph.h \
Dmitry Timoshkovb0d15902007-09-20 19:10:31 +090010144 freetype/fttypes.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010145 freetype/tttables.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010146 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010147 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010148 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010149 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010010150 freetype/ftmodapi.h \
ByeongSik Jeon028617b2008-12-10 23:50:44 +090010151 freetype/ftlcdfil.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010152 freetype/internal/sfnt.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010153do :
10154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10155ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
Francois Gouget9e67edf2008-03-06 12:34:48 +010010156 # include <ft2build.h>
Rein Klazes9c269172003-11-20 04:17:33 +000010157 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010158"
10159eval as_val=\$$as_ac_Header
10160 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010161 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010163_ACEOF
10164
10165fi
10166
Ian Pilcher40432fe2001-06-06 21:05:23 +000010167done
10168
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010170/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010171#include <ft2build.h>
10172 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010173_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010174if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010175
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010176$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
Alexandre Julliard18d75732002-01-29 03:02:50 +000010177
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010178 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010179else
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010180 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010181fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010182rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010183 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10184"
10185if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
Huw Daviesd8a6c272006-02-22 12:24:25 +000010186
10187cat >>confdefs.h <<_ACEOF
10188#define HAVE_FT_TRUETYPEENGINETYPE 1
10189_ACEOF
10190
10191
10192fi
10193
Huw Davies35bca772006-04-12 12:14:27 +010010194 ac_save_CFLAGS="$CFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010195 CFLAGS="$CFLAGS $ac_freetype_libs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010196 for ac_func in FT_Load_Sfnt_Table
10197do :
10198 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10199if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
Huw Davies35bca772006-04-12 12:14:27 +010010200 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010201#define HAVE_FT_LOAD_SFNT_TABLE 1
Huw Davies35bca772006-04-12 12:14:27 +010010202_ACEOF
10203
10204fi
10205done
10206
10207 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000010208 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010209 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010210 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010211
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010212$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010213
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010214 FREETYPELIBS="$ac_freetype_libs"
10215
10216 FREETYPEINCL="$ac_freetype_incl"
10217
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010218 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010219 fi
10220fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010221if test "x$FREETYPELIBS" = "x"; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010222 case "x$with_freetype" in
10223 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010224 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10225Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010226esac
Huw Davies00acb5f2004-08-17 22:33:14 +000010227fi
Alexandre Julliard6de0af12008-08-25 14:41:03 +020010228test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010229
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010231$as_echo_n "checking for parport header/ppdev.h... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010232if test "${ac_cv_c_ppdev+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010233 $as_echo_n "(cached) " >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010234else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010236/* end confdefs.h. */
Yann Droneauddd33ee92010-03-08 14:46:46 +010010237#ifdef HAVE_SYS_IOCTL_H
10238# include <sys/ioctl.h>
10239#endif
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010240#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010241int
10242main ()
10243{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010244ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010245 ;
10246 return 0;
10247}
10248_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010249if ac_fn_c_try_compile "$LINENO"; then :
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010250 ac_cv_c_ppdev="yes"
10251else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010252 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010253fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010255fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010257$as_echo "$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010258if test "$ac_cv_c_ppdev" = "yes"
10259then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010260
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010261$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010262
10263fi
10264
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010265ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010266LIBS="$LIBS $LIBPTHREAD"
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010267for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020010268 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010269 pthread_getattr_np \
10270 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010271 pthread_get_stacksize_np
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010272do :
10273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10274ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10275eval as_val=\$$as_ac_var
10276 if test "x$as_val" = x""yes; then :
Alexandre Julliard821ab862003-11-12 22:44:56 +000010277 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010278#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010279_ACEOF
10280
10281fi
10282done
10283
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010284LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010285
Jacek Caban11ca05f2009-05-29 23:35:13 +020010286if test "$ac_cv_header_zlib_h" = "yes"
10287then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010289$as_echo_n "checking for inflate in -lz... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010290if test "${ac_cv_lib_z_inflate+set}" = set; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010291 $as_echo_n "(cached) " >&6
10292else
10293 ac_check_lib_save_LIBS=$LIBS
10294LIBS="-lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010296/* end confdefs.h. */
10297
10298/* Override any GCC internal prototype to avoid an error.
10299 Use char because int might match the return type of a GCC
10300 builtin and then its argument prototype would still apply. */
10301#ifdef __cplusplus
10302extern "C"
10303#endif
10304char inflate ();
10305int
10306main ()
10307{
10308return inflate ();
10309 ;
10310 return 0;
10311}
10312_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010313if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010314 ac_cv_lib_z_inflate=yes
10315else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010316 ac_cv_lib_z_inflate=no
Jacek Caban11ca05f2009-05-29 23:35:13 +020010317fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010318rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010320LIBS=$ac_check_lib_save_LIBS
10321fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010323$as_echo "$ac_cv_lib_z_inflate" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010324if test "x$ac_cv_lib_z_inflate" = x""yes; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010325
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010326$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Jacek Caban11ca05f2009-05-29 23:35:13 +020010327
10328 ZLIB="-lz"
10329
10330fi
10331
10332fi
10333
Francois Gouget3fe5d802009-01-14 14:16:06 +010010334if test "x$with_esd" != xno
10335then
10336 save_CFLAGS="$CFLAGS"
10337 # Extract the first word of "esd-config", so it can be a program name with args.
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010338set dummy esd-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010340$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010341if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010342 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010343else
10344 case $ESDCONFIG in
10345 [\\/]* | ?:[\\/]*)
10346 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10347 ;;
10348 *)
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010354 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010355 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 +000010356 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010358 break 2
10359 fi
10360done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010361 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010362IFS=$as_save_IFS
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010363
Francois Gouget3fe5d802009-01-14 14:16:06 +010010364 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010365 ;;
10366esac
10367fi
10368ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010369if test -n "$ESDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010371$as_echo "$ESDCONFIG" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010372else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010374$as_echo "no" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010375fi
10376
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010377
Francois Gouget3fe5d802009-01-14 14:16:06 +010010378 if test "x$ESDCONFIG" != "xno"
10379 then
10380 ac_esd_incl=""
10381 for i in `$ESDCONFIG --cflags`
10382 do
10383 case "$i" in
10384 -I*) ac_esd_incl="$ac_esd_incl $i";;
10385 esac
10386 done
10387 ac_esd_libs=`$ESDCONFIG --libs`
10388 CFLAGS="$CFLAGS $ac_esd_incl"
10389 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010390 ac_esd_libs=${ac_esd_libs:-"-lesd"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010391 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10392if test "x$ac_cv_header_esd_h" = x""yes; then :
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010394$as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010395if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010396 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010397else
10398 ac_check_lib_save_LIBS=$LIBS
Francois Gougete9b1a402008-07-21 23:41:21 +020010399LIBS="-lesd $ac_esd_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010401/* end confdefs.h. */
10402
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010403/* Override any GCC internal prototype to avoid an error.
10404 Use char because int might match the return type of a GCC
10405 builtin and then its argument prototype would still apply. */
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010406#ifdef __cplusplus
10407extern "C"
10408#endif
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010409char esd_open_sound ();
10410int
10411main ()
10412{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010413return esd_open_sound ();
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010414 ;
10415 return 0;
10416}
10417_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010418if ac_fn_c_try_link "$LINENO"; then :
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010419 ac_cv_lib_esd_esd_open_sound=yes
10420else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010421 ac_cv_lib_esd_esd_open_sound=no
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010422fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010423rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010425LIBS=$ac_check_lib_save_LIBS
10426fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010428$as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010429if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
Francois Gougete9b1a402008-07-21 23:41:21 +020010430 ESDINCL="$ac_esd_incl"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010431
Francois Gouget3fe5d802009-01-14 14:16:06 +010010432 ESDLIBS="$ac_esd_libs"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010433
10434
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010435$as_echo "#define HAVE_ESD 1" >>confdefs.h
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010436
10437fi
10438
Francois Gouget3fe5d802009-01-14 14:16:06 +010010439fi
10440
10441
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010442 CFLAGS="$save_CFLAGS"
10443fi
10444
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010445ALSALIBS=""
10446
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010447if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010448then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010449 { $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 +010010450$as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010451if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010452 $as_echo_n "(cached) " >&6
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010453else
10454 ac_check_lib_save_LIBS=$LIBS
10455LIBS="-lasound $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010457/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010458
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010459/* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010462#ifdef __cplusplus
10463extern "C"
10464#endif
Vincent Béron151015f2005-01-10 13:26:33 +000010465char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010466int
10467main ()
10468{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010469return snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010470 ;
10471 return 0;
10472}
10473_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010474if ac_fn_c_try_link "$LINENO"; then :
Vincent Béron151015f2005-01-10 13:26:33 +000010475 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010476else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010477 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010478fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010479rm -f core conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010481LIBS=$ac_check_lib_save_LIBS
10482fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010483{ $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 +010010484$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010485if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Vincent Béron151015f2005-01-10 13:26:33 +000010487/* end confdefs.h. */
10488#ifdef HAVE_ALSA_ASOUNDLIB_H
10489#include <alsa/asoundlib.h>
10490#elif defined(HAVE_SYS_ASOUNDLIB_H)
10491#include <sys/asoundlib.h>
10492#endif
10493int
10494main ()
10495{
10496int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10497 ;
10498 return 0;
10499}
10500_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010501if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010502
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010503$as_echo "#define HAVE_ALSA 1" >>confdefs.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010504
Vincent Béron151015f2005-01-10 13:26:33 +000010505 ALSALIBS="-lasound"
Vincent Béron151015f2005-01-10 13:26:33 +000010506fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010508fi
10509
10510fi
10511
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010512AUDIOIOLIBS=""
10513
Alexandre Julliard73482142005-08-03 19:21:04 +000010514if test "$ac_cv_header_libaudioio_h" = "yes"
10515then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010517$as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010518if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010519 $as_echo_n "(cached) " >&6
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010520else
10521 ac_check_lib_save_LIBS=$LIBS
10522LIBS="-laudioio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010524/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010525
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010526/* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010529#ifdef __cplusplus
10530extern "C"
10531#endif
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010532char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010533int
10534main ()
10535{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010536return AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010537 ;
10538 return 0;
10539}
10540_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010541if ac_fn_c_try_link "$LINENO"; then :
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010542 ac_cv_lib_audioio_AudioIOGetVersion=yes
10543else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010544 ac_cv_lib_audioio_AudioIOGetVersion=no
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010545fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010546rm -f core conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010548LIBS=$ac_check_lib_save_LIBS
10549fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010551$as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010552if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010553 AUDIOIOLIBS="-laudioio"
10554
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010555$as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010556
10557fi
10558
10559fi
10560
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010561
Alexandre Julliard73482142005-08-03 19:21:04 +000010562if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10563then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010565$as_echo_n "checking for -lcapi20... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010566if test "${ac_cv_lib_soname_capi20+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010567 $as_echo_n "(cached) " >&6
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010568else
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010569 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010570LIBS="-lcapi20 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010572/* end confdefs.h. */
10573
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010574/* Override any GCC internal prototype to avoid an error.
10575 Use char because int might match the return type of a GCC
10576 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010577#ifdef __cplusplus
10578extern "C"
10579#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010580char capi20_register ();
10581int
10582main ()
10583{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010584return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010585 ;
10586 return 0;
10587}
10588_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010589if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010590 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010591 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 +020010592 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'` ;;
10593 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10594 esac
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010595fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010596rm -f core conftest.err conftest.$ac_objext \
10597 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010598 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010599fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010600if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010602$as_echo "not found" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010603
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010604else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010606$as_echo "$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010607
10608cat >>confdefs.h <<_ACEOF
10609#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010610_ACEOF
10611
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010612
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010613fi
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010614fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010615if test "x$ac_cv_lib_soname_capi20" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010616 case "x$with_capi" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010617 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 +010010618 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010619 *) as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10620This is an error since --with-capi was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010621esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010622fi
10623
Francois Gouget289ea332008-07-24 16:09:07 +020010624CUPSINCL=""
10625
10626if test "x$with_cups" != "xno"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010627then
Francois Gouget289ea332008-07-24 16:09:07 +020010628 ac_save_CPPFLAGS="$CPPFLAGS"
10629 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
Alexandre Julliarda991a562008-07-28 12:04:46 +020010630 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
Francois Gouget289ea332008-07-24 16:09:07 +020010631 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010632 for ac_header in cups/cups.h
10633do :
10634 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10635if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
Francois Gouget289ea332008-07-24 16:09:07 +020010636 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010637#define HAVE_CUPS_CUPS_H 1
Francois Gouget289ea332008-07-24 16:09:07 +020010638_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010640$as_echo_n "checking for -lcups... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010641if test "${ac_cv_lib_soname_cups+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010642 $as_echo_n "(cached) " >&6
Alexandre Julliard702d3552007-07-02 17:30:44 +020010643else
10644 ac_check_soname_save_LIBS=$LIBS
Francois Gouget289ea332008-07-24 16:09:07 +020010645LIBS="-lcups $ac_cups_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010647/* end confdefs.h. */
10648
10649/* Override any GCC internal prototype to avoid an error.
10650 Use char because int might match the return type of a GCC
10651 builtin and then its argument prototype would still apply. */
10652#ifdef __cplusplus
10653extern "C"
10654#endif
10655char cupsGetDefault ();
10656int
10657main ()
10658{
10659return cupsGetDefault ();
10660 ;
10661 return 0;
10662}
10663_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010664if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard702d3552007-07-02 17:30:44 +020010665 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010666 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 +020010667 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'` ;;
10668 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10669 esac
Alexandre Julliard702d3552007-07-02 17:30:44 +020010670fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010671rm -f core conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010673 LIBS=$ac_check_soname_save_LIBS
10674fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010675if test "x$ac_cv_lib_soname_cups" = "x"; then :
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010677$as_echo "not found" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010678
10679else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010681$as_echo "$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010682
10683cat >>confdefs.h <<_ACEOF
10684#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10685_ACEOF
10686
Francois Gouget289ea332008-07-24 16:09:07 +020010687 CUPSINCL="$ac_cups_cflags"
10688fi
Alexandre Julliard702d3552007-07-02 17:30:44 +020010689fi
10690
Francois Gouget289ea332008-07-24 16:09:07 +020010691done
10692
10693 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010694fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010695if test "x$ac_cv_lib_soname_cups" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010696 case "x$with_cups" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010697 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 +010010698 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010699 *) as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10700This is an error since --with-cups was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010701esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010702fi
10703
Alexandre Julliard34200c32007-07-02 17:31:19 +020010704if test "$ac_cv_header_jack_jack_h" = "yes"
10705then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010707$as_echo_n "checking for -ljack... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010708if test "${ac_cv_lib_soname_jack+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010709 $as_echo_n "(cached) " >&6
Alexandre Julliard34200c32007-07-02 17:31:19 +020010710else
10711 ac_check_soname_save_LIBS=$LIBS
10712LIBS="-ljack $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020010714/* end confdefs.h. */
10715
10716/* Override any GCC internal prototype to avoid an error.
10717 Use char because int might match the return type of a GCC
10718 builtin and then its argument prototype would still apply. */
10719#ifdef __cplusplus
10720extern "C"
10721#endif
10722char jack_client_new ();
10723int
10724main ()
10725{
10726return jack_client_new ();
10727 ;
10728 return 0;
10729}
10730_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010731if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard34200c32007-07-02 17:31:19 +020010732 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010733 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 +020010734 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'` ;;
10735 *) 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 +020010736 esac
Alexandre Julliard34200c32007-07-02 17:31:19 +020010737fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010738rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020010740 LIBS=$ac_check_soname_save_LIBS
10741fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010742if test "x$ac_cv_lib_soname_jack" = "x"; then :
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010744$as_echo "not found" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020010745
10746else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010748$as_echo "$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020010749
10750cat >>confdefs.h <<_ACEOF
10751#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10752_ACEOF
10753
10754
10755fi
Alexandre Julliard34200c32007-07-02 17:31:19 +020010756fi
10757
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010758if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10759then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010761$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010762if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010763 $as_echo_n "(cached) " >&6
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010764else
10765 ac_check_soname_save_LIBS=$LIBS
10766LIBS="-lfontconfig $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010768/* end confdefs.h. */
10769
10770/* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10773#ifdef __cplusplus
10774extern "C"
10775#endif
10776char FcInit ();
10777int
10778main ()
10779{
10780return FcInit ();
10781 ;
10782 return 0;
10783}
10784_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010785if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010786 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010787 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 +020010788 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'` ;;
10789 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10790 esac
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010791fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010792rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010794 LIBS=$ac_check_soname_save_LIBS
10795fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010796if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010798$as_echo "not found" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010799
10800else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010802$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010803
10804cat >>confdefs.h <<_ACEOF
10805#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10806_ACEOF
10807
10808
10809fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010810elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
Alexandre Julliard5c076732007-10-17 17:04:01 +020010811then
10812 ac_save_CPPFLAGS="$CPPFLAGS"
10813 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10814 $as_unset ac_cv_header_fontconfig_fontconfig_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010815 for ac_header in fontconfig/fontconfig.h
10816do :
10817 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10818if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010819 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010820#define HAVE_FONTCONFIG_FONTCONFIG_H 1
Alexandre Julliard5c076732007-10-17 17:04:01 +020010821_ACEOF
10822
10823fi
10824
10825done
10826
10827 CPPFLAGS="$ac_save_CPPFLAGS"
10828 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10829 then
10830 FONTCONFIGINCL="$X_CFLAGS"
10831
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010833$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010834if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010835 $as_echo_n "(cached) " >&6
Alexandre Julliard5c076732007-10-17 17:04:01 +020010836else
10837 ac_check_soname_save_LIBS=$LIBS
10838LIBS="-lfontconfig $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020010840/* end confdefs.h. */
10841
10842/* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10845#ifdef __cplusplus
10846extern "C"
10847#endif
10848char FcInit ();
10849int
10850main ()
10851{
10852return FcInit ();
10853 ;
10854 return 0;
10855}
10856_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010857if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010858 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010859 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 +020010860 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'` ;;
10861 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10862 esac
Alexandre Julliard5c076732007-10-17 17:04:01 +020010863fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010864rm -f core conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020010866 LIBS=$ac_check_soname_save_LIBS
10867fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010868if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010870$as_echo "not found" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020010871
10872else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010874$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020010875
10876cat >>confdefs.h <<_ACEOF
10877#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10878_ACEOF
10879
10880
10881fi
Alexandre Julliard5c076732007-10-17 17:04:01 +020010882 fi
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010883fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010884if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010885 case "x$with_fontconfig" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010886 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 +010010887 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010888 *) as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10889This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010890esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020010891fi
10892
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010893if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10894then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010896$as_echo_n "checking for -lssl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010897if test "${ac_cv_lib_soname_ssl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010898 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010899else
10900 ac_check_soname_save_LIBS=$LIBS
10901LIBS="-lssl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010903/* end confdefs.h. */
10904
10905/* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10908#ifdef __cplusplus
10909extern "C"
10910#endif
10911char SSL_library_init ();
10912int
10913main ()
10914{
10915return SSL_library_init ();
10916 ;
10917 return 0;
10918}
10919_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010920if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010921 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010922 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 +020010923 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'` ;;
10924 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10925 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010926fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010927rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010929 LIBS=$ac_check_soname_save_LIBS
10930fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010931if test "x$ac_cv_lib_soname_ssl" = "x"; then :
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010933$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010934
10935else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010937$as_echo "$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010938
10939cat >>confdefs.h <<_ACEOF
10940#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
10941_ACEOF
10942
10943
10944fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010946$as_echo_n "checking for -lcrypto... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010947if test "${ac_cv_lib_soname_crypto+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010948 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010949else
10950 ac_check_soname_save_LIBS=$LIBS
10951LIBS="-lcrypto $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010953/* end confdefs.h. */
10954
10955/* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10958#ifdef __cplusplus
10959extern "C"
10960#endif
10961char BIO_new_socket ();
10962int
10963main ()
10964{
10965return BIO_new_socket ();
10966 ;
10967 return 0;
10968}
10969_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010970if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010971 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010972 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 +020010973 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'` ;;
10974 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10975 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010976fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010977rm -f core conftest.err conftest.$ac_objext \
10978 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010979 LIBS=$ac_check_soname_save_LIBS
10980fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010981if test "x$ac_cv_lib_soname_crypto" = "x"; then :
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010983$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010984
10985else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010987$as_echo "$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010988
10989cat >>confdefs.h <<_ACEOF
10990#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
10991_ACEOF
10992
10993
10994fi
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010995fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010996if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010997 case "x$with_openssl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010998 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 +010010999 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011000 *) as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11001This is an error since --with-openssl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011002esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011003fi
11004
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +020011005if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011006then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011008$as_echo_n "checking for -lgsm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011009if test "${ac_cv_lib_soname_gsm+set}" = set; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011010 $as_echo_n "(cached) " >&6
11011else
11012 ac_check_soname_save_LIBS=$LIBS
11013LIBS="-lgsm $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011015/* end confdefs.h. */
11016
11017/* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11020#ifdef __cplusplus
11021extern "C"
11022#endif
11023char gsm_create ();
11024int
11025main ()
11026{
11027return gsm_create ();
11028 ;
11029 return 0;
11030}
11031_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011032if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011033 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011034 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 +020011035 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'` ;;
11036 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11037 esac
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011038fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011039rm -f core conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011041 LIBS=$ac_check_soname_save_LIBS
11042fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011043if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011045$as_echo "not found" >&6; }
11046
11047else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011049$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11050
11051cat >>confdefs.h <<_ACEOF
11052#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11053_ACEOF
11054
11055
11056fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011057fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011058if test "x$ac_cv_lib_soname_gsm" = "x"; then :
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011059 case "x$with_gsm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011060 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 +020011061 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011062 *) 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 +020011063This is an error since --with-gsm was requested." "$LINENO" 5 ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011064esac
11065fi
11066
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011067if test "$ac_cv_header_jpeglib_h" = "yes"
11068then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011070$as_echo_n "checking for -ljpeg... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011071if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011072 $as_echo_n "(cached) " >&6
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011073else
11074 ac_check_soname_save_LIBS=$LIBS
11075LIBS="-ljpeg $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011077/* end confdefs.h. */
11078
11079/* Override any GCC internal prototype to avoid an error.
11080 Use char because int might match the return type of a GCC
11081 builtin and then its argument prototype would still apply. */
11082#ifdef __cplusplus
11083extern "C"
11084#endif
11085char jpeg_start_decompress ();
11086int
11087main ()
11088{
11089return jpeg_start_decompress ();
11090 ;
11091 return 0;
11092}
11093_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011094if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011095 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011096 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 +020011097 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'` ;;
11098 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11099 esac
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011100fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011101rm -f core conftest.err conftest.$ac_objext \
11102 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011103 LIBS=$ac_check_soname_save_LIBS
11104fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011105if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011107$as_echo "not found" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011108
11109else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011111$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011112
11113cat >>confdefs.h <<_ACEOF
11114#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11115_ACEOF
11116
11117
11118fi
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011119fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011120if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011121 case "x$with_jpeg" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011122 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 +010011123 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011124 *) as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11125This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011126esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011127fi
11128
Alexandre Julliard00302152007-07-02 19:54:00 +020011129if test "$ac_cv_header_png_h" = "yes"
11130then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011132$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011133if test "${ac_cv_lib_soname_png+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011134 $as_echo_n "(cached) " >&6
Alexandre Julliard00302152007-07-02 19:54:00 +020011135else
11136 ac_check_soname_save_LIBS=$LIBS
Austin Englishfe8879e2008-12-28 19:10:19 -060011137LIBS="-lpng -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011139/* end confdefs.h. */
11140
11141/* Override any GCC internal prototype to avoid an error.
11142 Use char because int might match the return type of a GCC
11143 builtin and then its argument prototype would still apply. */
11144#ifdef __cplusplus
11145extern "C"
11146#endif
11147char png_create_read_struct ();
11148int
11149main ()
11150{
11151return png_create_read_struct ();
11152 ;
11153 return 0;
11154}
11155_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011156if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard00302152007-07-02 19:54:00 +020011157 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011158 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 +020011159 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'` ;;
11160 *) 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'` ;;
11161 esac
Alexandre Julliard00302152007-07-02 19:54:00 +020011162fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011163rm -f core conftest.err conftest.$ac_objext \
11164 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011165 LIBS=$ac_check_soname_save_LIBS
11166fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011167if test "x$ac_cv_lib_soname_png" = "x"; then :
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011169$as_echo "not found" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011170
11171else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011173$as_echo "$ac_cv_lib_soname_png" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011174
11175cat >>confdefs.h <<_ACEOF
11176#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11177_ACEOF
11178
11179
11180fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11182$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11183if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
11185else
11186 ac_check_lib_save_LIBS=$LIBS
11187LIBS="-lpng -lm -lz $LIBS"
11188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189/* end confdefs.h. */
11190
11191/* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11194#ifdef __cplusplus
11195extern "C"
11196#endif
11197char png_set_expand_gray_1_2_4_to_8 ();
11198int
11199main ()
11200{
11201return png_set_expand_gray_1_2_4_to_8 ();
11202 ;
11203 return 0;
11204}
11205_ACEOF
11206if ac_fn_c_try_link "$LINENO"; then :
11207 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11208else
11209 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11210fi
11211rm -f core conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213LIBS=$ac_check_lib_save_LIBS
11214fi
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11216$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11217if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11218
11219$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11220
11221
11222fi
11223
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011224elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11225then
11226 ac_save_CPPFLAGS="$CPPFLAGS"
11227 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11228 $as_unset ac_cv_header_png_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011229 for ac_header in png.h
11230do :
11231 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11232if test "x$ac_cv_header_png_h" = x""yes; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011233 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011234#define HAVE_PNG_H 1
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011235_ACEOF
11236
11237fi
11238
11239done
11240
11241 CPPFLAGS="$ac_save_CPPFLAGS"
11242 if test "$ac_cv_header_png_h" = "yes"
11243 then
11244 PNGINCL="$X_CFLAGS"
11245
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011247$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011248if test "${ac_cv_lib_soname_png+set}" = set; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011249 $as_echo_n "(cached) " >&6
11250else
11251 ac_check_soname_save_LIBS=$LIBS
11252LIBS="-lpng $X_LIBS -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011254/* end confdefs.h. */
11255
11256/* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11259#ifdef __cplusplus
11260extern "C"
11261#endif
11262char png_create_read_struct ();
11263int
11264main ()
11265{
11266return png_create_read_struct ();
11267 ;
11268 return 0;
11269}
11270_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011271if ac_fn_c_try_link "$LINENO"; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011272 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011273 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 +020011274 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'` ;;
11275 *) 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'` ;;
11276 esac
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011277fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011278rm -f core conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011280 LIBS=$ac_check_soname_save_LIBS
11281fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011282if test "x$ac_cv_lib_soname_png" = "x"; then :
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011284$as_echo "not found" >&6; }
11285
11286else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011287 { $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 +020011288$as_echo "$ac_cv_lib_soname_png" >&6; }
11289
11290cat >>confdefs.h <<_ACEOF
11291#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11292_ACEOF
11293
11294
11295fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11297$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11298if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11299 $as_echo_n "(cached) " >&6
11300else
11301 ac_check_lib_save_LIBS=$LIBS
11302LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304/* end confdefs.h. */
11305
11306/* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11309#ifdef __cplusplus
11310extern "C"
11311#endif
11312char png_set_expand_gray_1_2_4_to_8 ();
11313int
11314main ()
11315{
11316return png_set_expand_gray_1_2_4_to_8 ();
11317 ;
11318 return 0;
11319}
11320_ACEOF
11321if ac_fn_c_try_link "$LINENO"; then :
11322 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11323else
11324 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11325fi
11326rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328LIBS=$ac_check_lib_save_LIBS
11329fi
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11331$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11332if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11333 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11334
11335fi
11336
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011337 fi
Alexandre Julliard00302152007-07-02 19:54:00 +020011338fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011339if test "x$ac_cv_lib_soname_png" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011340 case "x$with_png" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011341 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 +010011342 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011343 *) as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11344This is an error since --with-png was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011345esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011346fi
11347
Vincent Povirk73cd5692010-03-08 17:07:29 -060011348if test "$ac_cv_header_tiffio_h" = "yes"
11349then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11351$as_echo_n "checking for -ltiff... " >&6; }
11352if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11353 $as_echo_n "(cached) " >&6
11354else
11355 ac_check_soname_save_LIBS=$LIBS
11356LIBS="-ltiff $LIBS"
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358/* end confdefs.h. */
11359
11360/* Override any GCC internal prototype to avoid an error.
11361 Use char because int might match the return type of a GCC
11362 builtin and then its argument prototype would still apply. */
11363#ifdef __cplusplus
11364extern "C"
11365#endif
11366char TIFFClientOpen ();
11367int
11368main ()
11369{
11370return TIFFClientOpen ();
11371 ;
11372 return 0;
11373}
11374_ACEOF
11375if ac_fn_c_try_link "$LINENO"; then :
11376 case "$LIBEXT" in
11377 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11378 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'` ;;
11379 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11380 esac
11381fi
11382rm -f core conftest.err conftest.$ac_objext \
11383 conftest$ac_exeext conftest.$ac_ext
11384 LIBS=$ac_check_soname_save_LIBS
11385fi
11386if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11388$as_echo "not found" >&6; }
11389
11390else
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11392$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11393
11394cat >>confdefs.h <<_ACEOF
11395#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11396_ACEOF
11397
11398
11399fi
11400fi
11401if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11402 case "x$with_tiff" in
11403 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11404 xno) ;;
11405 *) as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11406This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11407esac
11408fi
11409
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011410if test "$ac_cv_header_mpg123_h" = "yes"
11411then
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11413$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11414if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011415 $as_echo_n "(cached) " >&6
11416else
11417 ac_check_lib_save_LIBS=$LIBS
11418LIBS="-lmpg123 $LIBS"
11419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420/* end confdefs.h. */
11421
11422/* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11425#ifdef __cplusplus
11426extern "C"
11427#endif
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011428char mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011429int
11430main ()
11431{
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011432return mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011433 ;
11434 return 0;
11435}
11436_ACEOF
11437if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011438 ac_cv_lib_mpg123_mpg123_feed=yes
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011439else
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011440 ac_cv_lib_mpg123_mpg123_feed=no
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011441fi
11442rm -f core conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
11444LIBS=$ac_check_lib_save_LIBS
11445fi
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11447$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11448if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011449 LIBMPG123="-lmpg123"
11450
11451fi
11452
11453fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011454if 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 -050011455 case "x$with_mpg123" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011456 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 -050011457 xno) ;;
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011458 *) 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 -050011459This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11460esac
11461fi
Kristofer Henrikssonc58eff62010-05-24 15:04:42 -040011462test "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 -050011463
Chris Robinson862965f2009-08-25 03:26:35 -070011464if test "$ac_cv_header_AL_al_h" = "yes"
11465then
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11467$as_echo_n "checking for -lopenal... " >&6; }
11468if test "${ac_cv_lib_soname_openal+set}" = set; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011469 $as_echo_n "(cached) " >&6
11470else
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011471 ac_check_soname_save_LIBS=$LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011472LIBS="-lopenal $LIBS"
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson862965f2009-08-25 03:26:35 -070011474/* end confdefs.h. */
11475
11476/* Override any GCC internal prototype to avoid an error.
11477 Use char because int might match the return type of a GCC
11478 builtin and then its argument prototype would still apply. */
11479#ifdef __cplusplus
11480extern "C"
11481#endif
11482char alGetSource3i ();
11483int
11484main ()
11485{
11486return alGetSource3i ();
11487 ;
11488 return 0;
11489}
11490_ACEOF
11491if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011492 case "$LIBEXT" in
11493 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11494 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'` ;;
11495 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11496 esac
Chris Robinson862965f2009-08-25 03:26:35 -070011497fi
11498rm -f core conftest.err conftest.$ac_objext \
11499 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011500 LIBS=$ac_check_soname_save_LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011501fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011502if test "x$ac_cv_lib_soname_openal" = "x"; then :
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11504$as_echo "not found" >&6; }
11505
11506else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11508$as_echo "$ac_cv_lib_soname_openal" >&6; }
11509
11510cat >>confdefs.h <<_ACEOF
11511#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11512_ACEOF
11513
11514 LIBOPENAL="-lopenal"
11515
11516 ac_cv_lib_openal=yes
11517
11518cat >>confdefs.h <<_ACEOF
11519#define HAVE_OPENAL 1
11520_ACEOF
Chris Robinson862965f2009-08-25 03:26:35 -070011521
11522fi
Chris Robinson862965f2009-08-25 03:26:35 -070011523fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011524if test "x$ac_cv_lib_openal" != xyes; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011525 case "x$with_openal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011526 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 -070011527 xno) ;;
11528 *) as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11529This is an error since --with-openal was requested." "$LINENO" 5 ;;
11530esac
11531fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011532test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
Chris Robinson862965f2009-08-25 03:26:35 -070011533
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011534if test "$ac_cv_header_kstat_h" = "yes"
11535then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011537$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011538if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011539 $as_echo_n "(cached) " >&6
11540else
11541 ac_check_lib_save_LIBS=$LIBS
11542LIBS="-lkstat $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011544/* end confdefs.h. */
11545
11546/* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11549#ifdef __cplusplus
11550extern "C"
11551#endif
11552char kstat_open ();
11553int
11554main ()
11555{
11556return kstat_open ();
11557 ;
11558 return 0;
11559}
11560_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011561if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011562 ac_cv_lib_kstat_kstat_open=yes
11563else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011564 ac_cv_lib_kstat_kstat_open=no
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011565fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011566rm -f core conftest.err conftest.$ac_objext \
11567 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011568LIBS=$ac_check_lib_save_LIBS
11569fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011571$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011572if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011573
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011574$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011575
11576 LIBKSTAT="-lkstat"
11577
11578fi
11579
11580fi
11581
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011583$as_echo_n "checking for -lodbc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011584if test "${ac_cv_lib_soname_odbc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011585 $as_echo_n "(cached) " >&6
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011586else
11587 ac_check_soname_save_LIBS=$LIBS
11588LIBS="-lodbc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011590/* end confdefs.h. */
11591
11592/* Override any GCC internal prototype to avoid an error.
11593 Use char because int might match the return type of a GCC
11594 builtin and then its argument prototype would still apply. */
11595#ifdef __cplusplus
11596extern "C"
11597#endif
11598char SQLConnect ();
11599int
11600main ()
11601{
11602return SQLConnect ();
11603 ;
11604 return 0;
11605}
11606_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011607if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011608 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011609 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 +010011610 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'` ;;
11611 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11612 esac
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011613fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011614rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011616 LIBS=$ac_check_soname_save_LIBS
11617fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011618if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011620$as_echo "not found" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011621 cat >>confdefs.h <<_ACEOF
11622#define SONAME_LIBODBC "libodbc.$LIBEXT"
11623_ACEOF
11624
11625else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011627$as_echo "$ac_cv_lib_soname_odbc" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011628
11629cat >>confdefs.h <<_ACEOF
11630#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11631_ACEOF
11632
11633
11634fi
11635
Francois Gouget3089a9f2008-07-31 18:59:50 +020011636if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011637 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11638 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11639 "$ac_cv_header_soundcard_h" != "yes" -a \
11640 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11641then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011642 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011643fi
11644
11645
Alexandre Julliardfc094232003-04-14 21:46:41 +000011646EXTRACFLAGS=""
11647
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011648if test "x${GCC}" = "xyes"
11649then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000011650 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000011651
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011653$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011654if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011655 $as_echo_n "(cached) " >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011656else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011657 if test "$cross_compiling" = yes; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011658 ac_cv_c_gcc_strength_bug="yes"
11659else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011661/* end confdefs.h. */
Alexandre Julliardad356de2007-06-08 20:23:16 +020011662int L[4] = {0,1,2,3};
11663int
11664main ()
11665{
11666static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011667 unsigned int B = 3;
11668 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000011669 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000011670 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11671 L[i] = 4;
Alexandre Julliard95251a72009-02-16 12:46:58 +010011672 return (Array[1] != -2 || L[2] != 3)
Alexandre Julliardad356de2007-06-08 20:23:16 +020011673 ;
11674 return 0;
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011675}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011676_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011677if ac_fn_c_try_run "$LINENO"; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011678 ac_cv_c_gcc_strength_bug="no"
11679else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011680 ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011681fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11683 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011684fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011685
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011686fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011688$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011689 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11690 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011691 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011692 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000011693
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011695$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011696if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011697 $as_echo_n "(cached) " >&6
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011698else
11699 ac_wine_try_cflags_saved=$CFLAGS
11700CFLAGS="$CFLAGS -fno-builtin"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011702/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011703int main(int argc, char **argv) { return 0; }
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011704_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011705if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011706 ac_cv_cflags__fno_builtin=yes
11707else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011708 ac_cv_cflags__fno_builtin=no
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011709fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011710rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011712CFLAGS=$ac_wine_try_cflags_saved
11713fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011715$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011716if test $ac_cv_cflags__fno_builtin = yes; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011717 BUILTINFLAG="-fno-builtin"
11718
11719fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011721$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011722if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011723 $as_echo_n "(cached) " >&6
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011724else
11725 ac_wine_try_cflags_saved=$CFLAGS
11726CFLAGS="$CFLAGS -fno-strict-aliasing"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011728/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011729int main(int argc, char **argv) { return 0; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011730_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011731if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011732 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011733else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011734 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011735fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011736rm -f core conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011738CFLAGS=$ac_wine_try_cflags_saved
11739fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011741$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011742if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011743 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11744fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011746$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011747if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011748 $as_echo_n "(cached) " >&6
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011749else
11750 ac_wine_try_cflags_saved=$CFLAGS
11751CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011753/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011754int main(int argc, char **argv) { return 0; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011755_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011756if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011757 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011758else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011759 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011760fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011761rm -f core conftest.err conftest.$ac_objext \
11762 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011763CFLAGS=$ac_wine_try_cflags_saved
11764fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011766$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011767if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011768 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11769fi
Alexandre Julliard295806f2009-10-07 13:46:06 +020011770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11771$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11772if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11773 $as_echo_n "(cached) " >&6
11774else
11775 ac_wine_try_cflags_saved=$CFLAGS
11776CFLAGS="$CFLAGS -Wstrict-prototypes"
11777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011779int main(int argc, char **argv) { return 0; }
Alexandre Julliard295806f2009-10-07 13:46:06 +020011780_ACEOF
11781if ac_fn_c_try_link "$LINENO"; then :
11782 ac_cv_cflags__Wstrict_prototypes=yes
11783else
11784 ac_cv_cflags__Wstrict_prototypes=no
11785fi
11786rm -f core conftest.err conftest.$ac_objext \
11787 conftest$ac_exeext conftest.$ac_ext
11788CFLAGS=$ac_wine_try_cflags_saved
11789fi
11790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11791$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11792if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11793 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11794fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011796$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011797if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011798 $as_echo_n "(cached) " >&6
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011799else
11800 ac_wine_try_cflags_saved=$CFLAGS
11801CFLAGS="$CFLAGS -Wtype-limits"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011803/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011804int main(int argc, char **argv) { return 0; }
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011805_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011806if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011807 ac_cv_cflags__Wtype_limits=yes
11808else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011809 ac_cv_cflags__Wtype_limits=no
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011810fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011811rm -f core conftest.err conftest.$ac_objext \
11812 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011813CFLAGS=$ac_wine_try_cflags_saved
11814fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011816$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011817if test $ac_cv_cflags__Wtype_limits = yes; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011818 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11819fi
Gerald Pfeifereae58292010-01-02 15:13:43 +010011820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11821$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11822if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11823 $as_echo_n "(cached) " >&6
11824else
11825 ac_wine_try_cflags_saved=$CFLAGS
11826CFLAGS="$CFLAGS -Wwrite-strings"
11827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011829int main(int argc, char **argv) { return 0; }
Gerald Pfeifereae58292010-01-02 15:13:43 +010011830_ACEOF
11831if ac_fn_c_try_link "$LINENO"; then :
11832 ac_cv_cflags__Wwrite_strings=yes
11833else
11834 ac_cv_cflags__Wwrite_strings=no
11835fi
11836rm -f core conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11838CFLAGS=$ac_wine_try_cflags_saved
11839fi
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11841$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11842if test $ac_cv_cflags__Wwrite_strings = yes; then :
11843 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11844fi
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011845
Alexandre Julliard4d52d372003-03-24 19:33:20 +000011846 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000011847 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011849$as_echo_n "checking for broken string.h that generates warnings... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011850if test "${ac_cv_c_string_h_warnings+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011851 $as_echo_n "(cached) " >&6
Mike McCormackc509bc42003-02-25 04:01:58 +000011852else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000011854/* end confdefs.h. */
11855#include <string.h>
11856int
11857main ()
11858{
11859
11860 ;
11861 return 0;
11862}
11863_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011864if ac_fn_c_try_compile "$LINENO"; then :
Mike McCormackc509bc42003-02-25 04:01:58 +000011865 ac_cv_c_string_h_warnings=no
11866else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011867 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000011868fi
Jeremy White0ebeb532006-06-20 13:18:41 +020011869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000011870fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011872$as_echo "$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000011873 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000011874 if test "$ac_cv_c_string_h_warnings" = "no"
11875 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011876 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000011877 fi
Alexandre Julliard12753c52009-10-02 14:39:49 +020011878
Alexandre Julliard83676d72010-07-24 11:42:59 +020011879 saved_CFLAGS="$CFLAGS"
11880 CFLAGS="$CFLAGS -Werror"
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unused result warnings" >&5
11882$as_echo_n "checking for broken unused result warnings... " >&6; }
11883if test "${ac_cv_c_unused_result_warnings+set}" = set; then :
11884 $as_echo_n "(cached) " >&6
11885else
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887/* end confdefs.h. */
11888#include <unistd.h>
11889int
11890main ()
11891{
11892write(2,"a",1)
11893 ;
11894 return 0;
11895}
11896_ACEOF
11897if ac_fn_c_try_compile "$LINENO"; then :
11898 ac_cv_c_unused_result_warnings=no
11899else
11900 ac_cv_c_unused_result_warnings=yes
11901fi
11902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903fi
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_result_warnings" >&5
11905$as_echo "$ac_cv_c_unused_result_warnings" >&6; }
11906 CFLAGS="$saved_CFLAGS"
11907 if test "$ac_cv_c_unused_result_warnings" = "yes"
11908 then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-unused-result" >&5
11910$as_echo_n "checking whether the compiler supports -Wno-unused-result... " >&6; }
11911if test "${ac_cv_cflags__Wno_unused_result+set}" = set; then :
11912 $as_echo_n "(cached) " >&6
11913else
11914 ac_wine_try_cflags_saved=$CFLAGS
11915CFLAGS="$CFLAGS -Wno-unused-result"
11916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11917/* end confdefs.h. */
11918int main(int argc, char **argv) { return 0; }
11919_ACEOF
11920if ac_fn_c_try_link "$LINENO"; then :
11921 ac_cv_cflags__Wno_unused_result=yes
11922else
11923 ac_cv_cflags__Wno_unused_result=no
11924fi
11925rm -f core conftest.err conftest.$ac_objext \
11926 conftest$ac_exeext conftest.$ac_ext
11927CFLAGS=$ac_wine_try_cflags_saved
11928fi
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_unused_result" >&5
11930$as_echo "$ac_cv_cflags__Wno_unused_result" >&6; }
11931if test $ac_cv_cflags__Wno_unused_result = yes; then :
11932 EXTRACFLAGS="$EXTRACFLAGS -Wno-unused-result"
11933fi
11934 fi
11935
Andrew Nguyen2eda9c72010-05-25 22:20:14 -050011936 if test "x$enable_maintainer_mode" = "xyes"
Alexandre Julliard12753c52009-10-02 14:39:49 +020011937 then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11939$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11940if test "${ac_cv_cflags__Werror+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11942else
11943 ac_wine_try_cflags_saved=$CFLAGS
11944CFLAGS="$CFLAGS -Werror"
11945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011947int main(int argc, char **argv) { return 0; }
Alexandre Julliard12753c52009-10-02 14:39:49 +020011948_ACEOF
11949if ac_fn_c_try_link "$LINENO"; then :
11950 ac_cv_cflags__Werror=yes
11951else
11952 ac_cv_cflags__Werror=no
11953fi
11954rm -f core conftest.err conftest.$ac_objext \
11955 conftest$ac_exeext conftest.$ac_ext
11956CFLAGS=$ac_wine_try_cflags_saved
11957fi
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11959$as_echo "$ac_cv_cflags__Werror" >&6; }
11960if test $ac_cv_cflags__Werror = yes; then :
11961 EXTRACFLAGS="$EXTRACFLAGS -Werror"
11962fi
11963 fi
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020011964
11965 saved_CFLAGS="$CFLAGS"
11966 CFLAGS="$CFLAGS -Werror"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
11968$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
11969if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
11970 $as_echo_n "(cached) " >&6
11971else
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973/* end confdefs.h. */
11974int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
11975int
11976main ()
11977{
11978
11979 ;
11980 return 0;
11981}
11982_ACEOF
11983if ac_fn_c_try_compile "$LINENO"; then :
11984 ac_cv_have_ms_hook_prologue="yes"
11985else
11986 ac_cv_have_ms_hook_prologue="no"
11987fi
11988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11989fi
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
11991$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
11992 CFLAGS="$saved_CFLAGS"
11993 if test "$ac_cv_have_ms_hook_prologue" = "yes"
11994 then
11995
11996$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
11997
11998 else
11999 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12000
12001 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012002fi
12003
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012004
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012006$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012007if test "${ac_cv_c_extern_prefix+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012008 $as_echo_n "(cached) " >&6
12009else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012011/* end confdefs.h. */
12012extern int ac_test;
12013int
12014main ()
12015{
12016asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12017 ;
12018 return 0;
12019}
12020_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012021if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012022 ac_cv_c_extern_prefix="yes"
12023else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012024 ac_cv_c_extern_prefix="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012025fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012026rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012028fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012030$as_echo "$ac_cv_c_extern_prefix" >&6; }
12031
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012032case $host_cpu in
12033 *i[3456789]86*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012035$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012036if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012037 $as_echo_n "(cached) " >&6
12038else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012040/* end confdefs.h. */
12041#ifndef _MSC_VER
12042#define __stdcall __attribute__((__stdcall__))
12043#endif
12044int __stdcall ac_test(int i) { return i; }
12045int
12046main ()
12047{
12048asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12049 ;
12050 return 0;
12051}
12052_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012053if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012054 ac_cv_c_stdcall_suffix="yes"
12055else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012056 ac_cv_c_stdcall_suffix="no"
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012057fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012058rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012060fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012062$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12063 *) ac_cv_c_stdcall_suffix="no" ;;
12064esac
12065
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012066
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012067if test "$ac_cv_c_extern_prefix" = "yes"
12068then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012069 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012070
12071 asm_name_prefix="_"
12072else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012073 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012074
12075 asm_name_prefix=""
12076fi
12077
12078
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012079if test "$ac_cv_c_stdcall_suffix" = "yes"
12080then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012081 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012082
12083else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012084 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012085
12086fi
12087
12088
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012090$as_echo_n "checking how to define a function in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012091if test "${ac_cv_asm_func_def+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012092 $as_echo_n "(cached) " >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012093else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012095/* end confdefs.h. */
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012096
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012097int
12098main ()
12099{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012100asm("\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 +000012101 ;
12102 return 0;
12103}
12104_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012105if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012106 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012107else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012109/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012110
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012111int
12112main ()
12113{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012114asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012115 ;
12116 return 0;
12117}
12118_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012119if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012120 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012121else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012123/* end confdefs.h. */
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012124
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012125int
12126main ()
12127{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012128asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012129 ;
12130 return 0;
12131}
12132_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012133if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012134 ac_cv_asm_func_def=".type 2"
12135else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012136 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012137fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012138rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012140fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012141rm -f core conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012143fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012144rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012146fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012148$as_echo "$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012149
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012150
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012151case "$ac_cv_asm_func_def" in
12152 ".def")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012153 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012154
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012155 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012156 ".type @function")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012157 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012158
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012159 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012160 ".type 2")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012161 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012162
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012163 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012164 *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012165 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012166
12167 asm_func_header="" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012168esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012169
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012171$as_echo_n "checking whether asm() works outside of functions... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012172if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012173 $as_echo_n "(cached) " >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012174else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012176/* end confdefs.h. */
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012177asm(".text\n\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012178int
12179main ()
12180{
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012181
12182 ;
12183 return 0;
12184}
12185_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012186if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012187 ac_cv_c_asm_outside_funcs="yes"
12188else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012189 ac_cv_c_asm_outside_funcs="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012190fi
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012194$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12195
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012197$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012198if test "${ac_cv_c_dot_previous+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012199 $as_echo_n "(cached) " >&6
12200else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012202/* end confdefs.h. */
12203
12204int
12205main ()
12206{
12207asm(".text\nac_test:\t.long 0\n\t.previous");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012208 ;
12209 return 0;
12210}
12211_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012212if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012213 ac_cv_c_dot_previous="yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012214else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012215 ac_cv_c_dot_previous="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012216fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012217rm -f core conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012219fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012221$as_echo "$ac_cv_c_dot_previous" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012222
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012224$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012225if test "${ac_cv_c_cfi_support+set}" = set; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012226 $as_echo_n "(cached) " >&6
12227else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012229/* end confdefs.h. */
12230asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12231int
12232main ()
12233{
12234
12235 ;
12236 return 0;
12237}
12238_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012239if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012240 ac_cv_c_cfi_support="yes"
12241else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012242 ac_cv_c_cfi_support="no"
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012243fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012247$as_echo "$ac_cv_c_cfi_support" >&6; }
12248
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012249asm_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 +020012250asm_func_trailer=""
12251if test "$ac_cv_c_dot_previous" = "yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012252then
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012253 asm_func_trailer="\\n\\t.previous"
12254fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012255if test "$ac_cv_c_cfi_support" = "yes"
12256then
12257 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12258 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012259
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012260$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012261
Alexandre Julliard6c142382010-04-11 12:47:30 +020012262 UNWINDFLAGS=-fasynchronous-unwind-tables
12263
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012264else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012265 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012266
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012267fi
12268
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012269asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12270
12271
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012272if test "$ac_cv_c_asm_outside_funcs" = "yes"
12273then
12274 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012275#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 +000012276_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012277
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012278else
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012279 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012280#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 +000012281_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012282
12283fi
12284
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012285$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012286
12287
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012288$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 +020012289
12290
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012291
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012292LDPATH=""
12293
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012294case $build_os in
12295 cygwin*|mingw32*)
Alexandre Julliardb860c4a2009-09-01 22:36:13 +020012296 TOOLSEXT=".exe"
12297
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012298 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012299 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000012300 darwin*|macosx*)
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012301 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012302 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012303 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012304 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012305esac
12306
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012307case $host_os in
12308 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000012309 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012310
Alexandre Julliarddc1a9f12008-12-22 17:36:18 +010012311 SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012312
12313 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000012314esac
12315
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012316MAIN_BINARY="wine"
12317
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020012318test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012319
Alexandre Julliardf4a19c82009-03-10 18:22:38 +010012320case $host_cpu in
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012321 *i[3456789]86*)
12322 case $host_os in
Austin English5e185962009-10-28 19:51:17 -050012323 linux*)
Alexandre Julliardf4a19c82009-03-10 18:22:38 +010012324 EXTRA_BINARIES="wine-preloader"
Tijl Coosemans9f5c69c2007-08-24 15:46:36 +020012325 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012326 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000012327 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012328esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012329
12330
Alexandre Julliard95251a72009-02-16 12:46:58 +010012331ac_save_CFLAGS="$CFLAGS"
12332CFLAGS="$CFLAGS $BUILTINFLAG"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012333for ac_func in \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012334 _pclose \
12335 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012336 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000012337 _spawnvp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012338 _strdup \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012339 _stricmp \
12340 _strnicmp \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012341 _strtoi64 \
12342 _strtoui64 \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012343 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010012344 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012345 chsize \
Alexandre Julliarde533e972006-08-15 12:11:30 +020012346 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000012347 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000012348 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012349 finite \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +020012350 fnmatch \
Hans Leidekkerbed38422004-10-14 03:08:57 +000012351 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012352 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000012353 fstatfs \
12354 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012355 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000012356 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000012357 futimesat \
Alexandre Julliarda9f214c2006-11-13 15:42:48 +010012358 getdirentries \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012359 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012360 getpagesize \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012361 getpwuid \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012362 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000012363 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000012364 getuid \
Alexandre Julliardc8278922006-08-04 22:11:00 +020012365 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012366 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012367 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012368 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012369 pclose \
Alexandre Julliard6f68b772009-07-01 12:13:34 +020012370 pipe2 \
Alexandre Julliard10892602006-08-15 11:41:59 +020012371 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012372 popen \
Albert Lee01b972d2009-11-20 18:35:26 -050012373 port_create \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020012374 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012375 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012376 pwrite \
Rob Shearman87175c62008-10-03 12:55:21 +010012377 readdir \
Alexandre Julliarde2930742004-01-08 05:07:05 +000012378 readlink \
Juan Lang474b2e42009-09-29 09:17:30 -070012379 sched_setaffinity \
Jeremy White08c0f692004-10-09 02:26:29 +000012380 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012381 select \
Gerald Pfeifer39f67272008-01-20 21:23:08 +010012382 setproctitle \
Paul Millardf10b7d2006-07-16 15:06:28 +010012383 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012384 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012385 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000012386 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012387 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000012388 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012389 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000012390 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012391 strcasecmp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012392 strdup \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012393 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012394 strncasecmp \
Louis Lenders6c04a182006-12-17 17:56:50 +000012395 strtold \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012396 strtoll \
12397 strtoull \
Alexandre Julliard0fbd5562008-12-22 10:47:16 +010012398 symlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012399 tcgetattr \
Tijl Coosemans0c4f1522007-08-23 14:12:37 +020012400 thr_kill2 \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012401 timegm \
12402 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012403 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012404 wait4 \
12405 waitpid \
12406
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012407do :
12408 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12409ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12410eval as_val=\$$as_ac_var
12411 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012412 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012413#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012414_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012415
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012416fi
12417done
12418
Alexandre Julliard95251a72009-02-16 12:46:58 +010012419CFLAGS="$ac_save_CFLAGS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012420
Alexandre Julliarde533e972006-08-15 12:11:30 +020012421if test "$ac_cv_func_dlopen" = no
12422then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012424$as_echo_n "checking for dlopen in -ldl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012425if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012426 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012427else
12428 ac_check_lib_save_LIBS=$LIBS
12429LIBS="-ldl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012431/* end confdefs.h. */
12432
12433/* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436#ifdef __cplusplus
12437extern "C"
12438#endif
12439char dlopen ();
12440int
12441main ()
12442{
12443return dlopen ();
12444 ;
12445 return 0;
12446}
12447_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012448if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012449 ac_cv_lib_dl_dlopen=yes
12450else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012451 ac_cv_lib_dl_dlopen=no
Alexandre Julliarde533e972006-08-15 12:11:30 +020012452fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012453rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012455LIBS=$ac_check_lib_save_LIBS
12456fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012458$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012459if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12460 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
Alexandre Julliarde533e972006-08-15 12:11:30 +020012461 LIBDL="-ldl"
12462
12463fi
12464
12465fi
12466ac_wine_check_funcs_save_LIBS="$LIBS"
12467LIBS="$LIBS $LIBDL"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012468for ac_func in dladdr
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012469do :
12470 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12471if test "x$ac_cv_func_dladdr" = x""yes; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012472 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012473#define HAVE_DLADDR 1
Alexandre Julliarde533e972006-08-15 12:11:30 +020012474_ACEOF
12475
12476fi
12477done
12478
12479LIBS="$ac_wine_check_funcs_save_LIBS"
12480
Alexandre Julliard10892602006-08-15 11:41:59 +020012481if test "$ac_cv_func_poll" = no
12482then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012484$as_echo_n "checking for poll in -lpoll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012485if test "${ac_cv_lib_poll_poll+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012486 $as_echo_n "(cached) " >&6
Alexandre Julliard10892602006-08-15 11:41:59 +020012487else
12488 ac_check_lib_save_LIBS=$LIBS
12489LIBS="-lpoll $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012491/* end confdefs.h. */
12492
12493/* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12496#ifdef __cplusplus
12497extern "C"
12498#endif
12499char poll ();
12500int
12501main ()
12502{
12503return poll ();
12504 ;
12505 return 0;
12506}
12507_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012508if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard10892602006-08-15 11:41:59 +020012509 ac_cv_lib_poll_poll=yes
12510else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012511 ac_cv_lib_poll_poll=no
Alexandre Julliard10892602006-08-15 11:41:59 +020012512fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012513rm -f core conftest.err conftest.$ac_objext \
12514 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012515LIBS=$ac_check_lib_save_LIBS
12516fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012518$as_echo "$ac_cv_lib_poll_poll" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012519if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12520 $as_echo "#define HAVE_POLL 1" >>confdefs.h
Alexandre Julliard10892602006-08-15 11:41:59 +020012521 LIBPOLL="-lpoll"
12522
12523fi
12524
12525fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012526
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012528$as_echo_n "checking for library containing gethostbyname... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012529if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012530 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012531else
Alexandre Julliard28710412007-04-23 16:31:58 +020012532 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012534/* end confdefs.h. */
12535
12536/* Override any GCC internal prototype to avoid an error.
12537 Use char because int might match the return type of a GCC
12538 builtin and then its argument prototype would still apply. */
12539#ifdef __cplusplus
12540extern "C"
12541#endif
12542char gethostbyname ();
12543int
12544main ()
12545{
12546return gethostbyname ();
12547 ;
12548 return 0;
12549}
12550_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012551for ac_lib in '' nsl; do
12552 if test -z "$ac_lib"; then
12553 ac_res="none required"
12554 else
12555 ac_res=-l$ac_lib
12556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12557 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012558 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012559 ac_cv_search_gethostbyname=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012560fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012561rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext
12563 if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012564 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012565fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012566done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012567if test "${ac_cv_search_gethostbyname+set}" = set; then :
12568
Alexandre Julliard28710412007-04-23 16:31:58 +020012569else
12570 ac_cv_search_gethostbyname=no
12571fi
12572rm conftest.$ac_ext
12573LIBS=$ac_func_search_save_LIBS
12574fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012576$as_echo "$ac_cv_search_gethostbyname" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012577ac_res=$ac_cv_search_gethostbyname
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012578if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012580
12581fi
12582
Alexandre Julliarde533e972006-08-15 12:11:30 +020012583
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012585$as_echo_n "checking for library containing connect... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012586if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012587 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012588else
Alexandre Julliard28710412007-04-23 16:31:58 +020012589 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012591/* end confdefs.h. */
12592
12593/* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12596#ifdef __cplusplus
12597extern "C"
12598#endif
12599char connect ();
12600int
12601main ()
12602{
12603return connect ();
12604 ;
12605 return 0;
12606}
12607_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012608for ac_lib in '' socket; do
12609 if test -z "$ac_lib"; then
12610 ac_res="none required"
12611 else
12612 ac_res=-l$ac_lib
12613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12614 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012615 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012616 ac_cv_search_connect=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012617fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012618rm -f core conftest.err conftest.$ac_objext \
12619 conftest$ac_exeext
12620 if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012621 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012622fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012623done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012624if test "${ac_cv_search_connect+set}" = set; then :
12625
Alexandre Julliard28710412007-04-23 16:31:58 +020012626else
12627 ac_cv_search_connect=no
12628fi
12629rm conftest.$ac_ext
12630LIBS=$ac_func_search_save_LIBS
12631fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012633$as_echo "$ac_cv_search_connect" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012634ac_res=$ac_cv_search_connect
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012635if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012637
12638fi
12639
Alexandre Julliarde533e972006-08-15 12:11:30 +020012640
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012642$as_echo_n "checking for library containing inet_aton... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012643if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012644 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012645else
Alexandre Julliard28710412007-04-23 16:31:58 +020012646 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012648/* end confdefs.h. */
12649
12650/* Override any GCC internal prototype to avoid an error.
12651 Use char because int might match the return type of a GCC
12652 builtin and then its argument prototype would still apply. */
12653#ifdef __cplusplus
12654extern "C"
12655#endif
12656char inet_aton ();
12657int
12658main ()
12659{
12660return inet_aton ();
12661 ;
12662 return 0;
12663}
12664_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012665for ac_lib in '' resolv; do
12666 if test -z "$ac_lib"; then
12667 ac_res="none required"
12668 else
12669 ac_res=-l$ac_lib
12670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12671 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012672 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012673 ac_cv_search_inet_aton=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012674fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012675rm -f core conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext
12677 if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012678 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012679fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012680done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012681if test "${ac_cv_search_inet_aton+set}" = set; then :
12682
Alexandre Julliard28710412007-04-23 16:31:58 +020012683else
12684 ac_cv_search_inet_aton=no
12685fi
12686rm conftest.$ac_ext
12687LIBS=$ac_func_search_save_LIBS
12688fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012690$as_echo "$ac_cv_search_inet_aton" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012691ac_res=$ac_cv_search_inet_aton
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012692if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012694
12695fi
12696
Alexandre Julliarde533e972006-08-15 12:11:30 +020012697
Ben Taylor41c59962007-04-23 13:41:42 +000012698for ac_func in \
12699 getaddrinfo \
12700 getnameinfo \
12701 getnetbyname \
12702 getprotobyname \
12703 getprotobynumber \
12704 getservbyport \
12705 inet_network \
Austin English06566912009-03-28 00:13:09 -050012706 inet_ntop \
12707 inet_pton \
Ben Taylor41c59962007-04-23 13:41:42 +000012708 sendmsg \
Alexandre Julliard98bec052009-03-26 11:07:28 +010012709 socketpair \
Ben Taylor41c59962007-04-23 13:41:42 +000012710
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012711do :
12712 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12713ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12714eval as_val=\$$as_ac_var
12715 if test "x$as_val" = x""yes; then :
Ben Taylor41c59962007-04-23 13:41:42 +000012716 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012717#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Ben Taylor41c59962007-04-23 13:41:42 +000012718_ACEOF
12719
12720fi
12721done
12722
12723
Francois Gougetbcba2702008-07-10 12:36:06 +020012724LDAPLIBS=""
12725
12726if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12727then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012728 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12729"
12730if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012732$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012733if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012734 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012735else
12736 ac_check_lib_save_LIBS=$LIBS
12737LIBS="-lldap_r $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012739/* end confdefs.h. */
12740
12741/* Override any GCC internal prototype to avoid an error.
12742 Use char because int might match the return type of a GCC
12743 builtin and then its argument prototype would still apply. */
12744#ifdef __cplusplus
12745extern "C"
12746#endif
12747char ldap_initialize ();
12748int
12749main ()
12750{
12751return ldap_initialize ();
12752 ;
12753 return 0;
12754}
12755_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012756if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012757 ac_cv_lib_ldap_r_ldap_initialize=yes
12758else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012759 ac_cv_lib_ldap_r_ldap_initialize=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012760fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012761rm -f core conftest.err conftest.$ac_objext \
12762 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012763LIBS=$ac_check_lib_save_LIBS
12764fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012766$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012767if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012769$as_echo_n "checking for ber_init in -llber... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012770if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012771 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012772else
12773 ac_check_lib_save_LIBS=$LIBS
12774LIBS="-llber $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012776/* end confdefs.h. */
12777
12778/* Override any GCC internal prototype to avoid an error.
12779 Use char because int might match the return type of a GCC
12780 builtin and then its argument prototype would still apply. */
12781#ifdef __cplusplus
12782extern "C"
12783#endif
12784char ber_init ();
12785int
12786main ()
12787{
12788return ber_init ();
12789 ;
12790 return 0;
12791}
12792_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012793if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012794 ac_cv_lib_lber_ber_init=yes
12795else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012796 ac_cv_lib_lber_ber_init=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012797fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012798rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012800LIBS=$ac_check_lib_save_LIBS
12801fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012803$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012804if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012805
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012806$as_echo "#define HAVE_LDAP 1" >>confdefs.h
Francois Gougetbcba2702008-07-10 12:36:06 +020012807
12808 LDAPLIBS="-lldap_r -llber"
12809fi
12810
12811fi
12812
12813fi
12814
12815 ac_wine_check_funcs_save_LIBS="$LIBS"
12816LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Francois Gougetbcba2702008-07-10 12:36:06 +020012817for ac_func in \
12818 ldap_count_references \
12819 ldap_first_reference \
12820 ldap_next_reference \
12821 ldap_parse_reference \
12822 ldap_parse_sort_control \
12823 ldap_parse_sortresponse_control \
12824 ldap_parse_vlv_control \
12825 ldap_parse_vlvresponse_control
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012826do :
12827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12828ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12829eval as_val=\$$as_ac_var
12830 if test "x$as_val" = x""yes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012831 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012832#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Francois Gougetbcba2702008-07-10 12:36:06 +020012833_ACEOF
12834
12835fi
12836done
12837
12838LIBS="$ac_wine_check_funcs_save_LIBS"
12839fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012840if test "x$LDAPLIBS" = "x"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012841 case "x$with_ldap" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010012842 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 +020012843 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012844 *) as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12845This is an error since --with-ldap was requested." "$LINENO" 5 ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020012846esac
12847fi
12848
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010012850$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012851if test "${wine_cv_one_arg_mkdir+set}" = set; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010012852 $as_echo_n "(cached) " >&6
12853else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard921e6622008-12-22 10:39:11 +010012855/* end confdefs.h. */
12856#include <sys/stat.h>
12857int
12858main ()
12859{
12860mkdir("foo");
12861 ;
12862 return 0;
12863}
12864_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012865if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010012866 wine_cv_one_arg_mkdir=yes
12867else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012868 wine_cv_one_arg_mkdir=no
Alexandre Julliard921e6622008-12-22 10:39:11 +010012869fi
Alexandre Julliard921e6622008-12-22 10:39:11 +010012870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010012873$as_echo "$wine_cv_one_arg_mkdir" >&6; }
12874if test "$wine_cv_one_arg_mkdir" = "yes"
12875then
12876
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012877$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
Alexandre Julliard921e6622008-12-22 10:39:11 +010012878
12879fi
12880
Ben Taylor41c59962007-04-23 13:41:42 +000012881
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012883$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012884if test "${ac_cv_c_const+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012885 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012886else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012888/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012889
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012890int
12891main ()
12892{
12893/* FIXME: Include the comments suggested by Paul. */
12894#ifndef __cplusplus
12895 /* Ultrix mips cc rejects this. */
12896 typedef int charset[2];
Phil Krylovf0ca5862006-11-05 23:03:46 +030012897 const charset cs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012898 /* SunOS 4.1.1 cc rejects this. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030012899 char const *const *pcpcc;
12900 char **ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012901 /* NEC SVR4.0.2 mips cc rejects this. */
12902 struct point {int x, y;};
12903 static struct point const zero = {0,0};
12904 /* AIX XL C 1.02.0.0 rejects this.
12905 It does not let you subtract one const X* pointer from another in
12906 an arm of an if-expression whose if-part is not a constant
12907 expression */
12908 const char *g = "string";
Phil Krylovf0ca5862006-11-05 23:03:46 +030012909 pcpcc = &g + (g ? g-g : 0);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012910 /* HPUX 7.0 cc rejects these. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030012911 ++pcpcc;
12912 ppc = (char**) pcpcc;
12913 pcpcc = (char const *const *) ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012914 { /* SCO 3.2v4 cc rejects this. */
12915 char *t;
12916 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012917
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012918 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012919 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012920 }
12921 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12922 int x[] = {25, 17};
12923 const int *foo = &x[0];
12924 ++foo;
12925 }
12926 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12927 typedef const int *iptr;
12928 iptr p = 0;
12929 ++p;
12930 }
12931 { /* AIX XL C 1.02.0.0 rejects this saying
12932 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12933 struct s { int j; const int *ap[3]; };
12934 struct s *b; b->j = 5;
12935 }
12936 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12937 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012938 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012939 }
Phil Krylovf0ca5862006-11-05 23:03:46 +030012940 return !cs[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012941#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012942
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012943 ;
12944 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012945}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012946_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012947if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012948 ac_cv_c_const=yes
12949else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012950 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012951fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012953fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012955$as_echo "$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012956if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012957
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012958$as_echo "#define const /**/" >>confdefs.h
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012959
12960fi
12961
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012963$as_echo_n "checking for inline... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012964if test "${ac_cv_c_inline+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012965 $as_echo_n "(cached) " >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012966else
12967 ac_cv_c_inline=no
12968for ac_kw in inline __inline__ __inline; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012970/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012971#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012972typedef int foo_t;
12973static $ac_kw foo_t static_foo () {return 0; }
12974$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012975#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012976
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012977_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012978if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012979 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012980fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012982 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012983done
12984
12985fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012987$as_echo "$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000012988
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012989case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012990 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000012991 *)
12992 case $ac_cv_c_inline in
12993 no) ac_val=;;
12994 *) ac_val=$ac_cv_c_inline;;
12995 esac
12996 cat >>confdefs.h <<_ACEOF
12997#ifndef __cplusplus
12998#define inline $ac_val
12999#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013000_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000013001 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013002esac
13003
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013004ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13005if test "x$ac_cv_type_mode_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013006
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013007cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013008#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013009_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013010
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013011
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013012fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013013ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13014if test "x$ac_cv_type_off_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013015
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013016cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013017#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013018_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013019
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013020
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013021fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013022ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13023if test "x$ac_cv_type_pid_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013024
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013025cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013026#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013027_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013028
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013029
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013030fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013031ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13032if test "x$ac_cv_type_size_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013033
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013034cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013035#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013036_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013037
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013038
13039fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013040ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13041if test "x$ac_cv_type_ssize_t" = x""yes; then :
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013042
13043cat >>confdefs.h <<_ACEOF
13044#define HAVE_SSIZE_T 1
13045_ACEOF
13046
13047
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013048fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013049ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13050if test "x$ac_cv_type_long_long" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013051
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013052cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013053#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013054_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013055
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013056
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013057fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013058ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13059if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013060
13061cat >>confdefs.h <<_ACEOF
13062#define HAVE_FSBLKCNT_T 1
13063_ACEOF
13064
13065
13066fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013067ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13068if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013069
13070cat >>confdefs.h <<_ACEOF
13071#define HAVE_FSFILCNT_T 1
13072_ACEOF
13073
13074
13075fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013076
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013077ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
Alexandre Julliardabf50482008-10-31 12:56:53 +010013078#include <signal.h>
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013079"
13080if test "x$ac_cv_type_sigset_t" = x""yes; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013081
13082cat >>confdefs.h <<_ACEOF
13083#define HAVE_SIGSET_T 1
13084_ACEOF
13085
13086
13087fi
13088
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013089ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13090"
13091if test "x$ac_cv_type_request_sense" = x""yes; then :
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000013092
13093cat >>confdefs.h <<_ACEOF
13094#define HAVE_REQUEST_SENSE 1
13095_ACEOF
13096
13097
13098fi
13099
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013100
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013101ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
Austin English68f2db22009-01-29 08:28:37 -060013102#ifdef HAVE_SYS_SOCKET_H
13103#include <sys/socket.h>
13104#endif
13105#ifdef HAVE_SYS_SOCKETVAR_H
13106#include <sys/socketvar.h>
13107#endif
13108#ifdef HAVE_NET_ROUTE_H
13109#include <net/route.h>
13110#endif
13111#ifdef HAVE_NETINET_IN_H
13112#include <netinet/in.h>
13113#endif
13114#ifdef HAVE_NETINET_IN_SYSTM_H
13115#include <netinet/in_systm.h>
13116#endif
13117#ifdef HAVE_NETINET_IP_H
13118#include <netinet/ip.h>
13119#endif
13120#ifdef HAVE_NETINET_IN_PCB_H
13121#include <netinet/in_pcb.h>
13122#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013123"
13124if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
Austin English68f2db22009-01-29 08:28:37 -060013125
13126cat >>confdefs.h <<_ACEOF
13127#define HAVE_STRUCT_XINPGEN 1
13128_ACEOF
13129
13130
13131fi
13132
13133
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013134ac_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 +000013135#include <linux/input.h>
13136#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013137"
13138if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
Daniel Remenake491e8f2005-07-29 14:18:58 +000013139
13140cat >>confdefs.h <<_ACEOF
13141#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13142_ACEOF
13143
13144
13145fi
13146
13147
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013149$as_echo_n "checking for sigaddset... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013150if test "${wine_cv_have_sigaddset+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013151 $as_echo_n "(cached) " >&6
Paul Millar10a6c562004-12-07 17:19:54 +000013152else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013154/* end confdefs.h. */
13155#include <signal.h>
13156int
13157main ()
13158{
13159sigset_t set; sigaddset(&set,SIGTERM);
13160 ;
13161 return 0;
13162}
13163_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013164if ac_fn_c_try_link "$LINENO"; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013165 wine_cv_have_sigaddset=yes
13166else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013167 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000013168fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013169rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013171fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013173$as_echo "$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000013174if test "$wine_cv_have_sigaddset" = "yes"
13175then
13176
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013177$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
Paul Millar10a6c562004-12-07 17:19:54 +000013178
13179fi
13180
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013181
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013182{ $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 +010013183$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013184if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013185 $as_echo_n "(cached) " >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013186else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013188/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000013189#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013190int
13191main ()
13192{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013193
Ken Thomases20d9bad2007-10-19 16:18:51 -050013194 char *name=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013195 struct hostent he;
13196 struct hostent *result;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013197 char *buf=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013198 int bufsize=0;
13199 int res,errnr;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013200 char *addr=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013201 int addrlen=0;
13202 int addrtype=0;
13203 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13204 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013205
13206 ;
13207 return 0;
13208}
13209_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013210if ac_fn_c_try_link "$LINENO"; then :
Rein Klazesff7a61f2000-09-24 19:41:57 +000013211 wine_cv_linux_gethostbyname_r_6=yes
13212else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013213 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013214
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013215fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013216rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013218
13219fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013221$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000013222 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13223 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013224
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013225$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
Rein Klazesff7a61f2000-09-24 19:41:57 +000013226
13227 fi
13228
Marcus Meissner028e9a11999-08-04 15:07:56 +000013229if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013230then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013231 { $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 +010013232$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013233if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013234 $as_echo_n "(cached) " >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013235else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013237/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013238
Marcus Meissner028e9a11999-08-04 15:07:56 +000013239 #include <sys/ioctl.h>
Marcus Meissner7c434992007-04-12 12:12:05 +020013240 #include <sys/types.h>
Marcus Meissner028e9a11999-08-04 15:07:56 +000013241 #include <linux/joystick.h>
13242
13243 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013244 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13245 #error "no 2.2 header"
13246 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013247
13248int
13249main ()
13250{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013251/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013252 ;
13253 return 0;
13254}
13255_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013256if ac_fn_c_try_compile "$LINENO"; then :
Marcus Meissner028e9a11999-08-04 15:07:56 +000013257 wine_cv_linux_joystick_22_api=yes
13258else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013259 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013260fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013262
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013263fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013265$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000013266 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013267 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013268
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013269$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
Marcus Meissner028e9a11999-08-04 15:07:56 +000013270
13271 fi
13272fi
13273
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013274
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013275ac_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 +000013276#ifdef HAVE_SYS_PARAM_H
13277# include <sys/param.h>
13278#endif
Robert Millan55b74482006-02-06 21:53:27 +010013279#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013280# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013281#endif
13282#ifdef HAVE_SYS_VFS_H
13283# include <sys/vfs.h>
13284#endif
13285#ifdef HAVE_SYS_STATFS_H
13286# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013287#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013288"
13289if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013290
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013291cat >>confdefs.h <<_ACEOF
13292#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013293_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013294
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013295
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013296fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013297ac_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 +000013298#ifdef HAVE_SYS_PARAM_H
13299# include <sys/param.h>
13300#endif
Robert Millan55b74482006-02-06 21:53:27 +010013301#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013302# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013303#endif
13304#ifdef HAVE_SYS_VFS_H
13305# include <sys/vfs.h>
13306#endif
13307#ifdef HAVE_SYS_STATFS_H
13308# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013309#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013310"
13311if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
Patrik Stridvall09da9662001-07-08 22:30:50 +000013312
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013313cat >>confdefs.h <<_ACEOF
13314#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013315_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013316
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013317
Patrik Stridvall09da9662001-07-08 22:30:50 +000013318fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013319ac_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 +000013320#ifdef HAVE_SYS_PARAM_H
13321# include <sys/param.h>
13322#endif
Robert Millan55b74482006-02-06 21:53:27 +010013323#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013324# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013325#endif
13326#ifdef HAVE_SYS_VFS_H
13327# include <sys/vfs.h>
13328#endif
13329#ifdef HAVE_SYS_STATFS_H
13330# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013331#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013332"
13333if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013334
13335cat >>confdefs.h <<_ACEOF
13336#define HAVE_STRUCT_STATFS_F_FRSIZE 1
13337_ACEOF
13338
13339
13340fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013341ac_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 +000013342#ifdef HAVE_SYS_PARAM_H
13343# include <sys/param.h>
13344#endif
Robert Millan55b74482006-02-06 21:53:27 +010013345#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013346# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013347#endif
13348#ifdef HAVE_SYS_VFS_H
13349# include <sys/vfs.h>
13350#endif
13351#ifdef HAVE_SYS_STATFS_H
13352# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013353#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013354"
13355if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013356
13357cat >>confdefs.h <<_ACEOF
13358#define HAVE_STRUCT_STATFS_F_FFREE 1
13359_ACEOF
13360
13361
13362fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013363ac_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 +000013364#ifdef HAVE_SYS_PARAM_H
13365# include <sys/param.h>
13366#endif
Robert Millan55b74482006-02-06 21:53:27 +010013367#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013368# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013369#endif
13370#ifdef HAVE_SYS_VFS_H
13371# include <sys/vfs.h>
13372#endif
13373#ifdef HAVE_SYS_STATFS_H
13374# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013375#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013376"
13377if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013378
13379cat >>confdefs.h <<_ACEOF
13380#define HAVE_STRUCT_STATFS_F_FAVAIL 1
13381_ACEOF
13382
13383
13384fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013385ac_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 +000013386#ifdef HAVE_SYS_PARAM_H
13387# include <sys/param.h>
13388#endif
Robert Millan55b74482006-02-06 21:53:27 +010013389#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000013390# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013391#endif
13392#ifdef HAVE_SYS_VFS_H
13393# include <sys/vfs.h>
13394#endif
13395#ifdef HAVE_SYS_STATFS_H
13396# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013397#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013398"
13399if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
Alexandre Julliardb859a682004-03-07 03:16:43 +000013400
13401cat >>confdefs.h <<_ACEOF
13402#define HAVE_STRUCT_STATFS_F_NAMELEN 1
13403_ACEOF
13404
13405
13406fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000013407
13408
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013409ac_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 +000013410#include <sys/statvfs.h>
13411#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013412"
13413if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013414
13415cat >>confdefs.h <<_ACEOF
13416#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13417_ACEOF
13418
13419
13420fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000013421
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013422
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013423ac_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 +000013424#ifdef HAVE_SYS_SOCKET_H
13425# include <sys/socket.h>
13426#endif
13427#ifdef HAVE_SYS_UN_H
13428# include <sys/un.h>
13429#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013430"
13431if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
Juergen Lock2d33ab92000-02-13 16:03:29 +000013432
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013433cat >>confdefs.h <<_ACEOF
13434#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013435_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013436
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013437
13438fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013439ac_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 +000013440#ifdef HAVE_SYS_SOCKET_H
13441# include <sys/socket.h>
13442#endif
13443#ifdef HAVE_SYS_UN_H
13444# include <sys/un.h>
13445#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013446"
13447if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013448
13449cat >>confdefs.h <<_ACEOF
13450#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13451_ACEOF
13452
13453
13454fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013455ac_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 +000013456#ifdef HAVE_SYS_SOCKET_H
13457# include <sys/socket.h>
13458#endif
13459#ifdef HAVE_SYS_UN_H
13460# include <sys/un.h>
13461#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013462"
13463if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013464
13465cat >>confdefs.h <<_ACEOF
13466#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13467_ACEOF
13468
13469
Juergen Lock2d33ab92000-02-13 16:03:29 +000013470fi
13471
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013472
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013473ac_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 +000013474#ifdef HAVE_SCSI_SG_H
13475#include <scsi/sg.h>
13476#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013477"
13478if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013479
13480cat >>confdefs.h <<_ACEOF
13481#define HAVE_SCSIREQ_T_CMD 1
13482_ACEOF
13483
13484
13485fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013486ac_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 +000013487#ifdef HAVE_SCSI_SG_H
13488#include <scsi/sg.h>
13489#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013490"
13491if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013492
13493cat >>confdefs.h <<_ACEOF
13494#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13495_ACEOF
13496
13497
13498fi
13499
13500
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013501ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13502"
13503if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013504
13505cat >>confdefs.h <<_ACEOF
13506#define HAVE_SIGINFO_T_SI_FD 1
13507_ACEOF
13508
13509
13510fi
13511
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013512
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013513ac_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 +010013514#ifdef HAVE_SYS_MTIO_H
13515#include <sys/mtio.h>
13516#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013517"
13518if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013519
13520cat >>confdefs.h <<_ACEOF
13521#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13522_ACEOF
13523
13524
13525fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013526ac_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 +010013527#ifdef HAVE_SYS_MTIO_H
13528#include <sys/mtio.h>
13529#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013530"
13531if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013532
13533cat >>confdefs.h <<_ACEOF
13534#define HAVE_STRUCT_MTGET_MT_GSTAT 1
13535_ACEOF
13536
13537
13538fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013539ac_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 +010013540#ifdef HAVE_SYS_MTIO_H
13541#include <sys/mtio.h>
13542#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013543"
13544if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010013545
13546cat >>confdefs.h <<_ACEOF
13547#define HAVE_STRUCT_MTGET_MT_BLKNO 1
13548_ACEOF
13549
13550
13551fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013552
13553
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013554ac_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 +000013555#include <getopt.h>
13556#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013557"
13558if test "x$ac_cv_member_struct_option_name" = x""yes; then :
Alexandre Julliarddb89a542003-04-20 02:56:14 +000013559
13560cat >>confdefs.h <<_ACEOF
13561#define HAVE_STRUCT_OPTION_NAME 1
13562_ACEOF
13563
13564
13565fi
13566
13567
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013568ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13569if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
Pavel Roskind6507192003-10-03 03:28:40 +000013570
13571cat >>confdefs.h <<_ACEOF
13572#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13573_ACEOF
13574
13575
13576fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013577ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13578if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013579
13580cat >>confdefs.h <<_ACEOF
13581#define HAVE_STRUCT_STAT_ST_MTIM 1
13582_ACEOF
13583
13584
13585fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013586ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13587if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013588
13589cat >>confdefs.h <<_ACEOF
13590#define HAVE_STRUCT_STAT_ST_CTIM 1
13591_ACEOF
13592
13593
13594fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013595ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13596if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013597
13598cat >>confdefs.h <<_ACEOF
13599#define HAVE_STRUCT_STAT_ST_ATIM 1
13600_ACEOF
13601
13602
13603fi
Pavel Roskind6507192003-10-03 03:28:40 +000013604
13605
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013606ac_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 +030013607#include <sys/types.h>
13608#endif
13609#ifdef HAVE_NETINET_IN_H
13610#include <netinet/in.h>
13611#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013612"
13613if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030013614
13615cat >>confdefs.h <<_ACEOF
13616#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13617_ACEOF
13618
13619
13620fi
13621
13622
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013623ac_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 +020013624#include <sys/types.h>
13625#endif
13626#ifdef HAVE_NETINET_IN_H
13627# include <netinet/in.h>
13628#endif
13629#ifdef HAVE_ARPA_NAMESER_H
13630# include <arpa/nameser.h>
13631#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013632"
13633if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
Alexandre Julliard788e30f2006-05-31 14:43:21 +020013634
13635cat >>confdefs.h <<_ACEOF
13636#define HAVE_NS_MSG__MSG_PTR 1
13637_ACEOF
13638
13639
13640fi
13641
13642
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013643ac_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 -060013644#include <sys/types.h>
13645#endif
13646#ifdef HAVE_ALIAS_H
13647#include <alias.h>
13648#endif
13649#ifdef HAVE_SYS_SOCKET_H
13650#include <sys/socket.h>
13651#endif
13652#ifdef HAVE_SYS_SOCKETVAR_H
13653#include <sys/socketvar.h>
13654#endif
13655#ifdef HAVE_SYS_TIMEOUT_H
13656#include <sys/timeout.h>
13657#endif
13658#ifdef HAVE_NETINET_IN_H
13659#include <netinet/in.h>
13660#endif
13661#ifdef HAVE_NETINET_IN_SYSTM_H
13662#include <netinet/in_systm.h>
13663#endif
13664#ifdef HAVE_NETINET_IP_H
13665#include <netinet/ip.h>
13666#endif
13667#ifdef HAVE_NETINET_IP_VAR_H
13668#include <netinet/ip_var.h>
13669#endif
13670#ifdef HAVE_NETINET_IP_ICMP_H
13671#include <netinet/ip_icmp.h>
13672#endif
13673#ifdef HAVE_NETINET_ICMP_VAR
13674#include <netinet/icmp_var.h>
13675#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013676"
13677if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
Austin Englishac0252d2009-01-30 10:18:10 -060013678
13679cat >>confdefs.h <<_ACEOF
13680#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13681_ACEOF
13682
13683
13684fi
13685
13686
Juan Lang984c3b22010-03-12 10:38:46 -080013687ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13688#include <sys/types.h>
13689#endif
13690#ifdef HAVE_NET_IF_H
13691# include <net/if.h>
13692#endif
13693"
13694if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13695
13696cat >>confdefs.h <<_ACEOF
13697#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13698_ACEOF
13699
13700
13701fi
13702
13703
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013705$as_echo_n "checking for timezone variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013706if test "${ac_cv_have_timezone+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013707 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013708else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013710/* end confdefs.h. */
13711#include <time.h>
13712int
13713main ()
13714{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013715timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013716 ;
13717 return 0;
13718}
13719_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013720if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013721 ac_cv_have_timezone="yes"
13722else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013723 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013724fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013725rm -f core conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013727fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013729$as_echo "$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013730if test "$ac_cv_have_timezone" = "yes"
13731then
13732
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013733$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013734
13735fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013737$as_echo_n "checking for daylight variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013738if test "${ac_cv_have_daylight+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013739 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013740else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013742/* end confdefs.h. */
13743#include <time.h>
13744int
13745main ()
13746{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013747daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013748 ;
13749 return 0;
13750}
13751_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013752if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013753 ac_cv_have_daylight="yes"
13754else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013755 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013756fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013757rm -f core conftest.err conftest.$ac_objext \
13758 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013759fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013761$as_echo "$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013762if test "$ac_cv_have_daylight" = "yes"
13763then
13764
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013765$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013766
13767fi
13768
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013770$as_echo_n "checking for isinf... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013771if test "${ac_cv_have_isinf+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013772 $as_echo_n "(cached) " >&6
Petr Sumbera4992b652008-04-29 17:08:53 +020013773else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020013775/* end confdefs.h. */
13776#include <math.h>
13777int
13778main ()
13779{
Francois Gouget2fef93a2008-06-26 15:59:05 +020013780float f = 0.0; int i=isinf(f)
Petr Sumbera4992b652008-04-29 17:08:53 +020013781 ;
13782 return 0;
13783}
13784_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013785if ac_fn_c_try_link "$LINENO"; then :
Petr Sumbera4992b652008-04-29 17:08:53 +020013786 ac_cv_have_isinf="yes"
13787else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013788 ac_cv_have_isinf="no"
Petr Sumbera4992b652008-04-29 17:08:53 +020013789fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013790rm -f core conftest.err conftest.$ac_objext \
13791 conftest$ac_exeext conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020013792fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013794$as_echo "$ac_cv_have_isinf" >&6; }
Petr Sumbera4992b652008-04-29 17:08:53 +020013795if test "$ac_cv_have_isinf" = "yes"
13796then
13797
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013798$as_echo "#define HAVE_ISINF 1" >>confdefs.h
Petr Sumbera4992b652008-04-29 17:08:53 +020013799
13800fi
13801
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013803$as_echo_n "checking for isnan... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013804if test "${ac_cv_have_isnan+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013805 $as_echo_n "(cached) " >&6
Jacek Caban1715dcb2008-10-14 16:06:49 -050013806else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050013808/* end confdefs.h. */
13809#include <math.h>
13810int
13811main ()
13812{
13813float f = 0.0; int i=isnan(f)
13814 ;
13815 return 0;
13816}
13817_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013818if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban1715dcb2008-10-14 16:06:49 -050013819 ac_cv_have_isnan="yes"
13820else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013821 ac_cv_have_isnan="no"
Jacek Caban1715dcb2008-10-14 16:06:49 -050013822fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013823rm -f core conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050013825fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013827$as_echo "$ac_cv_have_isnan" >&6; }
Jacek Caban1715dcb2008-10-14 16:06:49 -050013828if test "$ac_cv_have_isnan" = "yes"
13829then
13830
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013831$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Jacek Caban1715dcb2008-10-14 16:06:49 -050013832
13833fi
13834
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013835
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013836case $host_cpu in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013837 *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 +010013838$as_echo_n "checking whether we need to define __i386__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013839if test "${ac_cv_cpp_def___i386__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013840 $as_echo_n "(cached) " >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000013841else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013843/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013844#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013845yes
13846#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013847_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013849 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013850 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013851else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013852 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013853fi
13854rm -f conftest*
13855
13856fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013858$as_echo "$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013859if test $ac_cv_cpp_def___i386__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013860 CFLAGS="$CFLAGS -D__i386__"
13861 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013862fi ;;
13863 *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 +010013864$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013865if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013866 $as_echo_n "(cached) " >&6
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013867else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013869/* end confdefs.h. */
13870#ifndef __x86_64__
13871yes
13872#endif
13873_ACEOF
13874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013875 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013876 ac_cv_cpp_def___x86_64__=yes
13877else
13878 ac_cv_cpp_def___x86_64__=no
13879fi
13880rm -f conftest*
13881
13882fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013884$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013885if test $ac_cv_cpp_def___x86_64__ = yes; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013886 CFLAGS="$CFLAGS -D__x86_64__"
13887 LINTFLAGS="$LINTFLAGS -D__x86_64__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013888fi ;;
13889 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013890$as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013891if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013892 $as_echo_n "(cached) " >&6
Steven Edwards69b67862002-12-10 22:48:48 +000013893else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013895/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000013896#ifndef __ALPHA__
13897yes
13898#endif
13899_ACEOF
13900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013901 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013902 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000013903else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013904 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000013905fi
13906rm -f conftest*
13907
13908fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013910$as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013911if test $ac_cv_cpp_def___ALPHA__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013912 CFLAGS="$CFLAGS -D__ALPHA__"
13913 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013914fi ;;
13915 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013916$as_echo_n "checking whether we need to define __sparc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013917if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013918 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013919else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013921/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013922#ifndef __sparc__
13923yes
13924#endif
13925_ACEOF
13926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013927 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013928 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013929else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013930 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013931fi
13932rm -f conftest*
13933
13934fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013936$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013937if test $ac_cv_cpp_def___sparc__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013938 CFLAGS="$CFLAGS -D__sparc__"
13939 LINTFLAGS="$LINTFLAGS -D__sparc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013940fi ;;
13941 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013942$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013943if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013944 $as_echo_n "(cached) " >&6
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013945else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013947/* end confdefs.h. */
13948#ifndef __powerpc__
13949yes
13950#endif
13951_ACEOF
13952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013953 $EGREP "yes" >/dev/null 2>&1; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013954 ac_cv_cpp_def___powerpc__=yes
13955else
13956 ac_cv_cpp_def___powerpc__=no
13957fi
13958rm -f conftest*
13959
13960fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013962$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013963if test $ac_cv_cpp_def___powerpc__ = yes; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013964 CFLAGS="$CFLAGS -D__powerpc__"
13965 LINTFLAGS="$LINTFLAGS -D__powerpc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013966fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000013967esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013968
13969case $host_vendor in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013970 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013971$as_echo_n "checking whether we need to define __sun__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013972if test "${ac_cv_cpp_def___sun__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013973 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013974else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013976/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013977#ifndef __sun__
13978yes
13979#endif
13980_ACEOF
13981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013982 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013983 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013984else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013985 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013986fi
13987rm -f conftest*
13988
13989fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013991$as_echo "$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013992if test $ac_cv_cpp_def___sun__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013993 CFLAGS="$CFLAGS -D__sun__"
13994 LINTFLAGS="$LINTFLAGS -D__sun__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013995fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000013996esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013997
13998
Alexandre Julliarda360e932008-08-20 16:02:37 +020013999
Alexandre Julliard7d831152010-03-20 15:07:45 +010014000
Alexandre Julliard6c142382010-04-11 12:47:30 +020014001
Alexandre Julliard7d831152010-03-20 15:07:45 +010014002ac_config_commands="$ac_config_commands include/stamp-h"
14003
Alexandre Julliard03642412010-03-20 15:24:22 +010014004
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014005ALL_MAKEFILE_DEPENDS="
14006# Rules automatically generated by configure
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014007
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014008.INIT: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014009.MAKEFILEDEPS:
Alexandre Julliardbd3110d2010-05-23 10:34:36 +020014010all: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014011Makefile: Makefile.in Make.rules config.status
14012 @./config.status Make.tmp Makefile"
Alexandre Julliarda360e932008-08-20 16:02:37 +020014013
Alexandre Julliardd5addea2010-02-08 21:27:54 +010014014ALL_WINETEST_DEPENDS="# Test binaries"
14015
Alexandre Julliard454fb3c2010-02-08 21:29:13 +010014016ALL_TEST_BINARIES=""
14017
Alexandre Julliard49163da2008-08-25 12:02:27 +020014018
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014019wine_fn_append_file ()
14020{
14021 as_fn_append $1 " \\$as_nl $2"
14022}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014023
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014024wine_fn_append_rule ()
14025{
14026 as_fn_append $1 "$as_nl$2"
14027}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014028
Alexandre Julliard943cd732010-03-25 21:52:56 +010014029wine_fn_all_dir_rules ()
14030{
14031 wine_fn_append_file ALL_DIRS $1
14032 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014033"__clean__: $1/__clean__
14034.PHONY: $1/__clean__
Alexandre Julliard3cc14dc2010-03-25 22:12:12 +010014035$1/__clean__: $1/Makefile
14036 @cd $1 && \$(MAKE) clean
14037 \$(RM) $1/Makefile
Alexandre Julliard18e53132010-03-25 22:00:00 +010014038$1/Makefile: $1/Makefile.in config.status $2
14039 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014040depend: $1/__depend__
14041.PHONY: $1/__depend__
Alexandre Julliard18e53132010-03-25 22:00:00 +010014042$1/__depend__: \$(MAKEDEP) dummy
Alexandre Julliard943cd732010-03-25 21:52:56 +010014043 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend"
14044}
14045
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014046wine_fn_config_makefile ()
14047{
14048 ac_dir=$1
Alexandre Julliard03642412010-03-20 15:24:22 +010014049 ac_enable=$2
Alexandre Julliard03642412010-03-20 15:24:22 +010014050 eval as_val=\$$ac_enable
14051 if test "x$as_val" = x""no; then :
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014052 return 0
14053fi
Alexandre Julliard03642412010-03-20 15:24:22 +010014054
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014055 wine_fn_all_dir_rules $ac_dir "Make.rules \$(MAKEDEP)"
14056 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014057"all: $ac_dir
14058.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014059$ac_dir: $ac_dir/Makefile dummy
14060 @cd $ac_dir && \$(MAKE)
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014061install:: $ac_dir
14062 @cd $ac_dir && \$(MAKE) install
14063install-lib:: $ac_dir
14064 @cd $ac_dir && \$(MAKE) install-lib
14065install-dev:: $ac_dir
14066 @cd $ac_dir && \$(MAKE) install-dev
14067uninstall:: $ac_dir/Makefile
14068 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014069}
14070
14071wine_fn_config_lib ()
14072{
14073 ac_name=$1
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014074 ac_dir=dlls/$ac_name
Alexandre Julliard943cd732010-03-25 21:52:56 +010014075 wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014076 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014077"all __builddeps__: $ac_dir
Alexandre Julliard7d2e7722010-07-26 12:13:47 +020014078$ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014079 @cd $ac_dir && \$(MAKE)
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014080install install-dev:: $ac_dir
14081 @cd $ac_dir && \$(MAKE) install
14082uninstall:: $ac_dir/Makefile
14083 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014084}
14085
Alexandre Julliard50231942010-03-16 22:00:02 +010014086wine_fn_config_dll ()
14087{
14088 ac_dir=$1
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014089 ac_enable=$2
14090 ac_implib=$3
14091 ac_implibsrc=$4
Alexandre Julliard50231942010-03-16 22:00:02 +010014092 ac_file="dlls/$ac_dir/lib$ac_implib"
14093 ac_deps="tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014094 ac_implibflags=""
14095
14096 case $ac_dir in
14097 *16) ac_implibflags=" -m16" ;;
14098 esac
Alexandre Julliard50231942010-03-16 22:00:02 +010014099
Alexandre Julliard943cd732010-03-25 21:52:56 +010014100 wine_fn_all_dir_rules dlls/$ac_dir "dlls/Makedll.rules \$(MAKEDEP)"
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014101
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014102 eval as_val=\$$ac_enable
14103 if test "x$as_val" = x""no; then :
14104 test "$ac_enable" != enable_win16 || return 0
14105else
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014106 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014107"all: dlls/$ac_dir
14108.PHONY: dlls/$ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014109dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ dummy
14110 @cd dlls/$ac_dir && \$(MAKE)
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014111install:: dlls/$ac_dir/Makefile __builddeps__
14112 @cd dlls/$ac_dir && \$(MAKE) install
14113install-lib:: dlls/$ac_dir/Makefile __builddeps__
14114 @cd dlls/$ac_dir && \$(MAKE) install-lib
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014115uninstall manpages htmlpages sgmlpages xmlpages:: dlls/$ac_dir/Makefile
14116 @cd dlls/$ac_dir && \$(MAKE) \$@"
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014117fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014118
14119 if test -n "$ac_implibsrc"
14120 then
14121 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014122"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014123$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
Alexandre Julliard50231942010-03-16 22:00:02 +010014124$ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014125 @cd dlls/$ac_dir && \$(MAKE) lib$ac_implib.def
14126$ac_file.$STATIC_IMPLIBEXT: dlls/$ac_dir/Makefile dummy
14127 @cd dlls/$ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014128install-dev:: dlls/$ac_dir/Makefile __builddeps__
14129 @cd dlls/$ac_dir && \$(MAKE) install-dev"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014130 if test "x$CROSSTEST_DISABLE" = x
14131 then
14132 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14133"__builddeps__: $ac_file.cross.a
14134$ac_file.cross.a: dlls/$ac_dir/Makefile dummy
14135 @cd dlls/$ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14136 fi
14137
Alexandre Julliard50231942010-03-16 22:00:02 +010014138 elif test -n "$ac_implib"
14139 then
14140 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014141"__builddeps__: $ac_file.$IMPLIBEXT
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014142$ac_file.def: dlls/$ac_dir/$ac_dir.spec \$(WINEBUILD)
14143 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(SRCDIR)/dlls/$ac_dir/$ac_dir.spec
14144$ac_file.a: dlls/$ac_dir/$ac_dir.spec \$(WINEBUILD)
14145 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(SRCDIR)/dlls/$ac_dir/$ac_dir.spec
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014146install-dev:: dlls/$ac_dir/Makefile __builddeps__
14147 @cd dlls/$ac_dir && \$(MAKE) install-dev"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014148 if test "x$CROSSTEST_DISABLE" = x
14149 then
14150 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14151"__builddeps__: $ac_file.cross.a
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014152$ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec \$(WINEBUILD)
14153 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(SRCDIR)/dlls/$ac_dir/$ac_dir.spec"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014154 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014155
14156 if test "$ac_dir" != "$ac_implib"
14157 then
14158 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014159"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014160dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
Alexandre Julliard50231942010-03-16 22:00:02 +010014161 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
Alexandre Julliard50231942010-03-16 22:00:02 +010014162clean::
14163 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014164 if test "x$CROSSTEST_DISABLE" = x
14165 then
14166 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14167"__builddeps__: dlls/lib$ac_implib.cross.a
14168dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14169 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@"
14170 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014171 fi
14172 fi
14173}
14174
14175wine_fn_config_program ()
14176{
14177 ac_dir=$1
Alexandre Julliardd394e042010-03-20 14:53:39 +010014178 ac_enable=$2
14179 ac_install=$3
Alexandre Julliard943cd732010-03-25 21:52:56 +010014180 wine_fn_all_dir_rules programs/$ac_dir "programs/Makeprog.rules \$(MAKEDEP)"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014181
Alexandre Julliardd394e042010-03-20 14:53:39 +010014182 eval as_val=\$$ac_enable
14183 if test "x$as_val" = x""no; then :
14184
14185else
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014186 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014187"all: programs/$ac_dir
14188.PHONY: programs/$ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014189programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__ dummy
14190 @cd programs/$ac_dir && \$(MAKE)"
14191
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014192 test -n "$ac_install" || return
14193 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014194"install install-lib:: programs/$ac_dir/Makefile __builddeps__
14195 @cd programs/$ac_dir && \$(MAKE) install
14196uninstall:: programs/$ac_dir/Makefile
14197 @cd programs/$ac_dir && \$(MAKE) uninstall"
Alexandre Julliard718ea422010-03-26 09:29:10 +010014198 if test "$ac_install" = installbin -a -n "$DLLEXT" -a "x$enable_tools" != xno
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014199 then
14200 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard718ea422010-03-26 09:29:10 +010014201"install install-lib:: tools \$(DESTDIR)\$(bindir)
14202 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_dir
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014203uninstall::
14204 \$(RM) \$(DESTDIR)\$(bindir)/$ac_dir"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014205 fi
Alexandre Julliardd394e042010-03-20 14:53:39 +010014206fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014207}
14208
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014209wine_fn_config_test ()
14210{
14211 ac_dir=$1
14212 ac_name=$2
14213 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14214 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14215"$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14216 cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14217$ac_name.rc:
14218 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14219$ac_name.res: $ac_name.rc $ac_name.exe"
Alexandre Julliard943cd732010-03-25 21:52:56 +010014220 wine_fn_all_dir_rules $ac_dir "Maketest.rules \$(MAKEDEP)"
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014221
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014222 if test "x$enable_tests" = x""no; then :
14223
14224else
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014225 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014226"all programs/winetest: $ac_dir
14227.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014228$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14229 @cd $ac_dir && \$(MAKE)
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014230test: $ac_dir/__test__
14231.PHONY: $ac_dir/__test__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014232$ac_dir/__test__: dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014233 @cd $ac_dir && \$(MAKE) test
14234testclean::
14235 \$(RM) $ac_dir/*.ok"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014236
14237 if test "x$CROSSTEST_DISABLE" = x
14238 then
14239 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14240"crosstest: $ac_dir/__crosstest__
14241.PHONY: $ac_dir/__crosstest__
14242$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14243 @cd $ac_dir && \$(MAKE) crosstest"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014244 fi
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014245fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014246}
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014247
14248wine_fn_config_tool ()
14249{
14250 ac_dir=$1
14251 ac_deps="Make.rules"
14252 if test "$ac_dir" != tools
14253 then
14254 ac_deps="$ac_deps \$(MAKEDEP)"
14255 fi
Alexandre Julliard943cd732010-03-25 21:52:56 +010014256 wine_fn_all_dir_rules $ac_dir "$ac_deps"
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014257
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014258 if test "x$enable_tools" = x""no; then :
14259
14260else
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014261 case $ac_dir in
14262 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14263"install:: $ac_dir
14264 @cd $ac_dir && \$(MAKE) install
14265install-lib:: $ac_dir
14266 @cd $ac_dir && \$(MAKE) install-lib
14267install-dev:: $ac_dir
14268 @cd $ac_dir && \$(MAKE) install-dev" ;;
14269 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14270"install install-dev:: $ac_dir
14271 @cd $ac_dir && \$(MAKE) install" ;;
14272 esac
14273 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14274"uninstall:: $ac_dir/Makefile
14275 @cd $ac_dir && \$(MAKE) uninstall
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014276all __tooldeps__: $ac_dir
14277.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014278$ac_dir: $ac_dir/Makefile libs/port dummy
14279 @cd $ac_dir && \$(MAKE)"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014280 case $ac_dir in
14281 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14282 esac
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014283fi
14284}
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014285
14286wine_fn_config_makerules ()
14287{
14288 ac_rules=$1
14289 ac_deps=$2
14290 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14291"$ac_rules: $ac_rules.in $ac_deps config.status
14292 @./config.status $ac_rules
14293distclean::
14294 \$(RM) $ac_rules"
14295}
14296
14297wine_fn_config_symlink ()
14298{
14299 ac_link=$1
14300 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14301"$ac_link:
14302 @./config.status $ac_link
14303distclean::
14304 \$(RM) $ac_link"
14305}
Alexandre Julliarda070f9b2010-07-26 20:53:12 +020014306
14307if test "x$CROSSTEST_DISABLE" != x
14308then
14309 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14310"crosstest:
14311 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14312fi
Alexandre Julliarda6320522010-02-03 13:14:03 +010014313ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014314test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014315if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014316ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014317test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014318fi
14319if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014320ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014321test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014322fi
14323if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014324ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014325test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014326fi
14327if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014328ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014329test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014330fi
Alexandre Julliard321d3882010-05-06 20:51:53 +020014331ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14332test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014333ac_config_links="$ac_config_links wine:tools/winewrapper"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014334wine_fn_config_symlink wine
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014335
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014336ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014337
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014338ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014339
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020014340ac_config_commands="$ac_config_commands dlls/kernel32/nls"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014341
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010014342ac_config_commands="$ac_config_commands dlls/user32/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014343
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014344ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014345
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014346ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014347
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014348
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014349wine_fn_config_makerules Make.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014350MAKE_RULES=Make.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014351ac_config_files="$ac_config_files Make.rules"
14352
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014353wine_fn_config_makerules Maketest.rules Make.rules
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010014354MAKE_TEST_RULES=Maketest.rules
14355ac_config_files="$ac_config_files Maketest.rules"
14356
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014357wine_fn_config_makerules dlls/Makedll.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014358MAKE_DLL_RULES=dlls/Makedll.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014359ac_config_files="$ac_config_files dlls/Makedll.rules"
14360
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014361wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014362MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014363ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14364
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014365wine_fn_config_makerules programs/Makeprog.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014366MAKE_PROG_RULES=programs/Makeprog.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014367ac_config_files="$ac_config_files programs/Makeprog.rules"
14368
Alexandre Julliarda360e932008-08-20 16:02:37 +020014369
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014370wine_fn_config_dll acledit enable_acledit
14371wine_fn_config_dll aclui enable_aclui aclui
14372wine_fn_config_dll activeds enable_activeds activeds
14373wine_fn_config_dll actxprxy enable_actxprxy
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014374wine_fn_config_lib adsiid
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014375wine_fn_config_dll advapi32 enable_advapi32 advapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014376wine_fn_config_test dlls/advapi32/tests advapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014377wine_fn_config_dll advpack enable_advpack advpack
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014378wine_fn_config_test dlls/advpack/tests advpack_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014379wine_fn_config_dll amstream enable_amstream
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014380wine_fn_config_test dlls/amstream/tests amstream_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014381wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14382wine_fn_config_dll atl enable_atl atl
Marcus Meissnerb3f04252010-06-15 11:04:33 +020014383wine_fn_config_test dlls/atl/tests atl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014384wine_fn_config_dll authz enable_authz
14385wine_fn_config_dll avicap32 enable_avicap32 avicap32
14386wine_fn_config_dll avifil32 enable_avifil32 avifil32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014387wine_fn_config_test dlls/avifil32/tests avifil32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014388wine_fn_config_dll avifile.dll16 enable_win16
14389wine_fn_config_dll avrt enable_avrt avrt
14390wine_fn_config_dll bcrypt enable_bcrypt
14391wine_fn_config_dll browseui enable_browseui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014392wine_fn_config_test dlls/browseui/tests browseui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014393wine_fn_config_dll cabinet enable_cabinet cabinet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014394wine_fn_config_test dlls/cabinet/tests cabinet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014395wine_fn_config_dll capi2032 enable_capi2032 capi2032
14396wine_fn_config_dll cards enable_cards cards
14397wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14398wine_fn_config_dll clusapi enable_clusapi clusapi
14399wine_fn_config_dll comcat enable_comcat
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014400wine_fn_config_test dlls/comcat/tests comcat_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014401wine_fn_config_dll comctl32 enable_comctl32 comctl32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014402wine_fn_config_test dlls/comctl32/tests comctl32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014403wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014404wine_fn_config_test dlls/comdlg32/tests comdlg32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014405wine_fn_config_dll comm.drv16 enable_win16
14406wine_fn_config_dll commdlg.dll16 enable_win16
14407wine_fn_config_dll compobj.dll16 enable_win16
14408wine_fn_config_dll compstui enable_compstui compstui
14409wine_fn_config_dll credui enable_credui credui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014410wine_fn_config_test dlls/credui/tests credui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014411wine_fn_config_dll crtdll enable_crtdll crtdll
14412wine_fn_config_dll crypt32 enable_crypt32 crypt32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014413wine_fn_config_test dlls/crypt32/tests crypt32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014414wine_fn_config_dll cryptdlg enable_cryptdlg
14415wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14416wine_fn_config_dll cryptnet enable_cryptnet cryptnet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014417wine_fn_config_test dlls/cryptnet/tests cryptnet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014418wine_fn_config_dll cryptui enable_cryptui cryptui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014419wine_fn_config_test dlls/cryptui/tests cryptui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014420wine_fn_config_dll ctapi32 enable_ctapi32
14421wine_fn_config_dll ctl3d.dll16 enable_win16
14422wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14423wine_fn_config_dll ctl3dv2.dll16 enable_win16
14424wine_fn_config_dll d3d10 enable_d3d10 d3d10
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014425wine_fn_config_test dlls/d3d10/tests d3d10_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014426wine_fn_config_dll d3d10core enable_d3d10core d3d10core
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014427wine_fn_config_test dlls/d3d10core/tests d3d10core_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014428wine_fn_config_dll d3d8 enable_d3d8 d3d8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014429wine_fn_config_test dlls/d3d8/tests d3d8_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014430wine_fn_config_dll d3d9 enable_d3d9 d3d9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014431wine_fn_config_test dlls/d3d9/tests d3d9_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014432wine_fn_config_dll d3dim enable_d3dim d3dim
14433wine_fn_config_dll d3drm enable_d3drm d3drm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014434wine_fn_config_test dlls/d3drm/tests d3drm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014435wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14436wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14437wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14438wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14439wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14440wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14441wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14442wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14443wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14444wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14445wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14446wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14447wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014448wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014449wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14450wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14451wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14452wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14453wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14454wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14455wine_fn_config_dll d3dxof enable_d3dxof d3dxof
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014456wine_fn_config_test dlls/d3dxof/tests d3dxof_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014457wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14458wine_fn_config_dll dciman32 enable_dciman32 dciman32
14459wine_fn_config_dll ddeml.dll16 enable_win16
14460wine_fn_config_dll ddraw enable_ddraw ddraw
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014461wine_fn_config_test dlls/ddraw/tests ddraw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014462wine_fn_config_dll ddrawex enable_ddrawex
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014463wine_fn_config_test dlls/ddrawex/tests ddrawex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014464wine_fn_config_dll devenum enable_devenum
14465wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014466wine_fn_config_test dlls/dinput/tests dinput_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014467wine_fn_config_dll dinput8 enable_dinput8 dinput8
14468wine_fn_config_dll dispdib.dll16 enable_win16
14469wine_fn_config_dll dispex enable_dispex
Huw Daviesdf075612010-03-19 13:34:53 +000014470wine_fn_config_test dlls/dispex/tests dispex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014471wine_fn_config_dll display.drv16 enable_win16
14472wine_fn_config_dll dmband enable_dmband
14473wine_fn_config_dll dmcompos enable_dmcompos
14474wine_fn_config_dll dmime enable_dmime
14475wine_fn_config_dll dmloader enable_dmloader
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014476wine_fn_config_test dlls/dmloader/tests dmloader_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014477wine_fn_config_dll dmscript enable_dmscript
14478wine_fn_config_dll dmstyle enable_dmstyle
14479wine_fn_config_dll dmsynth enable_dmsynth
14480wine_fn_config_dll dmusic enable_dmusic
14481wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14482wine_fn_config_dll dnsapi enable_dnsapi dnsapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014483wine_fn_config_test dlls/dnsapi/tests dnsapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014484wine_fn_config_dll dplay enable_dplay dplay
14485wine_fn_config_dll dplayx enable_dplayx dplayx
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014486wine_fn_config_test dlls/dplayx/tests dplayx_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014487wine_fn_config_dll dpnaddr enable_dpnaddr
14488wine_fn_config_dll dpnet enable_dpnet dpnet
14489wine_fn_config_dll dpnhpast enable_dpnhpast
14490wine_fn_config_dll dpnlobby enable_dpnlobby
14491wine_fn_config_dll dpwsockx enable_dpwsockx
14492wine_fn_config_dll drmclien enable_drmclien
14493wine_fn_config_dll dsound enable_dsound dsound
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014494wine_fn_config_test dlls/dsound/tests dsound_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014495wine_fn_config_dll dssenh enable_dssenh
14496wine_fn_config_dll dswave enable_dswave
14497wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14498wine_fn_config_dll dxdiagn enable_dxdiagn
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014499wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014500wine_fn_config_lib dxerr8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014501wine_fn_config_lib dxerr9
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014502wine_fn_config_dll dxgi enable_dxgi dxgi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014503wine_fn_config_test dlls/dxgi/tests dxgi_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014504wine_fn_config_lib dxguid
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014505wine_fn_config_dll faultrep enable_faultrep
14506wine_fn_config_dll fltlib enable_fltlib
14507wine_fn_config_dll fusion enable_fusion
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014508wine_fn_config_test dlls/fusion/tests fusion_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014509wine_fn_config_dll fwpuclnt enable_fwpuclnt
14510wine_fn_config_dll gdi.exe16 enable_win16
14511wine_fn_config_dll gdi32 enable_gdi32 gdi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014512wine_fn_config_test dlls/gdi32/tests gdi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014513wine_fn_config_dll gdiplus enable_gdiplus gdiplus
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014514wine_fn_config_test dlls/gdiplus/tests gdiplus_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014515wine_fn_config_dll glu32 enable_glu32 glu32
14516wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14517wine_fn_config_dll gpkcsp enable_gpkcsp
14518wine_fn_config_dll hal enable_hal
14519wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14520wine_fn_config_dll hid enable_hid hid
14521wine_fn_config_dll hlink enable_hlink hlink
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014522wine_fn_config_test dlls/hlink/tests hlink_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014523wine_fn_config_dll hnetcfg enable_hnetcfg
14524wine_fn_config_dll httpapi enable_httpapi
14525wine_fn_config_dll iccvid enable_iccvid
14526wine_fn_config_dll icmp enable_icmp
14527wine_fn_config_dll ifsmgr.vxd enable_win16
14528wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14529wine_fn_config_dll imagehlp enable_imagehlp imagehlp
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014530wine_fn_config_test dlls/imagehlp/tests imagehlp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014531wine_fn_config_dll imm.dll16 enable_win16
14532wine_fn_config_dll imm32 enable_imm32 imm32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014533wine_fn_config_test dlls/imm32/tests imm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014534wine_fn_config_dll inetcomm enable_inetcomm inetcomm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014535wine_fn_config_test dlls/inetcomm/tests inetcomm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014536wine_fn_config_dll inetmib1 enable_inetmib1
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014537wine_fn_config_test dlls/inetmib1/tests inetmib1_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014538wine_fn_config_dll infosoft enable_infosoft
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014539wine_fn_config_test dlls/infosoft/tests infosoft_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014540wine_fn_config_dll initpki enable_initpki
14541wine_fn_config_dll inkobj enable_inkobj
14542wine_fn_config_dll inseng enable_inseng
14543wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014544wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014545wine_fn_config_dll itircl enable_itircl
14546wine_fn_config_dll itss enable_itss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014547wine_fn_config_test dlls/itss/tests itss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014548wine_fn_config_dll jscript enable_jscript
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014549wine_fn_config_test dlls/jscript/tests jscript_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014550wine_fn_config_dll kernel32 enable_kernel32 kernel32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014551wine_fn_config_test dlls/kernel32/tests kernel32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014552wine_fn_config_dll keyboard.drv16 enable_win16
14553wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14554wine_fn_config_dll loadperf enable_loadperf loadperf
14555wine_fn_config_dll localspl enable_localspl
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014556wine_fn_config_test dlls/localspl/tests localspl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014557wine_fn_config_dll localui enable_localui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014558wine_fn_config_test dlls/localui/tests localui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014559wine_fn_config_dll lz32 enable_lz32 lz32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014560wine_fn_config_test dlls/lz32/tests lz32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014561wine_fn_config_dll lzexpand.dll16 enable_win16
14562wine_fn_config_dll mapi32 enable_mapi32 mapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014563wine_fn_config_test dlls/mapi32/tests mapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014564wine_fn_config_dll mapistub enable_mapistub
14565wine_fn_config_dll mciavi32 enable_mciavi32
14566wine_fn_config_dll mcicda enable_mcicda
14567wine_fn_config_dll mciqtz32 enable_mciqtz32
14568wine_fn_config_dll mciseq enable_mciseq
14569wine_fn_config_dll mciwave enable_mciwave
14570wine_fn_config_dll midimap enable_midimap
14571wine_fn_config_dll mlang enable_mlang mlang
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014572wine_fn_config_test dlls/mlang/tests mlang_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014573wine_fn_config_dll mmdevapi enable_mmdevapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014574wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014575wine_fn_config_dll mmdevldr.vxd enable_win16
14576wine_fn_config_dll mmsystem.dll16 enable_win16
14577wine_fn_config_dll monodebg.vxd enable_win16
14578wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14579wine_fn_config_dll mouse.drv16 enable_win16
14580wine_fn_config_dll mpr enable_mpr mpr
14581wine_fn_config_dll mprapi enable_mprapi mprapi
14582wine_fn_config_dll msacm.dll16 enable_win16
14583wine_fn_config_dll msacm32.drv enable_msacm32_drv
14584wine_fn_config_dll msacm32 enable_msacm32 msacm32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014585wine_fn_config_test dlls/msacm32/tests msacm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014586wine_fn_config_dll msadp32.acm enable_msadp32_acm
14587wine_fn_config_dll mscat32 enable_mscat32
14588wine_fn_config_dll mscms enable_mscms mscms
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014589wine_fn_config_test dlls/mscms/tests mscms_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014590wine_fn_config_dll mscoree enable_mscoree
14591wine_fn_config_dll msctf enable_msctf
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014592wine_fn_config_test dlls/msctf/tests msctf_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014593wine_fn_config_dll msdaps enable_msdaps
14594wine_fn_config_dll msdmo enable_msdmo msdmo
14595wine_fn_config_dll msftedit enable_msftedit
14596wine_fn_config_dll msg711.acm enable_msg711_acm
14597wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14598wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14599wine_fn_config_dll mshtml enable_mshtml mshtml
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014600wine_fn_config_test dlls/mshtml/tests mshtml_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014601wine_fn_config_dll msi enable_msi msi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014602wine_fn_config_test dlls/msi/tests msi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014603wine_fn_config_dll msimg32 enable_msimg32 msimg32
14604wine_fn_config_dll msimtf enable_msimtf
14605wine_fn_config_dll msisip enable_msisip
14606wine_fn_config_dll msisys.ocx enable_msisys_ocx
14607wine_fn_config_dll msnet32 enable_msnet32
14608wine_fn_config_dll msrle32 enable_msrle32
14609wine_fn_config_dll mssign32 enable_mssign32
14610wine_fn_config_dll mssip32 enable_mssip32
14611wine_fn_config_dll mstask enable_mstask
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014612wine_fn_config_test dlls/mstask/tests mstask_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014613wine_fn_config_dll msvcirt enable_msvcirt
Piotr Caban9ae9d262010-07-20 23:22:16 +020014614wine_fn_config_dll msvcp90 enable_msvcp90
Piotr Caband589d952010-07-20 23:24:32 +020014615wine_fn_config_test dlls/msvcp90/tests msvcp90_test
Detlef Riekenberg1434ef42010-04-30 14:07:34 +020014616wine_fn_config_dll msvcr100 enable_msvcr100
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014617wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14618wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
Piotr Cabanc4522492010-03-25 11:06:29 +010014619wine_fn_config_dll msvcr80 enable_msvcr80
14620wine_fn_config_dll msvcr90 enable_msvcr90
Detlef Riekenberg73e669c2010-03-20 00:32:17 +010014621wine_fn_config_test dlls/msvcr90/tests msvcr90_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014622wine_fn_config_dll msvcrt enable_msvcrt msvcrt
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014623wine_fn_config_test dlls/msvcrt/tests msvcrt_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014624wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14625wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14626wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014627wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014628wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014629wine_fn_config_test dlls/msvfw32/tests msvfw32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014630wine_fn_config_dll msvidc32 enable_msvidc32
14631wine_fn_config_dll msvideo.dll16 enable_win16
14632wine_fn_config_dll mswsock enable_mswsock mswsock
14633wine_fn_config_dll msxml3 enable_msxml3
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014634wine_fn_config_test dlls/msxml3/tests msxml3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014635wine_fn_config_dll msxml4 enable_msxml4
14636wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14637wine_fn_config_dll netapi32 enable_netapi32 netapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014638wine_fn_config_test dlls/netapi32/tests netapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014639wine_fn_config_dll newdev enable_newdev newdev
14640wine_fn_config_dll ntdll enable_ntdll ntdll
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014641wine_fn_config_test dlls/ntdll/tests ntdll_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014642wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014643wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014644wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14645wine_fn_config_dll ntprint enable_ntprint
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014646wine_fn_config_test dlls/ntprint/tests ntprint_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014647wine_fn_config_dll objsel enable_objsel
14648wine_fn_config_dll odbc32 enable_odbc32 odbc32
14649wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014650wine_fn_config_test dlls/odbccp32/tests odbccp32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014651wine_fn_config_dll ole2.dll16 enable_win16
14652wine_fn_config_dll ole2conv.dll16 enable_win16
14653wine_fn_config_dll ole2disp.dll16 enable_win16
14654wine_fn_config_dll ole2nls.dll16 enable_win16
14655wine_fn_config_dll ole2prox.dll16 enable_win16
14656wine_fn_config_dll ole2thk.dll16 enable_win16
14657wine_fn_config_dll ole32 enable_ole32 ole32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014658wine_fn_config_test dlls/ole32/tests ole32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014659wine_fn_config_dll oleacc enable_oleacc oleacc
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014660wine_fn_config_test dlls/oleacc/tests oleacc_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014661wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014662wine_fn_config_test dlls/oleaut32/tests oleaut32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014663wine_fn_config_dll olecli.dll16 enable_win16
14664wine_fn_config_dll olecli32 enable_olecli32 olecli32
14665wine_fn_config_dll oledb32 enable_oledb32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014666wine_fn_config_test dlls/oledb32/tests oledb32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014667wine_fn_config_dll oledlg enable_oledlg oledlg
14668wine_fn_config_dll olepro32 enable_olepro32 olepro32
14669wine_fn_config_dll olesvr.dll16 enable_win16
14670wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14671wine_fn_config_dll olethk32 enable_olethk32
14672wine_fn_config_dll openal32 enable_openal32
14673wine_fn_config_dll opengl32 enable_opengl32 opengl32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014674wine_fn_config_test dlls/opengl32/tests opengl32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014675wine_fn_config_dll pdh enable_pdh pdh
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014676wine_fn_config_test dlls/pdh/tests pdh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014677wine_fn_config_dll pidgen enable_pidgen
14678wine_fn_config_dll powrprof enable_powrprof powrprof
14679wine_fn_config_dll printui enable_printui
Andrew Nguyenc50177b2010-07-25 21:57:37 -050014680wine_fn_config_dll propsys enable_propsys propsys
Andrew Nguyenc20908b2010-07-25 21:57:59 -050014681wine_fn_config_test dlls/propsys/tests propsys_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014682wine_fn_config_dll psapi enable_psapi psapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014683wine_fn_config_test dlls/psapi/tests psapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014684wine_fn_config_dll pstorec enable_pstorec
14685wine_fn_config_dll qcap enable_qcap
14686wine_fn_config_dll qedit enable_qedit
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014687wine_fn_config_test dlls/qedit/tests qedit_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014688wine_fn_config_dll qmgr enable_qmgr
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014689wine_fn_config_test dlls/qmgr/tests qmgr_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014690wine_fn_config_dll qmgrprxy enable_qmgrprxy
14691wine_fn_config_dll quartz enable_quartz quartz
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014692wine_fn_config_test dlls/quartz/tests quartz_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014693wine_fn_config_dll query enable_query
14694wine_fn_config_dll rasapi16.dll16 enable_win16
14695wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014696wine_fn_config_test dlls/rasapi32/tests rasapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014697wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14698wine_fn_config_dll resutils enable_resutils resutils
14699wine_fn_config_dll riched20 enable_riched20 riched20
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014700wine_fn_config_test dlls/riched20/tests riched20_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014701wine_fn_config_dll riched32 enable_riched32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014702wine_fn_config_test dlls/riched32/tests riched32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014703wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014704wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014705wine_fn_config_dll rsabase enable_rsabase
14706wine_fn_config_dll rsaenh enable_rsaenh rsaenh
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014707wine_fn_config_test dlls/rsaenh/tests rsaenh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014708wine_fn_config_dll rtutils enable_rtutils rtutils
Louis Lenders1ae673f2010-05-11 22:59:22 +020014709wine_fn_config_dll samlib enable_samlib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014710wine_fn_config_dll sane.ds enable_sane_ds
14711wine_fn_config_dll sccbase enable_sccbase
14712wine_fn_config_dll schannel enable_schannel
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014713wine_fn_config_test dlls/schannel/tests schannel_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014714wine_fn_config_dll secur32 enable_secur32 secur32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014715wine_fn_config_test dlls/secur32/tests secur32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014716wine_fn_config_dll security enable_security
14717wine_fn_config_dll sensapi enable_sensapi sensapi
14718wine_fn_config_dll serialui enable_serialui serialui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014719wine_fn_config_test dlls/serialui/tests serialui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014720wine_fn_config_dll setupapi enable_setupapi setupapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014721wine_fn_config_test dlls/setupapi/tests setupapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014722wine_fn_config_dll setupx.dll16 enable_win16
14723wine_fn_config_dll sfc enable_sfc sfc
14724wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14725wine_fn_config_dll shdoclc enable_shdoclc
14726wine_fn_config_dll shdocvw enable_shdocvw shdocvw
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014727wine_fn_config_test dlls/shdocvw/tests shdocvw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014728wine_fn_config_dll shell.dll16 enable_win16
14729wine_fn_config_dll shell32 enable_shell32 shell32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014730wine_fn_config_test dlls/shell32/tests shell32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014731wine_fn_config_dll shfolder enable_shfolder shfolder
14732wine_fn_config_dll shlwapi enable_shlwapi shlwapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014733wine_fn_config_test dlls/shlwapi/tests shlwapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014734wine_fn_config_dll slbcsp enable_slbcsp
14735wine_fn_config_dll slc enable_slc slc
14736wine_fn_config_dll snmpapi enable_snmpapi snmpapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014737wine_fn_config_test dlls/snmpapi/tests snmpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014738wine_fn_config_dll softpub enable_softpub
14739wine_fn_config_dll sound.drv16 enable_win16
14740wine_fn_config_dll spoolss enable_spoolss spoolss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014741wine_fn_config_test dlls/spoolss/tests spoolss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014742wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14743wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14744wine_fn_config_dll sti enable_sti sti
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014745wine_fn_config_test dlls/sti/tests sti_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014746wine_fn_config_dll storage.dll16 enable_win16
14747wine_fn_config_dll stress.dll16 enable_win16
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014748wine_fn_config_lib strmiids
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014749wine_fn_config_dll svrapi enable_svrapi
14750wine_fn_config_dll sxs enable_sxs
14751wine_fn_config_dll system.drv16 enable_win16
14752wine_fn_config_dll t2embed enable_t2embed
14753wine_fn_config_dll tapi32 enable_tapi32 tapi32
14754wine_fn_config_dll toolhelp.dll16 enable_win16
14755wine_fn_config_dll traffic enable_traffic
14756wine_fn_config_dll twain.dll16 enable_win16
14757wine_fn_config_dll twain_32 enable_twain_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014758wine_fn_config_test dlls/twain_32/tests twain_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014759wine_fn_config_dll typelib.dll16 enable_win16
14760wine_fn_config_dll unicows enable_unicows unicows
14761wine_fn_config_dll updspapi enable_updspapi
14762wine_fn_config_dll url enable_url url
14763wine_fn_config_dll urlmon enable_urlmon urlmon
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014764wine_fn_config_test dlls/urlmon/tests urlmon_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014765wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14766wine_fn_config_dll user.exe16 enable_win16
14767wine_fn_config_dll user32 enable_user32 user32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014768wine_fn_config_test dlls/user32/tests user32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014769wine_fn_config_dll userenv enable_userenv userenv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014770wine_fn_config_test dlls/userenv/tests userenv_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014771wine_fn_config_dll usp10 enable_usp10 usp10
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014772wine_fn_config_test dlls/usp10/tests usp10_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014773wine_fn_config_lib uuid
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014774wine_fn_config_dll uxtheme enable_uxtheme uxtheme
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014775wine_fn_config_test dlls/uxtheme/tests uxtheme_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014776wine_fn_config_dll vdhcp.vxd enable_win16
14777wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14778wine_fn_config_dll ver.dll16 enable_win16
14779wine_fn_config_dll version enable_version version
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014780wine_fn_config_test dlls/version/tests version_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014781wine_fn_config_dll vmm.vxd enable_win16
14782wine_fn_config_dll vnbt.vxd enable_win16
14783wine_fn_config_dll vnetbios.vxd enable_win16
14784wine_fn_config_dll vtdapi.vxd enable_win16
14785wine_fn_config_dll vwin32.vxd enable_win16
14786wine_fn_config_dll w32skrnl enable_win16
14787wine_fn_config_dll w32sys.dll16 enable_win16
14788wine_fn_config_dll wbemprox enable_wbemprox
14789wine_fn_config_dll wiaservc enable_wiaservc
14790wine_fn_config_dll win32s16.dll16 enable_win16
14791wine_fn_config_dll win87em.dll16 enable_win16
14792wine_fn_config_dll winaspi.dll16 enable_win16
14793wine_fn_config_dll windebug.dll16 enable_win16
14794wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014795wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014796wine_fn_config_dll winealsa.drv enable_winealsa_drv
14797wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14798wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014799wine_fn_config_lib winecrt0
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014800wine_fn_config_dll wined3d enable_wined3d wined3d
14801wine_fn_config_dll wineesd.drv enable_wineesd_drv
14802wine_fn_config_dll winejack.drv enable_winejack_drv
14803wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14804wine_fn_config_dll winemapi enable_winemapi
14805wine_fn_config_dll winemp3.acm enable_winemp3_acm
14806wine_fn_config_dll winenas.drv enable_winenas_drv
14807wine_fn_config_dll wineoss.drv enable_wineoss_drv
14808wine_fn_config_dll wineps.drv enable_wineps_drv
14809wine_fn_config_dll wineps16.drv16 enable_win16
14810wine_fn_config_dll winequartz.drv enable_winequartz_drv
14811wine_fn_config_dll winex11.drv enable_winex11_drv
14812wine_fn_config_dll wing.dll16 enable_win16
14813wine_fn_config_dll wing32 enable_wing32
14814wine_fn_config_dll winhttp enable_winhttp winhttp
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014815wine_fn_config_test dlls/winhttp/tests winhttp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014816wine_fn_config_dll wininet enable_wininet wininet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014817wine_fn_config_test dlls/wininet/tests wininet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014818wine_fn_config_dll winmm enable_winmm winmm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014819wine_fn_config_test dlls/winmm/tests winmm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014820wine_fn_config_dll winnls.dll16 enable_win16
14821wine_fn_config_dll winnls32 enable_winnls32 winnls32
14822wine_fn_config_dll winscard enable_winscard winscard
14823wine_fn_config_dll winsock.dll16 enable_win16
14824wine_fn_config_dll winspool.drv enable_winspool_drv winspool
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014825wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014826wine_fn_config_dll wintab.dll16 enable_win16
14827wine_fn_config_dll wintab32 enable_wintab32 wintab32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014828wine_fn_config_test dlls/wintab32/tests wintab32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014829wine_fn_config_dll wintrust enable_wintrust wintrust
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014830wine_fn_config_test dlls/wintrust/tests wintrust_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014831wine_fn_config_dll wldap32 enable_wldap32 wldap32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014832wine_fn_config_test dlls/wldap32/tests wldap32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014833wine_fn_config_dll wmi enable_wmi
14834wine_fn_config_dll wmiutils enable_wmiutils
14835wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14836wine_fn_config_dll wow32 enable_win16 wow32
14837wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014838wine_fn_config_test dlls/ws2_32/tests ws2_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014839wine_fn_config_dll wsock32 enable_wsock32 wsock32
14840wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14841wine_fn_config_dll wuapi enable_wuapi
14842wine_fn_config_dll wuaueng enable_wuaueng
14843wine_fn_config_dll xinput1_1 enable_xinput1_1
14844wine_fn_config_dll xinput1_2 enable_xinput1_2
14845wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014846wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014847wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14848wine_fn_config_dll xmllite enable_xmllite
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014849wine_fn_config_test dlls/xmllite/tests xmllite_test
Alexandre Julliard03642412010-03-20 15:24:22 +010014850wine_fn_config_makefile documentation enable_documentation
14851wine_fn_config_makefile fonts enable_fonts
14852wine_fn_config_makefile include enable_include
14853wine_fn_config_makefile libs/port enable_libs_port
14854wine_fn_config_makefile libs/wine enable_libs_wine
14855wine_fn_config_makefile libs/wpp enable_libs_wpp
14856wine_fn_config_makefile loader enable_loader
Alexandre Julliardd394e042010-03-20 14:53:39 +010014857wine_fn_config_program attrib enable_attrib install
14858wine_fn_config_program cacls enable_cacls install
14859wine_fn_config_program clock enable_clock install
14860wine_fn_config_program cmd enable_cmd install
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014861wine_fn_config_test programs/cmd/tests cmd.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010014862wine_fn_config_program cmdlgtst enable_cmdlgtst
14863wine_fn_config_program control enable_control install
14864wine_fn_config_program dxdiag enable_dxdiag install
14865wine_fn_config_program eject enable_eject install
14866wine_fn_config_program expand enable_expand install
14867wine_fn_config_program explorer enable_explorer install
14868wine_fn_config_program extrac32 enable_extrac32 install
14869wine_fn_config_program hh enable_hh install
14870wine_fn_config_program icinfo enable_icinfo install
14871wine_fn_config_program iexplore enable_iexplore install
14872wine_fn_config_program lodctr enable_lodctr install
14873wine_fn_config_program mshta enable_mshta install
14874wine_fn_config_program msiexec enable_msiexec installbin
14875wine_fn_config_program net enable_net install
Vincent Povirk4d3e6f42010-04-02 10:19:18 -050014876wine_fn_config_program ngen enable_ngen install
Alexandre Julliardd394e042010-03-20 14:53:39 +010014877wine_fn_config_program notepad enable_notepad installbin
14878wine_fn_config_program oleview enable_oleview install
14879wine_fn_config_program ping enable_ping install
14880wine_fn_config_program progman enable_progman install
14881wine_fn_config_program reg enable_reg install
14882wine_fn_config_program regedit enable_regedit installbin
14883wine_fn_config_program regsvr32 enable_regsvr32 installbin
14884wine_fn_config_program rpcss enable_rpcss install
Detlef Riekenbergdf898ea2010-07-18 19:15:57 +020014885wine_fn_config_program rundll.exe16 enable_win16 install
Alexandre Julliardd394e042010-03-20 14:53:39 +010014886wine_fn_config_program rundll32 enable_rundll32 install
Hans Leidekker544da282010-05-03 12:56:58 +020014887wine_fn_config_program sc enable_sc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010014888wine_fn_config_program secedit enable_secedit install
14889wine_fn_config_program services enable_services install
14890wine_fn_config_program spoolsv enable_spoolsv install
14891wine_fn_config_program start enable_start install
14892wine_fn_config_program svchost enable_svchost install
14893wine_fn_config_program taskmgr enable_taskmgr install
14894wine_fn_config_program termsv enable_termsv install
14895wine_fn_config_program uninstaller enable_uninstaller install
14896wine_fn_config_program unlodctr enable_unlodctr install
14897wine_fn_config_program view enable_view
14898wine_fn_config_program wineboot enable_wineboot installbin
14899wine_fn_config_program winebrowser enable_winebrowser install
14900wine_fn_config_program winecfg enable_winecfg installbin
14901wine_fn_config_program wineconsole enable_wineconsole installbin
14902wine_fn_config_program winedbg enable_winedbg installbin
14903wine_fn_config_program winedevice enable_winedevice install
14904wine_fn_config_program winefile enable_winefile installbin
14905wine_fn_config_program winemenubuilder enable_winemenubuilder install
14906wine_fn_config_program winemine enable_winemine installbin
14907wine_fn_config_program winepath enable_winepath installbin
14908wine_fn_config_program winetest enable_winetest
14909wine_fn_config_program winevdm enable_win16 install
14910wine_fn_config_program winhelp.exe16 enable_win16 install
14911wine_fn_config_program winhlp32 enable_winhlp32 install
14912wine_fn_config_program winoldap.mod16 enable_win16 install
14913wine_fn_config_program winver enable_winver install
14914wine_fn_config_program wordpad enable_wordpad install
14915wine_fn_config_program write enable_write install
14916wine_fn_config_program xcopy enable_xcopy install
Alexandre Julliard03642412010-03-20 15:24:22 +010014917wine_fn_config_makefile server enable_server
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014918wine_fn_config_tool tools
14919wine_fn_config_tool tools/widl
14920wine_fn_config_tool tools/winebuild
14921wine_fn_config_tool tools/winedump
14922wine_fn_config_tool tools/winegcc
14923wine_fn_config_tool tools/wmc
14924wine_fn_config_tool tools/wrc
Alexandre Julliard626f4252000-11-10 23:35:20 +000014925
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014926ac_config_commands="$ac_config_commands Makefile"
14927
14928
14929ac_config_files="$ac_config_files Make.tmp:Makefile.in"
Alexandre Julliard92b57312010-03-22 20:25:30 +010014930
14931
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014932
14933if test -n "$with_wine64"
14934then
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020014935wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014936fonts server:
14937 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020014938$with_wine64/loader/wine:
14939 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014940clean::
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020014941 \$(RM) fonts server $with_wine64/loader/wine"
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014942fi
14943
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014944wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
14945 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
14946
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014947cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014948# This file is a shell script that caches the results of configure
14949# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014950# scripts and configure runs, see configure's option --config-cache.
14951# It is not useful on other systems. If it contains results you don't
14952# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014953#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014954# config.status only pays attention to the cache file if you give it
14955# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014956#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014957# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014958# loading this file, other *unset* `ac_cv_foo' will be assigned the
14959# following values.
14960
14961_ACEOF
14962
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014963# The following way of writing the cache mishandles newlines in values,
14964# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014965# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014966# Ultrix sh set writes to stderr and can't be redirected directly,
14967# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014968(
14969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14970 eval ac_val=\$$ac_var
14971 case $ac_val in #(
14972 *${as_nl}*)
14973 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014975$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014976 esac
14977 case $ac_var in #(
14978 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010014979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014980 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014981 esac ;;
14982 esac
14983 done
14984
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014985 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014986 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14987 *${as_nl}ac_space=\ *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014988 # `set' does not quote correctly, so add quotes: double-quote
14989 # substitution turns \\\\ into \\, and sed turns \\ into \.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014990 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014991 "s/'/'\\\\''/g;
14992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014993 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014994 *)
14995 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014997 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014998 esac |
14999 sort
15000) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015001 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015002 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015003 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015004 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15006 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015007 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15008 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020015009if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15010 if test -w "$cache_file"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015011 test "x$cache_file" != "x/dev/null" &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015012 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015013$as_echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015014 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015015 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015016 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015017$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015018 fi
15019fi
15020rm -f confcache
15021
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015022test "x$prefix" = xNONE && prefix=$ac_default_prefix
15023# Let make expand exec_prefix.
15024test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15025
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015026DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015027
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015028ac_libobjs=
15029ac_ltlibobjs=
15030for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15031 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015032 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015033 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015034 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15035 # will be set to the directory where LIBOBJS objects are built.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015036 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15037 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015038done
15039LIBOBJS=$ac_libobjs
15040
15041LTLIBOBJS=$ac_ltlibobjs
15042
15043
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015044
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015045: ${CONFIG_STATUS=./config.status}
Alexandre Julliardabf50482008-10-31 12:56:53 +010015046ac_write_fail=0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015047ac_clean_files_save=$ac_clean_files
15048ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015049{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015050$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015051as_write_fail=0
15052cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015053#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015054# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015055# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015056# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015057# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015058
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015059debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015060ac_cs_recheck=false
15061ac_cs_silent=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015062
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015063SHELL=\${CONFIG_SHELL-$SHELL}
15064export SHELL
15065_ASEOF
15066cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15067## -------------------- ##
15068## M4sh Initialization. ##
15069## -------------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015070
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015071# Be more Bourne compatible
15072DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015073if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015074 emulate sh
15075 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010015076 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015077 # is contrary to our usage. Disable this feature.
15078 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015079 setopt NO_GLOB_SUBST
15080else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015081 case `(set -o) 2>/dev/null` in #(
15082 *posix*) :
15083 set -o posix ;; #(
15084 *) :
15085 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015086esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015087fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015088
15089
Alexandre Julliardabf50482008-10-31 12:56:53 +010015090as_nl='
15091'
15092export as_nl
15093# Printing a long string crashes Solaris 7 /usr/bin/printf.
15094as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15095as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15096as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015097# Prefer a ksh shell builtin over an external printf program on Solaris,
15098# but without wasting forks for bash or zsh.
15099if test -z "$BASH_VERSION$ZSH_VERSION" \
15100 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15101 as_echo='print -r --'
15102 as_echo_n='print -rn --'
15103elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015104 as_echo='printf %s\n'
15105 as_echo_n='printf %s'
15106else
15107 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15108 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15109 as_echo_n='/usr/ucb/echo -n'
15110 else
15111 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15112 as_echo_n_body='eval
15113 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015114 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015115 *"$as_nl"*)
15116 expr "X$arg" : "X\\(.*\\)$as_nl";
15117 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15118 esac;
15119 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15120 '
15121 export as_echo_n_body
15122 as_echo_n='sh -c $as_echo_n_body as_echo'
15123 fi
15124 export as_echo_body
15125 as_echo='sh -c $as_echo_body as_echo'
15126fi
15127
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015128# The user is always right.
15129if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015130 PATH_SEPARATOR=:
15131 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15132 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15133 PATH_SEPARATOR=';'
15134 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015135fi
15136
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015137
15138# IFS
15139# We need space, tab and new line, in precisely that order. Quoting is
15140# there to prevent editors from complaining about space-tab.
15141# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15142# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015143IFS=" "" $as_nl"
15144
15145# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015146case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015147 *[\\/]* ) as_myself=$0 ;;
15148 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015149for as_dir in $PATH
15150do
15151 IFS=$as_save_IFS
15152 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015153 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15154 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015155IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015156
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015157 ;;
15158esac
15159# We did not find ourselves, most probably we were run as `sh COMMAND'
15160# in which case we are not to be found in the path.
15161if test "x$as_myself" = x; then
15162 as_myself=$0
15163fi
15164if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015165 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015166 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015167fi
15168
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015169# Unset variables that we do not need and which cause bugs (e.g. in
15170# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15171# suppresses any "Segmentation fault" message there. '((' could
15172# trigger a bug in pdksh 5.2.14.
15173for as_var in BASH_ENV ENV MAIL MAILPATH
15174do eval test x\${$as_var+set} = xset \
15175 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015176done
15177PS1='$ '
15178PS2='> '
15179PS4='+ '
15180
15181# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +010015182LC_ALL=C
15183export LC_ALL
15184LANGUAGE=C
15185export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015186
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015187# CDPATH.
15188(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15189
15190
15191# as_fn_error ERROR [LINENO LOG_FD]
15192# ---------------------------------
15193# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15194# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15195# script with status $?, using 1 if that was 0.
15196as_fn_error ()
15197{
15198 as_status=$?; test $as_status -eq 0 && as_status=1
15199 if test "$3"; then
15200 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15201 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15202 fi
15203 $as_echo "$as_me: error: $1" >&2
15204 as_fn_exit $as_status
15205} # as_fn_error
15206
15207
15208# as_fn_set_status STATUS
15209# -----------------------
15210# Set $? to STATUS, without forking.
15211as_fn_set_status ()
15212{
15213 return $1
15214} # as_fn_set_status
15215
15216# as_fn_exit STATUS
15217# -----------------
15218# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15219as_fn_exit ()
15220{
15221 set +e
15222 as_fn_set_status $1
15223 exit $1
15224} # as_fn_exit
15225
15226# as_fn_unset VAR
15227# ---------------
15228# Portably unset VAR.
15229as_fn_unset ()
15230{
15231 { eval $1=; unset $1;}
15232}
15233as_unset=as_fn_unset
15234# as_fn_append VAR VALUE
15235# ----------------------
15236# Append the text in VALUE to the end of the definition contained in VAR. Take
15237# advantage of any shell optimizations that allow amortized linear growth over
15238# repeated appends, instead of the typical quadratic growth present in naive
15239# implementations.
15240if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15241 eval 'as_fn_append ()
15242 {
15243 eval $1+=\$2
15244 }'
15245else
15246 as_fn_append ()
15247 {
15248 eval $1=\$$1\$2
15249 }
15250fi # as_fn_append
15251
15252# as_fn_arith ARG...
15253# ------------------
15254# Perform arithmetic evaluation on the ARGs, and store the result in the
15255# global $as_val. Take advantage of shells that can avoid forks. The arguments
15256# must be portable across $(()) and expr.
15257if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15258 eval 'as_fn_arith ()
15259 {
15260 as_val=$(( $* ))
15261 }'
15262else
15263 as_fn_arith ()
15264 {
15265 as_val=`expr "$@" || test $? -eq 1`
15266 }
15267fi # as_fn_arith
15268
15269
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015270if expr a : '\(a\)' >/dev/null 2>&1 &&
15271 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15272 as_expr=expr
15273else
15274 as_expr=false
15275fi
15276
15277if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15278 as_basename=basename
15279else
15280 as_basename=false
15281fi
15282
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015283if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15284 as_dirname=dirname
15285else
15286 as_dirname=false
15287fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015288
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015289as_me=`$as_basename -- "$0" ||
15290$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15291 X"$0" : 'X\(//\)$' \| \
15292 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010015293$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015294 sed '/^.*\/\([^/][^/]*\)\/*$/{
15295 s//\1/
15296 q
15297 }
15298 /^X\/\(\/\/\)$/{
15299 s//\1/
15300 q
15301 }
15302 /^X\/\(\/\).*/{
15303 s//\1/
15304 q
15305 }
15306 s/.*/./; q'`
15307
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015308# Avoid depending upon Character Ranges.
15309as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15310as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15311as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15312as_cr_digits='0123456789'
15313as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015314
15315ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015316case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015317-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015318 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015319 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015320 xy) ECHO_C='\c';;
15321 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15322 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015323 esac;;
15324*)
15325 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015326esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015327
15328rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015329if test -d conf$$.dir; then
15330 rm -f conf$$.dir/conf$$.file
15331else
15332 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +010015333 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015334fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015335if (echo >conf$$.file) 2>/dev/null; then
15336 if ln -s conf$$.file conf$$ 2>/dev/null; then
15337 as_ln_s='ln -s'
15338 # ... but there are two gotchas:
15339 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15340 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15341 # In both cases, we have to default to `cp -p'.
15342 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15343 as_ln_s='cp -p'
15344 elif ln conf$$.file conf$$ 2>/dev/null; then
15345 as_ln_s=ln
15346 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015347 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015348 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015349else
15350 as_ln_s='cp -p'
15351fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015352rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15353rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015354
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015355
15356# as_fn_mkdir_p
15357# -------------
15358# Create "$as_dir" as a directory, including parents if necessary.
15359as_fn_mkdir_p ()
15360{
15361
15362 case $as_dir in #(
15363 -*) as_dir=./$as_dir;;
15364 esac
15365 test -d "$as_dir" || eval $as_mkdir_p || {
15366 as_dirs=
15367 while :; do
15368 case $as_dir in #(
15369 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15370 *) as_qdir=$as_dir;;
15371 esac
15372 as_dirs="'$as_qdir' $as_dirs"
15373 as_dir=`$as_dirname -- "$as_dir" ||
15374$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15375 X"$as_dir" : 'X\(//\)[^/]' \| \
15376 X"$as_dir" : 'X\(//\)$' \| \
15377 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15378$as_echo X"$as_dir" |
15379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15380 s//\1/
15381 q
15382 }
15383 /^X\(\/\/\)[^/].*/{
15384 s//\1/
15385 q
15386 }
15387 /^X\(\/\/\)$/{
15388 s//\1/
15389 q
15390 }
15391 /^X\(\/\).*/{
15392 s//\1/
15393 q
15394 }
15395 s/.*/./; q'`
15396 test -d "$as_dir" && break
15397 done
15398 test -z "$as_dirs" || eval "mkdir $as_dirs"
15399 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15400
15401
15402} # as_fn_mkdir_p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015403if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015404 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015405else
Alexandre Julliard875927f2004-01-02 01:55:29 +000015406 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015407 as_mkdir_p=false
15408fi
15409
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015410if test -x / >/dev/null 2>&1; then
15411 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015412else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015413 if ls -dL / >/dev/null 2>&1; then
15414 as_ls_L_option=L
15415 else
15416 as_ls_L_option=
15417 fi
15418 as_test_x='
15419 eval sh -c '\''
15420 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015421 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015422 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015423 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015424 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015425 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015426 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015427 ???[sx]*):;;*)false;;esac;fi
15428 '\'' sh
15429 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015430fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015431as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015432
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015433# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015434as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015435
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015436# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015437as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015438
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015439
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015440exec 6>&1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015441## ----------------------------------- ##
15442## Main body of $CONFIG_STATUS script. ##
15443## ----------------------------------- ##
15444_ASEOF
15445test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015446
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15448# Save the log message, to keep $0 and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015449# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015450# values after options handling.
15451ac_log="
Alexandre Julliardd494bda2010-07-16 17:05:45 +020015452This file was extended by Wine $as_me 1.2, which was
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015453generated by GNU Autoconf 2.65. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015454
15455 CONFIG_FILES = $CONFIG_FILES
15456 CONFIG_HEADERS = $CONFIG_HEADERS
15457 CONFIG_LINKS = $CONFIG_LINKS
15458 CONFIG_COMMANDS = $CONFIG_COMMANDS
15459 $ $0 $@
15460
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015461on `(hostname || uname -n) 2>/dev/null | sed 1q`
15462"
15463
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015464_ACEOF
15465
Alexandre Julliardabf50482008-10-31 12:56:53 +010015466case $ac_config_files in *"
15467"*) set x $ac_config_files; shift; ac_config_files=$*;;
15468esac
15469
15470case $ac_config_headers in *"
15471"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15472esac
15473
15474
15475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015476# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015477config_files="$ac_config_files"
15478config_headers="$ac_config_headers"
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015479config_links="$ac_config_links"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015480config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015481
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015482_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015483
Alexandre Julliardabf50482008-10-31 12:56:53 +010015484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015485ac_cs_usage="\
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015486\`$as_me' instantiates files and other configuration actions
15487from templates according to the current configuration. Unless the files
15488and actions are specified as TAGs, all are instantiated by default.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015489
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015490Usage: $0 [OPTION]... [TAG]...
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015491
15492 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020015493 -V, --version print version number and configuration settings, then exit
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015494 --config print configuration, then exit
Alexandre Julliardabf50482008-10-31 12:56:53 +010015495 -q, --quiet, --silent
15496 do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015497 -d, --debug don't remove temporary files
15498 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Julliardabf50482008-10-31 12:56:53 +010015499 --file=FILE[:TEMPLATE]
15500 instantiate the configuration file FILE
15501 --header=FILE[:TEMPLATE]
15502 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015503
15504Configuration files:
15505$config_files
15506
15507Configuration headers:
15508$config_headers
15509
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015510Configuration links:
15511$config_links
15512
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015513Configuration commands:
15514$config_commands
15515
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015516Report bugs to <wine-devel@winehq.org>.
15517Wine home page: <http://www.winehq.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015518
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015519_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015521ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015522ac_cs_version="\\
Alexandre Julliardd494bda2010-07-16 17:05:45 +020015523Wine config.status 1.2
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015524configured by $0, generated by GNU Autoconf 2.65,
15525 with options \\"\$ac_cs_config\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015526
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015527Copyright (C) 2009 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015528This config.status script is free software; the Free Software Foundation
15529gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015530
15531ac_pwd='$ac_pwd'
15532srcdir='$srcdir'
15533INSTALL='$INSTALL'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015534test -n "\$AWK" || AWK=awk
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015535_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015536
Alexandre Julliardabf50482008-10-31 12:56:53 +010015537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15538# The default lists apply if the user does not specify any file.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015539ac_need_defaults=:
15540while test $# != 0
15541do
15542 case $1 in
15543 --*=*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015544 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015546 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015547 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015548 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015549 ac_option=$1
15550 ac_optarg=$2
15551 ac_shift=shift
15552 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015553 esac
15554
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015555 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015556 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15558 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015559 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Julliardabf50482008-10-31 12:56:53 +010015560 $as_echo "$ac_cs_version"; exit ;;
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015561 --config | --confi | --conf | --con | --co | --c )
15562 $as_echo "$ac_cs_config"; exit ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015563 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015564 debug=: ;;
15565 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015566 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010015567 case $ac_optarg in
15568 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15569 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015570 as_fn_append CONFIG_FILES " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015571 ac_need_defaults=false;;
15572 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015573 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010015574 case $ac_optarg in
15575 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15576 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015577 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015578 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015579 --he | --h)
15580 # Conflict between --help and --header
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015581 as_fn_error "ambiguous option: \`$1'
15582Try \`$0 --help' for more information.";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015583 --help | --hel | -h )
Alexandre Julliardabf50482008-10-31 12:56:53 +010015584 $as_echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15586 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15587 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015588
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015589 # This is an error.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015590 -*) as_fn_error "unrecognized option: \`$1'
15591Try \`$0 --help' for more information." ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015592
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015593 *) as_fn_append ac_config_targets " $1"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015594 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015595
15596 esac
15597 shift
15598done
15599
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015600ac_configure_extra_args=
15601
15602if $ac_cs_silent; then
15603 exec 6>/dev/null
15604 ac_configure_extra_args="$ac_configure_extra_args --silent"
15605fi
15606
15607_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015609if \$ac_cs_recheck; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015610 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15611 shift
15612 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15613 CONFIG_SHELL='$SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015614 export CONFIG_SHELL
Alexandre Julliardabf50482008-10-31 12:56:53 +010015615 exec "\$@"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015616fi
15617
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015618_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015620exec 5>>config.log
15621{
15622 echo
15623 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15624## Running $as_me. ##
15625_ASBOX
Alexandre Julliardabf50482008-10-31 12:56:53 +010015626 $as_echo "$ac_log"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015627} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015628
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015629_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015631#
15632# INIT-COMMANDS
15633#
15634wine_fn_output_makefile ()
15635{
15636 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
15637$ALL_MAKEFILE_DEPENDS
15638_WINE_EOF
15639 as_fn_error "could not create Makefile" "$LINENO" 5
15640}
15641
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015642_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015643
Alexandre Julliardabf50482008-10-31 12:56:53 +010015644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015645
15646# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015647for ac_config_target in $ac_config_targets
15648do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015649 case $ac_config_target in
15650 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliardc4704c22006-09-22 09:33:00 +020015651 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
Alexandre Julliarda6320522010-02-03 13:14:03 +010015652 "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 +010015653 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15654 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15655 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15656 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
Alexandre Julliard321d3882010-05-06 20:51:53 +020015657 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015658 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020015659 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15660 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020015661 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010015662 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015663 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15664 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15665 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010015666 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015667 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15668 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015669 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015670 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15671 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Makefile.in" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015672
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015673 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015674 esac
15675done
15676
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015677
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015678# If the user did not use the arguments to specify the items to instantiate,
15679# then the envvar interface is used. Set only those that are not.
15680# We use the long form for the default assignment because of an extremely
15681# bizarre bug on SunOS 4.1.3.
15682if $ac_need_defaults; then
15683 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15684 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015685 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015686 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15687fi
15688
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015689# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015690# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015691# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015692# Hook for its removal unless debugging.
15693# Note that there is a small window in which the directory will not be cleaned:
15694# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015695$debug ||
15696{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015697 tmp=
15698 trap 'exit_status=$?
15699 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15700' 0
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015701 trap 'as_fn_exit 1' 1 2 13 15
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015702}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015703# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015704
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015705{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015706 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015707 test -n "$tmp" && test -d "$tmp"
15708} ||
15709{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015710 tmp=./conf$$-$RANDOM
15711 (umask 077 && mkdir "$tmp")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015712} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015713
Alexandre Julliardabf50482008-10-31 12:56:53 +010015714# Set up the scripts for CONFIG_FILES section.
15715# No need to generate them if there are no CONFIG_FILES.
15716# This happens for instance with `./config.status config.h'.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015717if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015718
Alexandre Julliardabf50482008-10-31 12:56:53 +010015719if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15720 ac_cs_awk_getline=:
15721 ac_cs_awk_pipe_init=
15722 ac_cs_awk_read_file='
15723 while ((getline aline < (F[key])) > 0)
15724 print(aline)
15725 close(F[key])'
15726 ac_cs_awk_pipe_fini=
15727else
15728 ac_cs_awk_getline=false
15729 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15730 ac_cs_awk_read_file='
15731 print "|#_!!_#|"
15732 print "cat " F[key] " &&"
15733 '$ac_cs_awk_pipe_init
15734 # The final `:' finishes the AND list.
15735 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15736fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015737ac_cr=`echo X | tr X '\015'`
15738# On cygwin, bash can eat \r inside `` if the user requested igncr.
15739# But we know of no other shell where ac_cr would be empty at this
15740# point, so we can use a bashism as a fallback.
15741if test "x$ac_cr" = x; then
15742 eval ac_cr=\$\'\\r\'
15743fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015744ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15745if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015746 ac_cs_awk_cr='\r'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015747else
15748 ac_cs_awk_cr=$ac_cr
15749fi
15750
15751echo 'BEGIN {' >"$tmp/subs1.awk" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015752_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015753
Alexandre Julliardabf50482008-10-31 12:56:53 +010015754# Create commands to substitute file output variables.
15755{
15756 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15757 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15758 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15759 echo "_ACAWK" &&
15760 echo "_ACEOF"
15761} >conf$$files.sh &&
15762. ./conf$$files.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015763 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015764rm -f conf$$files.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015765
Alexandre Julliardabf50482008-10-31 12:56:53 +010015766{
15767 echo "cat >conf$$subs.awk <<_ACEOF" &&
15768 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15769 echo "_ACEOF"
15770} >conf$$subs.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015771 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015772ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015773ac_delim='%!_!# '
15774for ac_last_try in false false false false false :; do
Alexandre Julliardabf50482008-10-31 12:56:53 +010015775 . ./conf$$subs.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015776 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015777
Alexandre Julliardabf50482008-10-31 12:56:53 +010015778 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15779 if test $ac_delim_n = $ac_delim_num; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015780 break
15781 elif $ac_last_try; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015782 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015783 else
15784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015785 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015786done
Alexandre Julliardabf50482008-10-31 12:56:53 +010015787rm -f conf$$subs.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015788
Alexandre Julliardabf50482008-10-31 12:56:53 +010015789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15790cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015791_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015792sed -n '
15793h
15794s/^/S["/; s/!.*/"]=/
15795p
15796g
15797s/^[^!]*!//
15798:repl
15799t repl
15800s/'"$ac_delim"'$//
15801t delim
15802:nl
15803h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015804s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010015805t more1
15806s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15807p
15808n
15809b repl
15810:more1
15811s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15812p
15813g
15814s/.\{148\}//
15815t nl
15816:delim
15817h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015818s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010015819t more2
15820s/["\\]/\\&/g; s/^/"/; s/$/"/
15821p
15822b
15823:more2
15824s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15825p
15826g
15827s/.\{148\}//
15828t delim
15829' <conf$$subs.awk | sed '
15830/^[^""]/{
15831 N
15832 s/\n//
15833}
15834' >>$CONFIG_STATUS || ac_write_fail=1
15835rm -f conf$$subs.awk
15836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15837_ACAWK
15838cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15839 for (key in S) S_is_set[key] = 1
15840 FS = ""
15841 \$ac_cs_awk_pipe_init
15842}
15843{
15844 line = $ 0
15845 nfields = split(line, field, "@")
15846 substed = 0
15847 len = length(field[1])
15848 for (i = 2; i < nfields; i++) {
15849 key = field[i]
15850 keylen = length(key)
15851 if (S_is_set[key]) {
15852 value = S[key]
15853 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15854 len += length(value) + length(field[++i])
15855 substed = 1
15856 } else
15857 len += 1 + keylen
15858 }
15859 if (nfields == 3 && !substed) {
15860 key = field[2]
15861 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15862 \$ac_cs_awk_read_file
15863 next
15864 }
15865 }
15866 print line
15867}
15868\$ac_cs_awk_pipe_fini
15869_ACAWK
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015870_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15872if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15873 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15874else
15875 cat
15876fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015877 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015878_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015879
15880# VPATH may cause trouble with some makes, so we remove $(srcdir),
15881# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15882# trailing colons and then remove the whole line if VPATH becomes empty
15883# (actually we leave an empty line to preserve line numbers).
15884if test "x$srcdir" = x.; then
15885 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15886s/:*\$(srcdir):*/:/
15887s/:*\${srcdir}:*/:/
15888s/:*@srcdir@:*/:/
15889s/^\([^=]*=[ ]*\):*/\1/
15890s/:*$//
15891s/^[^=]*=[ ]*$//
15892}'
15893fi
15894
Alexandre Julliardabf50482008-10-31 12:56:53 +010015895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015896fi # test -n "$CONFIG_FILES"
15897
Alexandre Julliardabf50482008-10-31 12:56:53 +010015898# Set up the scripts for CONFIG_HEADERS section.
15899# No need to generate them if there are no CONFIG_HEADERS.
15900# This happens for instance with `./config.status Makefile'.
15901if test -n "$CONFIG_HEADERS"; then
15902cat >"$tmp/defines.awk" <<\_ACAWK ||
15903BEGIN {
15904_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015905
Alexandre Julliardabf50482008-10-31 12:56:53 +010015906# Transform confdefs.h into an awk script `defines.awk', embedded as
15907# here-document in config.status, that substitutes the proper values into
15908# config.h.in to produce config.h.
15909
15910# Create a delimiter string that does not exist in confdefs.h, to ease
15911# handling of long lines.
15912ac_delim='%!_!# '
15913for ac_last_try in false false :; do
15914 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15915 if test -z "$ac_t"; then
15916 break
15917 elif $ac_last_try; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015918 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015919 else
15920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15921 fi
15922done
15923
15924# For the awk script, D is an array of macro values keyed by name,
15925# likewise P contains macro parameters if any. Preserve backslash
15926# newline sequences.
15927
15928ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15929sed -n '
15930s/.\{148\}/&'"$ac_delim"'/g
15931t rset
15932:rset
15933s/^[ ]*#[ ]*define[ ][ ]*/ /
15934t def
15935d
15936:def
15937s/\\$//
15938t bsnl
15939s/["\\]/\\&/g
15940s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15941D["\1"]=" \3"/p
15942s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15943d
15944:bsnl
15945s/["\\]/\\&/g
15946s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15947D["\1"]=" \3\\\\\\n"\\/p
15948t cont
15949s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15950t cont
15951d
15952:cont
15953n
15954s/.\{148\}/&'"$ac_delim"'/g
15955t clear
15956:clear
15957s/\\$//
15958t bsnlc
15959s/["\\]/\\&/g; s/^/"/; s/$/"/p
15960d
15961:bsnlc
15962s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15963b cont
15964' <confdefs.h | sed '
15965s/'"$ac_delim"'/"\\\
15966"/g' >>$CONFIG_STATUS || ac_write_fail=1
15967
15968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15969 for (key in D) D_is_set[key] = 1
15970 FS = ""
15971}
15972/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15973 line = \$ 0
15974 split(line, arg, " ")
15975 if (arg[1] == "#") {
15976 defundef = arg[2]
15977 mac1 = arg[3]
15978 } else {
15979 defundef = substr(arg[1], 2)
15980 mac1 = arg[2]
15981 }
15982 split(mac1, mac2, "(") #)
15983 macro = mac2[1]
15984 prefix = substr(line, 1, index(line, defundef) - 1)
15985 if (D_is_set[macro]) {
15986 # Preserve the white space surrounding the "#".
15987 print prefix "define", macro P[macro] D[macro]
15988 next
15989 } else {
15990 # Replace #undef with comments. This is necessary, for example,
15991 # in the case of _POSIX_SOURCE, which is predefined and required
15992 # on some systems where configure will not decide to define it.
15993 if (defundef == "undef") {
15994 print "/*", prefix defundef, macro, "*/"
15995 next
15996 }
15997 }
15998}
15999{ print }
16000_ACAWK
16001_ACEOF
16002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016003 as_fn_error "could not setup config headers machinery" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016004fi # test -n "$CONFIG_HEADERS"
16005
16006
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016007eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016008shift
16009for ac_tag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016010do
16011 case $ac_tag in
16012 :[FHLC]) ac_mode=$ac_tag; continue;;
16013 esac
16014 case $ac_mode$ac_tag in
16015 :[FHL]*:*);;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016016 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016017 :[FH]-) ac_tag=-:-;;
16018 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16019 esac
16020 ac_save_IFS=$IFS
16021 IFS=:
16022 set x $ac_tag
16023 IFS=$ac_save_IFS
16024 shift
16025 ac_file=$1
16026 shift
16027
16028 case $ac_mode in
16029 :L) ac_source=$1;;
16030 :[FH])
16031 ac_file_inputs=
16032 for ac_f
16033 do
16034 case $ac_f in
16035 -) ac_f="$tmp/stdin";;
16036 *) # Look for the file first in the build tree, then in the source tree
16037 # (if the path is not absolute). The absolute path cannot be DOS-style,
16038 # because $ac_f cannot contain `:'.
16039 test -f "$ac_f" ||
16040 case $ac_f in
16041 [\\/$]*) false;;
16042 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16043 esac ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016044 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016045 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +010016046 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016047 as_fn_append ac_file_inputs " '$ac_f'"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016048 done
16049
16050 # Let's still pretend it is `configure' which instantiates (i.e., don't
16051 # use $as_me), people would be surprised to read:
16052 # /* config.h. Generated by config.status. */
Alexandre Julliardabf50482008-10-31 12:56:53 +010016053 configure_input='Generated from '`
16054 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16055 `' by configure.'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016056 if test x"$ac_file" != x-; then
16057 configure_input="$ac_file. $configure_input"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016059$as_echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016060 fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016061 # Neutralize special characters interpreted by sed in replacement strings.
16062 case $configure_input in #(
16063 *\&* | *\|* | *\\* )
16064 ac_sed_conf_input=`$as_echo "$configure_input" |
16065 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16066 *) ac_sed_conf_input=$configure_input;;
16067 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016068
16069 case $ac_tag in
Alexandre Julliardabf50482008-10-31 12:56:53 +010016070 *:-:* | *:-) cat >"$tmp/stdin" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016071 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016072 esac
16073 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016074 esac
16075
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016076 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016077$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016078 X"$ac_file" : 'X\(//\)[^/]' \| \
16079 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016080 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016081$as_echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16083 s//\1/
16084 q
16085 }
16086 /^X\(\/\/\)[^/].*/{
16087 s//\1/
16088 q
16089 }
16090 /^X\(\/\/\)$/{
16091 s//\1/
16092 q
16093 }
16094 /^X\(\/\).*/{
16095 s//\1/
16096 q
16097 }
16098 s/.*/./; q'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016099 as_dir="$ac_dir"; as_fn_mkdir_p
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016100 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016101
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016102case "$ac_dir" in
16103.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16104*)
Alexandre Julliardabf50482008-10-31 12:56:53 +010016105 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016106 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016107 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016108 case $ac_top_builddir_sub in
16109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16111 esac ;;
16112esac
16113ac_abs_top_builddir=$ac_pwd
16114ac_abs_builddir=$ac_pwd$ac_dir_suffix
16115# for backward compatibility:
16116ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016117
16118case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016119 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016120 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016121 ac_top_srcdir=$ac_top_builddir_sub
16122 ac_abs_top_srcdir=$ac_pwd ;;
16123 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016124 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016125 ac_top_srcdir=$srcdir
16126 ac_abs_top_srcdir=$srcdir ;;
16127 *) # Relative name.
16128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16129 ac_top_srcdir=$ac_top_build_prefix$srcdir
16130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016131esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016132ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000016133
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016134
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016135 case $ac_mode in
16136 :F)
16137 #
16138 # CONFIG_FILE
16139 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016140
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016141 case $INSTALL in
16142 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016143 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016144 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016145_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016146
Alexandre Julliardabf50482008-10-31 12:56:53 +010016147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016148# If the template does not know about datarootdir, expand it.
16149# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020016150ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardabf50482008-10-31 12:56:53 +010016151ac_sed_dataroot='
16152/datarootdir/ {
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016153 p
16154 q
16155}
16156/@datadir@/p
16157/@docdir@/p
16158/@infodir@/p
16159/@localedir@/p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016160/@mandir@/p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016161case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jeremy White0ebeb532006-06-20 13:18:41 +020016162*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016163*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016164 { $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 +010016165$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016166_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016168 ac_datarootdir_hack='
16169 s&@datadir@&$datadir&g
16170 s&@docdir@&$docdir&g
16171 s&@infodir@&$infodir&g
16172 s&@localedir@&$localedir&g
16173 s&@mandir@&$mandir&g
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016174 s&\\\${datarootdir}&$datarootdir&g' ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016175esac
16176_ACEOF
16177
16178# Neutralize VPATH when `$srcdir' = `.'.
16179# Shell code in configure.ac might set extrasub.
16180# FIXME: do we really want to maintain this feature?
Alexandre Julliardabf50482008-10-31 12:56:53 +010016181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16182ac_sed_extra="$ac_vpsub
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016183$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016184_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016186:t
16187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardabf50482008-10-31 12:56:53 +010016188s|@configure_input@|$ac_sed_conf_input|;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016189s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Julliardabf50482008-10-31 12:56:53 +010016190s&@top_build_prefix@&$ac_top_build_prefix&;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016191s&@srcdir@&$ac_srcdir&;t t
16192s&@abs_srcdir@&$ac_abs_srcdir&;t t
16193s&@top_srcdir@&$ac_top_srcdir&;t t
16194s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16195s&@builddir@&$ac_builddir&;t t
16196s&@abs_builddir@&$ac_abs_builddir&;t t
16197s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16198s&@INSTALL@&$ac_INSTALL&;t t
16199$ac_datarootdir_hack
Alexandre Julliardabf50482008-10-31 12:56:53 +010016200"
16201eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16202if $ac_cs_awk_getline; then
16203 $AWK -f "$tmp/subs.awk"
16204else
16205 $AWK -f "$tmp/subs.awk" | $SHELL
16206fi >$tmp/out \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016207 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016208
Jeremy White0ebeb532006-06-20 13:18:41 +020016209test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16210 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020016211 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Jeremy White0ebeb532006-06-20 13:18:41 +020016213which seems to be undefined. Please make sure it is defined." >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016214$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Jeremy White0ebeb532006-06-20 13:18:41 +020016215which seems to be undefined. Please make sure it is defined." >&2;}
16216
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016217 rm -f "$tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016218 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +010016219 -) cat "$tmp/out" && rm -f "$tmp/out";;
16220 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16221 esac \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016222 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016223 ;;
16224 :H)
16225 #
16226 # CONFIG_HEADER
16227 #
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016228 if test x"$ac_file" != x-; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016229 {
16230 $as_echo "/* $configure_input */" \
16231 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16232 } >"$tmp/config.h" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016233 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016234 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016235 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016236$as_echo "$as_me: $ac_file is unchanged" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016237 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016238 rm -f "$ac_file"
16239 mv "$tmp/config.h" "$ac_file" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016240 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016241 fi
16242 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016243 $as_echo "/* $configure_input */" \
16244 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016245 || as_fn_error "could not create -" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016246 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016247 ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016248 :L)
16249 #
16250 # CONFIG_LINK
16251 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016252
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016253 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16254 :
16255 else
16256 # Prefer the file from the source tree if names are identical.
16257 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16258 ac_source=$srcdir/$ac_source
16259 fi
16260
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16262$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16263
16264 if test ! -r "$ac_source"; then
16265 as_fn_error "$ac_source: file not found" "$LINENO" 5
16266 fi
16267 rm -f "$ac_file"
16268
16269 # Try a relative symlink, then a hard link, then a copy.
16270 case $srcdir in
16271 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16272 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16273 esac
16274 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16275 ln "$ac_source" "$ac_file" 2>/dev/null ||
16276 cp -p "$ac_source" "$ac_file" ||
16277 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16278 fi
16279 ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016280 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016281$as_echo "$as_me: executing $ac_file commands" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016282 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016283 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016284
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016285
16286 case $ac_file$ac_mode in
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016287 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
Alexandre Julliarda1c253e2010-02-11 20:26:35 +010016288 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16289$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16290 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16291$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16292 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16293$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16294 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16295$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16296 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16297$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16298 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16299$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016300 "Makefile":C) wine_fn_output_makefile Makefile ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016301
16302 esac
16303done # for ac_tag
16304
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016305
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016306as_fn_exit 0
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016307_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016308ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016309
Alexandre Julliardabf50482008-10-31 12:56:53 +010016310test $ac_write_fail = 0 ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016311 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016312
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016313
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016314# configure is writing to config.log, and then calls config.status.
16315# config.status does its own redirection, appending to config.log.
16316# Unfortunately, on DOS this fails, as config.log is still kept open
16317# by configure, so config.status won't be able to write to it; its
16318# output is simply discarded. So we exec the FD to /dev/null,
16319# effectively closing config.log, so it can be properly (re)opened and
16320# appended to by config.status. When coming back to configure, we
16321# need to make the FD available again.
16322if test "$no_create" != yes; then
16323 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016324 ac_config_status_args=
16325 test "$silent" = yes &&
16326 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016327 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016329 exec 5>>config.log
16330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16331 # would make configure fail if this is the last instruction.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016332 $ac_cs_success || as_fn_exit $?
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016333fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016334if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016336$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16337fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016338
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016339
Alexandre Julliarde3bd1112006-09-21 11:14:38 +020016340if test "$no_create" = "yes"
16341then
16342 exit 0
16343fi
16344
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016345ac_save_IFS="$IFS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016346if test "x$wine_notices != "x; then
16347 echo >&6
Rafał Mużyło4736c992008-10-20 21:43:21 +020016348 IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016349 for msg in $wine_notices; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016350 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016351 if test -n "$msg"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016352 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016353$as_echo "$as_me: $msg" >&6;}
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016354 fi
16355 done
16356fi
Rafał Mużyło4736c992008-10-20 21:43:21 +020016357IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016358for msg in $wine_warnings; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016359 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016360 if test -n "$msg"; then
16361 echo >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016363$as_echo "$as_me: WARNING: $msg" >&2;}
Detlef Riekenberge84a3822006-08-21 05:28:17 +020016364 fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016365done
16366IFS="$ac_save_IFS"
Francois Gouget99d026f2005-03-19 17:08:18 +000016367
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016368echo "
Alexandre Julliard64362ac2010-02-23 13:33:52 +010016369$as_me: Finished. Do '${ac_make}' to compile Wine.
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016370" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016371