winhttp/tests: Move the remaining tests to test.winehq.org.
[wine/multimedia.git] / configure
blob4e999a9d99cab32b7ffefe8104a804c9dee2a76a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.11.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.7.11'
584 PACKAGE_STRING='Wine 1.7.11'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 LINGUAS
628 ALL_VARS_RULES
629 LDAP_LIBS
630 RT_LIBS
631 POLL_LIBS
632 DL_LIBS
633 TOOLSEXT
634 UNWINDFLAGS
635 BUILTINFLAG
636 EXTRACFLAGS
637 PROCSTAT_LIBS
638 KSTAT_LIBS
639 MPG123_LIBS
640 MPG123_CFLAGS
641 TIFF_LIBS
642 TIFF_CFLAGS
643 PNG_LIBS
644 PNG_CFLAGS
645 JPEG_LIBS
646 JPEG_CFLAGS
647 FONTCONFIG_LIBS
648 FONTCONFIG_CFLAGS
649 CUPS_CFLAGS
650 CAPI20_LIBS
651 CAPI20_CFLAGS
652 OSS4_CFLAGS
653 ALSA_LIBS
654 GSTREAMER_LIBS
655 GSTREAMER_CFLAGS
656 GETTEXTPO_LIBS
657 Z_LIBS
658 FREETYPE_LIBS
659 FREETYPE_CFLAGS
660 LCMS2_LIBS
661 LCMS2_CFLAGS
662 RESOLV_LIBS
663 GPHOTO2_PORT_LIBS
664 GPHOTO2_PORT_CFLAGS
665 GPHOTO2_LIBS
666 GPHOTO2_CFLAGS
667 SANE_LIBS
668 SANE_CFLAGS
669 GNUTLS_LIBS
670 GNUTLS_CFLAGS
671 HAL_LIBS
672 HAL_CFLAGS
673 DBUS_LIBS
674 DBUS_CFLAGS
675 XSLT_LIBS
676 XSLT_CFLAGS
677 XML2_LIBS
678 XML2_CFLAGS
679 X_EXTRA_LIBS
680 X_LIBS
681 X_PRE_LIBS
682 X_CFLAGS
683 XMKMF
684 PTHREAD_LIBS
685 CROSSCC
686 CROSSTARGET
687 PRELINK
688 CARBON_LIBS
689 QUICKTIME_LIBS
690 OPENCL_LIBS
691 OPENAL_LIBS
692 COREAUDIO_LIBS
693 SECURITY_LIBS
694 DISKARBITRATION_LIBS
695 APPKIT_LIBS
696 CORESERVICES_LIBS
697 APPLICATIONSERVICES_LIBS
698 FORCEFEEDBACK_LIBS
699 IOKIT_LIBS
700 COREFOUNDATION_LIBS
701 LIBWINE_RULES
702 SOCKET_LIBS
703 DLLTOOL
704 LOADER_RULES
705 ALL_TEST_RESOURCES
706 READELF
708 LDRPATH_LOCAL
709 LDRPATH_INSTALL
710 DLLFLAGS
711 DLLPREFIX
712 dlldir
714 OPENGL_LIBS
715 ICOTOOL
716 CONVERT
717 RSVG
718 FONTFORGE
719 PKG_CONFIG
720 MSGFMT
721 LDCONFIG
722 EGREP
723 GREP
724 LN_S
725 RANLIB
726 ARFLAGS
727 STRIP
728 ac_ct_AR
730 BISON
731 FLEX
732 TOOLSDIR
733 TARGETFLAGS
734 CPPBIN
735 ac_ct_CXX
736 CXXFLAGS
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
745 SET_MAKE
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_win16
796 enable_win64
797 enable_tests
798 enable_maintainer_mode
799 with_alsa
800 with_capi
801 with_cms
802 with_coreaudio
803 with_cups
804 with_curses
805 with_dbus
806 with_fontconfig
807 with_freetype
808 with_gettext
809 with_gettextpo
810 with_gphoto
811 with_glu
812 with_gnutls
813 with_gsm
814 with_gstreamer
815 with_hal
816 with_jpeg
817 with_ldap
818 with_mpg123
819 with_netapi
820 with_openal
821 with_opencl
822 with_opengl
823 with_osmesa
824 with_oss
825 with_png
826 with_pthread
827 with_sane
828 with_tiff
829 with_v4l
830 with_xcomposite
831 with_xcursor
832 with_xinerama
833 with_xinput
834 with_xinput2
835 with_xml
836 with_xrandr
837 with_xrender
838 with_xshape
839 with_xshm
840 with_xslt
841 with_xxf86vm
842 with_zlib
843 with_wine_tools
844 with_wine64
845 enable_largefile
846 with_x
847 enable_acledit
848 enable_aclui
849 enable_activeds
850 enable_actxprxy
851 enable_advapi32
852 enable_advpack
853 enable_amstream
854 enable_api_ms_win_core_com_l1_1_0
855 enable_api_ms_win_core_console_l1_1_0
856 enable_api_ms_win_core_debug_l1_1_1
857 enable_api_ms_win_core_errorhandling_l1_1_1
858 enable_api_ms_win_core_file_l1_2_0
859 enable_api_ms_win_core_handle_l1_1_0
860 enable_api_ms_win_core_heap_l1_2_0
861 enable_api_ms_win_core_heap_obsolete_l1_1_0
862 enable_api_ms_win_core_interlocked_l1_2_0
863 enable_api_ms_win_core_io_l1_1_1
864 enable_api_ms_win_core_kernel32_legacy_l1_1_0
865 enable_api_ms_win_core_libraryloader_l1_1_1
866 enable_api_ms_win_core_localization_l1_2_0
867 enable_api_ms_win_core_localization_obsolete_l1_1_0
868 enable_api_ms_win_core_localregistry_l1_1_0
869 enable_api_ms_win_core_memory_l1_1_1
870 enable_api_ms_win_core_namedpipe_l1_2_0
871 enable_api_ms_win_core_processenvironment_l1_2_0
872 enable_api_ms_win_core_processthreads_l1_1_0
873 enable_api_ms_win_core_processthreads_l1_1_1
874 enable_api_ms_win_core_profile_l1_1_0
875 enable_api_ms_win_core_psapi_l1_1_0
876 enable_api_ms_win_core_registry_l1_1_0
877 enable_api_ms_win_core_string_l1_1_0
878 enable_api_ms_win_core_synch_l1_2_0
879 enable_api_ms_win_core_sysinfo_l1_2_0
880 enable_api_ms_win_core_util_l1_1_0
881 enable_api_ms_win_core_winrt_error_l1_1_0
882 enable_api_ms_win_core_winrt_string_l1_1_0
883 enable_api_ms_win_downlevel_advapi32_l1_1_0
884 enable_api_ms_win_downlevel_advapi32_l2_1_0
885 enable_api_ms_win_downlevel_normaliz_l1_1_0
886 enable_api_ms_win_downlevel_ole32_l1_1_0
887 enable_api_ms_win_downlevel_shell32_l1_1_0
888 enable_api_ms_win_downlevel_shlwapi_l1_1_0
889 enable_api_ms_win_downlevel_shlwapi_l2_1_0
890 enable_api_ms_win_downlevel_user32_l1_1_0
891 enable_api_ms_win_downlevel_version_l1_1_0
892 enable_api_ms_win_ntuser_dc_access_l1_1_0
893 enable_api_ms_win_security_base_l1_1_0
894 enable_apphelp
895 enable_appwiz_cpl
896 enable_atl
897 enable_atl100
898 enable_atl110
899 enable_atl80
900 enable_atl90
901 enable_authz
902 enable_avicap32
903 enable_avifil32
904 enable_avrt
905 enable_bcrypt
906 enable_browseui
907 enable_cabinet
908 enable_capi2032
909 enable_cards
910 enable_cfgmgr32
911 enable_clusapi
912 enable_comcat
913 enable_comctl32
914 enable_comdlg32
915 enable_compstui
916 enable_comsvcs
917 enable_credui
918 enable_crtdll
919 enable_crypt32
920 enable_cryptdlg
921 enable_cryptdll
922 enable_cryptnet
923 enable_cryptui
924 enable_ctapi32
925 enable_ctl3d32
926 enable_d3d10
927 enable_d3d10core
928 enable_d3d11
929 enable_d3d8
930 enable_d3d9
931 enable_d3dcompiler_33
932 enable_d3dcompiler_34
933 enable_d3dcompiler_35
934 enable_d3dcompiler_36
935 enable_d3dcompiler_37
936 enable_d3dcompiler_38
937 enable_d3dcompiler_39
938 enable_d3dcompiler_40
939 enable_d3dcompiler_41
940 enable_d3dcompiler_42
941 enable_d3dcompiler_43
942 enable_d3dim
943 enable_d3drm
944 enable_d3dx10_33
945 enable_d3dx10_34
946 enable_d3dx10_35
947 enable_d3dx10_36
948 enable_d3dx10_37
949 enable_d3dx10_38
950 enable_d3dx10_39
951 enable_d3dx10_40
952 enable_d3dx10_41
953 enable_d3dx10_42
954 enable_d3dx10_43
955 enable_d3dx11_42
956 enable_d3dx11_43
957 enable_d3dx9_24
958 enable_d3dx9_25
959 enable_d3dx9_26
960 enable_d3dx9_27
961 enable_d3dx9_28
962 enable_d3dx9_29
963 enable_d3dx9_30
964 enable_d3dx9_31
965 enable_d3dx9_32
966 enable_d3dx9_33
967 enable_d3dx9_34
968 enable_d3dx9_35
969 enable_d3dx9_36
970 enable_d3dx9_37
971 enable_d3dx9_38
972 enable_d3dx9_39
973 enable_d3dx9_40
974 enable_d3dx9_41
975 enable_d3dx9_42
976 enable_d3dx9_43
977 enable_d3dxof
978 enable_dbgeng
979 enable_dbghelp
980 enable_dciman32
981 enable_ddraw
982 enable_ddrawex
983 enable_devenum
984 enable_dhcpcsvc
985 enable_difxapi
986 enable_dinput
987 enable_dinput8
988 enable_dispex
989 enable_dmband
990 enable_dmcompos
991 enable_dmime
992 enable_dmloader
993 enable_dmscript
994 enable_dmstyle
995 enable_dmsynth
996 enable_dmusic
997 enable_dmusic32
998 enable_dnsapi
999 enable_dplay
1000 enable_dplayx
1001 enable_dpnaddr
1002 enable_dpnet
1003 enable_dpnhpast
1004 enable_dpnlobby
1005 enable_dpwsockx
1006 enable_drmclien
1007 enable_dsound
1008 enable_dssenh
1009 enable_dswave
1010 enable_dwmapi
1011 enable_dwrite
1012 enable_dxdiagn
1013 enable_dxgi
1014 enable_explorerframe
1015 enable_ext_ms_win_gdi_devcaps_l1_1_0
1016 enable_faultrep
1017 enable_fltlib
1018 enable_fusion
1019 enable_fwpuclnt
1020 enable_gameux
1021 enable_gdi32
1022 enable_gdiplus
1023 enable_glu32
1024 enable_gphoto2_ds
1025 enable_gpkcsp
1026 enable_hal
1027 enable_hhctrl_ocx
1028 enable_hid
1029 enable_hlink
1030 enable_hnetcfg
1031 enable_httpapi
1032 enable_iccvid
1033 enable_icmp
1034 enable_ieframe
1035 enable_imaadp32_acm
1036 enable_imagehlp
1037 enable_imm32
1038 enable_inetcomm
1039 enable_inetcpl_cpl
1040 enable_inetmib1
1041 enable_infosoft
1042 enable_initpki
1043 enable_inkobj
1044 enable_inseng
1045 enable_iphlpapi
1046 enable_itircl
1047 enable_itss
1048 enable_joy_cpl
1049 enable_jscript
1050 enable_kernel32
1051 enable_ktmw32
1052 enable_loadperf
1053 enable_localspl
1054 enable_localui
1055 enable_lz32
1056 enable_mapi32
1057 enable_mapistub
1058 enable_mciavi32
1059 enable_mcicda
1060 enable_mciqtz32
1061 enable_mciseq
1062 enable_mciwave
1063 enable_mgmtapi
1064 enable_midimap
1065 enable_mlang
1066 enable_mmcndmgr
1067 enable_mmdevapi
1068 enable_mountmgr_sys
1069 enable_mpr
1070 enable_mprapi
1071 enable_msacm32_drv
1072 enable_msacm32
1073 enable_msadp32_acm
1074 enable_mscat32
1075 enable_mscms
1076 enable_mscoree
1077 enable_msctf
1078 enable_msdaps
1079 enable_msdmo
1080 enable_msftedit
1081 enable_msg711_acm
1082 enable_msgsm32_acm
1083 enable_mshtml_tlb
1084 enable_mshtml
1085 enable_msi
1086 enable_msident
1087 enable_msimg32
1088 enable_msimsg
1089 enable_msimtf
1090 enable_msisip
1091 enable_msisys_ocx
1092 enable_msls31
1093 enable_msnet32
1094 enable_mspatcha
1095 enable_msrle32
1096 enable_mssign32
1097 enable_mssip32
1098 enable_mstask
1099 enable_msvcirt
1100 enable_msvcm80
1101 enable_msvcm90
1102 enable_msvcp100
1103 enable_msvcp110
1104 enable_msvcp60
1105 enable_msvcp70
1106 enable_msvcp71
1107 enable_msvcp80
1108 enable_msvcp90
1109 enable_msvcr100
1110 enable_msvcr110
1111 enable_msvcr70
1112 enable_msvcr71
1113 enable_msvcr80
1114 enable_msvcr90
1115 enable_msvcrt
1116 enable_msvcrt20
1117 enable_msvcrt40
1118 enable_msvcrtd
1119 enable_msvfw32
1120 enable_msvidc32
1121 enable_mswsock
1122 enable_msxml
1123 enable_msxml2
1124 enable_msxml3
1125 enable_msxml4
1126 enable_msxml6
1127 enable_nddeapi
1128 enable_netapi32
1129 enable_netcfgx
1130 enable_newdev
1131 enable_normaliz
1132 enable_npmshtml
1133 enable_ntdll
1134 enable_ntdsapi
1135 enable_ntoskrnl_exe
1136 enable_ntprint
1137 enable_objsel
1138 enable_odbc32
1139 enable_odbccp32
1140 enable_odbccu32
1141 enable_ole32
1142 enable_oleacc
1143 enable_oleaut32
1144 enable_olecli32
1145 enable_oledb32
1146 enable_oledlg
1147 enable_olepro32
1148 enable_olesvr32
1149 enable_olethk32
1150 enable_openal32
1151 enable_opencl
1152 enable_opengl32
1153 enable_pdh
1154 enable_photometadatahandler
1155 enable_pidgen
1156 enable_powrprof
1157 enable_printui
1158 enable_propsys
1159 enable_psapi
1160 enable_pstorec
1161 enable_qcap
1162 enable_qedit
1163 enable_qmgr
1164 enable_qmgrprxy
1165 enable_quartz
1166 enable_query
1167 enable_rasapi32
1168 enable_rasdlg
1169 enable_regapi
1170 enable_resutils
1171 enable_riched20
1172 enable_riched32
1173 enable_rpcrt4
1174 enable_rsabase
1175 enable_rsaenh
1176 enable_rstrtmgr
1177 enable_rtutils
1178 enable_samlib
1179 enable_sane_ds
1180 enable_scarddlg
1181 enable_sccbase
1182 enable_schannel
1183 enable_scrrun
1184 enable_scsiport_sys
1185 enable_secur32
1186 enable_security
1187 enable_sensapi
1188 enable_serialui
1189 enable_setupapi
1190 enable_sfc
1191 enable_sfc_os
1192 enable_shdoclc
1193 enable_shdocvw
1194 enable_shell32
1195 enable_shfolder
1196 enable_shlwapi
1197 enable_slbcsp
1198 enable_slc
1199 enable_snmpapi
1200 enable_softpub
1201 enable_spoolss
1202 enable_stdole2_tlb
1203 enable_stdole32_tlb
1204 enable_sti
1205 enable_svrapi
1206 enable_sxs
1207 enable_t2embed
1208 enable_tapi32
1209 enable_taskschd
1210 enable_traffic
1211 enable_twain_32
1212 enable_unicows
1213 enable_updspapi
1214 enable_url
1215 enable_urlmon
1216 enable_usbd_sys
1217 enable_user32
1218 enable_userenv
1219 enable_usp10
1220 enable_uxtheme
1221 enable_vbscript
1222 enable_vcomp
1223 enable_vcomp100
1224 enable_vcomp90
1225 enable_vdmdbg
1226 enable_version
1227 enable_wbemdisp
1228 enable_wbemprox
1229 enable_webservices
1230 enable_wer
1231 enable_wevtapi
1232 enable_wiaservc
1233 enable_windowscodecs
1234 enable_windowscodecsext
1235 enable_winealsa_drv
1236 enable_winecoreaudio_drv
1237 enable_wined3d
1238 enable_winegstreamer
1239 enable_winejoystick_drv
1240 enable_winemac_drv
1241 enable_winemapi
1242 enable_winemp3_acm
1243 enable_wineoss_drv
1244 enable_wineps_drv
1245 enable_wineqtdecoder
1246 enable_winex11_drv
1247 enable_wing32
1248 enable_winhttp
1249 enable_wininet
1250 enable_winmm
1251 enable_winnls32
1252 enable_winscard
1253 enable_winspool_drv
1254 enable_winsta
1255 enable_wintab32
1256 enable_wintrust
1257 enable_wlanapi
1258 enable_wldap32
1259 enable_wmi
1260 enable_wmiutils
1261 enable_wmp
1262 enable_wmvcore
1263 enable_wnaspi32
1264 enable_ws2_32
1265 enable_wshom_ocx
1266 enable_wsnmp32
1267 enable_wsock32
1268 enable_wtsapi32
1269 enable_wuapi
1270 enable_wuaueng
1271 enable_xapofx1_1
1272 enable_xinput1_1
1273 enable_xinput1_2
1274 enable_xinput1_3
1275 enable_xinput1_4
1276 enable_xinput9_1_0
1277 enable_xmllite
1278 enable_xolehlp
1279 enable_xpsprint
1280 enable_xpssvcs
1281 enable_documentation
1282 enable_fonts
1283 enable_include
1284 enable_libs_port
1285 enable_libs_wine
1286 enable_libs_wpp
1287 enable_loader
1288 enable_arp
1289 enable_aspnet_regiis
1290 enable_attrib
1291 enable_cabarc
1292 enable_cacls
1293 enable_clock
1294 enable_cmd
1295 enable_conhost
1296 enable_control
1297 enable_cscript
1298 enable_dxdiag
1299 enable_eject
1300 enable_expand
1301 enable_explorer
1302 enable_extrac32
1303 enable_findstr
1304 enable_hh
1305 enable_hostname
1306 enable_icinfo
1307 enable_iexplore
1308 enable_ipconfig
1309 enable_lodctr
1310 enable_mofcomp
1311 enable_mshta
1312 enable_msiexec
1313 enable_net
1314 enable_netsh
1315 enable_netstat
1316 enable_ngen
1317 enable_notepad
1318 enable_oleview
1319 enable_ping
1320 enable_plugplay
1321 enable_presentationfontcache
1322 enable_progman
1323 enable_reg
1324 enable_regasm
1325 enable_regedit
1326 enable_regsvcs
1327 enable_regsvr32
1328 enable_rpcss
1329 enable_rundll32
1330 enable_sc
1331 enable_schtasks
1332 enable_secedit
1333 enable_servicemodelreg
1334 enable_services
1335 enable_spoolsv
1336 enable_start
1337 enable_svchost
1338 enable_taskkill
1339 enable_tasklist
1340 enable_taskmgr
1341 enable_termsv
1342 enable_uninstaller
1343 enable_unlodctr
1344 enable_view
1345 enable_wineboot
1346 enable_winebrowser
1347 enable_winecfg
1348 enable_wineconsole
1349 enable_winedbg
1350 enable_winedevice
1351 enable_winefile
1352 enable_winemenubuilder
1353 enable_winemine
1354 enable_winemsibuilder
1355 enable_winepath
1356 enable_winetest
1357 enable_winhlp32
1358 enable_winver
1359 enable_wmic
1360 enable_wordpad
1361 enable_write
1362 enable_wscript
1363 enable_wusa
1364 enable_xcopy
1365 enable_server
1366 enable_tools
1368 ac_precious_vars='build_alias
1369 host_alias
1370 target_alias
1372 CFLAGS
1373 LDFLAGS
1374 LIBS
1375 CPPFLAGS
1377 CXXFLAGS
1380 XMKMF
1381 XML2_CFLAGS
1382 XML2_LIBS
1383 XSLT_CFLAGS
1384 XSLT_LIBS
1385 DBUS_CFLAGS
1386 DBUS_LIBS
1387 HAL_CFLAGS
1388 HAL_LIBS
1389 GNUTLS_CFLAGS
1390 GNUTLS_LIBS
1391 SANE_CFLAGS
1392 SANE_LIBS
1393 GPHOTO2_CFLAGS
1394 GPHOTO2_LIBS
1395 GPHOTO2_PORT_CFLAGS
1396 GPHOTO2_PORT_LIBS
1397 LCMS2_CFLAGS
1398 LCMS2_LIBS
1399 FREETYPE_CFLAGS
1400 FREETYPE_LIBS
1401 GSTREAMER_CFLAGS
1402 GSTREAMER_LIBS
1403 CAPI20_CFLAGS
1404 CAPI20_LIBS
1405 FONTCONFIG_CFLAGS
1406 FONTCONFIG_LIBS
1407 JPEG_CFLAGS
1408 JPEG_LIBS
1409 PNG_CFLAGS
1410 PNG_LIBS
1411 TIFF_CFLAGS
1412 TIFF_LIBS
1413 MPG123_CFLAGS
1414 MPG123_LIBS'
1417 # Initialize some variables set by options.
1418 ac_init_help=
1419 ac_init_version=false
1420 ac_unrecognized_opts=
1421 ac_unrecognized_sep=
1422 # The variables have the same names as the options, with
1423 # dashes changed to underlines.
1424 cache_file=/dev/null
1425 exec_prefix=NONE
1426 no_create=
1427 no_recursion=
1428 prefix=NONE
1429 program_prefix=NONE
1430 program_suffix=NONE
1431 program_transform_name=s,x,x,
1432 silent=
1433 site=
1434 srcdir=
1435 verbose=
1436 x_includes=NONE
1437 x_libraries=NONE
1439 # Installation directory options.
1440 # These are left unexpanded so users can "make install exec_prefix=/foo"
1441 # and all the variables that are supposed to be based on exec_prefix
1442 # by default will actually change.
1443 # Use braces instead of parens because sh, perl, etc. also accept them.
1444 # (The list follows the same order as the GNU Coding Standards.)
1445 bindir='${exec_prefix}/bin'
1446 sbindir='${exec_prefix}/sbin'
1447 libexecdir='${exec_prefix}/libexec'
1448 datarootdir='${prefix}/share'
1449 datadir='${datarootdir}'
1450 sysconfdir='${prefix}/etc'
1451 sharedstatedir='${prefix}/com'
1452 localstatedir='${prefix}/var'
1453 includedir='${prefix}/include'
1454 oldincludedir='/usr/include'
1455 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1456 infodir='${datarootdir}/info'
1457 htmldir='${docdir}'
1458 dvidir='${docdir}'
1459 pdfdir='${docdir}'
1460 psdir='${docdir}'
1461 libdir='${exec_prefix}/lib'
1462 localedir='${datarootdir}/locale'
1463 mandir='${datarootdir}/man'
1465 ac_prev=
1466 ac_dashdash=
1467 for ac_option
1469 # If the previous option needs an argument, assign it.
1470 if test -n "$ac_prev"; then
1471 eval $ac_prev=\$ac_option
1472 ac_prev=
1473 continue
1476 case $ac_option in
1477 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1478 *=) ac_optarg= ;;
1479 *) ac_optarg=yes ;;
1480 esac
1482 # Accept the important Cygnus configure options, so we can diagnose typos.
1484 case $ac_dashdash$ac_option in
1486 ac_dashdash=yes ;;
1488 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1489 ac_prev=bindir ;;
1490 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1491 bindir=$ac_optarg ;;
1493 -build | --build | --buil | --bui | --bu)
1494 ac_prev=build_alias ;;
1495 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1496 build_alias=$ac_optarg ;;
1498 -cache-file | --cache-file | --cache-fil | --cache-fi \
1499 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1500 ac_prev=cache_file ;;
1501 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1502 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1503 cache_file=$ac_optarg ;;
1505 --config-cache | -C)
1506 cache_file=config.cache ;;
1508 -datadir | --datadir | --datadi | --datad)
1509 ac_prev=datadir ;;
1510 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1511 datadir=$ac_optarg ;;
1513 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1514 | --dataroo | --dataro | --datar)
1515 ac_prev=datarootdir ;;
1516 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1517 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1518 datarootdir=$ac_optarg ;;
1520 -disable-* | --disable-*)
1521 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1522 # Reject names that are not valid shell variable names.
1523 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1524 as_fn_error $? "invalid feature name: $ac_useropt"
1525 ac_useropt_orig=$ac_useropt
1526 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527 case $ac_user_opts in
1529 "enable_$ac_useropt"
1530 "*) ;;
1531 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1532 ac_unrecognized_sep=', ';;
1533 esac
1534 eval enable_$ac_useropt=no ;;
1536 -docdir | --docdir | --docdi | --doc | --do)
1537 ac_prev=docdir ;;
1538 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1539 docdir=$ac_optarg ;;
1541 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1542 ac_prev=dvidir ;;
1543 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1544 dvidir=$ac_optarg ;;
1546 -enable-* | --enable-*)
1547 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1548 # Reject names that are not valid shell variable names.
1549 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1550 as_fn_error $? "invalid feature name: $ac_useropt"
1551 ac_useropt_orig=$ac_useropt
1552 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1553 case $ac_user_opts in
1555 "enable_$ac_useropt"
1556 "*) ;;
1557 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1558 ac_unrecognized_sep=', ';;
1559 esac
1560 eval enable_$ac_useropt=\$ac_optarg ;;
1562 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1563 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1564 | --exec | --exe | --ex)
1565 ac_prev=exec_prefix ;;
1566 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1567 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1568 | --exec=* | --exe=* | --ex=*)
1569 exec_prefix=$ac_optarg ;;
1571 -gas | --gas | --ga | --g)
1572 # Obsolete; use --with-gas.
1573 with_gas=yes ;;
1575 -help | --help | --hel | --he | -h)
1576 ac_init_help=long ;;
1577 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1578 ac_init_help=recursive ;;
1579 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1580 ac_init_help=short ;;
1582 -host | --host | --hos | --ho)
1583 ac_prev=host_alias ;;
1584 -host=* | --host=* | --hos=* | --ho=*)
1585 host_alias=$ac_optarg ;;
1587 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1588 ac_prev=htmldir ;;
1589 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1590 | --ht=*)
1591 htmldir=$ac_optarg ;;
1593 -includedir | --includedir | --includedi | --included | --include \
1594 | --includ | --inclu | --incl | --inc)
1595 ac_prev=includedir ;;
1596 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1597 | --includ=* | --inclu=* | --incl=* | --inc=*)
1598 includedir=$ac_optarg ;;
1600 -infodir | --infodir | --infodi | --infod | --info | --inf)
1601 ac_prev=infodir ;;
1602 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1603 infodir=$ac_optarg ;;
1605 -libdir | --libdir | --libdi | --libd)
1606 ac_prev=libdir ;;
1607 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1608 libdir=$ac_optarg ;;
1610 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1611 | --libexe | --libex | --libe)
1612 ac_prev=libexecdir ;;
1613 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1614 | --libexe=* | --libex=* | --libe=*)
1615 libexecdir=$ac_optarg ;;
1617 -localedir | --localedir | --localedi | --localed | --locale)
1618 ac_prev=localedir ;;
1619 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1620 localedir=$ac_optarg ;;
1622 -localstatedir | --localstatedir | --localstatedi | --localstated \
1623 | --localstate | --localstat | --localsta | --localst | --locals)
1624 ac_prev=localstatedir ;;
1625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1626 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1627 localstatedir=$ac_optarg ;;
1629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1630 ac_prev=mandir ;;
1631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1632 mandir=$ac_optarg ;;
1634 -nfp | --nfp | --nf)
1635 # Obsolete; use --without-fp.
1636 with_fp=no ;;
1638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1639 | --no-cr | --no-c | -n)
1640 no_create=yes ;;
1642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1644 no_recursion=yes ;;
1646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1648 | --oldin | --oldi | --old | --ol | --o)
1649 ac_prev=oldincludedir ;;
1650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1653 oldincludedir=$ac_optarg ;;
1655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1656 ac_prev=prefix ;;
1657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1658 prefix=$ac_optarg ;;
1660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1661 | --program-pre | --program-pr | --program-p)
1662 ac_prev=program_prefix ;;
1663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1665 program_prefix=$ac_optarg ;;
1667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1668 | --program-suf | --program-su | --program-s)
1669 ac_prev=program_suffix ;;
1670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1672 program_suffix=$ac_optarg ;;
1674 -program-transform-name | --program-transform-name \
1675 | --program-transform-nam | --program-transform-na \
1676 | --program-transform-n | --program-transform- \
1677 | --program-transform | --program-transfor \
1678 | --program-transfo | --program-transf \
1679 | --program-trans | --program-tran \
1680 | --progr-tra | --program-tr | --program-t)
1681 ac_prev=program_transform_name ;;
1682 -program-transform-name=* | --program-transform-name=* \
1683 | --program-transform-nam=* | --program-transform-na=* \
1684 | --program-transform-n=* | --program-transform-=* \
1685 | --program-transform=* | --program-transfor=* \
1686 | --program-transfo=* | --program-transf=* \
1687 | --program-trans=* | --program-tran=* \
1688 | --progr-tra=* | --program-tr=* | --program-t=*)
1689 program_transform_name=$ac_optarg ;;
1691 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1692 ac_prev=pdfdir ;;
1693 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1694 pdfdir=$ac_optarg ;;
1696 -psdir | --psdir | --psdi | --psd | --ps)
1697 ac_prev=psdir ;;
1698 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1699 psdir=$ac_optarg ;;
1701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702 | -silent | --silent | --silen | --sile | --sil)
1703 silent=yes ;;
1705 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1706 ac_prev=sbindir ;;
1707 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1708 | --sbi=* | --sb=*)
1709 sbindir=$ac_optarg ;;
1711 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1712 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1713 | --sharedst | --shareds | --shared | --share | --shar \
1714 | --sha | --sh)
1715 ac_prev=sharedstatedir ;;
1716 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1717 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1718 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1719 | --sha=* | --sh=*)
1720 sharedstatedir=$ac_optarg ;;
1722 -site | --site | --sit)
1723 ac_prev=site ;;
1724 -site=* | --site=* | --sit=*)
1725 site=$ac_optarg ;;
1727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1728 ac_prev=srcdir ;;
1729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1730 srcdir=$ac_optarg ;;
1732 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1733 | --syscon | --sysco | --sysc | --sys | --sy)
1734 ac_prev=sysconfdir ;;
1735 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1736 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1737 sysconfdir=$ac_optarg ;;
1739 -target | --target | --targe | --targ | --tar | --ta | --t)
1740 ac_prev=target_alias ;;
1741 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1742 target_alias=$ac_optarg ;;
1744 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1745 verbose=yes ;;
1747 -version | --version | --versio | --versi | --vers | -V)
1748 ac_init_version=: ;;
1750 -with-* | --with-*)
1751 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1752 # Reject names that are not valid shell variable names.
1753 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1754 as_fn_error $? "invalid package name: $ac_useropt"
1755 ac_useropt_orig=$ac_useropt
1756 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1757 case $ac_user_opts in
1759 "with_$ac_useropt"
1760 "*) ;;
1761 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1762 ac_unrecognized_sep=', ';;
1763 esac
1764 eval with_$ac_useropt=\$ac_optarg ;;
1766 -without-* | --without-*)
1767 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1768 # Reject names that are not valid shell variable names.
1769 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1770 as_fn_error $? "invalid package name: $ac_useropt"
1771 ac_useropt_orig=$ac_useropt
1772 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1773 case $ac_user_opts in
1775 "with_$ac_useropt"
1776 "*) ;;
1777 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1778 ac_unrecognized_sep=', ';;
1779 esac
1780 eval with_$ac_useropt=no ;;
1782 --x)
1783 # Obsolete; use --with-x.
1784 with_x=yes ;;
1786 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1787 | --x-incl | --x-inc | --x-in | --x-i)
1788 ac_prev=x_includes ;;
1789 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1790 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1791 x_includes=$ac_optarg ;;
1793 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1794 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1795 ac_prev=x_libraries ;;
1796 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1797 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1798 x_libraries=$ac_optarg ;;
1800 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1801 Try \`$0 --help' for more information"
1804 *=*)
1805 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1806 # Reject names that are not valid shell variable names.
1807 case $ac_envvar in #(
1808 '' | [0-9]* | *[!_$as_cr_alnum]* )
1809 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1810 esac
1811 eval $ac_envvar=\$ac_optarg
1812 export $ac_envvar ;;
1815 # FIXME: should be removed in autoconf 3.0.
1816 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1817 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1818 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1819 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1822 esac
1823 done
1825 if test -n "$ac_prev"; then
1826 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1827 as_fn_error $? "missing argument to $ac_option"
1830 if test -n "$ac_unrecognized_opts"; then
1831 case $enable_option_checking in
1832 no) ;;
1833 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1834 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1835 esac
1838 # Check all directory arguments for consistency.
1839 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1840 datadir sysconfdir sharedstatedir localstatedir includedir \
1841 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1842 libdir localedir mandir
1844 eval ac_val=\$$ac_var
1845 # Remove trailing slashes.
1846 case $ac_val in
1847 */ )
1848 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1849 eval $ac_var=\$ac_val;;
1850 esac
1851 # Be sure to have absolute directory names.
1852 case $ac_val in
1853 [\\/$]* | ?:[\\/]* ) continue;;
1854 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1855 esac
1856 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1857 done
1859 # There might be people who depend on the old broken behavior: `$host'
1860 # used to hold the argument of --host etc.
1861 # FIXME: To remove some day.
1862 build=$build_alias
1863 host=$host_alias
1864 target=$target_alias
1866 # FIXME: To remove some day.
1867 if test "x$host_alias" != x; then
1868 if test "x$build_alias" = x; then
1869 cross_compiling=maybe
1870 elif test "x$build_alias" != "x$host_alias"; then
1871 cross_compiling=yes
1875 ac_tool_prefix=
1876 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1878 test "$silent" = yes && exec 6>/dev/null
1881 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1882 ac_ls_di=`ls -di .` &&
1883 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1884 as_fn_error $? "working directory cannot be determined"
1885 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1886 as_fn_error $? "pwd does not report name of working directory"
1889 # Find the source files, if location was not specified.
1890 if test -z "$srcdir"; then
1891 ac_srcdir_defaulted=yes
1892 # Try the directory containing this script, then the parent directory.
1893 ac_confdir=`$as_dirname -- "$as_myself" ||
1894 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1895 X"$as_myself" : 'X\(//\)[^/]' \| \
1896 X"$as_myself" : 'X\(//\)$' \| \
1897 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1898 $as_echo X"$as_myself" |
1899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1900 s//\1/
1903 /^X\(\/\/\)[^/].*/{
1904 s//\1/
1907 /^X\(\/\/\)$/{
1908 s//\1/
1911 /^X\(\/\).*/{
1912 s//\1/
1915 s/.*/./; q'`
1916 srcdir=$ac_confdir
1917 if test ! -r "$srcdir/$ac_unique_file"; then
1918 srcdir=..
1920 else
1921 ac_srcdir_defaulted=no
1923 if test ! -r "$srcdir/$ac_unique_file"; then
1924 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1925 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1927 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1928 ac_abs_confdir=`(
1929 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1930 pwd)`
1931 # When building in place, set srcdir=.
1932 if test "$ac_abs_confdir" = "$ac_pwd"; then
1933 srcdir=.
1935 # Remove unnecessary trailing slashes from srcdir.
1936 # Double slashes in file names in object file debugging info
1937 # mess up M-x gdb in Emacs.
1938 case $srcdir in
1939 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1940 esac
1941 for ac_var in $ac_precious_vars; do
1942 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1943 eval ac_env_${ac_var}_value=\$${ac_var}
1944 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1945 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1946 done
1949 # Report the --help message.
1951 if test "$ac_init_help" = "long"; then
1952 # Omit some internal or obsolete options to make the list less imposing.
1953 # This message is too long to be a string in the A/UX 3.1 sh.
1954 cat <<_ACEOF
1955 \`configure' configures Wine 1.7.11 to adapt to many kinds of systems.
1957 Usage: $0 [OPTION]... [VAR=VALUE]...
1959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1960 VAR=VALUE. See below for descriptions of some of the useful variables.
1962 Defaults for the options are specified in brackets.
1964 Configuration:
1965 -h, --help display this help and exit
1966 --help=short display options specific to this package
1967 --help=recursive display the short help of all the included packages
1968 -V, --version display version information and exit
1969 -q, --quiet, --silent do not print \`checking ...' messages
1970 --cache-file=FILE cache test results in FILE [disabled]
1971 -C, --config-cache alias for \`--cache-file=config.cache'
1972 -n, --no-create do not create output files
1973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1975 Installation directories:
1976 --prefix=PREFIX install architecture-independent files in PREFIX
1977 [$ac_default_prefix]
1978 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1979 [PREFIX]
1981 By default, \`make install' will install all the files in
1982 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1983 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1984 for instance \`--prefix=\$HOME'.
1986 For better control, use the options below.
1988 Fine tuning of the installation directories:
1989 --bindir=DIR user executables [EPREFIX/bin]
1990 --sbindir=DIR system admin executables [EPREFIX/sbin]
1991 --libexecdir=DIR program executables [EPREFIX/libexec]
1992 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1993 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1994 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1995 --libdir=DIR object code libraries [EPREFIX/lib]
1996 --includedir=DIR C header files [PREFIX/include]
1997 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1998 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1999 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2000 --infodir=DIR info documentation [DATAROOTDIR/info]
2001 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2002 --mandir=DIR man documentation [DATAROOTDIR/man]
2003 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
2004 --htmldir=DIR html documentation [DOCDIR]
2005 --dvidir=DIR dvi documentation [DOCDIR]
2006 --pdfdir=DIR pdf documentation [DOCDIR]
2007 --psdir=DIR ps documentation [DOCDIR]
2008 _ACEOF
2010 cat <<\_ACEOF
2012 X features:
2013 --x-includes=DIR X include files are in DIR
2014 --x-libraries=DIR X library files are in DIR
2016 System types:
2017 --build=BUILD configure for building on BUILD [guessed]
2018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2019 _ACEOF
2022 if test -n "$ac_init_help"; then
2023 case $ac_init_help in
2024 short | recursive ) echo "Configuration of Wine 1.7.11:";;
2025 esac
2026 cat <<\_ACEOF
2028 Optional Features:
2029 --disable-option-checking ignore unrecognized --enable/--with options
2030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2032 --disable-win16 do not include Win16 support
2033 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2034 binaries)
2035 --disable-tests do not build the regression tests
2036 --enable-maintainer-mode
2037 enable maintainer-specific build rules
2038 --disable-largefile omit support for large files
2040 Optional Packages:
2041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2043 --without-alsa do not use the Alsa sound support
2044 --without-capi do not use CAPI (ISDN support)
2045 --without-cms do not use CMS (color management support)
2046 --without-coreaudio do not use the CoreAudio sound support
2047 --without-cups do not use CUPS
2048 --without-curses do not use (n)curses
2049 --without-dbus do not use DBus (dynamic device support)
2050 --without-fontconfig do not use fontconfig
2051 --without-freetype do not use the FreeType library
2052 --without-gettext do not use gettext
2053 --with-gettextpo use the GetTextPO library to rebuild po files
2054 --without-gphoto do not use gphoto (Digital Camera support)
2055 --without-glu do not use the GLU library
2056 --without-gnutls do not use GnuTLS (schannel support)
2057 --without-gsm do not use libgsm (GSM 06.10 codec support)
2058 --without-gstreamer do not use GStreamer (codecs support)
2059 --without-hal do not use HAL (dynamic device support)
2060 --without-jpeg do not use JPEG
2061 --without-ldap do not use LDAP
2062 --without-mpg123 do not use the mpg123 library
2063 --without-netapi do not use the Samba NetAPI library
2064 --without-openal do not use OpenAL
2065 --without-opencl do not use OpenCL
2066 --without-opengl do not use OpenGL
2067 --without-osmesa do not use the OSMesa library
2068 --without-oss do not use the OSS sound support
2069 --without-png do not use PNG
2070 --without-pthread do not use the pthread library
2071 --without-sane do not use SANE (scanner support)
2072 --without-tiff do not use TIFF
2073 --without-v4l do not use v4l1 (v4l support)
2074 --without-xcomposite do not use the Xcomposite extension
2075 --without-xcursor do not use the Xcursor extension
2076 --without-xinerama do not use Xinerama (multi-monitor support)
2077 --without-xinput do not use the Xinput extension
2078 --without-xinput2 do not use the Xinput 2 extension
2079 --without-xml do not use XML
2080 --without-xrandr do not use Xrandr (resolution changes)
2081 --without-xrender do not use the Xrender extension
2082 --without-xshape do not use the Xshape extension
2083 --without-xshm do not use XShm (shared memory extension)
2084 --without-xslt do not use XSLT
2085 --without-xxf86vm do not use XFree video mode extension
2086 --without-zlib do not use Zlib (data compression)
2087 --with-wine-tools=DIR use Wine tools from directory DIR
2088 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2089 --with-x use the X Window System
2091 Some influential environment variables:
2092 CC C compiler command
2093 CFLAGS C compiler flags
2094 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2095 nonstandard directory <lib dir>
2096 LIBS libraries to pass to the linker, e.g. -l<library>
2097 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2098 you have headers in a nonstandard directory <include dir>
2099 CXX C++ compiler command
2100 CXXFLAGS C++ compiler flags
2101 CPP C preprocessor
2102 XMKMF Path to xmkmf, Makefile generator for X Window System
2103 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2104 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2105 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2106 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2107 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2108 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2109 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2110 HAL_LIBS Linker flags for hal, overriding pkg-config
2111 GNUTLS_CFLAGS
2112 C compiler flags for gnutls, overriding pkg-config
2113 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2114 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2115 SANE_LIBS Linker flags for libsane, overriding pkg-config
2116 GPHOTO2_CFLAGS
2117 C compiler flags for libgphoto2, overriding pkg-config
2118 GPHOTO2_LIBS
2119 Linker flags for libgphoto2, overriding pkg-config
2120 GPHOTO2_PORT_CFLAGS
2121 C compiler flags for libgphoto2_port, overriding pkg-config
2122 GPHOTO2_PORT_LIBS
2123 Linker flags for libgphoto2_port, overriding pkg-config
2124 LCMS2_CFLAGS
2125 C compiler flags for lcms2, overriding pkg-config
2126 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2127 FREETYPE_CFLAGS
2128 C compiler flags for freetype2, overriding pkg-config
2129 FREETYPE_LIBS
2130 Linker flags for freetype2, overriding pkg-config
2131 GSTREAMER_CFLAGS
2132 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2133 GSTREAMER_LIBS
2134 Linker flags for gstreamer-app-0.10, overriding pkg-config
2135 CAPI20_CFLAGS
2136 C compiler flags for capi20, overriding pkg-config
2137 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2138 FONTCONFIG_CFLAGS
2139 C compiler flags for fontconfig, overriding pkg-config
2140 FONTCONFIG_LIBS
2141 Linker flags for fontconfig, overriding pkg-config
2142 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2143 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2144 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2145 PNG_LIBS Linker flags for libpng, overriding pkg-config
2146 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2147 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2148 MPG123_CFLAGS
2149 C compiler flags for libmpg123, overriding pkg-config
2150 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2152 Use these variables to override the choices made by `configure' or to help
2153 it to find libraries and programs with nonstandard names/locations.
2155 Report bugs to <wine-devel@winehq.org>.
2156 Wine home page: <http://www.winehq.org>.
2157 _ACEOF
2158 ac_status=$?
2161 if test "$ac_init_help" = "recursive"; then
2162 # If there are subdirs, report their specific --help.
2163 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2164 test -d "$ac_dir" ||
2165 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2166 continue
2167 ac_builddir=.
2169 case "$ac_dir" in
2170 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2172 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2173 # A ".." for each directory in $ac_dir_suffix.
2174 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2175 case $ac_top_builddir_sub in
2176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2178 esac ;;
2179 esac
2180 ac_abs_top_builddir=$ac_pwd
2181 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2182 # for backward compatibility:
2183 ac_top_builddir=$ac_top_build_prefix
2185 case $srcdir in
2186 .) # We are building in place.
2187 ac_srcdir=.
2188 ac_top_srcdir=$ac_top_builddir_sub
2189 ac_abs_top_srcdir=$ac_pwd ;;
2190 [\\/]* | ?:[\\/]* ) # Absolute name.
2191 ac_srcdir=$srcdir$ac_dir_suffix;
2192 ac_top_srcdir=$srcdir
2193 ac_abs_top_srcdir=$srcdir ;;
2194 *) # Relative name.
2195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2196 ac_top_srcdir=$ac_top_build_prefix$srcdir
2197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2198 esac
2199 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2201 cd "$ac_dir" || { ac_status=$?; continue; }
2202 # Check for guested configure.
2203 if test -f "$ac_srcdir/configure.gnu"; then
2204 echo &&
2205 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2206 elif test -f "$ac_srcdir/configure"; then
2207 echo &&
2208 $SHELL "$ac_srcdir/configure" --help=recursive
2209 else
2210 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2211 fi || ac_status=$?
2212 cd "$ac_pwd" || { ac_status=$?; break; }
2213 done
2216 test -n "$ac_init_help" && exit $ac_status
2217 if $ac_init_version; then
2218 cat <<\_ACEOF
2219 Wine configure 1.7.11
2220 generated by GNU Autoconf 2.69
2222 Copyright (C) 2012 Free Software Foundation, Inc.
2223 This configure script is free software; the Free Software Foundation
2224 gives unlimited permission to copy, distribute and modify it.
2225 _ACEOF
2226 exit
2229 ## ------------------------ ##
2230 ## Autoconf initialization. ##
2231 ## ------------------------ ##
2233 # ac_fn_c_try_compile LINENO
2234 # --------------------------
2235 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2236 ac_fn_c_try_compile ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 rm -f conftest.$ac_objext
2240 if { { ac_try="$ac_compile"
2241 case "(($ac_try" in
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2244 esac
2245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2246 $as_echo "$ac_try_echo"; } >&5
2247 (eval "$ac_compile") 2>conftest.err
2248 ac_status=$?
2249 if test -s conftest.err; then
2250 grep -v '^ *+' conftest.err >conftest.er1
2251 cat conftest.er1 >&5
2252 mv -f conftest.er1 conftest.err
2254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2255 test $ac_status = 0; } && {
2256 test -z "$ac_c_werror_flag" ||
2257 test ! -s conftest.err
2258 } && test -s conftest.$ac_objext; then :
2259 ac_retval=0
2260 else
2261 $as_echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2264 ac_retval=1
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267 as_fn_set_status $ac_retval
2269 } # ac_fn_c_try_compile
2271 # ac_fn_cxx_try_compile LINENO
2272 # ----------------------------
2273 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2274 ac_fn_cxx_try_compile ()
2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277 rm -f conftest.$ac_objext
2278 if { { ac_try="$ac_compile"
2279 case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282 esac
2283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2284 $as_echo "$ac_try_echo"; } >&5
2285 (eval "$ac_compile") 2>conftest.err
2286 ac_status=$?
2287 if test -s conftest.err; then
2288 grep -v '^ *+' conftest.err >conftest.er1
2289 cat conftest.er1 >&5
2290 mv -f conftest.er1 conftest.err
2292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2293 test $ac_status = 0; } && {
2294 test -z "$ac_cxx_werror_flag" ||
2295 test ! -s conftest.err
2296 } && test -s conftest.$ac_objext; then :
2297 ac_retval=0
2298 else
2299 $as_echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2302 ac_retval=1
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 as_fn_set_status $ac_retval
2307 } # ac_fn_cxx_try_compile
2309 # ac_fn_c_try_link LINENO
2310 # -----------------------
2311 # Try to link conftest.$ac_ext, and return whether this succeeded.
2312 ac_fn_c_try_link ()
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 rm -f conftest.$ac_objext conftest$ac_exeext
2316 if { { ac_try="$ac_link"
2317 case "(($ac_try" in
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2320 esac
2321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2322 $as_echo "$ac_try_echo"; } >&5
2323 (eval "$ac_link") 2>conftest.err
2324 ac_status=$?
2325 if test -s conftest.err; then
2326 grep -v '^ *+' conftest.err >conftest.er1
2327 cat conftest.er1 >&5
2328 mv -f conftest.er1 conftest.err
2330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2331 test $ac_status = 0; } && {
2332 test -z "$ac_c_werror_flag" ||
2333 test ! -s conftest.err
2334 } && test -s conftest$ac_exeext && {
2335 test "$cross_compiling" = yes ||
2336 test -x conftest$ac_exeext
2337 }; then :
2338 ac_retval=0
2339 else
2340 $as_echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2343 ac_retval=1
2345 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2346 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2347 # interfere with the next link command; also delete a directory that is
2348 # left behind by Apple's compiler. We do this before executing the actions.
2349 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351 as_fn_set_status $ac_retval
2353 } # ac_fn_c_try_link
2355 # ac_fn_c_try_cpp LINENO
2356 # ----------------------
2357 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2358 ac_fn_c_try_cpp ()
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 if { { ac_try="$ac_cpp conftest.$ac_ext"
2362 case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365 esac
2366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2369 ac_status=$?
2370 if test -s conftest.err; then
2371 grep -v '^ *+' conftest.err >conftest.er1
2372 cat conftest.er1 >&5
2373 mv -f conftest.er1 conftest.err
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; } > conftest.i && {
2377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2378 test ! -s conftest.err
2379 }; then :
2380 ac_retval=0
2381 else
2382 $as_echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2385 ac_retval=1
2387 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2388 as_fn_set_status $ac_retval
2390 } # ac_fn_c_try_cpp
2392 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2393 # -------------------------------------------------------
2394 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2395 # the include files in INCLUDES and setting the cache variable VAR
2396 # accordingly.
2397 ac_fn_c_check_header_mongrel ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 if eval \${$3+:} false; then :
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2402 $as_echo_n "checking for $2... " >&6; }
2403 if eval \${$3+:} false; then :
2404 $as_echo_n "(cached) " >&6
2406 eval ac_res=\$$3
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409 else
2410 # Is the header compilable?
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2412 $as_echo_n "checking $2 usability... " >&6; }
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2416 #include <$2>
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419 ac_header_compiler=yes
2420 else
2421 ac_header_compiler=no
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2425 $as_echo "$ac_header_compiler" >&6; }
2427 # Is the header present?
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2429 $as_echo_n "checking $2 presence... " >&6; }
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2432 #include <$2>
2433 _ACEOF
2434 if ac_fn_c_try_cpp "$LINENO"; then :
2435 ac_header_preproc=yes
2436 else
2437 ac_header_preproc=no
2439 rm -f conftest.err conftest.i conftest.$ac_ext
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2441 $as_echo "$ac_header_preproc" >&6; }
2443 # So? What about this header?
2444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2445 yes:no: )
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2447 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2449 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2451 no:yes:* )
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2453 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2455 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2457 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2459 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2461 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2462 ( $as_echo "## ------------------------------------ ##
2463 ## Report this to wine-devel@winehq.org ##
2464 ## ------------------------------------ ##"
2465 ) | sed "s/^/$as_me: WARNING: /" >&2
2467 esac
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2469 $as_echo_n "checking for $2... " >&6; }
2470 if eval \${$3+:} false; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 eval "$3=\$ac_header_compiler"
2475 eval ac_res=\$$3
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481 } # ac_fn_c_check_header_mongrel
2483 # ac_fn_c_try_run LINENO
2484 # ----------------------
2485 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2486 # that executables *can* be run.
2487 ac_fn_c_try_run ()
2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490 if { { ac_try="$ac_link"
2491 case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494 esac
2495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496 $as_echo "$ac_try_echo"; } >&5
2497 (eval "$ac_link") 2>&5
2498 ac_status=$?
2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2501 { { case "(($ac_try" in
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2504 esac
2505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506 $as_echo "$ac_try_echo"; } >&5
2507 (eval "$ac_try") 2>&5
2508 ac_status=$?
2509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510 test $ac_status = 0; }; }; then :
2511 ac_retval=0
2512 else
2513 $as_echo "$as_me: program exited with status $ac_status" >&5
2514 $as_echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2517 ac_retval=$ac_status
2519 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2521 as_fn_set_status $ac_retval
2523 } # ac_fn_c_try_run
2525 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2526 # -------------------------------------------------------
2527 # Tests whether HEADER exists and can be compiled using the include files in
2528 # INCLUDES, setting the cache variable VAR accordingly.
2529 ac_fn_c_check_header_compile ()
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2533 $as_echo_n "checking for $2... " >&6; }
2534 if eval \${$3+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2540 #include <$2>
2541 _ACEOF
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543 eval "$3=yes"
2544 else
2545 eval "$3=no"
2547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 eval ac_res=\$$3
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2554 } # ac_fn_c_check_header_compile
2556 # ac_fn_c_check_func LINENO FUNC VAR
2557 # ----------------------------------
2558 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2559 ac_fn_c_check_func ()
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if eval \${$3+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2569 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2571 #define $2 innocuous_$2
2573 /* System header to define __stub macros and hopefully few prototypes,
2574 which can conflict with char $2 (); below.
2575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576 <limits.h> exists even on freestanding compilers. */
2578 #ifdef __STDC__
2579 # include <limits.h>
2580 #else
2581 # include <assert.h>
2582 #endif
2584 #undef $2
2586 /* Override any GCC internal prototype to avoid an error.
2587 Use char because int might match the return type of a GCC
2588 builtin and then its argument prototype would still apply. */
2589 #ifdef __cplusplus
2590 extern "C"
2591 #endif
2592 char $2 ();
2593 /* The GNU C library defines this for functions which it implements
2594 to always fail with ENOSYS. Some functions are actually named
2595 something starting with __ and the normal name is an alias. */
2596 #if defined __stub_$2 || defined __stub___$2
2597 choke me
2598 #endif
2601 main ()
2603 return $2 ();
2605 return 0;
2607 _ACEOF
2608 if ac_fn_c_try_link "$LINENO"; then :
2609 eval "$3=yes"
2610 else
2611 eval "$3=no"
2613 rm -f core conftest.err conftest.$ac_objext \
2614 conftest$ac_exeext conftest.$ac_ext
2616 eval ac_res=\$$3
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2621 } # ac_fn_c_check_func
2623 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2624 # ----------------------------------------------------
2625 # Tries to find if the field MEMBER exists in type AGGR, after including
2626 # INCLUDES, setting cache variable VAR accordingly.
2627 ac_fn_c_check_member ()
2629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2631 $as_echo_n "checking for $2.$3... " >&6; }
2632 if eval \${$4+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2639 main ()
2641 static $2 ac_aggr;
2642 if (ac_aggr.$3)
2643 return 0;
2645 return 0;
2647 _ACEOF
2648 if ac_fn_c_try_compile "$LINENO"; then :
2649 eval "$4=yes"
2650 else
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2655 main ()
2657 static $2 ac_aggr;
2658 if (sizeof ac_aggr.$3)
2659 return 0;
2661 return 0;
2663 _ACEOF
2664 if ac_fn_c_try_compile "$LINENO"; then :
2665 eval "$4=yes"
2666 else
2667 eval "$4=no"
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 eval ac_res=\$$4
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678 } # ac_fn_c_check_member
2680 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2681 # -------------------------------------------
2682 # Tests whether TYPE exists after having included INCLUDES, setting cache
2683 # variable VAR accordingly.
2684 ac_fn_c_check_type ()
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2688 $as_echo_n "checking for $2... " >&6; }
2689 if eval \${$3+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 eval "$3=no"
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2697 main ()
2699 if (sizeof ($2))
2700 return 0;
2702 return 0;
2704 _ACEOF
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2710 main ()
2712 if (sizeof (($2)))
2713 return 0;
2715 return 0;
2717 _ACEOF
2718 if ac_fn_c_try_compile "$LINENO"; then :
2720 else
2721 eval "$3=yes"
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 eval ac_res=\$$3
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2729 $as_echo "$ac_res" >&6; }
2730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2732 } # ac_fn_c_check_type
2733 cat >config.log <<_ACEOF
2734 This file contains any messages produced by compilers while
2735 running configure, to aid debugging if configure makes a mistake.
2737 It was created by Wine $as_me 1.7.11, which was
2738 generated by GNU Autoconf 2.69. Invocation command line was
2740 $ $0 $@
2742 _ACEOF
2743 exec 5>>config.log
2745 cat <<_ASUNAME
2746 ## --------- ##
2747 ## Platform. ##
2748 ## --------- ##
2750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2757 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2759 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2760 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2762 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2763 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2764 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2765 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2767 _ASUNAME
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 $as_echo "PATH: $as_dir"
2775 done
2776 IFS=$as_save_IFS
2778 } >&5
2780 cat >&5 <<_ACEOF
2783 ## ----------- ##
2784 ## Core tests. ##
2785 ## ----------- ##
2787 _ACEOF
2790 # Keep a trace of the command line.
2791 # Strip out --no-create and --no-recursion so they do not pile up.
2792 # Strip out --silent because we don't want to record it for future runs.
2793 # Also quote any args containing shell meta-characters.
2794 # Make two passes to allow for proper duplicate-argument suppression.
2795 ac_configure_args=
2796 ac_configure_args0=
2797 ac_configure_args1=
2798 ac_must_keep_next=false
2799 for ac_pass in 1 2
2801 for ac_arg
2803 case $ac_arg in
2804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2806 | -silent | --silent | --silen | --sile | --sil)
2807 continue ;;
2808 *\'*)
2809 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2810 esac
2811 case $ac_pass in
2812 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2814 as_fn_append ac_configure_args1 " '$ac_arg'"
2815 if test $ac_must_keep_next = true; then
2816 ac_must_keep_next=false # Got value, back to normal.
2817 else
2818 case $ac_arg in
2819 *=* | --config-cache | -C | -disable-* | --disable-* \
2820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2822 | -with-* | --with-* | -without-* | --without-* | --x)
2823 case "$ac_configure_args0 " in
2824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2825 esac
2827 -* ) ac_must_keep_next=true ;;
2828 esac
2830 as_fn_append ac_configure_args " '$ac_arg'"
2832 esac
2833 done
2834 done
2835 { ac_configure_args0=; unset ac_configure_args0;}
2836 { ac_configure_args1=; unset ac_configure_args1;}
2838 # When interrupted or exit'd, cleanup temporary files, and complete
2839 # config.log. We remove comments because anyway the quotes in there
2840 # would cause problems or look ugly.
2841 # WARNING: Use '\'' to represent an apostrophe within the trap.
2842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2843 trap 'exit_status=$?
2844 # Save into config.log some information that might help in debugging.
2846 echo
2848 $as_echo "## ---------------- ##
2849 ## Cache variables. ##
2850 ## ---------------- ##"
2851 echo
2852 # The following way of writing the cache mishandles newlines in values,
2854 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2855 eval ac_val=\$$ac_var
2856 case $ac_val in #(
2857 *${as_nl}*)
2858 case $ac_var in #(
2859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2860 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2861 esac
2862 case $ac_var in #(
2863 _ | IFS | as_nl) ;; #(
2864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2865 *) { eval $ac_var=; unset $ac_var;} ;;
2866 esac ;;
2867 esac
2868 done
2869 (set) 2>&1 |
2870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2871 *${as_nl}ac_space=\ *)
2872 sed -n \
2873 "s/'\''/'\''\\\\'\'''\''/g;
2874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2875 ;; #(
2877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2879 esac |
2880 sort
2882 echo
2884 $as_echo "## ----------------- ##
2885 ## Output variables. ##
2886 ## ----------------- ##"
2887 echo
2888 for ac_var in $ac_subst_vars
2890 eval ac_val=\$$ac_var
2891 case $ac_val in
2892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2893 esac
2894 $as_echo "$ac_var='\''$ac_val'\''"
2895 done | sort
2896 echo
2898 if test -n "$ac_subst_files"; then
2899 $as_echo "## ------------------- ##
2900 ## File substitutions. ##
2901 ## ------------------- ##"
2902 echo
2903 for ac_var in $ac_subst_files
2905 eval ac_val=\$$ac_var
2906 case $ac_val in
2907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2908 esac
2909 $as_echo "$ac_var='\''$ac_val'\''"
2910 done | sort
2911 echo
2914 if test -s confdefs.h; then
2915 $as_echo "## ----------- ##
2916 ## confdefs.h. ##
2917 ## ----------- ##"
2918 echo
2919 cat confdefs.h
2920 echo
2922 test "$ac_signal" != 0 &&
2923 $as_echo "$as_me: caught signal $ac_signal"
2924 $as_echo "$as_me: exit $exit_status"
2925 } >&5
2926 rm -f core *.core core.conftest.* &&
2927 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2928 exit $exit_status
2930 for ac_signal in 1 2 13 15; do
2931 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2932 done
2933 ac_signal=0
2935 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2936 rm -f -r conftest* confdefs.h
2938 $as_echo "/* confdefs.h */" > confdefs.h
2940 # Predefined preprocessor variables.
2942 cat >>confdefs.h <<_ACEOF
2943 #define PACKAGE_NAME "$PACKAGE_NAME"
2944 _ACEOF
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2948 _ACEOF
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2952 _ACEOF
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_STRING "$PACKAGE_STRING"
2956 _ACEOF
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2960 _ACEOF
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_URL "$PACKAGE_URL"
2964 _ACEOF
2967 # Let the site file select an alternate cache file if it wants to.
2968 # Prefer an explicitly selected file to automatically selected ones.
2969 ac_site_file1=NONE
2970 ac_site_file2=NONE
2971 if test -n "$CONFIG_SITE"; then
2972 # We do not want a PATH search for config.site.
2973 case $CONFIG_SITE in #((
2974 -*) ac_site_file1=./$CONFIG_SITE;;
2975 */*) ac_site_file1=$CONFIG_SITE;;
2976 *) ac_site_file1=./$CONFIG_SITE;;
2977 esac
2978 elif test "x$prefix" != xNONE; then
2979 ac_site_file1=$prefix/share/config.site
2980 ac_site_file2=$prefix/etc/config.site
2981 else
2982 ac_site_file1=$ac_default_prefix/share/config.site
2983 ac_site_file2=$ac_default_prefix/etc/config.site
2985 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2987 test "x$ac_site_file" = xNONE && continue
2988 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2990 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2991 sed 's/^/| /' "$ac_site_file" >&5
2992 . "$ac_site_file" \
2993 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995 as_fn_error $? "failed to load site script $ac_site_file
2996 See \`config.log' for more details" "$LINENO" 5; }
2998 done
3000 if test -r "$cache_file"; then
3001 # Some versions of bash will fail to source /dev/null (special files
3002 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3003 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3005 $as_echo "$as_me: loading cache $cache_file" >&6;}
3006 case $cache_file in
3007 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3008 *) . "./$cache_file";;
3009 esac
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3013 $as_echo "$as_me: creating cache $cache_file" >&6;}
3014 >$cache_file
3017 # Check that the precious variables saved in the cache have kept the same
3018 # value.
3019 ac_cache_corrupted=false
3020 for ac_var in $ac_precious_vars; do
3021 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3022 eval ac_new_set=\$ac_env_${ac_var}_set
3023 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3024 eval ac_new_val=\$ac_env_${ac_var}_value
3025 case $ac_old_set,$ac_new_set in
3026 set,)
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3028 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3029 ac_cache_corrupted=: ;;
3030 ,set)
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3032 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3033 ac_cache_corrupted=: ;;
3034 ,);;
3036 if test "x$ac_old_val" != "x$ac_new_val"; then
3037 # differences in whitespace do not lead to failure.
3038 ac_old_val_w=`echo x $ac_old_val`
3039 ac_new_val_w=`echo x $ac_new_val`
3040 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3042 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3043 ac_cache_corrupted=:
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3046 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3047 eval $ac_var=\$ac_old_val
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3050 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3052 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3053 fi;;
3054 esac
3055 # Pass precious variables to config.status.
3056 if test "$ac_new_set" = set; then
3057 case $ac_new_val in
3058 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3059 *) ac_arg=$ac_var=$ac_new_val ;;
3060 esac
3061 case " $ac_configure_args " in
3062 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3063 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3064 esac
3066 done
3067 if $ac_cache_corrupted; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3071 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3072 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3074 ## -------------------- ##
3075 ## Main body of script. ##
3076 ## -------------------- ##
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 ac_config_headers="$ac_config_headers include/config.h"
3088 ac_aux_dir=
3089 for ac_dir in tools "$srcdir"/tools; do
3090 if test -f "$ac_dir/install-sh"; then
3091 ac_aux_dir=$ac_dir
3092 ac_install_sh="$ac_aux_dir/install-sh -c"
3093 break
3094 elif test -f "$ac_dir/install.sh"; then
3095 ac_aux_dir=$ac_dir
3096 ac_install_sh="$ac_aux_dir/install.sh -c"
3097 break
3098 elif test -f "$ac_dir/shtool"; then
3099 ac_aux_dir=$ac_dir
3100 ac_install_sh="$ac_aux_dir/shtool install -c"
3101 break
3103 done
3104 if test -z "$ac_aux_dir"; then
3105 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3108 # These three variables are undocumented and unsupported,
3109 # and are intended to be withdrawn in a future Autoconf release.
3110 # They can cause serious problems if a builder's source tree is in a directory
3111 # whose full name contains unusual characters.
3112 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3113 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3114 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3118 libwine_version="1.0"
3122 # Check whether --enable-win16 was given.
3123 if test "${enable_win16+set}" = set; then :
3124 enableval=$enable_win16;
3127 # Check whether --enable-win64 was given.
3128 if test "${enable_win64+set}" = set; then :
3129 enableval=$enable_win64;
3132 # Check whether --enable-tests was given.
3133 if test "${enable_tests+set}" = set; then :
3134 enableval=$enable_tests;
3137 # Check whether --enable-maintainer-mode was given.
3138 if test "${enable_maintainer_mode+set}" = set; then :
3139 enableval=$enable_maintainer_mode;
3144 # Check whether --with-alsa was given.
3145 if test "${with_alsa+set}" = set; then :
3146 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3150 # Check whether --with-capi was given.
3151 if test "${with_capi+set}" = set; then :
3152 withval=$with_capi;
3156 # Check whether --with-cms was given.
3157 if test "${with_cms+set}" = set; then :
3158 withval=$with_cms;
3162 # Check whether --with-coreaudio was given.
3163 if test "${with_coreaudio+set}" = set; then :
3164 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3168 # Check whether --with-cups was given.
3169 if test "${with_cups+set}" = set; then :
3170 withval=$with_cups;
3174 # Check whether --with-curses was given.
3175 if test "${with_curses+set}" = set; then :
3176 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3180 # Check whether --with-dbus was given.
3181 if test "${with_dbus+set}" = set; then :
3182 withval=$with_dbus;
3186 # Check whether --with-fontconfig was given.
3187 if test "${with_fontconfig+set}" = set; then :
3188 withval=$with_fontconfig;
3192 # Check whether --with-freetype was given.
3193 if test "${with_freetype+set}" = set; then :
3194 withval=$with_freetype;
3198 # Check whether --with-gettext was given.
3199 if test "${with_gettext+set}" = set; then :
3200 withval=$with_gettext;
3204 # Check whether --with-gettextpo was given.
3205 if test "${with_gettextpo+set}" = set; then :
3206 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3210 # Check whether --with-gphoto was given.
3211 if test "${with_gphoto+set}" = set; then :
3212 withval=$with_gphoto;
3216 # Check whether --with-glu was given.
3217 if test "${with_glu+set}" = set; then :
3218 withval=$with_glu;
3222 # Check whether --with-gnutls was given.
3223 if test "${with_gnutls+set}" = set; then :
3224 withval=$with_gnutls;
3228 # Check whether --with-gsm was given.
3229 if test "${with_gsm+set}" = set; then :
3230 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3234 # Check whether --with-gstreamer was given.
3235 if test "${with_gstreamer+set}" = set; then :
3236 withval=$with_gstreamer;
3240 # Check whether --with-hal was given.
3241 if test "${with_hal+set}" = set; then :
3242 withval=$with_hal;
3246 # Check whether --with-jpeg was given.
3247 if test "${with_jpeg+set}" = set; then :
3248 withval=$with_jpeg;
3252 # Check whether --with-ldap was given.
3253 if test "${with_ldap+set}" = set; then :
3254 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3258 # Check whether --with-mpg123 was given.
3259 if test "${with_mpg123+set}" = set; then :
3260 withval=$with_mpg123;
3264 # Check whether --with-netapi was given.
3265 if test "${with_netapi+set}" = set; then :
3266 withval=$with_netapi;
3270 # Check whether --with-openal was given.
3271 if test "${with_openal+set}" = set; then :
3272 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3276 # Check whether --with-opencl was given.
3277 if test "${with_opencl+set}" = set; then :
3278 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3282 # Check whether --with-opengl was given.
3283 if test "${with_opengl+set}" = set; then :
3284 withval=$with_opengl;
3288 # Check whether --with-osmesa was given.
3289 if test "${with_osmesa+set}" = set; then :
3290 withval=$with_osmesa;
3294 # Check whether --with-oss was given.
3295 if test "${with_oss+set}" = set; then :
3296 withval=$with_oss;
3300 # Check whether --with-png was given.
3301 if test "${with_png+set}" = set; then :
3302 withval=$with_png;
3306 # Check whether --with-pthread was given.
3307 if test "${with_pthread+set}" = set; then :
3308 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3312 # Check whether --with-sane was given.
3313 if test "${with_sane+set}" = set; then :
3314 withval=$with_sane;
3318 # Check whether --with-tiff was given.
3319 if test "${with_tiff+set}" = set; then :
3320 withval=$with_tiff;
3324 # Check whether --with-v4l was given.
3325 if test "${with_v4l+set}" = set; then :
3326 withval=$with_v4l;
3330 # Check whether --with-xcomposite was given.
3331 if test "${with_xcomposite+set}" = set; then :
3332 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3336 # Check whether --with-xcursor was given.
3337 if test "${with_xcursor+set}" = set; then :
3338 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3342 # Check whether --with-xinerama was given.
3343 if test "${with_xinerama+set}" = set; then :
3344 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3348 # Check whether --with-xinput was given.
3349 if test "${with_xinput+set}" = set; then :
3350 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3354 # Check whether --with-xinput2 was given.
3355 if test "${with_xinput2+set}" = set; then :
3356 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3360 # Check whether --with-xml was given.
3361 if test "${with_xml+set}" = set; then :
3362 withval=$with_xml;
3366 # Check whether --with-xrandr was given.
3367 if test "${with_xrandr+set}" = set; then :
3368 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3372 # Check whether --with-xrender was given.
3373 if test "${with_xrender+set}" = set; then :
3374 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3378 # Check whether --with-xshape was given.
3379 if test "${with_xshape+set}" = set; then :
3380 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3384 # Check whether --with-xshm was given.
3385 if test "${with_xshm+set}" = set; then :
3386 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3390 # Check whether --with-xslt was given.
3391 if test "${with_xslt+set}" = set; then :
3392 withval=$with_xslt;
3396 # Check whether --with-xxf86vm was given.
3397 if test "${with_xxf86vm+set}" = set; then :
3398 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
3402 # Check whether --with-zlib was given.
3403 if test "${with_zlib+set}" = set; then :
3404 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3409 # Check whether --with-wine-tools was given.
3410 if test "${with_wine_tools+set}" = set; then :
3411 withval=$with_wine_tools;
3415 # Check whether --with-wine64 was given.
3416 if test "${with_wine64+set}" = set; then :
3417 withval=$with_wine64;
3421 # Make sure we can run config.sub.
3422 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3423 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3426 $as_echo_n "checking build system type... " >&6; }
3427 if ${ac_cv_build+:} false; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 ac_build_alias=$build_alias
3431 test "x$ac_build_alias" = x &&
3432 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3433 test "x$ac_build_alias" = x &&
3434 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3435 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3436 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3440 $as_echo "$ac_cv_build" >&6; }
3441 case $ac_cv_build in
3442 *-*-*) ;;
3443 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3444 esac
3445 build=$ac_cv_build
3446 ac_save_IFS=$IFS; IFS='-'
3447 set x $ac_cv_build
3448 shift
3449 build_cpu=$1
3450 build_vendor=$2
3451 shift; shift
3452 # Remember, the first character of IFS is used to create $*,
3453 # except with old shells:
3454 build_os=$*
3455 IFS=$ac_save_IFS
3456 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3460 $as_echo_n "checking host system type... " >&6; }
3461 if ${ac_cv_host+:} false; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 if test "x$host_alias" = x; then
3465 ac_cv_host=$ac_cv_build
3466 else
3467 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3468 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3473 $as_echo "$ac_cv_host" >&6; }
3474 case $ac_cv_host in
3475 *-*-*) ;;
3476 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3477 esac
3478 host=$ac_cv_host
3479 ac_save_IFS=$IFS; IFS='-'
3480 set x $ac_cv_host
3481 shift
3482 host_cpu=$1
3483 host_vendor=$2
3484 shift; shift
3485 # Remember, the first character of IFS is used to create $*,
3486 # except with old shells:
3487 host_os=$*
3488 IFS=$ac_save_IFS
3489 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3493 case "$srcdir" in
3494 .) ;;
3495 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3496 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3497 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3498 fi ;;
3499 esac
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3504 set x ${MAKE-make}
3505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 cat >conftest.make <<\_ACEOF
3510 SHELL = /bin/sh
3511 all:
3512 @echo '@@@%%%=$(MAKE)=@@@%%%'
3513 _ACEOF
3514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3516 *@@@%%%=?*=@@@%%%*)
3517 eval ac_cv_prog_make_${ac_make}_set=yes;;
3519 eval ac_cv_prog_make_${ac_make}_set=no;;
3520 esac
3521 rm -f conftest.make
3523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3525 $as_echo "yes" >&6; }
3526 SET_MAKE=
3527 else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530 SET_MAKE="MAKE=${MAKE-make}"
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -n "$CC"; then
3547 ac_cv_prog_CC="$CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3562 IFS=$as_save_IFS
3566 CC=$ac_cv_prog_CC
3567 if test -n "$CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3569 $as_echo "$CC" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3577 if test -z "$ac_cv_prog_CC"; then
3578 ac_ct_CC=$CC
3579 # Extract the first word of "gcc", so it can be a program name with args.
3580 set dummy gcc; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -n "$ac_ct_CC"; then
3587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_ac_ct_CC="gcc"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3602 IFS=$as_save_IFS
3606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3607 if test -n "$ac_ct_CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609 $as_echo "$ac_ct_CC" >&6; }
3610 else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3615 if test "x$ac_ct_CC" = x; then
3616 CC=""
3617 else
3618 case $cross_compiling:$ac_tool_warned in
3619 yes:)
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3622 ac_tool_warned=yes ;;
3623 esac
3624 CC=$ac_ct_CC
3626 else
3627 CC="$ac_cv_prog_CC"
3630 if test -z "$CC"; then
3631 if test -n "$ac_tool_prefix"; then
3632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3633 set dummy ${ac_tool_prefix}cc; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if ${ac_cv_prog_CC+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_CC="${ac_tool_prefix}cc"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3653 done
3654 done
3655 IFS=$as_save_IFS
3659 CC=$ac_cv_prog_CC
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3663 else
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3671 if test -z "$CC"; then
3672 # Extract the first word of "cc", so it can be a program name with args.
3673 set dummy cc; ac_word=$2
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if ${ac_cv_prog_CC+:} false; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 if test -n "$CC"; then
3680 ac_cv_prog_CC="$CC" # Let the user override the test.
3681 else
3682 ac_prog_rejected=no
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3691 ac_prog_rejected=yes
3692 continue
3694 ac_cv_prog_CC="cc"
3695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3698 done
3699 done
3700 IFS=$as_save_IFS
3702 if test $ac_prog_rejected = yes; then
3703 # We found a bogon in the path, so make sure we never use it.
3704 set dummy $ac_cv_prog_CC
3705 shift
3706 if test $# != 0; then
3707 # We chose a different compiler from the bogus one.
3708 # However, it has the same basename, so the bogon will be chosen
3709 # first if we set CC to just the basename; use the full file name.
3710 shift
3711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3719 $as_echo "$CC" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3727 if test -z "$CC"; then
3728 if test -n "$ac_tool_prefix"; then
3729 for ac_prog in cl.exe
3731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_CC+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$CC"; then
3739 ac_cv_prog_CC="$CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3752 done
3753 done
3754 IFS=$as_save_IFS
3758 CC=$ac_cv_prog_CC
3759 if test -n "$CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3761 $as_echo "$CC" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$CC" && break
3769 done
3771 if test -z "$CC"; then
3772 ac_ct_CC=$CC
3773 for ac_prog in cl.exe
3775 # Extract the first word of "$ac_prog", so it can be a program name with args.
3776 set dummy $ac_prog; ac_word=$2
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 if test -n "$ac_ct_CC"; then
3783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3792 ac_cv_prog_ac_ct_CC="$ac_prog"
3793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3796 done
3797 done
3798 IFS=$as_save_IFS
3802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3803 if test -n "$ac_ct_CC"; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3805 $as_echo "$ac_ct_CC" >&6; }
3806 else
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 $as_echo "no" >&6; }
3812 test -n "$ac_ct_CC" && break
3813 done
3815 if test "x$ac_ct_CC" = x; then
3816 CC=""
3817 else
3818 case $cross_compiling:$ac_tool_warned in
3819 yes:)
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3822 ac_tool_warned=yes ;;
3823 esac
3824 CC=$ac_ct_CC
3831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833 as_fn_error $? "no acceptable C compiler found in \$PATH
3834 See \`config.log' for more details" "$LINENO" 5; }
3836 # Provide some information about the compiler.
3837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3838 set X $ac_compile
3839 ac_compiler=$2
3840 for ac_option in --version -v -V -qversion; do
3841 { { ac_try="$ac_compiler $ac_option >&5"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3849 ac_status=$?
3850 if test -s conftest.err; then
3851 sed '10a\
3852 ... rest of stderr output deleted ...
3853 10q' conftest.err >conftest.er1
3854 cat conftest.er1 >&5
3856 rm -f conftest.er1 conftest.err
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }
3859 done
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3865 main ()
3869 return 0;
3871 _ACEOF
3872 ac_clean_files_save=$ac_clean_files
3873 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3874 # Try to create an executable without -o first, disregard a.out.
3875 # It will help us diagnose broken compilers, and finding out an intuition
3876 # of exeext.
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3878 $as_echo_n "checking whether the C compiler works... " >&6; }
3879 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3881 # The possible output files:
3882 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3884 ac_rmfiles=
3885 for ac_file in $ac_files
3887 case $ac_file in
3888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3889 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3890 esac
3891 done
3892 rm -f $ac_rmfiles
3894 if { { ac_try="$ac_link_default"
3895 case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900 $as_echo "$ac_try_echo"; } >&5
3901 (eval "$ac_link_default") 2>&5
3902 ac_status=$?
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }; then :
3905 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3906 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3907 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3908 # so that the user can short-circuit this test for compilers unknown to
3909 # Autoconf.
3910 for ac_file in $ac_files ''
3912 test -f "$ac_file" || continue
3913 case $ac_file in
3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3916 [ab].out )
3917 # We found the default executable, but exeext='' is most
3918 # certainly right.
3919 break;;
3920 *.* )
3921 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3922 then :; else
3923 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3925 # We set ac_cv_exeext here because the later test for it is not
3926 # safe: cross compilers may not add the suffix if given an `-o'
3927 # argument, so we may need to know it at that point already.
3928 # Even if this section looks crufty: it has the advantage of
3929 # actually working.
3930 break;;
3932 break;;
3933 esac
3934 done
3935 test "$ac_cv_exeext" = no && ac_cv_exeext=
3937 else
3938 ac_file=''
3940 if test -z "$ac_file"; then :
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 $as_echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error 77 "C compiler cannot create executables
3949 See \`config.log' for more details" "$LINENO" 5; }
3950 else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3952 $as_echo "yes" >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3955 $as_echo_n "checking for C compiler default output file name... " >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3957 $as_echo "$ac_file" >&6; }
3958 ac_exeext=$ac_cv_exeext
3960 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3961 ac_clean_files=$ac_clean_files_save
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3963 $as_echo_n "checking for suffix of executables... " >&6; }
3964 if { { ac_try="$ac_link"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3970 $as_echo "$ac_try_echo"; } >&5
3971 (eval "$ac_link") 2>&5
3972 ac_status=$?
3973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974 test $ac_status = 0; }; then :
3975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3977 # work properly (i.e., refer to `conftest.exe'), while it won't with
3978 # `rm'.
3979 for ac_file in conftest.exe conftest conftest.*; do
3980 test -f "$ac_file" || continue
3981 case $ac_file in
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3984 break;;
3985 * ) break;;
3986 esac
3987 done
3988 else
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3992 See \`config.log' for more details" "$LINENO" 5; }
3994 rm -f conftest conftest$ac_cv_exeext
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3996 $as_echo "$ac_cv_exeext" >&6; }
3998 rm -f conftest.$ac_ext
3999 EXEEXT=$ac_cv_exeext
4000 ac_exeext=$EXEEXT
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003 #include <stdio.h>
4005 main ()
4007 FILE *f = fopen ("conftest.out", "w");
4008 return ferror (f) || fclose (f) != 0;
4011 return 0;
4013 _ACEOF
4014 ac_clean_files="$ac_clean_files conftest.out"
4015 # Check that the compiler produces executables we can run. If not, either
4016 # the compiler is broken, or we cross compile.
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4018 $as_echo_n "checking whether we are cross compiling... " >&6; }
4019 if test "$cross_compiling" != yes; then
4020 { { ac_try="$ac_link"
4021 case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_link") 2>&5
4028 ac_status=$?
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }
4031 if { ac_try='./conftest$ac_cv_exeext'
4032 { { case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_try") 2>&5
4039 ac_status=$?
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; }; then
4042 cross_compiling=no
4043 else
4044 if test "$cross_compiling" = maybe; then
4045 cross_compiling=yes
4046 else
4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error $? "cannot run C compiled programs.
4050 If you meant to cross compile, use \`--host'.
4051 See \`config.log' for more details" "$LINENO" 5; }
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4056 $as_echo "$cross_compiling" >&6; }
4058 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4059 ac_clean_files=$ac_clean_files_save
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4061 $as_echo_n "checking for suffix of object files... " >&6; }
4062 if ${ac_cv_objext+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4069 main ()
4073 return 0;
4075 _ACEOF
4076 rm -f conftest.o conftest.obj
4077 if { { ac_try="$ac_compile"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083 $as_echo "$ac_try_echo"; } >&5
4084 (eval "$ac_compile") 2>&5
4085 ac_status=$?
4086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }; then :
4088 for ac_file in conftest.o conftest.obj conftest.*; do
4089 test -f "$ac_file" || continue;
4090 case $ac_file in
4091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4092 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4093 break;;
4094 esac
4095 done
4096 else
4097 $as_echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $? "cannot compute suffix of object files: cannot compile
4103 See \`config.log' for more details" "$LINENO" 5; }
4105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4108 $as_echo "$ac_cv_objext" >&6; }
4109 OBJEXT=$ac_cv_objext
4110 ac_objext=$OBJEXT
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4112 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4113 if ${ac_cv_c_compiler_gnu+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4120 main ()
4122 #ifndef __GNUC__
4123 choke me
4124 #endif
4127 return 0;
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_compiler_gnu=yes
4132 else
4133 ac_compiler_gnu=no
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4140 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4141 if test $ac_compiler_gnu = yes; then
4142 GCC=yes
4143 else
4144 GCC=
4146 ac_test_CFLAGS=${CFLAGS+set}
4147 ac_save_CFLAGS=$CFLAGS
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4149 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4150 if ${ac_cv_prog_cc_g+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 ac_save_c_werror_flag=$ac_c_werror_flag
4154 ac_c_werror_flag=yes
4155 ac_cv_prog_cc_g=no
4156 CFLAGS="-g"
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_g=yes
4170 else
4171 CFLAGS=""
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4176 main ()
4180 return 0;
4182 _ACEOF
4183 if ac_fn_c_try_compile "$LINENO"; then :
4185 else
4186 ac_c_werror_flag=$ac_save_c_werror_flag
4187 CFLAGS="-g"
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4192 main ()
4196 return 0;
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200 ac_cv_prog_cc_g=yes
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 ac_c_werror_flag=$ac_save_c_werror_flag
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4210 $as_echo "$ac_cv_prog_cc_g" >&6; }
4211 if test "$ac_test_CFLAGS" = set; then
4212 CFLAGS=$ac_save_CFLAGS
4213 elif test $ac_cv_prog_cc_g = yes; then
4214 if test "$GCC" = yes; then
4215 CFLAGS="-g -O2"
4216 else
4217 CFLAGS="-g"
4219 else
4220 if test "$GCC" = yes; then
4221 CFLAGS="-O2"
4222 else
4223 CFLAGS=
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4227 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4228 if ${ac_cv_prog_cc_c89+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 ac_cv_prog_cc_c89=no
4232 ac_save_CC=$CC
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235 #include <stdarg.h>
4236 #include <stdio.h>
4237 struct stat;
4238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4239 struct buf { int x; };
4240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4241 static char *e (p, i)
4242 char **p;
4243 int i;
4245 return p[i];
4247 static char *f (char * (*g) (char **, int), char **p, ...)
4249 char *s;
4250 va_list v;
4251 va_start (v,p);
4252 s = g (p, va_arg (v,int));
4253 va_end (v);
4254 return s;
4257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4258 function prototypes and stuff, but not '\xHH' hex character constants.
4259 These don't provoke an error unfortunately, instead are silently treated
4260 as 'x'. The following induces an error, until -std is added to get
4261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4262 array size at least. It's necessary to write '\x00'==0 to get something
4263 that's true only with -std. */
4264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4267 inside strings and character constants. */
4268 #define FOO(x) 'x'
4269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4271 int test (int i, double x);
4272 struct s1 {int (*f) (int a);};
4273 struct s2 {int (*f) (double a);};
4274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4275 int argc;
4276 char **argv;
4278 main ()
4280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4282 return 0;
4284 _ACEOF
4285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4288 CC="$ac_save_CC $ac_arg"
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 ac_cv_prog_cc_c89=$ac_arg
4292 rm -f core conftest.err conftest.$ac_objext
4293 test "x$ac_cv_prog_cc_c89" != "xno" && break
4294 done
4295 rm -f conftest.$ac_ext
4296 CC=$ac_save_CC
4299 # AC_CACHE_VAL
4300 case "x$ac_cv_prog_cc_c89" in
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4303 $as_echo "none needed" >&6; } ;;
4304 xno)
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4306 $as_echo "unsupported" >&6; } ;;
4308 CC="$CC $ac_cv_prog_cc_c89"
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4310 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4311 esac
4312 if test "x$ac_cv_prog_cc_c89" != xno; then :
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322 ac_ext=cpp
4323 ac_cpp='$CXXCPP $CPPFLAGS'
4324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4327 if test -z "$CXX"; then
4328 if test -n "$CCC"; then
4329 CXX=$CCC
4330 else
4331 if test -n "$ac_tool_prefix"; then
4332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_CXX+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -n "$CXX"; then
4342 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4343 else
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4355 done
4356 done
4357 IFS=$as_save_IFS
4361 CXX=$ac_cv_prog_CXX
4362 if test -n "$CXX"; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4364 $as_echo "$CXX" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4371 test -n "$CXX" && break
4372 done
4374 if test -z "$CXX"; then
4375 ac_ct_CXX=$CXX
4376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4378 # Extract the first word of "$ac_prog", so it can be a program name with args.
4379 set dummy $ac_prog; ac_word=$2
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4381 $as_echo_n "checking for $ac_word... " >&6; }
4382 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 if test -n "$ac_ct_CXX"; then
4386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395 ac_cv_prog_ac_ct_CXX="$ac_prog"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4399 done
4400 done
4401 IFS=$as_save_IFS
4405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4406 if test -n "$ac_ct_CXX"; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4408 $as_echo "$ac_ct_CXX" >&6; }
4409 else
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4415 test -n "$ac_ct_CXX" && break
4416 done
4418 if test "x$ac_ct_CXX" = x; then
4419 CXX="g++"
4420 else
4421 case $cross_compiling:$ac_tool_warned in
4422 yes:)
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4425 ac_tool_warned=yes ;;
4426 esac
4427 CXX=$ac_ct_CXX
4433 # Provide some information about the compiler.
4434 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4435 set X $ac_compile
4436 ac_compiler=$2
4437 for ac_option in --version -v -V -qversion; do
4438 { { ac_try="$ac_compiler $ac_option >&5"
4439 case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444 $as_echo "$ac_try_echo"; } >&5
4445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4446 ac_status=$?
4447 if test -s conftest.err; then
4448 sed '10a\
4449 ... rest of stderr output deleted ...
4450 10q' conftest.err >conftest.er1
4451 cat conftest.er1 >&5
4453 rm -f conftest.er1 conftest.err
4454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455 test $ac_status = 0; }
4456 done
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4459 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4460 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4467 main ()
4469 #ifndef __GNUC__
4470 choke me
4471 #endif
4474 return 0;
4476 _ACEOF
4477 if ac_fn_cxx_try_compile "$LINENO"; then :
4478 ac_compiler_gnu=yes
4479 else
4480 ac_compiler_gnu=no
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4487 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4488 if test $ac_compiler_gnu = yes; then
4489 GXX=yes
4490 else
4491 GXX=
4493 ac_test_CXXFLAGS=${CXXFLAGS+set}
4494 ac_save_CXXFLAGS=$CXXFLAGS
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4496 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4497 if ${ac_cv_prog_cxx_g+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4501 ac_cxx_werror_flag=yes
4502 ac_cv_prog_cxx_g=no
4503 CXXFLAGS="-g"
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4508 main ()
4512 return 0;
4514 _ACEOF
4515 if ac_fn_cxx_try_compile "$LINENO"; then :
4516 ac_cv_prog_cxx_g=yes
4517 else
4518 CXXFLAGS=""
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4523 main ()
4527 return 0;
4529 _ACEOF
4530 if ac_fn_cxx_try_compile "$LINENO"; then :
4532 else
4533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4534 CXXFLAGS="-g"
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4539 main ()
4543 return 0;
4545 _ACEOF
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4547 ac_cv_prog_cxx_g=yes
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4557 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4558 if test "$ac_test_CXXFLAGS" = set; then
4559 CXXFLAGS=$ac_save_CXXFLAGS
4560 elif test $ac_cv_prog_cxx_g = yes; then
4561 if test "$GXX" = yes; then
4562 CXXFLAGS="-g -O2"
4563 else
4564 CXXFLAGS="-g"
4566 else
4567 if test "$GXX" = yes; then
4568 CXXFLAGS="-O2"
4569 else
4570 CXXFLAGS=
4573 ac_ext=c
4574 ac_cpp='$CPP $CPPFLAGS'
4575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579 if test -n "$ac_tool_prefix"; then
4580 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_CPPBIN+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$CPPBIN"; then
4588 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 CPPBIN=$ac_cv_prog_CPPBIN
4608 if test -n "$CPPBIN"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4610 $as_echo "$CPPBIN" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4618 if test -z "$ac_cv_prog_CPPBIN"; then
4619 ac_ct_CPPBIN=$CPPBIN
4620 # Extract the first word of "cpp", so it can be a program name with args.
4621 set dummy cpp; ac_word=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -n "$ac_ct_CPPBIN"; then
4628 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_prog_ac_ct_CPPBIN="cpp"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4641 done
4642 done
4643 IFS=$as_save_IFS
4647 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4648 if test -n "$ac_ct_CPPBIN"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4650 $as_echo "$ac_ct_CPPBIN" >&6; }
4651 else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4656 if test "x$ac_ct_CPPBIN" = x; then
4657 CPPBIN="cpp"
4658 else
4659 case $cross_compiling:$ac_tool_warned in
4660 yes:)
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4663 ac_tool_warned=yes ;;
4664 esac
4665 CPPBIN=$ac_ct_CPPBIN
4667 else
4668 CPPBIN="$ac_cv_prog_CPPBIN"
4672 cat >>confdefs.h <<_ACEOF
4673 #define EXEEXT "$ac_exeext"
4674 _ACEOF
4677 case $host in
4678 *-darwin*)
4679 if test "x$enable_win64" = "xyes"
4680 then
4681 CC="$CC -m64"
4682 CXX="$CXX -m64"
4683 host_cpu="x86_64"
4684 notice_platform="64-bit "
4685 TARGETFLAGS="-m64"
4687 else
4688 CC="$CC -m32"
4689 CXX="$CXX -m32"
4690 host_cpu="i386"
4691 notice_platform="32-bit "
4692 TARGETFLAGS="-m32"
4694 enable_win16=${enable_win16:-yes}
4696 with_fontconfig=${with_fontconfig:-no}
4698 x86_64*)
4699 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4700 then
4701 CC="$CC -m32"
4702 CXX="$CXX -m32"
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4704 $as_echo_n "checking whether $CC works... " >&6; }
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4710 main ()
4714 return 0;
4716 _ACEOF
4717 if ac_fn_c_try_link "$LINENO"; then :
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4719 $as_echo "yes" >&6; }
4720 else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4723 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4725 rm -f core conftest.err conftest.$ac_objext \
4726 conftest$ac_exeext conftest.$ac_ext
4727 host_cpu="i386"
4728 notice_platform="32-bit "
4729 TARGETFLAGS="-m32"
4731 enable_win16=${enable_win16:-yes}
4732 else
4733 if test "x${GCC}" = "xyes"
4734 then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4736 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739 #include <stdarg.h>
4741 main ()
4743 void func(__builtin_ms_va_list *args);
4745 return 0;
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4750 $as_echo "yes" >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4754 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 TARGETFLAGS="-m64"
4762 arm*)
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4764 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 int ac_test(int i) { return i; }
4769 main ()
4771 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4773 return 0;
4775 _ACEOF
4776 if ac_fn_c_try_link "$LINENO"; then :
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4778 $as_echo "yes" >&6; }
4779 else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4782 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4784 rm -f core conftest.err conftest.$ac_objext \
4785 conftest$ac_exeext conftest.$ac_ext
4786 CFLAGS="$CFLAGS -marm"
4788 *-mingw32*|*-cygwin*)
4789 enable_win16=${enable_win16:-no}
4790 CFLAGS="$CFLAGS -D_WIN32"
4792 i[3456789]86*)
4793 enable_win16=${enable_win16:-yes}
4795 esac
4797 enable_win16=${enable_win16:-no}
4798 enable_win64=${enable_win64:-no}
4800 enable_winetest=${enable_winetest:-$enable_tests}
4802 if test -n "$with_wine64"
4803 then
4804 if test "x$enable_win64" = "xyes"
4805 then
4806 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4807 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4809 enable_fonts=${enable_fonts:-no}
4810 enable_server=${enable_server:-no}
4811 elif test "x$enable_win64" = "xyes"
4812 then
4813 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4817 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4818 if ${wine_cv_toolsdir+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 wine_cv_toolsdir="$with_wine_tools"
4822 if test -z "$with_wine_tools"; then
4823 if test "$cross_compiling" = "yes"; then
4824 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4825 elif test -n "$with_wine64"; then
4826 wine_cv_toolsdir="$with_wine64"
4829 if test -z "$wine_cv_toolsdir"; then
4830 wine_cv_toolsdir="\$(top_builddir)"
4831 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4832 case "$wine_cv_toolsdir" in
4833 /*) ;;
4834 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4835 esac
4836 enable_tools=${enable_tools:-no}
4837 else
4838 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4842 $as_echo "$wine_cv_toolsdir" >&6; }
4843 TOOLSDIR=$wine_cv_toolsdir
4845 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4846 then
4847 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4851 for ac_prog in flex
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854 set dummy $ac_prog; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if ${ac_cv_prog_FLEX+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 if test -n "$FLEX"; then
4861 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_FLEX="$ac_prog"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4874 done
4875 done
4876 IFS=$as_save_IFS
4880 FLEX=$ac_cv_prog_FLEX
4881 if test -n "$FLEX"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4883 $as_echo "$FLEX" >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4890 test -n "$FLEX" && break
4891 done
4892 test -n "$FLEX" || FLEX="none"
4894 if test "$FLEX" = "none"
4895 then
4896 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4899 $as_echo_n "checking whether flex is recent enough... " >&6; }
4900 cat >conftest.l <<EOF
4901 %top{
4902 #include "prediluvian.h"
4906 if $FLEX -t conftest.l >/dev/null 2>&5
4907 then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4909 $as_echo "yes" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4913 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4916 for ac_prog in bison
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_prog_BISON+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$BISON"; then
4926 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_BISON="$ac_prog"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4939 done
4940 done
4941 IFS=$as_save_IFS
4945 BISON=$ac_cv_prog_BISON
4946 if test -n "$BISON"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4948 $as_echo "$BISON" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4955 test -n "$BISON" && break
4956 done
4957 test -n "$BISON" || BISON="none"
4959 if test "$BISON" = "none"
4960 then
4961 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4964 if test -n "$ac_tool_prefix"; then
4965 for ac_prog in ar gar
4967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_prog_AR+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$AR"; then
4975 ac_cv_prog_AR="$AR" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4988 done
4989 done
4990 IFS=$as_save_IFS
4994 AR=$ac_cv_prog_AR
4995 if test -n "$AR"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4997 $as_echo "$AR" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5004 test -n "$AR" && break
5005 done
5007 if test -z "$AR"; then
5008 ac_ct_AR=$AR
5009 for ac_prog in ar gar
5011 # Extract the first word of "$ac_prog", so it can be a program name with args.
5012 set dummy $ac_prog; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$ac_ct_AR"; then
5019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_ac_ct_AR="$ac_prog"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5034 IFS=$as_save_IFS
5038 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5039 if test -n "$ac_ct_AR"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5041 $as_echo "$ac_ct_AR" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5048 test -n "$ac_ct_AR" && break
5049 done
5051 if test "x$ac_ct_AR" = x; then
5052 AR="ar"
5053 else
5054 case $cross_compiling:$ac_tool_warned in
5055 yes:)
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5058 ac_tool_warned=yes ;;
5059 esac
5060 AR=$ac_ct_AR
5064 if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5066 set dummy ${ac_tool_prefix}strip; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if ${ac_cv_prog_STRIP+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$STRIP"; then
5073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5086 done
5087 done
5088 IFS=$as_save_IFS
5092 STRIP=$ac_cv_prog_STRIP
5093 if test -n "$STRIP"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5095 $as_echo "$STRIP" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5103 if test -z "$ac_cv_prog_STRIP"; then
5104 ac_ct_STRIP=$STRIP
5105 # Extract the first word of "strip", so it can be a program name with args.
5106 set dummy strip; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$ac_ct_STRIP"; then
5113 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_ac_ct_STRIP="strip"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5133 if test -n "$ac_ct_STRIP"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5135 $as_echo "$ac_ct_STRIP" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5141 if test "x$ac_ct_STRIP" = x; then
5142 STRIP="strip"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145 yes:)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148 ac_tool_warned=yes ;;
5149 esac
5150 STRIP=$ac_ct_STRIP
5152 else
5153 STRIP="$ac_cv_prog_STRIP"
5156 ARFLAGS=rc
5158 if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5160 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_RANLIB+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 if test -n "$RANLIB"; then
5167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5180 done
5181 done
5182 IFS=$as_save_IFS
5186 RANLIB=$ac_cv_prog_RANLIB
5187 if test -n "$RANLIB"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5189 $as_echo "$RANLIB" >&6; }
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5197 if test -z "$ac_cv_prog_RANLIB"; then
5198 ac_ct_RANLIB=$RANLIB
5199 # Extract the first word of "ranlib", so it can be a program name with args.
5200 set dummy ranlib; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if test -n "$ac_ct_RANLIB"; then
5207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_ac_ct_RANLIB="ranlib"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5220 done
5221 done
5222 IFS=$as_save_IFS
5226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5227 if test -n "$ac_ct_RANLIB"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5229 $as_echo "$ac_ct_RANLIB" >&6; }
5230 else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5235 if test "x$ac_ct_RANLIB" = x; then
5236 RANLIB=":"
5237 else
5238 case $cross_compiling:$ac_tool_warned in
5239 yes:)
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242 ac_tool_warned=yes ;;
5243 esac
5244 RANLIB=$ac_ct_RANLIB
5246 else
5247 RANLIB="$ac_cv_prog_RANLIB"
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5251 $as_echo_n "checking whether ln -s works... " >&6; }
5252 LN_S=$as_ln_s
5253 if test "$LN_S" = "ln -s"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5255 $as_echo "yes" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5258 $as_echo "no, using $LN_S" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5262 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5263 if ${ac_cv_path_GREP+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 if test -z "$GREP"; then
5267 ac_path_GREP_found=false
5268 # Loop through the user's path and test for each of PROGNAME-LIST
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_prog in grep ggrep; do
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5277 as_fn_executable_p "$ac_path_GREP" || continue
5278 # Check for GNU ac_path_GREP and select it if it is found.
5279 # Check for GNU $ac_path_GREP
5280 case `"$ac_path_GREP" --version 2>&1` in
5281 *GNU*)
5282 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5284 ac_count=0
5285 $as_echo_n 0123456789 >"conftest.in"
5286 while :
5288 cat "conftest.in" "conftest.in" >"conftest.tmp"
5289 mv "conftest.tmp" "conftest.in"
5290 cp "conftest.in" "conftest.nl"
5291 $as_echo 'GREP' >> "conftest.nl"
5292 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5294 as_fn_arith $ac_count + 1 && ac_count=$as_val
5295 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5296 # Best one so far, save it but keep looking for a better one
5297 ac_cv_path_GREP="$ac_path_GREP"
5298 ac_path_GREP_max=$ac_count
5300 # 10*(2^10) chars as input seems more than enough
5301 test $ac_count -gt 10 && break
5302 done
5303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5304 esac
5306 $ac_path_GREP_found && break 3
5307 done
5308 done
5309 done
5310 IFS=$as_save_IFS
5311 if test -z "$ac_cv_path_GREP"; then
5312 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5314 else
5315 ac_cv_path_GREP=$GREP
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5320 $as_echo "$ac_cv_path_GREP" >&6; }
5321 GREP="$ac_cv_path_GREP"
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5325 $as_echo_n "checking for egrep... " >&6; }
5326 if ${ac_cv_path_EGREP+:} false; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5330 then ac_cv_path_EGREP="$GREP -E"
5331 else
5332 if test -z "$EGREP"; then
5333 ac_path_EGREP_found=false
5334 # Loop through the user's path and test for each of PROGNAME-LIST
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_prog in egrep; do
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5343 as_fn_executable_p "$ac_path_EGREP" || continue
5344 # Check for GNU ac_path_EGREP and select it if it is found.
5345 # Check for GNU $ac_path_EGREP
5346 case `"$ac_path_EGREP" --version 2>&1` in
5347 *GNU*)
5348 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5350 ac_count=0
5351 $as_echo_n 0123456789 >"conftest.in"
5352 while :
5354 cat "conftest.in" "conftest.in" >"conftest.tmp"
5355 mv "conftest.tmp" "conftest.in"
5356 cp "conftest.in" "conftest.nl"
5357 $as_echo 'EGREP' >> "conftest.nl"
5358 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5359 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5360 as_fn_arith $ac_count + 1 && ac_count=$as_val
5361 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5362 # Best one so far, save it but keep looking for a better one
5363 ac_cv_path_EGREP="$ac_path_EGREP"
5364 ac_path_EGREP_max=$ac_count
5366 # 10*(2^10) chars as input seems more than enough
5367 test $ac_count -gt 10 && break
5368 done
5369 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5370 esac
5372 $ac_path_EGREP_found && break 3
5373 done
5374 done
5375 done
5376 IFS=$as_save_IFS
5377 if test -z "$ac_cv_path_EGREP"; then
5378 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5380 else
5381 ac_cv_path_EGREP=$EGREP
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5387 $as_echo "$ac_cv_path_EGREP" >&6; }
5388 EGREP="$ac_cv_path_EGREP"
5391 # Extract the first word of "ldconfig", so it can be a program name with args.
5392 set dummy ldconfig; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_path_LDCONFIG+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 case $LDCONFIG in
5399 [\\/]* | ?:[\\/]*)
5400 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in /sbin /usr/sbin $PATH
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5414 done
5415 done
5416 IFS=$as_save_IFS
5418 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5420 esac
5422 LDCONFIG=$ac_cv_path_LDCONFIG
5423 if test -n "$LDCONFIG"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5425 $as_echo "$LDCONFIG" >&6; }
5426 else
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5432 for ac_prog in msgfmt
5434 # Extract the first word of "$ac_prog", so it can be a program name with args.
5435 set dummy $ac_prog; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_prog_MSGFMT+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 if test -n "$MSGFMT"; then
5442 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_MSGFMT="$ac_prog"
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5455 done
5456 done
5457 IFS=$as_save_IFS
5461 MSGFMT=$ac_cv_prog_MSGFMT
5462 if test -n "$MSGFMT"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5464 $as_echo "$MSGFMT" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5471 test -n "$MSGFMT" && break
5472 done
5473 test -n "$MSGFMT" || MSGFMT="false"
5475 if ${ac_tool_prefix+:} false; then :
5476 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5477 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 if test -n "$PKG_CONFIG"; then
5484 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5497 done
5498 done
5499 IFS=$as_save_IFS
5503 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5504 if test -n "$PKG_CONFIG"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5506 $as_echo "$PKG_CONFIG" >&6; }
5507 else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5514 if ${ac_cv_prog_PKG_CONFIG:+false} :; then :
5515 if test "x$cross_compiling" = xyes; then :
5517 else
5518 { ac_cv_prog_PKG_CONFIG=; unset ac_cv_prog_PKG_CONFIG;}
5519 # Extract the first word of "pkg-config", so it can be a program name with args.
5520 set dummy pkg-config; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -n "$PKG_CONFIG"; then
5527 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_PKG_CONFIG="pkg-config"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5540 done
5541 done
5542 IFS=$as_save_IFS
5546 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5547 if test -n "$PKG_CONFIG"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5549 $as_echo "$PKG_CONFIG" >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5557 else
5558 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5561 if test "x$enable_maintainer_mode" != "xyes"
5562 then
5563 FONTFORGE=""
5564 RSVG=""
5565 CONVERT=""
5566 ICOTOOL=""
5567 else
5568 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5569 for ac_prog in fontforge
5571 # Extract the first word of "$ac_prog", so it can be a program name with args.
5572 set dummy $ac_prog; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_FONTFORGE+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 if test -n "$FONTFORGE"; then
5579 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_FONTFORGE="$ac_prog"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 break 2
5592 done
5593 done
5594 IFS=$as_save_IFS
5598 FONTFORGE=$ac_cv_prog_FONTFORGE
5599 if test -n "$FONTFORGE"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5601 $as_echo "$FONTFORGE" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5608 test -n "$FONTFORGE" && break
5609 done
5610 test -n "$FONTFORGE" || FONTFORGE="false"
5612 for ac_prog in rsvg
5614 # Extract the first word of "$ac_prog", so it can be a program name with args.
5615 set dummy $ac_prog; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_prog_RSVG+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$RSVG"; then
5622 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631 ac_cv_prog_RSVG="$ac_prog"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5637 IFS=$as_save_IFS
5641 RSVG=$ac_cv_prog_RSVG
5642 if test -n "$RSVG"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5644 $as_echo "$RSVG" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5651 test -n "$RSVG" && break
5652 done
5653 test -n "$RSVG" || RSVG="false"
5655 for ac_prog in convert
5657 # Extract the first word of "$ac_prog", so it can be a program name with args.
5658 set dummy $ac_prog; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_CONVERT+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 if test -n "$CONVERT"; then
5665 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674 ac_cv_prog_CONVERT="$ac_prog"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 break 2
5678 done
5679 done
5680 IFS=$as_save_IFS
5684 CONVERT=$ac_cv_prog_CONVERT
5685 if test -n "$CONVERT"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5687 $as_echo "$CONVERT" >&6; }
5688 else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5694 test -n "$CONVERT" && break
5695 done
5696 test -n "$CONVERT" || CONVERT="false"
5698 for ac_prog in icotool
5700 # Extract the first word of "$ac_prog", so it can be a program name with args.
5701 set dummy $ac_prog; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if ${ac_cv_prog_ICOTOOL+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$ICOTOOL"; then
5708 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_ICOTOOL="$ac_prog"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5721 done
5722 done
5723 IFS=$as_save_IFS
5727 ICOTOOL=$ac_cv_prog_ICOTOOL
5728 if test -n "$ICOTOOL"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5730 $as_echo "$ICOTOOL" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5737 test -n "$ICOTOOL" && break
5738 done
5739 test -n "$ICOTOOL" || ICOTOOL="false"
5741 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5742 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5744 if test "$CONVERT" = false
5745 then
5746 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5749 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5750 convert_version=`convert --version | head -n1`
5751 if test "x$convert_version" != "x"
5752 then
5753 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5754 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5755 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5756 then
5757 CONVERT=false
5760 if test "$CONVERT" = false
5761 then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5763 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5764 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5767 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5771 if test "$ICOTOOL" = false
5772 then
5773 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5774 else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5776 $as_echo_n "checking for recent enough icotool... " >&6; }
5777 icotool_version=`icotool --version | head -n1`
5778 if test "x$icotool_version" != "x"
5779 then
5780 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5781 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5782 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5783 then
5784 ICOTOOL=false
5785 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5788 if test "$ICOTOOL" = false
5789 then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5791 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5792 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5795 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5799 with_gettext=yes
5800 with_gettextpo=yes
5801 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5804 test "x$with_gettext" != xno || MSGFMT=false
5805 if test "$MSGFMT" != "false"
5806 then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5808 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5809 cat >conftest.po <<EOF
5810 # comment
5811 msgctxt "ctxt"
5812 msgid "id"
5813 msgstr "str"
5815 if $MSGFMT -o /dev/null conftest.po 2>&5
5816 then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5818 $as_echo "yes" >&6; }
5819 else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }
5822 MSGFMT=false
5825 if test "$MSGFMT" = false; then :
5826 case "x$with_gettext" in
5827 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5828 xno) ;;
5829 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5830 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5831 esac
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5836 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5837 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 ac_check_lib_save_LIBS=$LIBS
5841 LIBS="-li386 $LIBS"
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5845 /* Override any GCC internal prototype to avoid an error.
5846 Use char because int might match the return type of a GCC
5847 builtin and then its argument prototype would still apply. */
5848 #ifdef __cplusplus
5849 extern "C"
5850 #endif
5851 char i386_set_ldt ();
5853 main ()
5855 return i386_set_ldt ();
5857 return 0;
5859 _ACEOF
5860 if ac_fn_c_try_link "$LINENO"; then :
5861 ac_cv_lib_i386_i386_set_ldt=yes
5862 else
5863 ac_cv_lib_i386_i386_set_ldt=no
5865 rm -f core conftest.err conftest.$ac_objext \
5866 conftest$ac_exeext conftest.$ac_ext
5867 LIBS=$ac_check_lib_save_LIBS
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5870 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5871 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5872 cat >>confdefs.h <<_ACEOF
5873 #define HAVE_LIBI386 1
5874 _ACEOF
5876 LIBS="-li386 $LIBS"
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5881 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5882 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 ac_check_lib_save_LIBS=$LIBS
5886 LIBS="-lossaudio $LIBS"
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5890 /* Override any GCC internal prototype to avoid an error.
5891 Use char because int might match the return type of a GCC
5892 builtin and then its argument prototype would still apply. */
5893 #ifdef __cplusplus
5894 extern "C"
5895 #endif
5896 char _oss_ioctl ();
5898 main ()
5900 return _oss_ioctl ();
5902 return 0;
5904 _ACEOF
5905 if ac_fn_c_try_link "$LINENO"; then :
5906 ac_cv_lib_ossaudio__oss_ioctl=yes
5907 else
5908 ac_cv_lib_ossaudio__oss_ioctl=no
5910 rm -f core conftest.err conftest.$ac_objext \
5911 conftest$ac_exeext conftest.$ac_ext
5912 LIBS=$ac_check_lib_save_LIBS
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5915 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5916 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5917 cat >>confdefs.h <<_ACEOF
5918 #define HAVE_LIBOSSAUDIO 1
5919 _ACEOF
5921 LIBS="-lossaudio $LIBS"
5926 OPENGL_LIBS=""
5930 # Check whether --enable-largefile was given.
5931 if test "${enable_largefile+set}" = set; then :
5932 enableval=$enable_largefile;
5935 if test "$enable_largefile" != no; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5938 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5939 if ${ac_cv_sys_largefile_CC+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 ac_cv_sys_largefile_CC=no
5943 if test "$GCC" != yes; then
5944 ac_save_CC=$CC
5945 while :; do
5946 # IRIX 6.2 and later do not support large files by default,
5947 # so use the C compiler's -n32 option if that helps.
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 #include <sys/types.h>
5951 /* Check that off_t can represent 2**63 - 1 correctly.
5952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5953 since some C++ compilers masquerading as C compilers
5954 incorrectly reject 9223372036854775807. */
5955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5957 && LARGE_OFF_T % 2147483647 == 1)
5958 ? 1 : -1];
5960 main ()
5964 return 0;
5966 _ACEOF
5967 if ac_fn_c_try_compile "$LINENO"; then :
5968 break
5970 rm -f core conftest.err conftest.$ac_objext
5971 CC="$CC -n32"
5972 if ac_fn_c_try_compile "$LINENO"; then :
5973 ac_cv_sys_largefile_CC=' -n32'; break
5975 rm -f core conftest.err conftest.$ac_objext
5976 break
5977 done
5978 CC=$ac_save_CC
5979 rm -f conftest.$ac_ext
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5983 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5984 if test "$ac_cv_sys_largefile_CC" != no; then
5985 CC=$CC$ac_cv_sys_largefile_CC
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5989 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5990 if ${ac_cv_sys_file_offset_bits+:} false; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 while :; do
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 #include <sys/types.h>
5997 /* Check that off_t can represent 2**63 - 1 correctly.
5998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5999 since some C++ compilers masquerading as C compilers
6000 incorrectly reject 9223372036854775807. */
6001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6003 && LARGE_OFF_T % 2147483647 == 1)
6004 ? 1 : -1];
6006 main ()
6010 return 0;
6012 _ACEOF
6013 if ac_fn_c_try_compile "$LINENO"; then :
6014 ac_cv_sys_file_offset_bits=no; break
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 #define _FILE_OFFSET_BITS 64
6020 #include <sys/types.h>
6021 /* Check that off_t can represent 2**63 - 1 correctly.
6022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6023 since some C++ compilers masquerading as C compilers
6024 incorrectly reject 9223372036854775807. */
6025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6027 && LARGE_OFF_T % 2147483647 == 1)
6028 ? 1 : -1];
6030 main ()
6034 return 0;
6036 _ACEOF
6037 if ac_fn_c_try_compile "$LINENO"; then :
6038 ac_cv_sys_file_offset_bits=64; break
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 ac_cv_sys_file_offset_bits=unknown
6042 break
6043 done
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6046 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6047 case $ac_cv_sys_file_offset_bits in #(
6048 no | unknown) ;;
6050 cat >>confdefs.h <<_ACEOF
6051 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6052 _ACEOF
6054 esac
6055 rm -rf conftest*
6056 if test $ac_cv_sys_file_offset_bits = unknown; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6058 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6059 if ${ac_cv_sys_large_files+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 while :; do
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 #include <sys/types.h>
6066 /* Check that off_t can represent 2**63 - 1 correctly.
6067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6068 since some C++ compilers masquerading as C compilers
6069 incorrectly reject 9223372036854775807. */
6070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6072 && LARGE_OFF_T % 2147483647 == 1)
6073 ? 1 : -1];
6075 main ()
6079 return 0;
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"; then :
6083 ac_cv_sys_large_files=no; break
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 #define _LARGE_FILES 1
6089 #include <sys/types.h>
6090 /* Check that off_t can represent 2**63 - 1 correctly.
6091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6092 since some C++ compilers masquerading as C compilers
6093 incorrectly reject 9223372036854775807. */
6094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6096 && LARGE_OFF_T % 2147483647 == 1)
6097 ? 1 : -1];
6099 main ()
6103 return 0;
6105 _ACEOF
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107 ac_cv_sys_large_files=1; break
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 ac_cv_sys_large_files=unknown
6111 break
6112 done
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6115 $as_echo "$ac_cv_sys_large_files" >&6; }
6116 case $ac_cv_sys_large_files in #(
6117 no | unknown) ;;
6119 cat >>confdefs.h <<_ACEOF
6120 #define _LARGE_FILES $ac_cv_sys_large_files
6121 _ACEOF
6123 esac
6124 rm -rf conftest*
6131 ac_ext=c
6132 ac_cpp='$CPP $CPPFLAGS'
6133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6137 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6138 # On Suns, sometimes $CPP names a directory.
6139 if test -n "$CPP" && test -d "$CPP"; then
6140 CPP=
6142 if test -z "$CPP"; then
6143 if ${ac_cv_prog_CPP+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 # Double quotes because CPP needs to be expanded
6147 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6149 ac_preproc_ok=false
6150 for ac_c_preproc_warn_flag in '' yes
6152 # Use a header file that comes with gcc, so configuring glibc
6153 # with a fresh cross-compiler works.
6154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6155 # <limits.h> exists even on freestanding compilers.
6156 # On the NeXT, cc -E runs the code through the compiler's parser,
6157 # not just through cpp. "Syntax error" is here to catch this case.
6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6160 #ifdef __STDC__
6161 # include <limits.h>
6162 #else
6163 # include <assert.h>
6164 #endif
6165 Syntax error
6166 _ACEOF
6167 if ac_fn_c_try_cpp "$LINENO"; then :
6169 else
6170 # Broken: fails on valid input.
6171 continue
6173 rm -f conftest.err conftest.i conftest.$ac_ext
6175 # OK, works on sane cases. Now check whether nonexistent headers
6176 # can be detected and how.
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 #include <ac_nonexistent.h>
6180 _ACEOF
6181 if ac_fn_c_try_cpp "$LINENO"; then :
6182 # Broken: success on invalid input.
6183 continue
6184 else
6185 # Passes both tests.
6186 ac_preproc_ok=:
6187 break
6189 rm -f conftest.err conftest.i conftest.$ac_ext
6191 done
6192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193 rm -f conftest.i conftest.err conftest.$ac_ext
6194 if $ac_preproc_ok; then :
6195 break
6198 done
6199 ac_cv_prog_CPP=$CPP
6202 CPP=$ac_cv_prog_CPP
6203 else
6204 ac_cv_prog_CPP=$CPP
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6207 $as_echo "$CPP" >&6; }
6208 ac_preproc_ok=false
6209 for ac_c_preproc_warn_flag in '' yes
6211 # Use a header file that comes with gcc, so configuring glibc
6212 # with a fresh cross-compiler works.
6213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6214 # <limits.h> exists even on freestanding compilers.
6215 # On the NeXT, cc -E runs the code through the compiler's parser,
6216 # not just through cpp. "Syntax error" is here to catch this case.
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219 #ifdef __STDC__
6220 # include <limits.h>
6221 #else
6222 # include <assert.h>
6223 #endif
6224 Syntax error
6225 _ACEOF
6226 if ac_fn_c_try_cpp "$LINENO"; then :
6228 else
6229 # Broken: fails on valid input.
6230 continue
6232 rm -f conftest.err conftest.i conftest.$ac_ext
6234 # OK, works on sane cases. Now check whether nonexistent headers
6235 # can be detected and how.
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238 #include <ac_nonexistent.h>
6239 _ACEOF
6240 if ac_fn_c_try_cpp "$LINENO"; then :
6241 # Broken: success on invalid input.
6242 continue
6243 else
6244 # Passes both tests.
6245 ac_preproc_ok=:
6246 break
6248 rm -f conftest.err conftest.i conftest.$ac_ext
6250 done
6251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6252 rm -f conftest.i conftest.err conftest.$ac_ext
6253 if $ac_preproc_ok; then :
6255 else
6256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6258 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6259 See \`config.log' for more details" "$LINENO" 5; }
6262 ac_ext=c
6263 ac_cpp='$CPP $CPPFLAGS'
6264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6270 $as_echo_n "checking for ANSI C header files... " >&6; }
6271 if ${ac_cv_header_stdc+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 #include <stdlib.h>
6277 #include <stdarg.h>
6278 #include <string.h>
6279 #include <float.h>
6282 main ()
6286 return 0;
6288 _ACEOF
6289 if ac_fn_c_try_compile "$LINENO"; then :
6290 ac_cv_header_stdc=yes
6291 else
6292 ac_cv_header_stdc=no
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 if test $ac_cv_header_stdc = yes; then
6297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300 #include <string.h>
6302 _ACEOF
6303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304 $EGREP "memchr" >/dev/null 2>&1; then :
6306 else
6307 ac_cv_header_stdc=no
6309 rm -f conftest*
6313 if test $ac_cv_header_stdc = yes; then
6314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 #include <stdlib.h>
6319 _ACEOF
6320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6321 $EGREP "free" >/dev/null 2>&1; then :
6323 else
6324 ac_cv_header_stdc=no
6326 rm -f conftest*
6330 if test $ac_cv_header_stdc = yes; then
6331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6332 if test "$cross_compiling" = yes; then :
6334 else
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 #include <ctype.h>
6338 #include <stdlib.h>
6339 #if ((' ' & 0x0FF) == 0x020)
6340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6342 #else
6343 # define ISLOWER(c) \
6344 (('a' <= (c) && (c) <= 'i') \
6345 || ('j' <= (c) && (c) <= 'r') \
6346 || ('s' <= (c) && (c) <= 'z'))
6347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6348 #endif
6350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6352 main ()
6354 int i;
6355 for (i = 0; i < 256; i++)
6356 if (XOR (islower (i), ISLOWER (i))
6357 || toupper (i) != TOUPPER (i))
6358 return 2;
6359 return 0;
6361 _ACEOF
6362 if ac_fn_c_try_run "$LINENO"; then :
6364 else
6365 ac_cv_header_stdc=no
6367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6368 conftest.$ac_objext conftest.beam conftest.$ac_ext
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6374 $as_echo "$ac_cv_header_stdc" >&6; }
6375 if test $ac_cv_header_stdc = yes; then
6377 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6383 inttypes.h stdint.h unistd.h
6384 do :
6385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6389 cat >>confdefs.h <<_ACEOF
6390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6391 _ACEOF
6395 done
6398 for ac_header in \
6399 AL/al.h \
6400 ApplicationServices/ApplicationServices.h \
6401 AudioToolbox/AudioConverter.h \
6402 AudioUnit/AudioUnit.h \
6403 AudioUnit/AudioComponent.h \
6404 CL/cl.h \
6405 Carbon/Carbon.h \
6406 CoreAudio/CoreAudio.h \
6407 CoreServices/CoreServices.h \
6408 DiskArbitration/DiskArbitration.h \
6409 IOKit/IOKitLib.h \
6410 IOKit/hid/IOHIDLib.h \
6411 OpenAL/al.h \
6412 OpenCL/opencl.h \
6413 QuickTime/ImageCompression.h \
6414 Security/Security.h \
6415 alias.h \
6416 alsa/asoundlib.h \
6417 arpa/inet.h \
6418 arpa/nameser.h \
6419 asm/types.h \
6420 asm/user.h \
6421 curses.h \
6422 direct.h \
6423 dirent.h \
6424 dlfcn.h \
6425 elf.h \
6426 float.h \
6427 fnmatch.h \
6428 getopt.h \
6429 gettext-po.h \
6430 grp.h \
6431 gsm.h \
6432 gsm/gsm.h \
6433 ieeefp.h \
6434 inet/mib2.h \
6435 io.h \
6436 kstat.h \
6437 lber.h \
6438 ldap.h \
6439 libproc.h \
6440 link.h \
6441 linux/cdrom.h \
6442 linux/compiler.h \
6443 linux/filter.h \
6444 linux/hdreg.h \
6445 linux/input.h \
6446 linux/ioctl.h \
6447 linux/joystick.h \
6448 linux/major.h \
6449 linux/param.h \
6450 linux/serial.h \
6451 linux/types.h \
6452 linux/ucdrom.h \
6453 lwp.h \
6454 mach-o/nlist.h \
6455 mach-o/loader.h \
6456 mach/mach.h \
6457 mach/machine.h \
6458 machine/cpu.h \
6459 machine/limits.h \
6460 machine/sysarch.h \
6461 mntent.h \
6462 ncurses.h \
6463 netdb.h \
6464 netinet/in.h \
6465 netinet/in_systm.h \
6466 netinet/tcp.h \
6467 netinet/tcp_fsm.h \
6468 poll.h \
6469 port.h \
6470 process.h \
6471 pthread.h \
6472 pwd.h \
6473 sched.h \
6474 scsi/scsi.h \
6475 scsi/scsi_ioctl.h \
6476 scsi/sg.h \
6477 stdbool.h \
6478 stdint.h \
6479 stropts.h \
6480 sys/asoundlib.h \
6481 sys/attr.h \
6482 sys/cdio.h \
6483 sys/elf32.h \
6484 sys/epoll.h \
6485 sys/event.h \
6486 sys/exec_elf.h \
6487 sys/filio.h \
6488 sys/inotify.h \
6489 sys/ioctl.h \
6490 sys/ipc.h \
6491 sys/limits.h \
6492 sys/link.h \
6493 sys/mman.h \
6494 sys/modem.h \
6495 sys/msg.h \
6496 sys/mtio.h \
6497 sys/param.h \
6498 sys/poll.h \
6499 sys/prctl.h \
6500 sys/protosw.h \
6501 sys/ptrace.h \
6502 sys/queue.h \
6503 sys/resource.h \
6504 sys/scsiio.h \
6505 sys/shm.h \
6506 sys/signal.h \
6507 sys/socket.h \
6508 sys/socketvar.h \
6509 sys/sockio.h \
6510 sys/statvfs.h \
6511 sys/strtio.h \
6512 sys/syscall.h \
6513 sys/tihdr.h \
6514 sys/time.h \
6515 sys/timeout.h \
6516 sys/times.h \
6517 sys/uio.h \
6518 sys/user.h \
6519 sys/utsname.h \
6520 sys/vm86.h \
6521 sys/wait.h \
6522 syscall.h \
6523 termios.h \
6524 unistd.h \
6525 utime.h \
6526 valgrind/memcheck.h \
6527 valgrind/valgrind.h \
6528 zlib.h
6530 do :
6531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6532 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6533 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6534 cat >>confdefs.h <<_ACEOF
6535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6536 _ACEOF
6540 done
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6543 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6544 if ${ac_cv_header_stat_broken+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 #include <sys/types.h>
6550 #include <sys/stat.h>
6552 #if defined S_ISBLK && defined S_IFDIR
6553 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6554 #endif
6556 #if defined S_ISBLK && defined S_IFCHR
6557 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6558 #endif
6560 #if defined S_ISLNK && defined S_IFREG
6561 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6562 #endif
6564 #if defined S_ISSOCK && defined S_IFREG
6565 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6566 #endif
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 ac_cv_header_stat_broken=no
6571 else
6572 ac_cv_header_stat_broken=yes
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6577 $as_echo "$ac_cv_header_stat_broken" >&6; }
6578 if test $ac_cv_header_stat_broken = yes; then
6580 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6586 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6587 do :
6588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6589 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6590 #ifdef HAVE_SYS_PARAM_H
6591 # include <sys/param.h>
6592 #endif
6594 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6595 cat >>confdefs.h <<_ACEOF
6596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 _ACEOF
6601 done
6604 for ac_header in \
6605 netinet/ip.h \
6606 net/if.h \
6607 net/if_arp.h \
6608 net/if_dl.h \
6609 net/if_types.h \
6610 net/route.h \
6611 netinet/if_ether.h \
6612 netinet/if_inarp.h \
6613 netinet/in_pcb.h \
6614 netinet/ip_icmp.h \
6615 netinet/ip_var.h \
6616 netinet/udp.h \
6617 netipx/ipx.h \
6618 sys/un.h \
6620 do :
6621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6622 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6623 #ifdef HAVE_SYS_SOCKET_H
6624 # include <sys/socket.h>
6625 #endif
6626 #ifdef HAVE_SYS_SOCKETVAR_H
6627 # include <sys/socketvar.h>
6628 #endif
6629 #ifdef HAVE_NET_ROUTE_H
6630 # include <net/route.h>
6631 #endif
6632 #ifdef HAVE_NETINET_IN_H
6633 # include <netinet/in.h>
6634 #endif
6635 #ifdef HAVE_NETINET_IN_SYSTM_H
6636 # include <netinet/in_systm.h>
6637 #endif
6638 #ifdef HAVE_NET_IF_H
6639 # include <net/if.h>
6640 #endif
6641 #ifdef HAVE_NETINET_IP_H
6642 # include <netinet/ip.h>
6643 #endif
6645 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6646 cat >>confdefs.h <<_ACEOF
6647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6648 _ACEOF
6652 done
6655 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6656 do :
6657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6658 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6659 #ifdef HAVE_ALIAS_H
6660 # include <alias.h>
6661 #endif
6662 #ifdef HAVE_SYS_SOCKET_H
6663 # include <sys/socket.h>
6664 #endif
6665 #ifdef HAVE_SYS_SOCKETVAR_H
6666 # include <sys/socketvar.h>
6667 #endif
6668 #ifdef HAVE_SYS_TIMEOUT_H
6669 # include <sys/timeout.h>
6670 #endif
6671 #ifdef HAVE_NETINET_IN_H
6672 # include <netinet/in.h>
6673 #endif
6674 #ifdef HAVE_NETINET_IN_SYSTM_H
6675 # include <netinet/in_systm.h>
6676 #endif
6677 #ifdef HAVE_NETINET_IP_H
6678 # include <netinet/ip.h>
6679 #endif
6680 #ifdef HAVE_NETINET_IP_VAR_H
6681 # include <netinet/ip_var.h>
6682 #endif
6683 #ifdef HAVE_NETINET_IP_ICMP_H
6684 # include <netinet/ip_icmp.h>
6685 #endif
6686 #ifdef HAVE_NETINET_UDP_H
6687 # include <netinet/udp.h>
6688 #endif
6689 #ifdef HAVE_NETINET_TCP_H
6690 # include <netinet/tcp.h>
6691 #endif
6692 #ifdef HAVE_NETINET_TCP_TIMER_H
6693 #include <netinet/tcp_timer.h>
6694 #endif
6696 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6697 cat >>confdefs.h <<_ACEOF
6698 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6699 _ACEOF
6703 done
6706 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6707 do :
6708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6709 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6710 #ifdef HAVE_ASM_TYPES_H
6711 # include <asm/types.h>
6712 #endif
6713 #ifdef HAVE_SYS_SOCKET_H
6714 # include <sys/socket.h>
6715 #endif
6716 #ifdef HAVE_LINUX_TYPES_H
6717 # include <linux/types.h>
6718 #endif
6720 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6721 cat >>confdefs.h <<_ACEOF
6722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6723 _ACEOF
6727 done
6730 for ac_header in mach-o/dyld_images.h
6731 do :
6732 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6733 # include <stdbool.h>
6734 #endif
6735 #ifdef HAVE_STDINT_H
6736 # include <stdint.h>
6737 #endif
6739 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6740 cat >>confdefs.h <<_ACEOF
6741 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6742 _ACEOF
6746 done
6749 for ac_header in resolv.h
6750 do :
6751 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6752 #ifdef HAVE_SYS_SOCKET_H
6753 # include <sys/socket.h>
6754 #endif
6755 #ifdef HAVE_NETINET_IN_H
6756 # include <netinet/in.h>
6757 #endif
6758 #ifdef HAVE_ARPA_NAMESER_H
6759 # include <arpa/nameser.h>
6760 #endif
6762 if test "x$ac_cv_header_resolv_h" = xyes; then :
6763 cat >>confdefs.h <<_ACEOF
6764 #define HAVE_RESOLV_H 1
6765 _ACEOF
6769 done
6772 for ac_header in ifaddrs.h
6773 do :
6774 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6776 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6777 cat >>confdefs.h <<_ACEOF
6778 #define HAVE_IFADDRS_H 1
6779 _ACEOF
6783 done
6786 for ac_header in ucontext.h
6787 do :
6788 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6790 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6791 cat >>confdefs.h <<_ACEOF
6792 #define HAVE_UCONTEXT_H 1
6793 _ACEOF
6797 done
6800 for ac_header in sys/thr.h
6801 do :
6802 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6803 #ifdef HAVE_UCONTEXT_H
6804 #include <ucontext.h>
6805 #endif
6807 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6808 cat >>confdefs.h <<_ACEOF
6809 #define HAVE_SYS_THR_H 1
6810 _ACEOF
6814 done
6817 for ac_header in pthread_np.h
6818 do :
6819 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6820 #include <pthread.h>
6821 #endif
6823 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6824 cat >>confdefs.h <<_ACEOF
6825 #define HAVE_PTHREAD_NP_H 1
6826 _ACEOF
6830 done
6833 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6834 do :
6835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6836 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6837 #include <sys/time.h>
6838 #endif
6839 #include <sys/types.h>
6840 #ifdef HAVE_ASM_TYPES_H
6841 #include <asm/types.h>
6842 #endif
6844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6845 cat >>confdefs.h <<_ACEOF
6846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6847 _ACEOF
6851 done
6854 for ac_header in libprocstat.h
6855 do :
6856 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6857 #include <sys/param.h>
6858 #endif
6859 #ifdef HAVE_SYS_QUEUE_H
6860 #include <sys/queue.h>
6861 #endif
6862 #ifdef HAVE_SYS_SOCKET_H
6863 #include <sys/socket.h>
6864 #endif
6866 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6867 cat >>confdefs.h <<_ACEOF
6868 #define HAVE_LIBPROCSTAT_H 1
6869 _ACEOF
6873 done
6877 dlldir="\${libdir}/wine"
6879 DLLPREFIX=""
6881 DLLFLAGS="-D_REENTRANT"
6883 LDRPATH_INSTALL=""
6885 LDRPATH_LOCAL=""
6887 LIBEXT="so"
6888 DLLEXT=".so"
6889 IMPLIBEXT="def"
6890 STATIC_IMPLIBEXT="def.a"
6891 # Extract the first word of "ldd", so it can be a program name with args.
6892 set dummy ldd; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_path_LDD+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 case $LDD in
6899 [\\/]* | ?:[\\/]*)
6900 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 as_dummy="/sbin:/usr/sbin:$PATH"
6905 for as_dir in $as_dummy
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6915 done
6916 done
6917 IFS=$as_save_IFS
6919 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6921 esac
6923 LDD=$ac_cv_path_LDD
6924 if test -n "$LDD"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6926 $as_echo "$LDD" >&6; }
6927 else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6933 if test -n "$ac_tool_prefix"; then
6934 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6935 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if ${ac_cv_prog_READELF+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 if test -n "$READELF"; then
6942 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6943 else
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6955 done
6956 done
6957 IFS=$as_save_IFS
6961 READELF=$ac_cv_prog_READELF
6962 if test -n "$READELF"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6964 $as_echo "$READELF" >&6; }
6965 else
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6972 if test -z "$ac_cv_prog_READELF"; then
6973 ac_ct_READELF=$READELF
6974 # Extract the first word of "readelf", so it can be a program name with args.
6975 set dummy readelf; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 if test -n "$ac_ct_READELF"; then
6982 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991 ac_cv_prog_ac_ct_READELF="readelf"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6995 done
6996 done
6997 IFS=$as_save_IFS
7001 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7002 if test -n "$ac_ct_READELF"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7004 $as_echo "$ac_ct_READELF" >&6; }
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7010 if test "x$ac_ct_READELF" = x; then
7011 READELF="true"
7012 else
7013 case $cross_compiling:$ac_tool_warned in
7014 yes:)
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017 ac_tool_warned=yes ;;
7018 esac
7019 READELF=$ac_ct_READELF
7021 else
7022 READELF="$ac_cv_prog_READELF"
7025 wine_rules_file=conf$$rules.make
7026 rm -f $wine_rules_file
7027 ALL_POT_FILES=""
7028 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7029 ALL_TEST_RESOURCES=""
7032 wine_fn_append_file ()
7034 as_fn_append $1 " \\$as_nl $2"
7037 wine_fn_ignore_file ()
7039 case "$1" in
7040 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7041 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7042 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7043 esac
7046 wine_fn_append_rule ()
7048 $as_echo "$1" >>$wine_rules_file
7051 wine_fn_has_flag ()
7053 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7056 wine_fn_depend_rules ()
7058 wine_fn_append_rule \
7059 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
7060 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir
7061 depend: $ac_dir/depend
7062 .PHONY: $ac_dir/depend
7063 $ac_dir/depend: \$(MAKEDEP) dummy
7064 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir"
7067 wine_fn_pot_rules ()
7069 test "x$with_gettextpo" = xyes || return
7071 if wine_fn_has_flag mc
7072 then
7073 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7074 wine_fn_append_rule \
7075 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7076 @cd $ac_dir && \$(MAKE) msg.pot
7077 $ac_dir/msg.pot: tools/wmc include"
7079 if wine_fn_has_flag po
7080 then
7081 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7082 wine_fn_append_rule \
7083 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7084 @cd $ac_dir && \$(MAKE) rsrc.pot
7085 $ac_dir/rsrc.pot: tools/wrc include"
7089 wine_fn_all_rules ()
7091 wine_fn_depend_rules
7092 wine_fn_append_rule \
7093 "all: $ac_dir
7094 .PHONY: $ac_dir
7095 $ac_dir: $ac_dir/Makefile dummy
7096 @cd $ac_dir && \$(MAKE)"
7099 wine_fn_install_rules ()
7101 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7103 wine_fn_append_rule \
7104 ".PHONY: $ac_dir/install $ac_dir/uninstall
7105 $ac_dir/install:: $ac_dir
7106 @cd $ac_dir && \$(MAKE) install
7107 $ac_dir/uninstall:: $ac_dir/Makefile
7108 @cd $ac_dir && \$(MAKE) uninstall
7109 install:: $ac_dir/install
7110 __uninstall__: $ac_dir/uninstall"
7112 if wine_fn_has_flag install-lib
7113 then
7114 wine_fn_append_rule \
7115 ".PHONY: $ac_dir/install-lib
7116 $ac_dir/install-lib:: $ac_dir
7117 @cd $ac_dir && \$(MAKE) install-lib
7118 install-lib:: $ac_dir/install-lib"
7121 if wine_fn_has_flag install-dev
7122 then
7123 wine_fn_append_rule \
7124 ".PHONY: $ac_dir/install-dev
7125 $ac_dir/install-dev:: $ac_dir
7126 @cd $ac_dir && \$(MAKE) install-dev
7127 install-dev:: $ac_dir/install-dev"
7131 wine_fn_clean_rules ()
7133 ac_clean=$@
7134 ac_extraclean="$ac_dir/Makefile"
7135 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7137 if wine_fn_has_flag clean
7138 then
7139 wine_fn_append_rule \
7140 "__clean__: $ac_dir/clean
7141 .PHONY: $ac_dir/clean
7142 $ac_dir/clean: $ac_dir/Makefile
7143 @cd $ac_dir && \$(MAKE) clean
7144 \$(RM) $ac_extraclean"
7145 else
7146 wine_fn_append_rule \
7147 "__clean__: $ac_dir/clean
7148 .PHONY: $ac_dir/clean
7149 $ac_dir/clean: dummy
7150 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7154 wine_fn_disabled_rules ()
7156 ac_clean=$@
7157 ac_extraclean="$ac_dir/Makefile"
7158 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7160 wine_fn_append_rule \
7161 "__clean__: $ac_dir/clean
7162 .PHONY: $ac_dir/clean
7163 $ac_dir/clean: dummy
7164 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7167 wine_fn_config_makefile ()
7169 ac_dir=$1
7170 ac_enable=$2
7171 ac_flags=$3
7173 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7174 wine_fn_disabled_rules; return
7176 wine_fn_all_rules
7177 wine_fn_install_rules
7178 wine_fn_clean_rules
7181 wine_fn_config_lib ()
7183 ac_name=$1
7184 ac_flags=$2
7185 ac_dir=dlls/$ac_name
7186 ac_deps="include"
7188 if test "x$enable_tools" = xno; then :
7190 else
7191 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7193 wine_fn_all_rules
7194 wine_fn_clean_rules
7196 wine_fn_append_rule \
7197 ".PHONY: $ac_dir/install $ac_dir/uninstall
7198 $ac_dir/install:: $ac_dir
7199 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7200 $ac_dir/uninstall::
7201 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7202 install install-dev:: $ac_dir/install
7203 __uninstall__: $ac_dir/uninstall
7204 __builddeps__: $ac_dir
7205 $ac_dir: $ac_deps"
7208 wine_fn_config_dll ()
7210 ac_name=$1
7211 ac_dir=dlls/$ac_name
7212 ac_enable=$2
7213 ac_flags=$3
7214 ac_implib=${4:-$ac_name}
7215 ac_file=$ac_dir/lib$ac_implib
7216 ac_dll=$ac_name
7217 ac_deps="include"
7218 ac_implibflags=""
7220 if test "x$enable_tools" = xno; then :
7222 else
7223 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7225 case $ac_name in
7226 *16) ac_implibflags=" -m16" ;;
7227 *.*) ;;
7228 *) ac_dll=$ac_dll.dll ;;
7229 esac
7231 ac_clean=
7232 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7233 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7234 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7235 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7237 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7238 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7239 then
7240 wine_fn_depend_rules
7241 wine_fn_clean_rules $ac_clean
7242 else
7243 wine_fn_disabled_rules $ac_clean
7244 return
7246 else
7247 wine_fn_all_rules
7248 wine_fn_clean_rules $ac_clean
7249 wine_fn_append_rule \
7250 "$ac_dir: __builddeps__
7251 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7252 @cd $ac_dir && \$(MAKE) \$@
7253 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7254 install install-lib:: $ac_dir/install-lib
7255 __uninstall__: $ac_dir/uninstall"
7256 if test -n "$DLLEXT"
7257 then
7258 wine_fn_append_rule \
7259 "$ac_dir/install-lib:: $ac_dir
7260 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7261 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7262 $ac_dir/uninstall::
7263 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7264 else
7265 wine_fn_append_rule \
7266 "$ac_dir/install-lib:: $ac_dir
7267 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7268 $ac_dir/uninstall::
7269 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7272 wine_fn_pot_rules
7275 if wine_fn_has_flag staticimplib
7276 then
7277 wine_fn_append_rule \
7278 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7279 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7280 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7281 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7282 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7283 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7284 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7285 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7286 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7287 $ac_dir/uninstall::
7288 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7289 install install-dev:: $ac_dir/install-dev
7290 __uninstall__: $ac_dir/uninstall"
7292 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7293 then
7294 wine_fn_append_rule \
7295 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7296 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7297 $ac_dir/uninstall::
7298 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7301 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7302 then
7303 wine_fn_append_rule \
7304 "__builddeps__: $ac_file.cross.a
7305 $ac_file.cross.a: $ac_dir/Makefile dummy
7306 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7309 elif wine_fn_has_flag implib
7310 then
7311 wine_fn_append_rule \
7312 "__builddeps__: $ac_file.$IMPLIBEXT
7313 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7314 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7315 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7316 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7317 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7318 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7319 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7320 $ac_dir/uninstall::
7321 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7322 install install-dev:: $ac_dir/install-dev
7323 __uninstall__: $ac_dir/uninstall"
7324 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7325 then
7326 wine_fn_append_rule \
7327 "__builddeps__: $ac_file.cross.a
7328 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7329 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7332 if test "$ac_name" != "$ac_implib"
7333 then
7334 wine_fn_append_rule \
7335 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7336 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7337 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7338 clean::
7339 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7340 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7341 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7342 then
7343 wine_fn_append_rule \
7344 "__builddeps__: dlls/lib$ac_implib.cross.a
7345 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7346 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7347 clean::
7348 \$(RM) dlls/lib$ac_implib.cross.a"
7349 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7355 wine_fn_config_program ()
7357 ac_name=$1
7358 ac_dir=programs/$ac_name
7359 ac_enable=$2
7360 ac_flags=$3
7361 ac_program=$ac_name
7363 case $ac_name in
7364 *.*) ;;
7365 *) ac_program=$ac_program.exe ;;
7366 esac
7368 ac_clean=
7369 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7370 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7371 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7372 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7374 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7375 wine_fn_disabled_rules $ac_clean; return
7378 wine_fn_all_rules
7379 wine_fn_clean_rules $ac_clean
7380 wine_fn_append_rule "$ac_dir: __builddeps__"
7381 wine_fn_pot_rules
7383 wine_fn_has_flag install || return
7384 wine_fn_append_rule \
7385 ".PHONY: $ac_dir/install $ac_dir/uninstall
7386 install install-lib:: $ac_dir/install
7387 __uninstall__: $ac_dir/uninstall"
7389 if test -n "$DLLEXT"
7390 then
7391 wine_fn_append_rule \
7392 "$ac_dir/install:: $ac_dir
7393 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7394 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7395 $ac_dir/uninstall::
7396 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7398 if test -z "$with_wine64" && wine_fn_has_flag installbin
7399 then
7400 wine_fn_append_rule \
7401 "$ac_dir/install:: __tooldeps__
7402 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7403 $ac_dir/uninstall::
7404 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7406 else
7407 wine_fn_append_rule \
7408 "$ac_dir/install:: $ac_dir
7409 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7410 $ac_dir/uninstall::
7411 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7414 if test -z "$with_wine64" && wine_fn_has_flag manpage
7415 then
7416 wine_fn_append_rule \
7417 "$ac_dir/install:: $ac_dir
7418 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7419 $ac_dir/uninstall::
7420 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7424 wine_fn_config_test ()
7426 ac_dir=$1
7427 ac_name=$2
7428 ac_flags=$3
7430 ac_clean=
7431 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7432 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7433 ac_clean="$ac_clean $ac_dir/testlist.c"
7435 if test "x$enable_tests" = xno; then :
7436 wine_fn_disabled_rules $ac_clean; return
7439 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7440 wine_fn_all_rules
7441 wine_fn_clean_rules $ac_clean
7443 wine_fn_append_rule \
7444 "$ac_dir: programs/winetest/Makefile __builddeps__
7445 programs/winetest: $ac_dir
7446 check test: $ac_dir/test
7447 .PHONY: $ac_dir/test
7448 $ac_dir/test: dummy
7449 @cd $ac_dir && \$(MAKE) test
7450 testclean::
7451 \$(RM) $ac_dir/*.ok"
7453 if test -n "$CROSSTARGET"
7454 then
7455 wine_fn_append_rule \
7456 "crosstest: $ac_dir/crosstest
7457 .PHONY: $ac_dir/crosstest
7458 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7459 @cd $ac_dir && \$(MAKE) crosstest"
7463 wine_fn_config_tool ()
7465 ac_dir=$1
7466 ac_flags=$2
7467 if test "x$enable_tools" = xno; then :
7468 return
7471 wine_fn_all_rules
7472 wine_fn_install_rules
7473 wine_fn_clean_rules
7475 wine_fn_append_rule "__tooldeps__: $ac_dir"
7476 wine_fn_append_rule "$ac_dir: libs/port"
7477 case $ac_dir in
7478 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7479 esac
7482 wine_fn_config_symlink ()
7484 ac_linkdir=
7485 if test "x$1" = "x-d"
7486 then
7487 ac_linkdir=$2
7488 shift; shift
7490 ac_links=$@
7491 wine_fn_append_rule \
7492 "$ac_links:
7493 @./config.status \$@
7494 distclean::
7495 \$(RM) $ac_links"
7496 for f in $ac_links; do wine_fn_ignore_file $f; done
7497 test -n "$ac_linkdir" || return
7498 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7501 wine_binary="wine"
7502 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7503 loader_programs="$wine_binary wine-installed"
7504 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7506 LOADER_RULES="
7507 install install-lib:: wine-installed
7508 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7510 uninstall::
7511 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7515 case $host_os in
7516 cygwin*|mingw32*)
7517 if test -n "$ac_tool_prefix"; then
7518 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7519 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_DLLTOOL+:} false; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 if test -n "$DLLTOOL"; then
7526 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 break 2
7539 done
7540 done
7541 IFS=$as_save_IFS
7545 DLLTOOL=$ac_cv_prog_DLLTOOL
7546 if test -n "$DLLTOOL"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7548 $as_echo "$DLLTOOL" >&6; }
7549 else
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7556 if test -z "$ac_cv_prog_DLLTOOL"; then
7557 ac_ct_DLLTOOL=$DLLTOOL
7558 # Extract the first word of "dlltool", so it can be a program name with args.
7559 set dummy dlltool; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 if test -n "$ac_ct_DLLTOOL"; then
7566 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7575 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7579 done
7580 done
7581 IFS=$as_save_IFS
7585 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7586 if test -n "$ac_ct_DLLTOOL"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7588 $as_echo "$ac_ct_DLLTOOL" >&6; }
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7594 if test "x$ac_ct_DLLTOOL" = x; then
7595 DLLTOOL="false"
7596 else
7597 case $cross_compiling:$ac_tool_warned in
7598 yes:)
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7601 ac_tool_warned=yes ;;
7602 esac
7603 DLLTOOL=$ac_ct_DLLTOOL
7605 else
7606 DLLTOOL="$ac_cv_prog_DLLTOOL"
7609 LIBEXT="dll"
7610 DLLEXT=""
7611 IMPLIBEXT="a"
7612 STATIC_IMPLIBEXT="a"
7613 enable_iphlpapi=${enable_iphlpapi:-no}
7614 enable_kernel32=${enable_kernel32:-no}
7615 enable_msvcrt=${enable_msvcrt:-no}
7616 enable_ntdll=${enable_ntdll:-no}
7617 enable_ws2_32=${enable_ws2_32:-no}
7618 enable_loader=${enable_loader:-no}
7619 enable_server=${enable_server:-no}
7620 with_x=${with_x:-no}
7621 with_pthread=${with_pthread:-no}
7623 crtlibs=""
7624 case $host_os in
7625 mingw32*)
7626 crtlibs="-lmsvcrt"
7627 SOCKET_LIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7629 esac
7631 libwine_targets="libwine.dll libwine.a"
7632 LIBWINE_RULES="
7633 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7635 all: libwine.dll libwine.a
7637 libwine.a: \$(srcdir)/wine.def
7638 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7640 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7641 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7643 install install-lib:: libwine.dll
7644 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7646 install install-dev:: libwine.a
7647 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7649 uninstall::
7650 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7655 darwin*|macosx*)
7656 LIBEXT="dylib"
7657 DLLFLAGS="$DLLFLAGS -fPIC"
7658 LIBWINE_LDFLAGS="-multiply_defined suppress"
7659 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7660 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7661 COREFOUNDATION_LIBS="-framework CoreFoundation"
7663 IOKIT_LIBS="-framework IOKit -framework CoreFoundation"
7665 FORCEFEEDBACK_LIBS="-framework ForceFeedback -framework CoreFoundation"
7667 APPLICATIONSERVICES_LIBS="-framework ApplicationServices"
7669 CORESERVICES_LIBS="-framework CoreServices"
7671 APPKIT_LIBS="-framework AppKit"
7673 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7674 case $host_os in
7675 darwin11*) LDEXECFLAGS="-Wl,-macosx_version_min,10.6 $LDEXECFLAGS" ;;
7676 esac
7677 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7678 then
7679 DISKARBITRATION_LIBS="-framework DiskArbitration -framework CoreFoundation"
7682 if test "$ac_cv_header_Security_Security_h" = "yes"
7683 then
7684 SECURITY_LIBS="-framework Security -framework CoreFoundation"
7686 ac_save_LIBS="$LIBS"
7687 LIBS="$LIBS $SECURITY_LIBS"
7688 for ac_func in SSLCopyPeerCertificates
7689 do :
7690 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7691 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7692 cat >>confdefs.h <<_ACEOF
7693 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7694 _ACEOF
7697 done
7699 LIBS="$ac_save_LIBS"
7700 with_gnutls=${with_gnutls:-no}
7702 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7703 then
7704 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7705 then
7706 COREAUDIO_LIBS="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7708 else
7709 COREAUDIO_LIBS="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7712 ac_save_LIBS="$LIBS"
7713 LIBS="$LIBS $COREAUDIO_LIBS"
7714 for ac_func in AUGraphAddNode
7715 do :
7716 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7717 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7718 cat >>confdefs.h <<_ACEOF
7719 #define HAVE_AUGRAPHADDNODE 1
7720 _ACEOF
7723 done
7725 LIBS="$ac_save_LIBS"
7727 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7728 then
7729 OPENAL_LIBS="-framework OpenAL"
7732 cat >>confdefs.h <<_ACEOF
7733 #define HAVE_OPENAL 1
7734 _ACEOF
7736 ac_cv_lib_openal=yes
7738 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7739 then
7740 OPENCL_LIBS="-framework OpenCL"
7742 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7744 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7745 then
7746 ac_save_LIBS="$LIBS"
7747 LIBS="$LIBS $IOKIT_LIBS"
7748 for ac_func in IOHIDManagerCreate
7749 do :
7750 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7751 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7752 cat >>confdefs.h <<_ACEOF
7753 #define HAVE_IOHIDMANAGERCREATE 1
7754 _ACEOF
7757 done
7759 LIBS="$ac_save_LIBS"
7761 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7762 then
7763 QUICKTIME_LIBS="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7765 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7766 else
7767 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7769 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7770 then
7771 CARBON_LIBS="-framework Carbon"
7775 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
7776 then
7777 ac_save_LIBS="$LIBS"
7778 LIBS="$LIBS $APPLICATIONSERVICES_LIBS"
7779 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
7780 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
7781 enable_winemac_drv=${enable_winemac_drv:-yes}
7784 LIBS="$ac_save_LIBS"
7787 if test "x$enable_win16" = "xyes"
7788 then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
7790 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
7791 if test "$cross_compiling" = yes; then :
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
7793 $as_echo "cross-compiling, assuming yes" >&6; }
7794 else
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 asm(".text\n"
7798 "bad:\tnop;nop\n"
7799 "good:\tnop;nop\n\t"
7800 ".globl _testfunc\n"
7801 "_testfunc:\tcallw good");
7802 extern void testfunc();
7804 main ()
7806 unsigned short *p = (unsigned short *)testfunc;
7807 return p[0] != 0xe866 || p[1] != 0xfffa
7809 return 0;
7811 _ACEOF
7812 if ac_fn_c_try_run "$LINENO"; then :
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7814 $as_echo "yes" >&6; }
7815 else
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7818 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
7820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7821 conftest.$ac_objext conftest.beam conftest.$ac_ext
7826 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
7827 LIBWINE_RULES="
7828 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7830 all: libwine.dylib
7832 libwine.$libwine_version.dylib: \$(OBJS)
7833 \$(CC) -dynamiclib -install_name @rpath/libwine.$libwine_soversion.dylib -Wl,-rpath,@loader_path/ -compatibility_version $libwine_soversion -current_version $libwine_version \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7835 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
7836 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
7838 libwine.dylib: libwine.$libwine_soversion.dylib
7839 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
7841 install install-lib:: libwine.$libwine_version.dylib
7842 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
7843 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
7845 install install-dev::
7846 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
7848 uninstall::
7849 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
7853 as_fn_append LOADER_RULES "
7854 $wine_binary: main.o wine_info.plist
7855 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
7857 wine-installed: main.o wine_info.plist
7858 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
7862 linux-android*)
7863 DLLFLAGS="$DLLFLAGS -fPIC"
7864 DLLPREFIX="lib"
7865 LDEXECFLAGS=""
7866 dlldir="\${libdir}"
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7868 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7869 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 ac_wine_try_cflags_saved=$CFLAGS
7873 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 int main(int argc, char **argv) { return 0; }
7877 _ACEOF
7878 if ac_fn_c_try_link "$LINENO"; then :
7879 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7880 else
7881 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7883 rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 CFLAGS=$ac_wine_try_cflags_saved
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7888 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7889 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
7890 LDEXECFLAGS="-Wl,--export-dynamic"
7892 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7894 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7895 if eval \${$as_ac_var+:} false; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 ac_wine_try_cflags_saved=$CFLAGS
7899 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902 int main(int argc, char **argv) { return 0; }
7903 _ACEOF
7904 if ac_fn_c_try_link "$LINENO"; then :
7905 eval "$as_ac_var=yes"
7906 else
7907 eval "$as_ac_var=no"
7909 rm -f core conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911 CFLAGS=$ac_wine_try_cflags_saved
7913 eval ac_res=\$$as_ac_var
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7915 $as_echo "$ac_res" >&6; }
7916 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7917 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7918 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7919 else
7920 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7922 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7923 if eval \${$as_ac_var+:} false; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 ac_wine_try_cflags_saved=$CFLAGS
7927 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7930 int main(int argc, char **argv) { return 0; }
7931 _ACEOF
7932 if ac_fn_c_try_link "$LINENO"; then :
7933 eval "$as_ac_var=yes"
7934 else
7935 eval "$as_ac_var=no"
7937 rm -f core conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
7939 CFLAGS=$ac_wine_try_cflags_saved
7941 eval ac_res=\$$as_ac_var
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7943 $as_echo "$ac_res" >&6; }
7944 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7945 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7946 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7951 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7952 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 ac_wine_try_cflags_saved=$CFLAGS
7956 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 int main(int argc, char **argv) { return 0; }
7960 _ACEOF
7961 if ac_fn_c_try_link "$LINENO"; then :
7962 ac_cv_cflags__Wl___enable_new_dtags=yes
7963 else
7964 ac_cv_cflags__Wl___enable_new_dtags=no
7966 rm -f core conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968 CFLAGS=$ac_wine_try_cflags_saved
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7971 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7972 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
7973 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7976 case $host_cpu in
7977 *i[3456789]86* | x86_64)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7979 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7980 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 ac_wine_try_cflags_saved=$CFLAGS
7984 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 int main(int argc, char **argv) { return 0; }
7988 _ACEOF
7989 if ac_fn_c_try_link "$LINENO"; then :
7990 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7991 else
7992 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7994 rm -f core conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7996 CFLAGS=$ac_wine_try_cflags_saved
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7999 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8000 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8001 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8004 esac
8006 libwine_targets="libwine.so"
8007 LIBWINE_RULES="
8008 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8010 all: libwine.so
8012 libwine.so: \$(OBJS)
8013 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8015 install install-lib:: libwine.so
8016 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8018 uninstall::
8019 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8023 as_fn_append LOADER_RULES "
8024 $wine_binary: main.o
8025 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8027 wine-installed: main.o
8028 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8033 DLLFLAGS="$DLLFLAGS -fPIC"
8034 LDEXECFLAGS=""
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8036 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8037 if ${ac_cv_c_dll_gnuelf+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 ac_wine_try_cflags_saved=$CFLAGS
8041 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044 void myfunc() {}
8045 _ACEOF
8046 if ac_fn_c_try_link "$LINENO"; then :
8047 ac_cv_c_dll_gnuelf="yes"
8048 else
8049 ac_cv_c_dll_gnuelf="no"
8051 rm -f core conftest.err conftest.$ac_objext \
8052 conftest$ac_exeext conftest.$ac_ext
8053 CFLAGS=$ac_wine_try_cflags_saved
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8056 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8057 if test "$ac_cv_c_dll_gnuelf" = "yes"
8058 then
8059 LDSHARED="\$(CC) -shared"
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8061 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8062 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 ac_wine_try_cflags_saved=$CFLAGS
8066 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 int main(int argc, char **argv) { return 0; }
8070 _ACEOF
8071 if ac_fn_c_try_link "$LINENO"; then :
8072 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8073 else
8074 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8076 rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
8078 CFLAGS=$ac_wine_try_cflags_saved
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8081 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8082 if test "x$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" = xyes; then :
8083 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8084 else
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8086 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8087 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 ac_wine_try_cflags_saved=$CFLAGS
8091 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 int main(int argc, char **argv) { return 0; }
8095 _ACEOF
8096 if ac_fn_c_try_link "$LINENO"; then :
8097 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8098 else
8099 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8101 rm -f core conftest.err conftest.$ac_objext \
8102 conftest$ac_exeext conftest.$ac_ext
8103 CFLAGS=$ac_wine_try_cflags_saved
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8106 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8107 if test "x$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" = xyes; then :
8108 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8112 echo '{ global: *; };' >conftest.map
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8114 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8115 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 ac_wine_try_cflags_saved=$CFLAGS
8119 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8122 int main(int argc, char **argv) { return 0; }
8123 _ACEOF
8124 if ac_fn_c_try_link "$LINENO"; then :
8125 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8126 else
8127 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8129 rm -f core conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
8131 CFLAGS=$ac_wine_try_cflags_saved
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8134 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8135 if test "x$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" = xyes; then :
8136 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8138 rm -f conftest.map
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8141 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8142 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144 else
8145 ac_wine_try_cflags_saved=$CFLAGS
8146 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 int main(int argc, char **argv) { return 0; }
8150 _ACEOF
8151 if ac_fn_c_try_link "$LINENO"; then :
8152 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8153 else
8154 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8156 rm -f core conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
8158 CFLAGS=$ac_wine_try_cflags_saved
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8161 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8162 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
8163 LDEXECFLAGS="-Wl,--export-dynamic"
8166 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8168 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8169 if eval \${$as_ac_var+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 ac_wine_try_cflags_saved=$CFLAGS
8173 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 int main(int argc, char **argv) { return 0; }
8177 _ACEOF
8178 if ac_fn_c_try_link "$LINENO"; then :
8179 eval "$as_ac_var=yes"
8180 else
8181 eval "$as_ac_var=no"
8183 rm -f core conftest.err conftest.$ac_objext \
8184 conftest$ac_exeext conftest.$ac_ext
8185 CFLAGS=$ac_wine_try_cflags_saved
8187 eval ac_res=\$$as_ac_var
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8189 $as_echo "$ac_res" >&6; }
8190 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8191 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8192 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8193 else
8194 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8196 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8197 if eval \${$as_ac_var+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 ac_wine_try_cflags_saved=$CFLAGS
8201 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204 int main(int argc, char **argv) { return 0; }
8205 _ACEOF
8206 if ac_fn_c_try_link "$LINENO"; then :
8207 eval "$as_ac_var=yes"
8208 else
8209 eval "$as_ac_var=no"
8211 rm -f core conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8213 CFLAGS=$ac_wine_try_cflags_saved
8215 eval ac_res=\$$as_ac_var
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8217 $as_echo "$ac_res" >&6; }
8218 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8219 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8220 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8225 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8226 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 ac_wine_try_cflags_saved=$CFLAGS
8230 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 int main(int argc, char **argv) { return 0; }
8234 _ACEOF
8235 if ac_fn_c_try_link "$LINENO"; then :
8236 ac_cv_cflags__Wl___enable_new_dtags=yes
8237 else
8238 ac_cv_cflags__Wl___enable_new_dtags=no
8240 rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 CFLAGS=$ac_wine_try_cflags_saved
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8245 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8246 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
8247 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8250 case $host_cpu in
8251 *i[3456789]86* | x86_64)
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8253 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8254 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 ac_wine_try_cflags_saved=$CFLAGS
8258 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8261 int main(int argc, char **argv) { return 0; }
8262 _ACEOF
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8265 else
8266 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8268 rm -f core conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270 CFLAGS=$ac_wine_try_cflags_saved
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8273 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8274 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8275 case $host_os in
8276 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8277 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8278 esac
8281 # Extract the first word of "prelink", so it can be a program name with args.
8282 set dummy prelink; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if ${ac_cv_path_PRELINK+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288 case $PRELINK in
8289 [\\/]* | ?:[\\/]*)
8290 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 for as_dir in /sbin /usr/sbin $PATH
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8304 done
8305 done
8306 IFS=$as_save_IFS
8308 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8310 esac
8312 PRELINK=$ac_cv_path_PRELINK
8313 if test -n "$PRELINK"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8315 $as_echo "$PRELINK" >&6; }
8316 else
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8322 if test "x$PRELINK" = xfalse
8323 then
8324 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8327 esac
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8331 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8332 if ${ac_cv_c_dll_unixware+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 ac_wine_try_cflags_saved=$CFLAGS
8336 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339 void myfunc() {}
8340 _ACEOF
8341 if ac_fn_c_try_link "$LINENO"; then :
8342 ac_cv_c_dll_unixware="yes"
8343 else
8344 ac_cv_c_dll_unixware="no"
8346 rm -f core conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 CFLAGS=$ac_wine_try_cflags_saved
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8351 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8352 if test "$ac_cv_c_dll_unixware" = "yes"
8353 then
8354 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8357 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8358 LIBWINE_RULES="
8359 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8361 all: libwine.so
8363 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8364 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8366 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8367 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8369 libwine.so: libwine.so.$libwine_soversion
8370 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8372 install install-lib:: libwine.so.$libwine_version
8373 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8374 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8376 install install-dev::
8377 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8379 uninstall::
8380 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8384 as_fn_append LOADER_RULES "
8385 $wine_binary: main.o
8386 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8388 wine-installed: main.o
8389 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8392 esac
8394 as_fn_append LIBWINE_RULES "
8395 EXTRA_TARGETS = $libwine_targets
8398 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8399 enable_winemac_drv=${enable_winemac_drv:-no}
8401 CROSSTARGET=""
8403 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8404 then
8405 case "$host_cpu" in
8406 i[3456789]86*)
8407 ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc
8408 mingw32-gcc" ;;
8409 x86_64)
8410 ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;;
8412 ac_prefix_list="" ;;
8413 esac
8414 for ac_prog in $ac_prefix_list
8416 # Extract the first word of "$ac_prog", so it can be a program name with args.
8417 set dummy $ac_prog; ac_word=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if ${ac_cv_prog_CROSSCC+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 if test -n "$CROSSCC"; then
8424 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8425 else
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8433 ac_cv_prog_CROSSCC="$ac_prog"
8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 break 2
8437 done
8438 done
8439 IFS=$as_save_IFS
8443 CROSSCC=$ac_cv_prog_CROSSCC
8444 if test -n "$CROSSCC"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8446 $as_echo "$CROSSCC" >&6; }
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8453 test -n "$CROSSCC" && break
8454 done
8455 test -n "$CROSSCC" || CROSSCC="false"
8457 if test "$CROSSCC" != "false"
8458 then
8459 ac_save_CC="$CC"
8460 CC="$CROSSCC"
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8462 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8467 main ()
8471 return 0;
8473 _ACEOF
8474 if ac_fn_c_try_compile "$LINENO"; then :
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8476 $as_echo "yes" >&6; }
8477 set x $CROSSCC
8478 shift
8479 while test $# -ge 1
8481 case "$1" in
8482 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8483 esac
8484 shift
8485 done
8486 else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 CC="$ac_save_CC"
8496 if test "$ac_cv_header_pthread_h" = "yes"
8497 then
8498 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8499 if test "x$ac_cv_func_pthread_create" = xyes; then :
8501 else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8503 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8504 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 ac_check_lib_save_LIBS=$LIBS
8508 LIBS="-lpthread $LIBS"
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8512 /* Override any GCC internal prototype to avoid an error.
8513 Use char because int might match the return type of a GCC
8514 builtin and then its argument prototype would still apply. */
8515 #ifdef __cplusplus
8516 extern "C"
8517 #endif
8518 char pthread_create ();
8520 main ()
8522 return pthread_create ();
8524 return 0;
8526 _ACEOF
8527 if ac_fn_c_try_link "$LINENO"; then :
8528 ac_cv_lib_pthread_pthread_create=yes
8529 else
8530 ac_cv_lib_pthread_pthread_create=no
8532 rm -f core conftest.err conftest.$ac_objext \
8533 conftest$ac_exeext conftest.$ac_ext
8534 LIBS=$ac_check_lib_save_LIBS
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8537 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8538 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8539 PTHREAD_LIBS="-lpthread"
8546 if test "x$ac_cv_func_pthread_create" != xyes -a "x$PTHREAD_LIBS" = x; then :
8547 case "x$with_pthread" in
8548 xno) ;;
8549 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8550 Wine cannot support threads without libpthread.
8551 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8552 esac
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8557 $as_echo_n "checking for X... " >&6; }
8560 # Check whether --with-x was given.
8561 if test "${with_x+set}" = set; then :
8562 withval=$with_x;
8565 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8566 if test "x$with_x" = xno; then
8567 # The user explicitly disabled X.
8568 have_x=disabled
8569 else
8570 case $x_includes,$x_libraries in #(
8571 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8572 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 # One or both of the vars are not set, and there is no cached value.
8576 ac_x_includes=no ac_x_libraries=no
8577 rm -f -r conftest.dir
8578 if mkdir conftest.dir; then
8579 cd conftest.dir
8580 cat >Imakefile <<'_ACEOF'
8581 incroot:
8582 @echo incroot='${INCROOT}'
8583 usrlibdir:
8584 @echo usrlibdir='${USRLIBDIR}'
8585 libdir:
8586 @echo libdir='${LIBDIR}'
8587 _ACEOF
8588 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8589 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8590 for ac_var in incroot usrlibdir libdir; do
8591 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8592 done
8593 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8594 for ac_extension in a so sl dylib la dll; do
8595 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8596 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8597 ac_im_usrlibdir=$ac_im_libdir; break
8599 done
8600 # Screen out bogus values from the imake configuration. They are
8601 # bogus both because they are the default anyway, and because
8602 # using them would break gcc on systems where it needs fixed includes.
8603 case $ac_im_incroot in
8604 /usr/include) ac_x_includes= ;;
8605 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8606 esac
8607 case $ac_im_usrlibdir in
8608 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8609 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8610 esac
8612 cd ..
8613 rm -f -r conftest.dir
8616 # Standard set of common directories for X headers.
8617 # Check X11 before X11Rn because it is often a symlink to the current release.
8618 ac_x_header_dirs='
8619 /usr/X11/include
8620 /usr/X11R7/include
8621 /usr/X11R6/include
8622 /usr/X11R5/include
8623 /usr/X11R4/include
8625 /usr/include/X11
8626 /usr/include/X11R7
8627 /usr/include/X11R6
8628 /usr/include/X11R5
8629 /usr/include/X11R4
8631 /usr/local/X11/include
8632 /usr/local/X11R7/include
8633 /usr/local/X11R6/include
8634 /usr/local/X11R5/include
8635 /usr/local/X11R4/include
8637 /usr/local/include/X11
8638 /usr/local/include/X11R7
8639 /usr/local/include/X11R6
8640 /usr/local/include/X11R5
8641 /usr/local/include/X11R4
8643 /usr/X386/include
8644 /usr/x386/include
8645 /usr/XFree86/include/X11
8647 /usr/include
8648 /usr/local/include
8649 /usr/unsupported/include
8650 /usr/athena/include
8651 /usr/local/x11r5/include
8652 /usr/lpp/Xamples/include
8654 /usr/openwin/include
8655 /usr/openwin/share/include'
8657 if test "$ac_x_includes" = no; then
8658 # Guess where to find include files, by looking for Xlib.h.
8659 # First, try using that file with no special directory specified.
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #include <X11/Xlib.h>
8663 _ACEOF
8664 if ac_fn_c_try_cpp "$LINENO"; then :
8665 # We can compile using X headers with no special include directory.
8666 ac_x_includes=
8667 else
8668 for ac_dir in $ac_x_header_dirs; do
8669 if test -r "$ac_dir/X11/Xlib.h"; then
8670 ac_x_includes=$ac_dir
8671 break
8673 done
8675 rm -f conftest.err conftest.i conftest.$ac_ext
8676 fi # $ac_x_includes = no
8678 if test "$ac_x_libraries" = no; then
8679 # Check for the libraries.
8680 # See if we find them without any special options.
8681 # Don't add to $LIBS permanently.
8682 ac_save_LIBS=$LIBS
8683 LIBS="-lX11 $LIBS"
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8686 #include <X11/Xlib.h>
8688 main ()
8690 XrmInitialize ()
8692 return 0;
8694 _ACEOF
8695 if ac_fn_c_try_link "$LINENO"; then :
8696 LIBS=$ac_save_LIBS
8697 # We can link X programs with no special library path.
8698 ac_x_libraries=
8699 else
8700 LIBS=$ac_save_LIBS
8701 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8703 # Don't even attempt the hair of trying to link an X program!
8704 for ac_extension in a so sl dylib la dll; do
8705 if test -r "$ac_dir/libX11.$ac_extension"; then
8706 ac_x_libraries=$ac_dir
8707 break 2
8709 done
8710 done
8712 rm -f core conftest.err conftest.$ac_objext \
8713 conftest$ac_exeext conftest.$ac_ext
8714 fi # $ac_x_libraries = no
8716 case $ac_x_includes,$ac_x_libraries in #(
8717 no,* | *,no | *\'*)
8718 # Didn't find X, or a directory has "'" in its name.
8719 ac_cv_have_x="have_x=no";; #(
8721 # Record where we found X for the cache.
8722 ac_cv_have_x="have_x=yes\
8723 ac_x_includes='$ac_x_includes'\
8724 ac_x_libraries='$ac_x_libraries'"
8725 esac
8727 ;; #(
8728 *) have_x=yes;;
8729 esac
8730 eval "$ac_cv_have_x"
8731 fi # $with_x != no
8733 if test "$have_x" != yes; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8735 $as_echo "$have_x" >&6; }
8736 no_x=yes
8737 else
8738 # If each of the values was on the command line, it overrides each guess.
8739 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8740 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8741 # Update the cache value to reflect the command line values.
8742 ac_cv_have_x="have_x=yes\
8743 ac_x_includes='$x_includes'\
8744 ac_x_libraries='$x_libraries'"
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8746 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8749 if test "$no_x" = yes; then
8750 # Not all programs may use this symbol, but it does not hurt to define it.
8752 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8754 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8755 else
8756 if test -n "$x_includes"; then
8757 X_CFLAGS="$X_CFLAGS -I$x_includes"
8760 # It would also be nice to do this for all -L options, not just this one.
8761 if test -n "$x_libraries"; then
8762 X_LIBS="$X_LIBS -L$x_libraries"
8763 # For Solaris; some versions of Sun CC require a space after -R and
8764 # others require no space. Words are not sufficient . . . .
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8766 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8767 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8768 ac_xsave_c_werror_flag=$ac_c_werror_flag
8769 ac_c_werror_flag=yes
8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h. */
8774 main ()
8778 return 0;
8780 _ACEOF
8781 if ac_fn_c_try_link "$LINENO"; then :
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8784 X_LIBS="$X_LIBS -R$x_libraries"
8785 else
8786 LIBS="$ac_xsave_LIBS -R $x_libraries"
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8791 main ()
8795 return 0;
8797 _ACEOF
8798 if ac_fn_c_try_link "$LINENO"; then :
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8800 $as_echo "yes" >&6; }
8801 X_LIBS="$X_LIBS -R $x_libraries"
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8804 $as_echo "neither works" >&6; }
8806 rm -f core conftest.err conftest.$ac_objext \
8807 conftest$ac_exeext conftest.$ac_ext
8809 rm -f core conftest.err conftest.$ac_objext \
8810 conftest$ac_exeext conftest.$ac_ext
8811 ac_c_werror_flag=$ac_xsave_c_werror_flag
8812 LIBS=$ac_xsave_LIBS
8815 # Check for system-dependent libraries X programs must link with.
8816 # Do this before checking for the system-independent R6 libraries
8817 # (-lICE), since we may need -lsocket or whatever for X linking.
8819 if test "$ISC" = yes; then
8820 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8821 else
8822 # Martyn Johnson says this is needed for Ultrix, if the X
8823 # libraries were built with DECnet support. And Karl Berry says
8824 # the Alpha needs dnet_stub (dnet does not exist).
8825 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8829 /* Override any GCC internal prototype to avoid an error.
8830 Use char because int might match the return type of a GCC
8831 builtin and then its argument prototype would still apply. */
8832 #ifdef __cplusplus
8833 extern "C"
8834 #endif
8835 char XOpenDisplay ();
8837 main ()
8839 return XOpenDisplay ();
8841 return 0;
8843 _ACEOF
8844 if ac_fn_c_try_link "$LINENO"; then :
8846 else
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8848 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8849 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 ac_check_lib_save_LIBS=$LIBS
8853 LIBS="-ldnet $LIBS"
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8857 /* Override any GCC internal prototype to avoid an error.
8858 Use char because int might match the return type of a GCC
8859 builtin and then its argument prototype would still apply. */
8860 #ifdef __cplusplus
8861 extern "C"
8862 #endif
8863 char dnet_ntoa ();
8865 main ()
8867 return dnet_ntoa ();
8869 return 0;
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8873 ac_cv_lib_dnet_dnet_ntoa=yes
8874 else
8875 ac_cv_lib_dnet_dnet_ntoa=no
8877 rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 LIBS=$ac_check_lib_save_LIBS
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8882 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8883 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8884 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8887 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8889 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8890 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8891 $as_echo_n "(cached) " >&6
8892 else
8893 ac_check_lib_save_LIBS=$LIBS
8894 LIBS="-ldnet_stub $LIBS"
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8898 /* Override any GCC internal prototype to avoid an error.
8899 Use char because int might match the return type of a GCC
8900 builtin and then its argument prototype would still apply. */
8901 #ifdef __cplusplus
8902 extern "C"
8903 #endif
8904 char dnet_ntoa ();
8906 main ()
8908 return dnet_ntoa ();
8910 return 0;
8912 _ACEOF
8913 if ac_fn_c_try_link "$LINENO"; then :
8914 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8915 else
8916 ac_cv_lib_dnet_stub_dnet_ntoa=no
8918 rm -f core conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8923 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8924 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8925 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8930 rm -f core conftest.err conftest.$ac_objext \
8931 conftest$ac_exeext conftest.$ac_ext
8932 LIBS="$ac_xsave_LIBS"
8934 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8935 # to get the SysV transport functions.
8936 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8937 # needs -lnsl.
8938 # The nsl library prevents programs from opening the X display
8939 # on Irix 5.2, according to T.E. Dickey.
8940 # The functions gethostbyname, getservbyname, and inet_addr are
8941 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8942 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8943 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8947 if test $ac_cv_func_gethostbyname = no; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8949 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8950 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 ac_check_lib_save_LIBS=$LIBS
8954 LIBS="-lnsl $LIBS"
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8958 /* Override any GCC internal prototype to avoid an error.
8959 Use char because int might match the return type of a GCC
8960 builtin and then its argument prototype would still apply. */
8961 #ifdef __cplusplus
8962 extern "C"
8963 #endif
8964 char gethostbyname ();
8966 main ()
8968 return gethostbyname ();
8970 return 0;
8972 _ACEOF
8973 if ac_fn_c_try_link "$LINENO"; then :
8974 ac_cv_lib_nsl_gethostbyname=yes
8975 else
8976 ac_cv_lib_nsl_gethostbyname=no
8978 rm -f core conftest.err conftest.$ac_objext \
8979 conftest$ac_exeext conftest.$ac_ext
8980 LIBS=$ac_check_lib_save_LIBS
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8983 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8984 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8985 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8988 if test $ac_cv_lib_nsl_gethostbyname = no; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8990 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8991 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 ac_check_lib_save_LIBS=$LIBS
8995 LIBS="-lbsd $LIBS"
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8999 /* Override any GCC internal prototype to avoid an error.
9000 Use char because int might match the return type of a GCC
9001 builtin and then its argument prototype would still apply. */
9002 #ifdef __cplusplus
9003 extern "C"
9004 #endif
9005 char gethostbyname ();
9007 main ()
9009 return gethostbyname ();
9011 return 0;
9013 _ACEOF
9014 if ac_fn_c_try_link "$LINENO"; then :
9015 ac_cv_lib_bsd_gethostbyname=yes
9016 else
9017 ac_cv_lib_bsd_gethostbyname=no
9019 rm -f core conftest.err conftest.$ac_objext \
9020 conftest$ac_exeext conftest.$ac_ext
9021 LIBS=$ac_check_lib_save_LIBS
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9024 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9025 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9026 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9032 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9033 # socket/setsockopt and other routines are undefined under SCO ODT
9034 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9035 # on later versions), says Simon Leinen: it contains gethostby*
9036 # variants that don't use the name server (or something). -lsocket
9037 # must be given before -lnsl if both are needed. We assume that
9038 # if connect needs -lnsl, so does gethostbyname.
9039 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9040 if test "x$ac_cv_func_connect" = xyes; then :
9044 if test $ac_cv_func_connect = no; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9046 $as_echo_n "checking for connect in -lsocket... " >&6; }
9047 if ${ac_cv_lib_socket_connect+:} false; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 ac_check_lib_save_LIBS=$LIBS
9051 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9055 /* Override any GCC internal prototype to avoid an error.
9056 Use char because int might match the return type of a GCC
9057 builtin and then its argument prototype would still apply. */
9058 #ifdef __cplusplus
9059 extern "C"
9060 #endif
9061 char connect ();
9063 main ()
9065 return connect ();
9067 return 0;
9069 _ACEOF
9070 if ac_fn_c_try_link "$LINENO"; then :
9071 ac_cv_lib_socket_connect=yes
9072 else
9073 ac_cv_lib_socket_connect=no
9075 rm -f core conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077 LIBS=$ac_check_lib_save_LIBS
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9080 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9081 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9082 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9087 # Guillermo Gomez says -lposix is necessary on A/UX.
9088 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9089 if test "x$ac_cv_func_remove" = xyes; then :
9093 if test $ac_cv_func_remove = no; then
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9095 $as_echo_n "checking for remove in -lposix... " >&6; }
9096 if ${ac_cv_lib_posix_remove+:} false; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 ac_check_lib_save_LIBS=$LIBS
9100 LIBS="-lposix $LIBS"
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9104 /* Override any GCC internal prototype to avoid an error.
9105 Use char because int might match the return type of a GCC
9106 builtin and then its argument prototype would still apply. */
9107 #ifdef __cplusplus
9108 extern "C"
9109 #endif
9110 char remove ();
9112 main ()
9114 return remove ();
9116 return 0;
9118 _ACEOF
9119 if ac_fn_c_try_link "$LINENO"; then :
9120 ac_cv_lib_posix_remove=yes
9121 else
9122 ac_cv_lib_posix_remove=no
9124 rm -f core conftest.err conftest.$ac_objext \
9125 conftest$ac_exeext conftest.$ac_ext
9126 LIBS=$ac_check_lib_save_LIBS
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9129 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9130 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9136 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9137 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9138 if test "x$ac_cv_func_shmat" = xyes; then :
9142 if test $ac_cv_func_shmat = no; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9144 $as_echo_n "checking for shmat in -lipc... " >&6; }
9145 if ${ac_cv_lib_ipc_shmat+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 ac_check_lib_save_LIBS=$LIBS
9149 LIBS="-lipc $LIBS"
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9153 /* Override any GCC internal prototype to avoid an error.
9154 Use char because int might match the return type of a GCC
9155 builtin and then its argument prototype would still apply. */
9156 #ifdef __cplusplus
9157 extern "C"
9158 #endif
9159 char shmat ();
9161 main ()
9163 return shmat ();
9165 return 0;
9167 _ACEOF
9168 if ac_fn_c_try_link "$LINENO"; then :
9169 ac_cv_lib_ipc_shmat=yes
9170 else
9171 ac_cv_lib_ipc_shmat=no
9173 rm -f core conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
9175 LIBS=$ac_check_lib_save_LIBS
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9178 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9179 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9186 # Check for libraries that X11R6 Xt/Xaw programs need.
9187 ac_save_LDFLAGS=$LDFLAGS
9188 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9189 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9190 # check for ICE first), but we must link in the order -lSM -lICE or
9191 # we get undefined symbols. So assume we have SM if we have ICE.
9192 # These have to be linked with before -lX11, unlike the other
9193 # libraries we check for below, so use a different variable.
9194 # John Interrante, Karl Berry
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9196 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9197 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 ac_check_lib_save_LIBS=$LIBS
9201 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9205 /* Override any GCC internal prototype to avoid an error.
9206 Use char because int might match the return type of a GCC
9207 builtin and then its argument prototype would still apply. */
9208 #ifdef __cplusplus
9209 extern "C"
9210 #endif
9211 char IceConnectionNumber ();
9213 main ()
9215 return IceConnectionNumber ();
9217 return 0;
9219 _ACEOF
9220 if ac_fn_c_try_link "$LINENO"; then :
9221 ac_cv_lib_ICE_IceConnectionNumber=yes
9222 else
9223 ac_cv_lib_ICE_IceConnectionNumber=no
9225 rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 LIBS=$ac_check_lib_save_LIBS
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9230 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9231 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9232 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9235 LDFLAGS=$ac_save_LDFLAGS
9240 if test "$have_x" = "yes"
9241 then
9242 ac_save_CPPFLAGS="$CPPFLAGS"
9243 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9246 $as_echo_n "checking for -lX11... " >&6; }
9247 if ${ac_cv_lib_soname_X11+:} false; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 ac_check_soname_save_LIBS=$LIBS
9251 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9255 /* Override any GCC internal prototype to avoid an error.
9256 Use char because int might match the return type of a GCC
9257 builtin and then its argument prototype would still apply. */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 char XCreateWindow ();
9263 main ()
9265 return XCreateWindow ();
9267 return 0;
9269 _ACEOF
9270 if ac_fn_c_try_link "$LINENO"; then :
9271 case "$LIBEXT" in
9272 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9273 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'` ;;
9274 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9275 if ${ac_cv_lib_soname_X11:+false} :; then :
9276 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9277 fi ;;
9278 esac
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_soname_save_LIBS
9284 if ${ac_cv_lib_soname_X11:+false} :; then :
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9286 $as_echo "not found" >&6; }
9288 else
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9290 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9292 cat >>confdefs.h <<_ACEOF
9293 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9294 _ACEOF
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9299 $as_echo_n "checking for -lXext... " >&6; }
9300 if ${ac_cv_lib_soname_Xext+:} false; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 ac_check_soname_save_LIBS=$LIBS
9304 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9308 /* Override any GCC internal prototype to avoid an error.
9309 Use char because int might match the return type of a GCC
9310 builtin and then its argument prototype would still apply. */
9311 #ifdef __cplusplus
9312 extern "C"
9313 #endif
9314 char XextCreateExtension ();
9316 main ()
9318 return XextCreateExtension ();
9320 return 0;
9322 _ACEOF
9323 if ac_fn_c_try_link "$LINENO"; then :
9324 case "$LIBEXT" in
9325 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9326 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'` ;;
9327 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9328 if ${ac_cv_lib_soname_Xext:+false} :; then :
9329 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9330 fi ;;
9331 esac
9333 rm -f core conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335 LIBS=$ac_check_soname_save_LIBS
9337 if ${ac_cv_lib_soname_Xext:+false} :; then :
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9339 $as_echo "not found" >&6; }
9341 else
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9343 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9345 cat >>confdefs.h <<_ACEOF
9346 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9347 _ACEOF
9349 X_LIBS="$X_LIBS -lXext"
9351 X_LIBS="$X_LIBS -lX11"
9353 for ac_header in X11/Xlib.h \
9354 X11/XKBlib.h \
9355 X11/Xutil.h \
9356 X11/Xcursor/Xcursor.h \
9357 X11/extensions/shape.h \
9358 X11/extensions/XInput.h \
9359 X11/extensions/XInput2.h \
9360 X11/extensions/XShm.h \
9361 X11/extensions/Xcomposite.h \
9362 X11/extensions/Xinerama.h \
9363 X11/extensions/Xrandr.h \
9364 X11/extensions/Xrender.h \
9365 X11/extensions/xf86vmode.h \
9366 X11/extensions/xf86vmproto.h
9367 do :
9368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9370 # include <X11/Xlib.h>
9371 #endif
9372 #ifdef HAVE_X11_XUTIL_H
9373 # include <X11/Xutil.h>
9374 #endif
9376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9377 cat >>confdefs.h <<_ACEOF
9378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9379 _ACEOF
9383 done
9386 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9387 then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9389 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9390 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 ac_check_lib_save_LIBS=$LIBS
9394 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9398 /* Override any GCC internal prototype to avoid an error.
9399 Use char because int might match the return type of a GCC
9400 builtin and then its argument prototype would still apply. */
9401 #ifdef __cplusplus
9402 extern "C"
9403 #endif
9404 char XkbQueryExtension ();
9406 main ()
9408 return XkbQueryExtension ();
9410 return 0;
9412 _ACEOF
9413 if ac_fn_c_try_link "$LINENO"; then :
9414 ac_cv_lib_X11_XkbQueryExtension=yes
9415 else
9416 ac_cv_lib_X11_XkbQueryExtension=no
9418 rm -f core conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9420 LIBS=$ac_check_lib_save_LIBS
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9423 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9424 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9426 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9432 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9433 then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9435 $as_echo_n "checking for -lXcursor... " >&6; }
9436 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 ac_check_soname_save_LIBS=$LIBS
9440 LIBS="-lXcursor $X_LIBS $X_EXTRA_LIBS $LIBS"
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 char XcursorImageLoadCursor ();
9452 main ()
9454 return XcursorImageLoadCursor ();
9456 return 0;
9458 _ACEOF
9459 if ac_fn_c_try_link "$LINENO"; then :
9460 case "$LIBEXT" in
9461 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9462 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'` ;;
9463 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9464 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9465 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9466 fi ;;
9467 esac
9469 rm -f core conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471 LIBS=$ac_check_soname_save_LIBS
9473 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9475 $as_echo "not found" >&6; }
9477 else
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9479 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9481 cat >>confdefs.h <<_ACEOF
9482 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9483 _ACEOF
9488 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9489 case "x$with_xcursor" in
9490 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9491 xno) ;;
9492 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9493 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9494 esac
9497 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9498 then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9500 $as_echo_n "checking for -lXi... " >&6; }
9501 if ${ac_cv_lib_soname_Xi+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 ac_check_soname_save_LIBS=$LIBS
9505 LIBS="-lXi $X_LIBS $X_EXTRA_LIBS $LIBS"
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9509 /* Override any GCC internal prototype to avoid an error.
9510 Use char because int might match the return type of a GCC
9511 builtin and then its argument prototype would still apply. */
9512 #ifdef __cplusplus
9513 extern "C"
9514 #endif
9515 char XOpenDevice ();
9517 main ()
9519 return XOpenDevice ();
9521 return 0;
9523 _ACEOF
9524 if ac_fn_c_try_link "$LINENO"; then :
9525 case "$LIBEXT" in
9526 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9527 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'` ;;
9528 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9529 if ${ac_cv_lib_soname_Xi:+false} :; then :
9530 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9531 fi ;;
9532 esac
9534 rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_soname_save_LIBS
9538 if ${ac_cv_lib_soname_Xi:+false} :; then :
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9540 $as_echo "not found" >&6; }
9542 else
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9544 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9546 cat >>confdefs.h <<_ACEOF
9547 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9548 _ACEOF
9553 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9554 case "x$with_xinput" in
9555 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9556 xno) ;;
9557 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9558 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9559 esac
9562 if test "x$ac_cv_lib_soname_Xi" != x
9563 then
9564 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9565 case "x$with_xinput2" in
9566 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9567 xno) ;;
9568 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9569 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9570 esac
9574 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9575 then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9577 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9578 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 ac_check_lib_save_LIBS=$LIBS
9582 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9586 /* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 char XShmQueryExtension ();
9594 main ()
9596 return XShmQueryExtension ();
9598 return 0;
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9602 ac_cv_lib_Xext_XShmQueryExtension=yes
9603 else
9604 ac_cv_lib_Xext_XShmQueryExtension=no
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 LIBS=$ac_check_lib_save_LIBS
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9611 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9612 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9614 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9619 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9620 case "x$with_xshm" in
9621 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9622 xno) ;;
9623 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9624 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9625 esac
9628 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9629 then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9631 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9632 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 ac_check_lib_save_LIBS=$LIBS
9636 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 char XShapeQueryExtension ();
9648 main ()
9650 return XShapeQueryExtension ();
9652 return 0;
9654 _ACEOF
9655 if ac_fn_c_try_link "$LINENO"; then :
9656 ac_cv_lib_Xext_XShapeQueryExtension=yes
9657 else
9658 ac_cv_lib_Xext_XShapeQueryExtension=no
9660 rm -f core conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9662 LIBS=$ac_check_lib_save_LIBS
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9665 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9666 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9668 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9673 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9674 case "x$with_xshape" in
9675 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9676 xno) ;;
9677 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9678 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9679 esac
9682 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9683 then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9685 $as_echo_n "checking for -lXxf86vm... " >&6; }
9686 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 ac_check_soname_save_LIBS=$LIBS
9690 LIBS="-lXxf86vm $X_LIBS $X_EXTRA_LIBS $LIBS"
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9694 /* Override any GCC internal prototype to avoid an error.
9695 Use char because int might match the return type of a GCC
9696 builtin and then its argument prototype would still apply. */
9697 #ifdef __cplusplus
9698 extern "C"
9699 #endif
9700 char XF86VidModeQueryExtension ();
9702 main ()
9704 return XF86VidModeQueryExtension ();
9706 return 0;
9708 _ACEOF
9709 if ac_fn_c_try_link "$LINENO"; then :
9710 case "$LIBEXT" in
9711 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9712 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'` ;;
9713 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9714 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9715 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9716 fi ;;
9717 esac
9719 rm -f core conftest.err conftest.$ac_objext \
9720 conftest$ac_exeext conftest.$ac_ext
9721 LIBS=$ac_check_soname_save_LIBS
9723 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9725 $as_echo "not found" >&6; }
9727 else
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9729 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9731 cat >>confdefs.h <<_ACEOF
9732 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9733 _ACEOF
9738 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9739 case "x$with_xxf86vm" in
9740 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9741 xno) ;;
9742 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9743 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9744 esac
9747 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"
9748 then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9750 $as_echo_n "checking for -lXrender... " >&6; }
9751 if ${ac_cv_lib_soname_Xrender+:} false; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 ac_check_soname_save_LIBS=$LIBS
9755 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9759 /* Override any GCC internal prototype to avoid an error.
9760 Use char because int might match the return type of a GCC
9761 builtin and then its argument prototype would still apply. */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 char XRenderQueryExtension ();
9767 main ()
9769 return XRenderQueryExtension ();
9771 return 0;
9773 _ACEOF
9774 if ac_fn_c_try_link "$LINENO"; then :
9775 case "$LIBEXT" in
9776 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9777 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'` ;;
9778 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9779 if ${ac_cv_lib_soname_Xrender:+false} :; then :
9780 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9781 fi ;;
9782 esac
9784 rm -f core conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9786 LIBS=$ac_check_soname_save_LIBS
9788 if ${ac_cv_lib_soname_Xrender:+false} :; then :
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9790 $as_echo "not found" >&6; }
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
9794 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
9796 cat >>confdefs.h <<_ACEOF
9797 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9798 _ACEOF
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
9801 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9802 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 ac_check_lib_save_LIBS=$LIBS
9806 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9813 #ifdef __cplusplus
9814 extern "C"
9815 #endif
9816 char XRenderSetPictureTransform ();
9818 main ()
9820 return XRenderSetPictureTransform ();
9822 return 0;
9824 _ACEOF
9825 if ac_fn_c_try_link "$LINENO"; then :
9826 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9827 else
9828 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9830 rm -f core conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
9832 LIBS=$ac_check_lib_save_LIBS
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9835 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9836 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
9838 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
9843 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
9844 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 ac_check_lib_save_LIBS=$LIBS
9848 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9852 /* Override any GCC internal prototype to avoid an error.
9853 Use char because int might match the return type of a GCC
9854 builtin and then its argument prototype would still apply. */
9855 #ifdef __cplusplus
9856 extern "C"
9857 #endif
9858 char XRenderCreateLinearGradient ();
9860 main ()
9862 return XRenderCreateLinearGradient ();
9864 return 0;
9866 _ACEOF
9867 if ac_fn_c_try_link "$LINENO"; then :
9868 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
9869 else
9870 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
9872 rm -f core conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 LIBS=$ac_check_lib_save_LIBS
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
9877 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
9878 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
9880 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
9887 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9888 case "x$with_xrender" in
9889 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
9890 xno) ;;
9891 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9892 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9893 esac
9896 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9897 then
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9900 #include <X11/Xlib.h>
9901 #include <X11/extensions/Xrandr.h>
9903 main ()
9905 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9907 return 0;
9909 _ACEOF
9910 if ac_fn_c_try_compile "$LINENO"; then :
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9912 $as_echo_n "checking for -lXrandr... " >&6; }
9913 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 ac_check_soname_save_LIBS=$LIBS
9917 LIBS="-lXrandr $X_LIBS $X_EXTRA_LIBS $LIBS"
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9921 /* Override any GCC internal prototype to avoid an error.
9922 Use char because int might match the return type of a GCC
9923 builtin and then its argument prototype would still apply. */
9924 #ifdef __cplusplus
9925 extern "C"
9926 #endif
9927 char XRRQueryExtension ();
9929 main ()
9931 return XRRQueryExtension ();
9933 return 0;
9935 _ACEOF
9936 if ac_fn_c_try_link "$LINENO"; then :
9937 case "$LIBEXT" in
9938 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9939 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'` ;;
9940 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9941 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
9942 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9943 fi ;;
9944 esac
9946 rm -f core conftest.err conftest.$ac_objext \
9947 conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_soname_save_LIBS
9950 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9952 $as_echo "not found" >&6; }
9954 else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9956 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9958 cat >>confdefs.h <<_ACEOF
9959 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9960 _ACEOF
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964 #include <X11/Xlib.h>
9965 #include <X11/extensions/Xrandr.h>
9967 main ()
9969 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9971 return 0;
9973 _ACEOF
9974 if ac_fn_c_try_compile "$LINENO"; then :
9976 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9984 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9985 case "x$with_xrandr" in
9986 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9987 xno) ;;
9988 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9989 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9990 esac
9993 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9994 then
9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996 /* end confdefs.h. */
9997 #include <X11/Xlib.h>
9998 #include <X11/extensions/Xinerama.h>
10000 main ()
10002 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10004 return 0;
10006 _ACEOF
10007 if ac_fn_c_try_compile "$LINENO"; then :
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10009 $as_echo_n "checking for -lXinerama... " >&6; }
10010 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 ac_check_soname_save_LIBS=$LIBS
10014 LIBS="-lXinerama $X_LIBS $X_EXTRA_LIBS $LIBS"
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10018 /* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 char XineramaQueryScreens ();
10026 main ()
10028 return XineramaQueryScreens ();
10030 return 0;
10032 _ACEOF
10033 if ac_fn_c_try_link "$LINENO"; then :
10034 case "$LIBEXT" in
10035 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10036 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'` ;;
10037 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10038 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10039 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10040 fi ;;
10041 esac
10043 rm -f core conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_soname_save_LIBS
10047 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10049 $as_echo "not found" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10053 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10055 cat >>confdefs.h <<_ACEOF
10056 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10057 _ACEOF
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10065 case "x$with_xinerama" in
10066 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10067 xno) ;;
10068 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10069 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10070 esac
10073 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10074 then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10076 $as_echo_n "checking for -lXcomposite... " >&6; }
10077 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 ac_check_soname_save_LIBS=$LIBS
10081 LIBS="-lXcomposite $X_LIBS $X_EXTRA_LIBS $LIBS"
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 char XCompositeRedirectWindow ();
10093 main ()
10095 return XCompositeRedirectWindow ();
10097 return 0;
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 case "$LIBEXT" in
10102 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10103 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'` ;;
10104 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10105 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10106 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10107 fi ;;
10108 esac
10110 rm -f core conftest.err conftest.$ac_objext \
10111 conftest$ac_exeext conftest.$ac_ext
10112 LIBS=$ac_check_soname_save_LIBS
10114 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10116 $as_echo "not found" >&6; }
10118 else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10120 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10122 cat >>confdefs.h <<_ACEOF
10123 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10124 _ACEOF
10129 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10130 case "x$with_xcomposite" in
10131 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10132 xno) ;;
10133 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10134 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10135 esac
10138 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10139 #include <X11/Xlib.h>
10140 #endif
10142 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10144 cat >>confdefs.h <<_ACEOF
10145 #define HAVE_XICCALLBACK_CALLBACK 1
10146 _ACEOF
10150 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10151 #include <X11/Xlib.h>
10152 #endif
10154 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10156 cat >>confdefs.h <<_ACEOF
10157 #define HAVE_XEVENT_XCOOKIE 1
10158 _ACEOF
10165 opengl_msg=""
10166 if test "x$with_opengl" != "xno"
10167 then
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10169 $as_echo_n "checking for -lGL... " >&6; }
10170 if ${ac_cv_lib_soname_GL+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 ac_check_soname_save_LIBS=$LIBS
10174 LIBS="-lGL $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10178 /* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10181 #ifdef __cplusplus
10182 extern "C"
10183 #endif
10184 char glXCreateContext ();
10186 main ()
10188 return glXCreateContext ();
10190 return 0;
10192 _ACEOF
10193 if ac_fn_c_try_link "$LINENO"; then :
10194 case "$LIBEXT" in
10195 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10196 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'` ;;
10197 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10198 if ${ac_cv_lib_soname_GL:+false} :; then :
10199 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10200 fi ;;
10201 esac
10203 rm -f core conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_soname_save_LIBS
10207 if ${ac_cv_lib_soname_GL:+false} :; then :
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10209 $as_echo "not found" >&6; }
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10211 $as_echo_n "checking for -lGL... " >&6; }
10212 if ${ac_cv_lib_soname_GL+:} false; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 ac_check_soname_save_LIBS=$LIBS
10216 LIBS="-lGL $X_LIBS -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"
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10220 /* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 char glXCreateContext ();
10228 main ()
10230 return glXCreateContext ();
10232 return 0;
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"; then :
10236 case "$LIBEXT" in
10237 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10238 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'` ;;
10239 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10240 if ${ac_cv_lib_soname_GL:+false} :; then :
10241 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10242 fi ;;
10243 esac
10245 rm -f core conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10247 LIBS=$ac_check_soname_save_LIBS
10249 if ${ac_cv_lib_soname_GL:+false} :; then :
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10251 $as_echo "not found" >&6; }
10252 if test -f /usr/X11R6/lib/libGL.a
10253 then
10254 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10255 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10256 else
10257 opengl_msg="No OpenGL library found on this system."
10259 else
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10261 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10263 cat >>confdefs.h <<_ACEOF
10264 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10265 _ACEOF
10267 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"
10269 else
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10271 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10273 cat >>confdefs.h <<_ACEOF
10274 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10275 _ACEOF
10277 OPENGL_LIBS="-lGL"
10279 if test "x$with_glu" != "xno"
10280 then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10282 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10283 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10284 $as_echo_n "(cached) " >&6
10285 else
10286 ac_check_lib_save_LIBS=$LIBS
10287 LIBS="-lGLU $OPENGL_LIBS $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10291 /* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10294 #ifdef __cplusplus
10295 extern "C"
10296 #endif
10297 char gluLookAt ();
10299 main ()
10301 return gluLookAt ();
10303 return 0;
10305 _ACEOF
10306 if ac_fn_c_try_link "$LINENO"; then :
10307 ac_cv_lib_GLU_gluLookAt=yes
10308 else
10309 ac_cv_lib_GLU_gluLookAt=no
10311 rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10313 LIBS=$ac_check_lib_save_LIBS
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10316 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10317 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10321 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10322 case "x$with_glu" in
10323 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10324 xno) ;;
10325 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10326 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10327 esac
10331 if test "x$with_osmesa" != "xno"
10332 then
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10334 $as_echo_n "checking for -lOSMesa... " >&6; }
10335 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 ac_check_soname_save_LIBS=$LIBS
10339 LIBS="-lOSMesa $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10343 /* Override any GCC internal prototype to avoid an error.
10344 Use char because int might match the return type of a GCC
10345 builtin and then its argument prototype would still apply. */
10346 #ifdef __cplusplus
10347 extern "C"
10348 #endif
10349 char glAccum ();
10351 main ()
10353 return glAccum ();
10355 return 0;
10357 _ACEOF
10358 if ac_fn_c_try_link "$LINENO"; then :
10359 case "$LIBEXT" in
10360 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10361 dylib) ac_cv_lib_soname_OSMesa=`otool -L conftest$ac_exeext | grep "libOSMesa\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libOSMesa\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10362 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10363 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10364 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10365 fi ;;
10366 esac
10368 rm -f core conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10370 LIBS=$ac_check_soname_save_LIBS
10372 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10374 $as_echo "not found" >&6; }
10376 else
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10378 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10380 cat >>confdefs.h <<_ACEOF
10381 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10382 _ACEOF
10386 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10387 case "x$with_osmesa" in
10388 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10389 xno) ;;
10390 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10391 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10392 esac
10396 if test -n "$opengl_msg"; then :
10397 case "x$with_opengl" in
10398 x) as_fn_append wine_warnings "|$opengl_msg
10399 OpenGL and Direct3D won't be supported." ;;
10400 xno) ;;
10401 *) as_fn_error $? "$opengl_msg
10402 OpenGL and Direct3D won't be supported.
10403 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10404 esac
10407 CPPFLAGS="$ac_save_CPPFLAGS"
10408 else
10409 X_CFLAGS=""
10410 X_LIBS=""
10411 enable_winex11_drv=${enable_winex11_drv:-no}
10413 if test "x$X_LIBS" = "x"; then :
10414 case "x$with_x" in
10415 xno) ;;
10416 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10417 without X support, which probably isn't what you want. You will need
10418 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10419 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10420 esac
10423 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10425 if test "$ac_cv_header_CL_cl_h" = "yes"
10426 then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10428 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10429 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 ac_check_lib_save_LIBS=$LIBS
10433 LIBS="-lOpenCL $LIBS"
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10437 /* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 char clGetPlatformInfo ();
10445 main ()
10447 return clGetPlatformInfo ();
10449 return 0;
10451 _ACEOF
10452 if ac_fn_c_try_link "$LINENO"; then :
10453 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10454 else
10455 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10457 rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LIBS=$ac_check_lib_save_LIBS
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10462 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10463 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10464 OPENCL_LIBS="-lOpenCL"
10469 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10470 case "x$with_opencl" in
10471 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10472 xno) ;;
10473 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10474 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10475 esac
10477 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10480 if test "x$with_xml" != "xno"
10481 then
10482 if ${XML2_CFLAGS:+false} :; then :
10483 if ${PKG_CONFIG+:} false; then :
10484 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10487 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10488 if ${XML2_LIBS:+false} :; then :
10489 if ${PKG_CONFIG+:} false; then :
10490 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10493 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10494 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10495 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 cflags: $XML2_CFLAGS" >&5
10496 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 libs: $XML2_LIBS" >&5
10497 ac_save_CPPFLAGS=$CPPFLAGS
10498 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10499 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10500 do :
10501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10502 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10503 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10504 cat >>confdefs.h <<_ACEOF
10505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10506 _ACEOF
10510 done
10512 if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
10513 then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10515 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10516 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 ac_check_lib_save_LIBS=$LIBS
10520 LIBS="-lxml2 $XML2_LIBS $LIBS"
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10524 /* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 char xmlParseMemory ();
10532 main ()
10534 return xmlParseMemory ();
10536 return 0;
10538 _ACEOF
10539 if ac_fn_c_try_link "$LINENO"; then :
10540 ac_cv_lib_xml2_xmlParseMemory=yes
10541 else
10542 ac_cv_lib_xml2_xmlParseMemory=no
10544 rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext conftest.$ac_ext
10546 LIBS=$ac_check_lib_save_LIBS
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10549 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10550 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10552 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10554 else
10555 XML2_LIBS=""
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10559 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10560 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 ac_check_lib_save_LIBS=$LIBS
10564 LIBS="-lxml2 $XML2_LIBS $LIBS"
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10568 /* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10571 #ifdef __cplusplus
10572 extern "C"
10573 #endif
10574 char xmlReadMemory ();
10576 main ()
10578 return xmlReadMemory ();
10580 return 0;
10582 _ACEOF
10583 if ac_fn_c_try_link "$LINENO"; then :
10584 ac_cv_lib_xml2_xmlReadMemory=yes
10585 else
10586 ac_cv_lib_xml2_xmlReadMemory=no
10588 rm -f core conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590 LIBS=$ac_check_lib_save_LIBS
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10593 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10594 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10596 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10601 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10602 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-lxml2 $XML2_LIBS $LIBS"
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10610 /* Override any GCC internal prototype to avoid an error.
10611 Use char because int might match the return type of a GCC
10612 builtin and then its argument prototype would still apply. */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 char xmlNewDocPI ();
10618 main ()
10620 return xmlNewDocPI ();
10622 return 0;
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"; then :
10626 ac_cv_lib_xml2_xmlNewDocPI=yes
10627 else
10628 ac_cv_lib_xml2_xmlNewDocPI=no
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10635 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10636 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10638 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10643 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10644 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 ac_check_lib_save_LIBS=$LIBS
10648 LIBS="-lxml2 $XML2_LIBS $LIBS"
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10652 /* Override any GCC internal prototype to avoid an error.
10653 Use char because int might match the return type of a GCC
10654 builtin and then its argument prototype would still apply. */
10655 #ifdef __cplusplus
10656 extern "C"
10657 #endif
10658 char xmlSchemaSetParserStructuredErrors ();
10660 main ()
10662 return xmlSchemaSetParserStructuredErrors ();
10664 return 0;
10666 _ACEOF
10667 if ac_fn_c_try_link "$LINENO"; then :
10668 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10669 else
10670 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10672 rm -f core conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10674 LIBS=$ac_check_lib_save_LIBS
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10677 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10678 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10680 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10685 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10686 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 ac_check_lib_save_LIBS=$LIBS
10690 LIBS="-lxml2 $XML2_LIBS $LIBS"
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10694 /* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 char xmlSchemaSetValidStructuredErrors ();
10702 main ()
10704 return xmlSchemaSetValidStructuredErrors ();
10706 return 0;
10708 _ACEOF
10709 if ac_fn_c_try_link "$LINENO"; then :
10710 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10711 else
10712 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
10714 rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
10716 LIBS=$ac_check_lib_save_LIBS
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
10719 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
10720 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
10722 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
10727 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
10728 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lxml2 $XML2_LIBS $LIBS"
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char xmlFirstElementChild ();
10744 main ()
10746 return xmlFirstElementChild ();
10748 return 0;
10750 _ACEOF
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 ac_cv_lib_xml2_xmlFirstElementChild=yes
10753 else
10754 ac_cv_lib_xml2_xmlFirstElementChild=no
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
10761 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
10762 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
10764 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
10768 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
10770 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
10772 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
10776 else
10777 XML2_CFLAGS=""
10778 XML2_LIBS=""
10780 CPPFLAGS=$ac_save_CPPFLAGS
10781 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10782 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10785 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
10786 case "x$with_xml" in
10787 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
10788 xno) ;;
10789 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
10790 This is an error since --with-xml was requested." "$LINENO" 5 ;;
10791 esac
10794 if test "x$with_xslt" != "xno"
10795 then
10796 if ${XSLT_CFLAGS:+false} :; then :
10797 if ${PKG_CONFIG+:} false; then :
10798 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
10801 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
10802 if ${XSLT_LIBS:+false} :; then :
10803 if ${PKG_CONFIG+:} false; then :
10804 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10807 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10808 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10809 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt cflags: $XSLT_CFLAGS" >&5
10810 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt libs: $XSLT_LIBS" >&5
10811 ac_save_CPPFLAGS=$CPPFLAGS
10812 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10813 for ac_header in libxslt/pattern.h libxslt/transform.h
10814 do :
10815 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10816 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10817 # include <libxslt/pattern.h>
10818 #endif
10820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10821 cat >>confdefs.h <<_ACEOF
10822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10823 _ACEOF
10827 done
10829 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10830 then
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10832 $as_echo_n "checking for -lxslt... " >&6; }
10833 if ${ac_cv_lib_soname_xslt+:} false; then :
10834 $as_echo_n "(cached) " >&6
10835 else
10836 ac_check_soname_save_LIBS=$LIBS
10837 LIBS="-lxslt $XSLT_LIBS $LIBS"
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10841 /* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
10844 #ifdef __cplusplus
10845 extern "C"
10846 #endif
10847 char xsltCompilePattern ();
10849 main ()
10851 return xsltCompilePattern ();
10853 return 0;
10855 _ACEOF
10856 if ac_fn_c_try_link "$LINENO"; then :
10857 case "$LIBEXT" in
10858 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10859 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'` ;;
10860 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10861 if ${ac_cv_lib_soname_xslt:+false} :; then :
10862 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10863 fi ;;
10864 esac
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_soname_save_LIBS
10870 if ${ac_cv_lib_soname_xslt:+false} :; then :
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10872 $as_echo "not found" >&6; }
10874 else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10876 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10878 cat >>confdefs.h <<_ACEOF
10879 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10880 _ACEOF
10884 else
10885 XSLT_CFLAGS=""
10887 CPPFLAGS=$ac_save_CPPFLAGS
10888 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10889 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10892 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10893 case "x$with_xslt" in
10894 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10895 xno) ;;
10896 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10897 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10898 esac
10901 if test "x$with_dbus" != "xno"
10902 then
10903 if ${DBUS_CFLAGS:+false} :; then :
10904 if ${PKG_CONFIG+:} false; then :
10905 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10909 if ${DBUS_LIBS:+false} :; then :
10910 if ${PKG_CONFIG+:} false; then :
10911 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10916 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 cflags: $DBUS_CFLAGS" >&5
10917 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 libs: $DBUS_LIBS" >&5
10918 ac_save_CPPFLAGS=$CPPFLAGS
10919 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10920 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10921 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10923 $as_echo_n "checking for -ldbus-1... " >&6; }
10924 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 ac_check_soname_save_LIBS=$LIBS
10928 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10932 /* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char dbus_connection_close ();
10940 main ()
10942 return dbus_connection_close ();
10944 return 0;
10946 _ACEOF
10947 if ac_fn_c_try_link "$LINENO"; then :
10948 case "$LIBEXT" in
10949 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10950 dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10951 *) ac_cv_lib_soname_dbus_1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libdbus-1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libdbus-1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10952 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
10953 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10954 fi ;;
10955 esac
10957 rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10959 LIBS=$ac_check_soname_save_LIBS
10961 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10963 $as_echo "not found" >&6; }
10964 DBUS_CFLAGS=""
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10967 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10969 cat >>confdefs.h <<_ACEOF
10970 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10971 _ACEOF
10975 else
10976 DBUS_CFLAGS=""
10980 CPPFLAGS=$ac_save_CPPFLAGS
10981 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10982 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10985 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10986 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10987 case "x$with_dbus" in
10988 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10989 xno) ;;
10990 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10991 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10992 esac
10995 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10996 then
10997 if ${HAL_CFLAGS:+false} :; then :
10998 if ${PKG_CONFIG+:} false; then :
10999 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11003 if ${HAL_LIBS:+false} :; then :
11004 if ${PKG_CONFIG+:} false; then :
11005 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11009 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11010 $as_echo "$as_me:${as_lineno-$LINENO}: hal cflags: $HAL_CFLAGS" >&5
11011 $as_echo "$as_me:${as_lineno-$LINENO}: hal libs: $HAL_LIBS" >&5
11012 ac_save_CPPFLAGS=$CPPFLAGS
11013 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11014 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11015 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11017 $as_echo_n "checking for -lhal... " >&6; }
11018 if ${ac_cv_lib_soname_hal+:} false; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 ac_check_soname_save_LIBS=$LIBS
11022 LIBS="-lhal $HAL_LIBS $LIBS"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 /* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11029 #ifdef __cplusplus
11030 extern "C"
11031 #endif
11032 char libhal_ctx_new ();
11034 main ()
11036 return libhal_ctx_new ();
11038 return 0;
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11042 case "$LIBEXT" in
11043 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11044 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'` ;;
11045 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11046 if ${ac_cv_lib_soname_hal:+false} :; then :
11047 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11048 fi ;;
11049 esac
11051 rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053 LIBS=$ac_check_soname_save_LIBS
11055 if ${ac_cv_lib_soname_hal:+false} :; then :
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11057 $as_echo "not found" >&6; }
11058 HAL_CFLAGS=""
11059 else
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11061 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11063 cat >>confdefs.h <<_ACEOF
11064 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11065 _ACEOF
11069 else
11070 HAL_CFLAGS=""
11074 CPPFLAGS=$ac_save_CPPFLAGS
11075 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11076 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11078 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11079 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11080 case "x$with_hal" in
11081 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11082 xno) ;;
11083 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11084 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11085 esac
11089 if test "x$with_gnutls" != "xno"
11090 then
11091 if ${GNUTLS_CFLAGS:+false} :; then :
11092 if ${PKG_CONFIG+:} false; then :
11093 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11097 if ${GNUTLS_LIBS:+false} :; then :
11098 if ${PKG_CONFIG+:} false; then :
11099 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11104 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls cflags: $GNUTLS_CFLAGS" >&5
11105 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls libs: $GNUTLS_LIBS" >&5
11106 ac_save_CPPFLAGS=$CPPFLAGS
11107 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11108 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11109 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11112 #include <gnutls/gnutls.h>
11113 #include <gnutls/crypto.h>
11115 main ()
11117 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11119 return 0;
11121 _ACEOF
11122 if ac_fn_c_try_compile "$LINENO"; then :
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11124 $as_echo_n "checking for -lgnutls... " >&6; }
11125 if ${ac_cv_lib_soname_gnutls+:} false; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 ac_check_soname_save_LIBS=$LIBS
11129 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11136 #ifdef __cplusplus
11137 extern "C"
11138 #endif
11139 char gnutls_global_init ();
11141 main ()
11143 return gnutls_global_init ();
11145 return 0;
11147 _ACEOF
11148 if ac_fn_c_try_link "$LINENO"; then :
11149 case "$LIBEXT" in
11150 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11151 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'` ;;
11152 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11153 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11154 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11155 fi ;;
11156 esac
11158 rm -f core conftest.err conftest.$ac_objext \
11159 conftest$ac_exeext conftest.$ac_ext
11160 LIBS=$ac_check_soname_save_LIBS
11162 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11164 $as_echo "not found" >&6; }
11165 GNUTLS_CFLAGS=""
11166 else
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11168 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11170 cat >>confdefs.h <<_ACEOF
11171 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11172 _ACEOF
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 else
11179 GNUTLS_CFLAGS=""
11183 CPPFLAGS=$ac_save_CPPFLAGS
11184 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11185 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11188 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11189 case "x$with_gnutls" in
11190 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11191 xno) ;;
11192 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11193 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11194 esac
11197 CURSES_LIBS=""
11198 if test "$ac_cv_header_ncurses_h" = "yes"
11199 then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11201 $as_echo_n "checking for -lncurses... " >&6; }
11202 if ${ac_cv_lib_soname_ncurses+:} false; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 ac_check_soname_save_LIBS=$LIBS
11206 LIBS="-lncurses $LIBS"
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11210 /* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11213 #ifdef __cplusplus
11214 extern "C"
11215 #endif
11216 char waddch ();
11218 main ()
11220 return waddch ();
11222 return 0;
11224 _ACEOF
11225 if ac_fn_c_try_link "$LINENO"; then :
11226 case "$LIBEXT" in
11227 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11228 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'` ;;
11229 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11230 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11231 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11232 fi ;;
11233 esac
11235 rm -f core conftest.err conftest.$ac_objext \
11236 conftest$ac_exeext conftest.$ac_ext
11237 LIBS=$ac_check_soname_save_LIBS
11239 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11241 $as_echo "not found" >&6; }
11243 else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11245 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11247 cat >>confdefs.h <<_ACEOF
11248 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11249 _ACEOF
11251 CURSES_LIBS="-lncurses"
11253 elif test "$ac_cv_header_curses_h" = "yes"
11254 then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11256 $as_echo_n "checking for -lcurses... " >&6; }
11257 if ${ac_cv_lib_soname_curses+:} false; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 ac_check_soname_save_LIBS=$LIBS
11261 LIBS="-lcurses $LIBS"
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11265 /* Override any GCC internal prototype to avoid an error.
11266 Use char because int might match the return type of a GCC
11267 builtin and then its argument prototype would still apply. */
11268 #ifdef __cplusplus
11269 extern "C"
11270 #endif
11271 char waddch ();
11273 main ()
11275 return waddch ();
11277 return 0;
11279 _ACEOF
11280 if ac_fn_c_try_link "$LINENO"; then :
11281 case "$LIBEXT" in
11282 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11283 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'` ;;
11284 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11285 if ${ac_cv_lib_soname_curses:+false} :; then :
11286 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11287 fi ;;
11288 esac
11290 rm -f core conftest.err conftest.$ac_objext \
11291 conftest$ac_exeext conftest.$ac_ext
11292 LIBS=$ac_check_soname_save_LIBS
11294 if ${ac_cv_lib_soname_curses:+false} :; then :
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11296 $as_echo "not found" >&6; }
11298 else
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11300 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11302 cat >>confdefs.h <<_ACEOF
11303 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11304 _ACEOF
11306 CURSES_LIBS="-lcurses"
11309 ac_save_LIBS="$LIBS"
11310 LIBS="$LIBS $CURSES_LIBS"
11311 for ac_func in mousemask
11312 do :
11313 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11314 if test "x$ac_cv_func_mousemask" = xyes; then :
11315 cat >>confdefs.h <<_ACEOF
11316 #define HAVE_MOUSEMASK 1
11317 _ACEOF
11320 done
11322 LIBS="$ac_save_LIBS"
11323 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11324 case "x$with_curses" in
11325 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11326 xno) ;;
11327 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11328 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11329 esac
11332 if test "x$with_sane" != "xno"
11333 then
11334 if ${SANE_CFLAGS:+false} :; then :
11335 if ${PKG_CONFIG+:} false; then :
11336 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11339 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11340 if ${SANE_LIBS:+false} :; then :
11341 if ${PKG_CONFIG+:} false; then :
11342 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11345 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11347 $as_echo "$as_me:${as_lineno-$LINENO}: libsane cflags: $SANE_CFLAGS" >&5
11348 $as_echo "$as_me:${as_lineno-$LINENO}: libsane libs: $SANE_LIBS" >&5
11349 ac_save_CPPFLAGS=$CPPFLAGS
11350 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11351 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11352 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11354 $as_echo_n "checking for -lsane... " >&6; }
11355 if ${ac_cv_lib_soname_sane+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 ac_check_soname_save_LIBS=$LIBS
11359 LIBS="-lsane $SANE_LIBS $LIBS"
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11363 /* Override any GCC internal prototype to avoid an error.
11364 Use char because int might match the return type of a GCC
11365 builtin and then its argument prototype would still apply. */
11366 #ifdef __cplusplus
11367 extern "C"
11368 #endif
11369 char sane_init ();
11371 main ()
11373 return sane_init ();
11375 return 0;
11377 _ACEOF
11378 if ac_fn_c_try_link "$LINENO"; then :
11379 case "$LIBEXT" in
11380 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11381 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'` ;;
11382 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11383 if ${ac_cv_lib_soname_sane:+false} :; then :
11384 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11385 fi ;;
11386 esac
11388 rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11390 LIBS=$ac_check_soname_save_LIBS
11392 if ${ac_cv_lib_soname_sane:+false} :; then :
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11394 $as_echo "not found" >&6; }
11395 SANE_CFLAGS=""
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11398 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11400 cat >>confdefs.h <<_ACEOF
11401 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11402 _ACEOF
11406 else
11407 SANE_CFLAGS=""
11411 CPPFLAGS=$ac_save_CPPFLAGS
11412 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11413 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11416 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11417 case "x$with_sane" in
11418 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11419 xno) ;;
11420 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11421 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11422 esac
11425 if test "x$with_v4l" != "xno"
11426 then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11428 $as_echo_n "checking for -lv4l1... " >&6; }
11429 if ${ac_cv_lib_soname_v4l1+:} false; then :
11430 $as_echo_n "(cached) " >&6
11431 else
11432 ac_check_soname_save_LIBS=$LIBS
11433 LIBS="-lv4l1 $LIBS"
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11437 /* Override any GCC internal prototype to avoid an error.
11438 Use char because int might match the return type of a GCC
11439 builtin and then its argument prototype would still apply. */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 char v4l1_open ();
11445 main ()
11447 return v4l1_open ();
11449 return 0;
11451 _ACEOF
11452 if ac_fn_c_try_link "$LINENO"; then :
11453 case "$LIBEXT" in
11454 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11455 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'` ;;
11456 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11457 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11458 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11459 fi ;;
11460 esac
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_soname_save_LIBS
11466 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11468 $as_echo "not found" >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11472 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11474 cat >>confdefs.h <<_ACEOF
11475 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11476 _ACEOF
11481 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11482 case "x$with_v4l" in
11483 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11484 xno) ;;
11485 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11486 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11487 esac
11490 if test "x$with_gphoto" != "xno"
11491 then
11492 if ${GPHOTO2_CFLAGS:+false} :; then :
11493 if ${PKG_CONFIG+:} false; then :
11494 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11497 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11498 if ${GPHOTO2_LIBS:+false} :; then :
11499 if ${PKG_CONFIG+:} false; then :
11500 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11503 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11504 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11505 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 cflags: $GPHOTO2_CFLAGS" >&5
11506 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 libs: $GPHOTO2_LIBS" >&5
11507 ac_save_CPPFLAGS=$CPPFLAGS
11508 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11509 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11510 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11512 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11513 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 ac_check_lib_save_LIBS=$LIBS
11517 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char gp_camera_new ();
11529 main ()
11531 return gp_camera_new ();
11533 return 0;
11535 _ACEOF
11536 if ac_fn_c_try_link "$LINENO"; then :
11537 ac_cv_lib_gphoto2_gp_camera_new=yes
11538 else
11539 ac_cv_lib_gphoto2_gp_camera_new=no
11541 rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11543 LIBS=$ac_check_lib_save_LIBS
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11546 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11547 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11549 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11551 else
11552 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11555 else
11556 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11560 CPPFLAGS=$ac_save_CPPFLAGS
11561 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11562 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11564 if ${GPHOTO2_PORT_CFLAGS:+false} :; then :
11565 if ${PKG_CONFIG+:} false; then :
11566 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11569 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11570 if ${GPHOTO2_PORT_LIBS:+false} :; then :
11571 if ${PKG_CONFIG+:} false; then :
11572 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11575 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11576 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11577 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port cflags: $GPHOTO2_PORT_CFLAGS" >&5
11578 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port libs: $GPHOTO2_PORT_LIBS" >&5
11579 ac_save_CPPFLAGS=$CPPFLAGS
11580 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11581 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11582 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11584 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11585 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588 ac_check_lib_save_LIBS=$LIBS
11589 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h. */
11593 /* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11596 #ifdef __cplusplus
11597 extern "C"
11598 #endif
11599 char gp_port_info_list_new ();
11601 main ()
11603 return gp_port_info_list_new ();
11605 return 0;
11607 _ACEOF
11608 if ac_fn_c_try_link "$LINENO"; then :
11609 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11610 else
11611 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11613 rm -f core conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
11615 LIBS=$ac_check_lib_save_LIBS
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11618 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11619 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11621 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11623 else
11624 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11627 else
11628 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11632 CPPFLAGS=$ac_save_CPPFLAGS
11633 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11634 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11637 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11638 case "x$with_gphoto" in
11639 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11640 xno) ;;
11641 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11642 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11643 esac
11645 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11646 case "x$with_gphoto" in
11647 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11648 xno) ;;
11649 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11650 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11651 esac
11655 if test "$ac_cv_header_resolv_h" = "yes"
11656 then
11657 ac_save_LIBS="$LIBS"
11658 for lib in '' -lresolv
11660 LIBS="$lib $ac_save_LIBS"
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11663 #ifdef HAVE_NETINET_IN_H
11664 #include <netinet/in.h>
11665 #endif
11666 #include <resolv.h>
11668 main ()
11670 res_query("foo",ns_c_in,0,0,0);
11672 return 0;
11674 _ACEOF
11675 if ac_fn_c_try_link "$LINENO"; then :
11677 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11679 RESOLV_LIBS="$lib"
11682 rm -f core conftest.err conftest.$ac_objext \
11683 conftest$ac_exeext conftest.$ac_ext
11684 if test "${RESOLV_LIBS+set}" = set; then
11685 break
11687 done
11688 LIBS="$ac_save_LIBS"
11691 if test "x$with_lcms2" != "xno"
11692 then
11693 if ${LCMS2_CFLAGS:+false} :; then :
11694 if ${PKG_CONFIG+:} false; then :
11695 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11699 if ${LCMS2_LIBS:+false} :; then :
11700 if ${PKG_CONFIG+:} false; then :
11701 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
11705 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
11706 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 cflags: $LCMS2_CFLAGS" >&5
11707 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 libs: $LCMS2_LIBS" >&5
11708 ac_save_CPPFLAGS=$CPPFLAGS
11709 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
11710 for ac_header in lcms2.h
11711 do :
11712 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
11713 if test "x$ac_cv_header_lcms2_h" = xyes; then :
11714 cat >>confdefs.h <<_ACEOF
11715 #define HAVE_LCMS2_H 1
11716 _ACEOF
11720 done
11722 if test "$ac_cv_header_lcms2_h" = "yes"
11723 then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
11725 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
11726 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 ac_check_lib_save_LIBS=$LIBS
11730 LIBS="-llcms2 $LIBS"
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11734 /* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11737 #ifdef __cplusplus
11738 extern "C"
11739 #endif
11740 char cmsOpenProfileFromFile ();
11742 main ()
11744 return cmsOpenProfileFromFile ();
11746 return 0;
11748 _ACEOF
11749 if ac_fn_c_try_link "$LINENO"; then :
11750 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
11751 else
11752 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
11754 rm -f core conftest.err conftest.$ac_objext \
11755 conftest$ac_exeext conftest.$ac_ext
11756 LIBS=$ac_check_lib_save_LIBS
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
11759 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
11760 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
11762 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
11764 else
11765 LCMS2_LIBS=""
11768 else
11769 LCMS2_CFLAGS=""
11770 LCMS2_LIBS=""
11772 CPPFLAGS=$ac_save_CPPFLAGS
11773 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11774 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11777 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
11778 case "x$with_cms" in
11779 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
11780 xno) ;;
11781 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
11782 This is an error since --with-cms was requested." "$LINENO" 5 ;;
11783 esac
11786 if test "x$with_freetype" != "xno"
11787 then
11788 if ${FREETYPE_CFLAGS:+false} :; then :
11789 if ${PKG_CONFIG+:} false; then :
11790 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
11793 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
11794 if ${FREETYPE_LIBS:+false} :; then :
11795 if ${PKG_CONFIG+:} false; then :
11796 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
11799 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
11800 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
11801 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 cflags: $FREETYPE_CFLAGS" >&5
11802 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 libs: $FREETYPE_LIBS" >&5
11803 ac_save_CPPFLAGS=$CPPFLAGS
11804 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
11805 for ac_header in ft2build.h
11806 do :
11807 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
11808 if test "x$ac_cv_header_ft2build_h" = xyes; then :
11809 cat >>confdefs.h <<_ACEOF
11810 #define HAVE_FT2BUILD_H 1
11811 _ACEOF
11815 done
11817 if test "$ac_cv_header_ft2build_h" = "yes"
11818 then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
11820 $as_echo_n "checking for -lfreetype... " >&6; }
11821 if ${ac_cv_lib_soname_freetype+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 ac_check_soname_save_LIBS=$LIBS
11825 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char FT_Init_FreeType ();
11837 main ()
11839 return FT_Init_FreeType ();
11841 return 0;
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845 case "$LIBEXT" in
11846 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11847 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'` ;;
11848 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11849 if ${ac_cv_lib_soname_freetype:+false} :; then :
11850 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11851 fi ;;
11852 esac
11854 rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856 LIBS=$ac_check_soname_save_LIBS
11858 if ${ac_cv_lib_soname_freetype:+false} :; then :
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11860 $as_echo "not found" >&6; }
11861 FREETYPE_LIBS=""
11862 else
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11864 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11866 cat >>confdefs.h <<_ACEOF
11867 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11868 _ACEOF
11871 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11873 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
11874 #include FT_MODULE_H
11876 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11878 cat >>confdefs.h <<_ACEOF
11879 #define HAVE_FT_TRUETYPEENGINETYPE 1
11880 _ACEOF
11886 else
11887 FREETYPE_CFLAGS=""
11888 FREETYPE_LIBS=""
11890 CPPFLAGS=$ac_save_CPPFLAGS
11891 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11892 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11895 if test "x$ac_cv_lib_soname_freetype" = x; then :
11896 case "x$with_freetype" in
11897 xno) ;;
11898 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11899 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11900 esac
11902 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11905 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11906 if ${ac_cv_c_ppdev+:} false; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911 #ifdef HAVE_SYS_IOCTL_H
11912 # include <sys/ioctl.h>
11913 #endif
11914 #include <linux/ppdev.h>
11916 main ()
11918 ioctl (1,PPCLAIM,0)
11920 return 0;
11922 _ACEOF
11923 if ac_fn_c_try_compile "$LINENO"; then :
11924 ac_cv_c_ppdev="yes"
11925 else
11926 ac_cv_c_ppdev="no"
11928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11931 $as_echo "$ac_cv_c_ppdev" >&6; }
11932 if test "$ac_cv_c_ppdev" = "yes"
11933 then
11935 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11939 ac_wine_check_funcs_save_LIBS="$LIBS"
11940 LIBS="$LIBS $PTHREAD_LIBS"
11941 for ac_func in \
11942 pthread_attr_get_np \
11943 pthread_getattr_np \
11944 pthread_getthreadid_np \
11945 pthread_get_stackaddr_np \
11946 pthread_get_stacksize_np
11947 do :
11948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11949 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11950 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11951 cat >>confdefs.h <<_ACEOF
11952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11953 _ACEOF
11956 done
11958 LIBS="$ac_wine_check_funcs_save_LIBS"
11960 if test "$ac_cv_header_zlib_h" = "yes"
11961 then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11963 $as_echo_n "checking for inflate in -lz... " >&6; }
11964 if ${ac_cv_lib_z_inflate+:} false; then :
11965 $as_echo_n "(cached) " >&6
11966 else
11967 ac_check_lib_save_LIBS=$LIBS
11968 LIBS="-lz $LIBS"
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h. */
11972 /* Override any GCC internal prototype to avoid an error.
11973 Use char because int might match the return type of a GCC
11974 builtin and then its argument prototype would still apply. */
11975 #ifdef __cplusplus
11976 extern "C"
11977 #endif
11978 char inflate ();
11980 main ()
11982 return inflate ();
11984 return 0;
11986 _ACEOF
11987 if ac_fn_c_try_link "$LINENO"; then :
11988 ac_cv_lib_z_inflate=yes
11989 else
11990 ac_cv_lib_z_inflate=no
11992 rm -f core conftest.err conftest.$ac_objext \
11993 conftest$ac_exeext conftest.$ac_ext
11994 LIBS=$ac_check_lib_save_LIBS
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11997 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11998 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12000 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12002 Z_LIBS="-lz"
12007 if test "x$Z_LIBS" = "x"; then :
12008 case "x$with_zlib" in
12009 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12010 xno) ;;
12011 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12012 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12013 esac
12016 if test "x$enable_tools" != xno
12017 then
12018 if test "$ac_cv_header_gettext_po_h" = "yes"
12019 then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12021 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12022 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 ac_check_lib_save_LIBS=$LIBS
12026 LIBS="-lgettextpo $LIBS"
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12030 /* Override any GCC internal prototype to avoid an error.
12031 Use char because int might match the return type of a GCC
12032 builtin and then its argument prototype would still apply. */
12033 #ifdef __cplusplus
12034 extern "C"
12035 #endif
12036 char po_message_msgctxt ();
12038 main ()
12040 return po_message_msgctxt ();
12042 return 0;
12044 _ACEOF
12045 if ac_fn_c_try_link "$LINENO"; then :
12046 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12047 else
12048 ac_cv_lib_gettextpo_po_message_msgctxt=no
12050 rm -f core conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
12052 LIBS=$ac_check_lib_save_LIBS
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12055 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12056 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12058 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12060 GETTEXTPO_LIBS="-lgettextpo"
12065 test "x$with_gettextpo" != xyes || if test "x$GETTEXTPO_LIBS" = "x"; then :
12066 case "x$with_gettextpo" in
12067 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12068 xno) ;;
12069 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12070 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12071 esac
12075 if test "x$with_gstreamer" != "xno"
12076 then
12077 if ${GSTREAMER_CFLAGS:+false} :; then :
12078 if ${PKG_CONFIG+:} false; then :
12079 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12083 if ${GSTREAMER_LIBS:+false} :; then :
12084 if ${PKG_CONFIG+:} false; then :
12085 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12090 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 cflags: $GSTREAMER_CFLAGS" >&5
12091 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 libs: $GSTREAMER_LIBS" >&5
12092 ac_save_CPPFLAGS=$CPPFLAGS
12093 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12094 ac_gst_incl=""
12095 for i in $GSTREAMER_CFLAGS
12097 case "$i" in
12098 -I*) ac_gst_incl="$ac_gst_incl $i";;
12099 esac
12100 done
12101 GSTREAMER_CFLAGS=$ac_gst_incl
12102 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12103 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12104 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12105 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12106 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12108 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111 #include <gst/app/gstappsink.h>
12113 main ()
12115 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12117 return 0;
12119 _ACEOF
12120 if ac_fn_c_try_compile "$LINENO"; then :
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12122 $as_echo "yes" >&6; }
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12124 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12125 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-lgstreamer-0.10 $LIBS"
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12133 /* Override any GCC internal prototype to avoid an error.
12134 Use char because int might match the return type of a GCC
12135 builtin and then its argument prototype would still apply. */
12136 #ifdef __cplusplus
12137 extern "C"
12138 #endif
12139 char gst_pad_get_caps_reffed ();
12141 main ()
12143 return gst_pad_get_caps_reffed ();
12145 return 0;
12147 _ACEOF
12148 if ac_fn_c_try_link "$LINENO"; then :
12149 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12150 else
12151 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12158 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12159 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12161 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12162 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 ac_check_lib_save_LIBS=$LIBS
12166 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12170 /* Override any GCC internal prototype to avoid an error.
12171 Use char because int might match the return type of a GCC
12172 builtin and then its argument prototype would still apply. */
12173 #ifdef __cplusplus
12174 extern "C"
12175 #endif
12176 char gst_app_buffer_new ();
12178 main ()
12180 return gst_app_buffer_new ();
12182 return 0;
12184 _ACEOF
12185 if ac_fn_c_try_link "$LINENO"; then :
12186 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12187 else
12188 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12190 rm -f core conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12192 LIBS=$ac_check_lib_save_LIBS
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12195 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12196 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12202 else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210 else
12211 GSTREAMER_CFLAGS=""
12215 CPPFLAGS=$ac_save_CPPFLAGS
12216 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12217 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12220 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12221 case "x$with_gstreamer" in
12222 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12223 xno) ;;
12224 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12225 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12226 esac
12228 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12230 ALSA_LIBS=""
12232 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12233 then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12235 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12236 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 ac_check_lib_save_LIBS=$LIBS
12240 LIBS="-lasound $LIBS"
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12244 /* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 char snd_pcm_hw_params_get_access_mask ();
12252 main ()
12254 return snd_pcm_hw_params_get_access_mask ();
12256 return 0;
12258 _ACEOF
12259 if ac_fn_c_try_link "$LINENO"; then :
12260 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12261 else
12262 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12264 rm -f core conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_lib_save_LIBS
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12269 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12270 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12273 #ifdef HAVE_ALSA_ASOUNDLIB_H
12274 #include <alsa/asoundlib.h>
12275 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12276 #include <sys/asoundlib.h>
12277 #endif
12279 main ()
12281 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12283 return 0;
12285 _ACEOF
12286 if ac_fn_c_try_compile "$LINENO"; then :
12287 ALSA_LIBS="-lasound"
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12294 if test "x$with_oss" != xno
12295 then
12296 ac_save_CPPFLAGS="$CPPFLAGS"
12297 if test -f /etc/oss.conf
12298 then
12299 . /etc/oss.conf
12301 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12302 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12303 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12304 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12305 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12307 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12309 cat >>confdefs.h <<_ACEOF
12310 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12311 _ACEOF
12313 OSS4_CFLAGS="$ac_oss_incl"
12320 CPPFLAGS="$ac_save_CPPFLAGS"
12321 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12322 then
12323 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12327 if test "x$with_capi" != "xno"
12328 then
12329 if ${CAPI20_CFLAGS:+false} :; then :
12330 if ${PKG_CONFIG+:} false; then :
12331 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12335 if ${CAPI20_LIBS:+false} :; then :
12336 if ${PKG_CONFIG+:} false; then :
12337 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12342 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 cflags: $CAPI20_CFLAGS" >&5
12343 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 libs: $CAPI20_LIBS" >&5
12344 ac_save_CPPFLAGS=$CPPFLAGS
12345 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12346 for ac_header in capi20.h linux/capi.h
12347 do :
12348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12352 cat >>confdefs.h <<_ACEOF
12353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12354 _ACEOF
12358 done
12360 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12361 then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12363 $as_echo_n "checking for -lcapi20... " >&6; }
12364 if ${ac_cv_lib_soname_capi20+:} false; then :
12365 $as_echo_n "(cached) " >&6
12366 else
12367 ac_check_soname_save_LIBS=$LIBS
12368 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12372 /* Override any GCC internal prototype to avoid an error.
12373 Use char because int might match the return type of a GCC
12374 builtin and then its argument prototype would still apply. */
12375 #ifdef __cplusplus
12376 extern "C"
12377 #endif
12378 char capi20_register ();
12380 main ()
12382 return capi20_register ();
12384 return 0;
12386 _ACEOF
12387 if ac_fn_c_try_link "$LINENO"; then :
12388 case "$LIBEXT" in
12389 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12390 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'` ;;
12391 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12392 if ${ac_cv_lib_soname_capi20:+false} :; then :
12393 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12394 fi ;;
12395 esac
12397 rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 LIBS=$ac_check_soname_save_LIBS
12401 if ${ac_cv_lib_soname_capi20:+false} :; then :
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12403 $as_echo "not found" >&6; }
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12407 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12409 cat >>confdefs.h <<_ACEOF
12410 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12411 _ACEOF
12416 CPPFLAGS=$ac_save_CPPFLAGS
12417 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12418 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12421 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12422 case "x$with_capi" in
12423 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12424 xno) ;;
12425 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12426 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12427 esac
12430 CUPS_CFLAGS=""
12432 if test "x$with_cups" != "xno"
12433 then
12434 ac_save_CPPFLAGS="$CPPFLAGS"
12435 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12436 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12437 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12438 for ac_header in cups/cups.h
12439 do :
12440 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12441 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12442 cat >>confdefs.h <<_ACEOF
12443 #define HAVE_CUPS_CUPS_H 1
12444 _ACEOF
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12446 $as_echo_n "checking for -lcups... " >&6; }
12447 if ${ac_cv_lib_soname_cups+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 ac_check_soname_save_LIBS=$LIBS
12451 LIBS="-lcups $ac_cups_libs $LIBS"
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12455 /* Override any GCC internal prototype to avoid an error.
12456 Use char because int might match the return type of a GCC
12457 builtin and then its argument prototype would still apply. */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 char cupsGetDefault ();
12463 main ()
12465 return cupsGetDefault ();
12467 return 0;
12469 _ACEOF
12470 if ac_fn_c_try_link "$LINENO"; then :
12471 case "$LIBEXT" in
12472 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12473 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'` ;;
12474 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12475 if ${ac_cv_lib_soname_cups:+false} :; then :
12476 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12477 fi ;;
12478 esac
12480 rm -f core conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_soname_save_LIBS
12484 if ${ac_cv_lib_soname_cups:+false} :; then :
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12486 $as_echo "not found" >&6; }
12488 else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12490 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12492 cat >>confdefs.h <<_ACEOF
12493 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12494 _ACEOF
12496 CUPS_CFLAGS="$ac_cups_cflags"
12500 done
12502 CPPFLAGS="$ac_save_CPPFLAGS"
12504 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12505 case "x$with_cups" in
12506 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12507 xno) ;;
12508 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12509 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12510 esac
12513 if test "x$with_fontconfig" != "xno"
12514 then
12515 if ${FONTCONFIG_CFLAGS:+false} :; then :
12516 if ${PKG_CONFIG+:} false; then :
12517 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags fontconfig 2>/dev/null`
12520 test "$cross_compiling" = yes || FONTCONFIG_CFLAGS=${FONTCONFIG_CFLAGS:-$X_CFLAGS}
12521 if ${FONTCONFIG_LIBS:+false} :; then :
12522 if ${PKG_CONFIG+:} false; then :
12523 FONTCONFIG_LIBS=`$PKG_CONFIG --libs fontconfig 2>/dev/null`
12526 test "$cross_compiling" = yes || FONTCONFIG_LIBS=${FONTCONFIG_LIBS:-$X_LIBS}
12528 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig cflags: $FONTCONFIG_CFLAGS" >&5
12529 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig libs: $FONTCONFIG_LIBS" >&5
12530 ac_save_CPPFLAGS=$CPPFLAGS
12531 CPPFLAGS="$CPPFLAGS $FONTCONFIG_CFLAGS"
12532 for ac_header in fontconfig/fontconfig.h
12533 do :
12534 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12535 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12536 cat >>confdefs.h <<_ACEOF
12537 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12538 _ACEOF
12542 done
12544 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12545 then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12547 $as_echo_n "checking for -lfontconfig... " >&6; }
12548 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 ac_check_soname_save_LIBS=$LIBS
12552 LIBS="-lfontconfig $FONTCONFIG_LIBS $LIBS"
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12556 /* Override any GCC internal prototype to avoid an error.
12557 Use char because int might match the return type of a GCC
12558 builtin and then its argument prototype would still apply. */
12559 #ifdef __cplusplus
12560 extern "C"
12561 #endif
12562 char FcInit ();
12564 main ()
12566 return FcInit ();
12568 return 0;
12570 _ACEOF
12571 if ac_fn_c_try_link "$LINENO"; then :
12572 case "$LIBEXT" in
12573 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12574 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'` ;;
12575 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12576 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12577 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12578 fi ;;
12579 esac
12581 rm -f core conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext conftest.$ac_ext
12583 LIBS=$ac_check_soname_save_LIBS
12585 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12587 $as_echo "not found" >&6; }
12588 FONTCONFIG_CFLAGS=""
12589 else
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12591 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12593 cat >>confdefs.h <<_ACEOF
12594 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12595 _ACEOF
12599 else
12600 FONTCONFIG_CFLAGS=""
12602 CPPFLAGS=$ac_save_CPPFLAGS
12603 test -z "$FONTCONFIG_CFLAGS" || FONTCONFIG_CFLAGS=`echo " $FONTCONFIG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12604 test -z "$FONTCONFIG_LIBS" || FONTCONFIG_LIBS=`echo " $FONTCONFIG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12607 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12608 case "x$with_fontconfig" in
12609 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12610 xno) ;;
12611 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12612 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12613 esac
12616 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12617 then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12619 $as_echo_n "checking for -lgsm... " >&6; }
12620 if ${ac_cv_lib_soname_gsm+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 ac_check_soname_save_LIBS=$LIBS
12624 LIBS="-lgsm $LIBS"
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12628 /* Override any GCC internal prototype to avoid an error.
12629 Use char because int might match the return type of a GCC
12630 builtin and then its argument prototype would still apply. */
12631 #ifdef __cplusplus
12632 extern "C"
12633 #endif
12634 char gsm_create ();
12636 main ()
12638 return gsm_create ();
12640 return 0;
12642 _ACEOF
12643 if ac_fn_c_try_link "$LINENO"; then :
12644 case "$LIBEXT" in
12645 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12646 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'` ;;
12647 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12648 if ${ac_cv_lib_soname_gsm:+false} :; then :
12649 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12650 fi ;;
12651 esac
12653 rm -f core conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12655 LIBS=$ac_check_soname_save_LIBS
12657 if ${ac_cv_lib_soname_gsm:+false} :; then :
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12659 $as_echo "not found" >&6; }
12661 else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12663 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12665 cat >>confdefs.h <<_ACEOF
12666 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12667 _ACEOF
12672 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12673 case "x$with_gsm" in
12674 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12675 xno) ;;
12676 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12677 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12678 esac
12681 if test "x$with_jpeg" != "xno"
12682 then
12683 if ${JPEG_CFLAGS:+false} :; then :
12684 if ${PKG_CONFIG+:} false; then :
12685 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12689 if ${JPEG_LIBS:+false} :; then :
12690 if ${PKG_CONFIG+:} false; then :
12691 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12696 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg cflags: $JPEG_CFLAGS" >&5
12697 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg libs: $JPEG_LIBS" >&5
12698 ac_save_CPPFLAGS=$CPPFLAGS
12699 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
12700 for ac_header in jpeglib.h
12701 do :
12702 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12703 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12704 cat >>confdefs.h <<_ACEOF
12705 #define HAVE_JPEGLIB_H 1
12706 _ACEOF
12710 done
12712 if test "$ac_cv_header_jpeglib_h" = "yes"
12713 then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
12715 $as_echo_n "checking for -ljpeg... " >&6; }
12716 if ${ac_cv_lib_soname_jpeg+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 ac_check_soname_save_LIBS=$LIBS
12720 LIBS="-ljpeg $JPEG_LIBS $LIBS"
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12724 /* Override any GCC internal prototype to avoid an error.
12725 Use char because int might match the return type of a GCC
12726 builtin and then its argument prototype would still apply. */
12727 #ifdef __cplusplus
12728 extern "C"
12729 #endif
12730 char jpeg_start_decompress ();
12732 main ()
12734 return jpeg_start_decompress ();
12736 return 0;
12738 _ACEOF
12739 if ac_fn_c_try_link "$LINENO"; then :
12740 case "$LIBEXT" in
12741 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12742 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'` ;;
12743 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12744 if ${ac_cv_lib_soname_jpeg:+false} :; then :
12745 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12746 fi ;;
12747 esac
12749 rm -f core conftest.err conftest.$ac_objext \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_soname_save_LIBS
12753 if ${ac_cv_lib_soname_jpeg:+false} :; then :
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12755 $as_echo "not found" >&6; }
12756 JPEG_CFLAGS=""
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
12759 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
12761 cat >>confdefs.h <<_ACEOF
12762 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
12763 _ACEOF
12767 else
12768 JPEG_CFLAGS=""
12770 CPPFLAGS=$ac_save_CPPFLAGS
12771 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12772 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12775 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12776 case "x$with_jpeg" in
12777 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
12778 xno) ;;
12779 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
12780 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
12781 esac
12784 if test "x$with_png" != "xno"
12785 then
12786 if ${PNG_CFLAGS:+false} :; then :
12787 if ${PKG_CONFIG+:} false; then :
12788 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
12791 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
12792 if ${PNG_LIBS:+false} :; then :
12793 if ${PKG_CONFIG+:} false; then :
12794 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
12797 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
12799 $as_echo "$as_me:${as_lineno-$LINENO}: libpng cflags: $PNG_CFLAGS" >&5
12800 $as_echo "$as_me:${as_lineno-$LINENO}: libpng libs: $PNG_LIBS" >&5
12801 ac_save_CPPFLAGS=$CPPFLAGS
12802 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
12803 for ac_header in png.h
12804 do :
12805 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12806 if test "x$ac_cv_header_png_h" = xyes; then :
12807 cat >>confdefs.h <<_ACEOF
12808 #define HAVE_PNG_H 1
12809 _ACEOF
12813 done
12815 if test "$ac_cv_header_png_h" = "yes"
12816 then
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12818 $as_echo_n "checking for -lpng... " >&6; }
12819 if ${ac_cv_lib_soname_png+:} false; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 ac_check_soname_save_LIBS=$LIBS
12823 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12827 /* Override any GCC internal prototype to avoid an error.
12828 Use char because int might match the return type of a GCC
12829 builtin and then its argument prototype would still apply. */
12830 #ifdef __cplusplus
12831 extern "C"
12832 #endif
12833 char png_create_read_struct ();
12835 main ()
12837 return png_create_read_struct ();
12839 return 0;
12841 _ACEOF
12842 if ac_fn_c_try_link "$LINENO"; then :
12843 case "$LIBEXT" in
12844 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12845 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'` ;;
12846 *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12847 if ${ac_cv_lib_soname_png:+false} :; then :
12848 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12849 fi ;;
12850 esac
12852 rm -f core conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12854 LIBS=$ac_check_soname_save_LIBS
12856 if ${ac_cv_lib_soname_png:+false} :; then :
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12858 $as_echo "not found" >&6; }
12859 PNG_CFLAGS=""
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12862 $as_echo "$ac_cv_lib_soname_png" >&6; }
12864 cat >>confdefs.h <<_ACEOF
12865 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12866 _ACEOF
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12870 #include <png.h>
12872 main ()
12874 typeof(png_set_expand_gray_1_2_4_to_8) *p
12876 return 0;
12878 _ACEOF
12879 if ac_fn_c_try_compile "$LINENO"; then :
12881 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886 else
12887 PNG_CFLAGS=""
12889 CPPFLAGS=$ac_save_CPPFLAGS
12890 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12891 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12894 if test "x$ac_cv_lib_soname_png" = "x"; then :
12895 case "x$with_png" in
12896 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12897 xno) ;;
12898 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12899 This is an error since --with-png was requested." "$LINENO" 5 ;;
12900 esac
12903 if test "x$with_tiff" != "xno"
12904 then
12905 if ${TIFF_CFLAGS:+false} :; then :
12906 if ${PKG_CONFIG+:} false; then :
12907 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
12911 if ${TIFF_LIBS:+false} :; then :
12912 if ${PKG_CONFIG+:} false; then :
12913 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
12918 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff cflags: $TIFF_CFLAGS" >&5
12919 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff libs: $TIFF_LIBS" >&5
12920 ac_save_CPPFLAGS=$CPPFLAGS
12921 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
12922 for ac_header in tiffio.h
12923 do :
12924 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12925 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12926 cat >>confdefs.h <<_ACEOF
12927 #define HAVE_TIFFIO_H 1
12928 _ACEOF
12932 done
12934 if test "$ac_cv_header_tiffio_h" = "yes"
12935 then
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12937 $as_echo_n "checking for -ltiff... " >&6; }
12938 if ${ac_cv_lib_soname_tiff+:} false; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 ac_check_soname_save_LIBS=$LIBS
12942 LIBS="-ltiff $TIFF_LIBS $LIBS"
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12946 /* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
12949 #ifdef __cplusplus
12950 extern "C"
12951 #endif
12952 char TIFFClientOpen ();
12954 main ()
12956 return TIFFClientOpen ();
12958 return 0;
12960 _ACEOF
12961 if ac_fn_c_try_link "$LINENO"; then :
12962 case "$LIBEXT" in
12963 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12964 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'` ;;
12965 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12966 if ${ac_cv_lib_soname_tiff:+false} :; then :
12967 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12968 fi ;;
12969 esac
12971 rm -f core conftest.err conftest.$ac_objext \
12972 conftest$ac_exeext conftest.$ac_ext
12973 LIBS=$ac_check_soname_save_LIBS
12975 if ${ac_cv_lib_soname_tiff:+false} :; then :
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12977 $as_echo "not found" >&6; }
12979 else
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12981 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12983 cat >>confdefs.h <<_ACEOF
12984 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12985 _ACEOF
12990 CPPFLAGS=$ac_save_CPPFLAGS
12991 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12992 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12995 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12996 case "x$with_tiff" in
12997 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12998 xno) ;;
12999 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13000 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13001 esac
13004 if test "x$with_mpg123" != "xno"
13005 then
13006 if ${MPG123_CFLAGS:+false} :; then :
13007 if ${PKG_CONFIG+:} false; then :
13008 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13012 if ${MPG123_LIBS:+false} :; then :
13013 if ${PKG_CONFIG+:} false; then :
13014 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13018 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13019 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 cflags: $MPG123_CFLAGS" >&5
13020 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 libs: $MPG123_LIBS" >&5
13021 ac_save_CPPFLAGS=$CPPFLAGS
13022 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13023 for ac_header in mpg123.h
13024 do :
13025 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13026 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13027 cat >>confdefs.h <<_ACEOF
13028 #define HAVE_MPG123_H 1
13029 _ACEOF
13033 done
13035 if test "$ac_cv_header_mpg123_h" = "yes"
13036 then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13038 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13039 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 ac_check_lib_save_LIBS=$LIBS
13043 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13047 /* Override any GCC internal prototype to avoid an error.
13048 Use char because int might match the return type of a GCC
13049 builtin and then its argument prototype would still apply. */
13050 #ifdef __cplusplus
13051 extern "C"
13052 #endif
13053 char mpg123_feed ();
13055 main ()
13057 return mpg123_feed ();
13059 return 0;
13061 _ACEOF
13062 if ac_fn_c_try_link "$LINENO"; then :
13063 ac_cv_lib_mpg123_mpg123_feed=yes
13064 else
13065 ac_cv_lib_mpg123_mpg123_feed=no
13067 rm -f core conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
13069 LIBS=$ac_check_lib_save_LIBS
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13072 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13073 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13075 else
13076 MPG123_LIBS=""
13079 else
13080 MPG123_CFLAGS=""
13081 MPG123_LIBS=""
13083 CPPFLAGS=$ac_save_CPPFLAGS
13084 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13085 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13088 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13089 case "x$with_mpg123" in
13090 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13091 xno) ;;
13092 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13093 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13094 esac
13096 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
13098 if test "$ac_cv_header_AL_al_h" = "yes"
13099 then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13101 $as_echo_n "checking for -lopenal... " >&6; }
13102 if ${ac_cv_lib_soname_openal+:} false; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 ac_check_soname_save_LIBS=$LIBS
13106 LIBS="-lopenal $LIBS"
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13110 /* Override any GCC internal prototype to avoid an error.
13111 Use char because int might match the return type of a GCC
13112 builtin and then its argument prototype would still apply. */
13113 #ifdef __cplusplus
13114 extern "C"
13115 #endif
13116 char alGetSource3i ();
13118 main ()
13120 return alGetSource3i ();
13122 return 0;
13124 _ACEOF
13125 if ac_fn_c_try_link "$LINENO"; then :
13126 case "$LIBEXT" in
13127 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13128 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'` ;;
13129 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13130 if ${ac_cv_lib_soname_openal:+false} :; then :
13131 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13132 fi ;;
13133 esac
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_soname_save_LIBS
13139 if ${ac_cv_lib_soname_openal:+false} :; then :
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13141 $as_echo "not found" >&6; }
13143 else
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13145 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13147 cat >>confdefs.h <<_ACEOF
13148 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13149 _ACEOF
13151 OPENAL_LIBS="-lopenal"
13153 ac_cv_lib_openal=yes
13155 cat >>confdefs.h <<_ACEOF
13156 #define HAVE_OPENAL 1
13157 _ACEOF
13161 if test "x$ac_cv_lib_openal" != xyes; then :
13162 case "x$with_openal" in
13163 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13164 xno) ;;
13165 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13166 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13167 esac
13169 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13171 if test "$ac_cv_header_kstat_h" = "yes"
13172 then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13174 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13175 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 ac_check_lib_save_LIBS=$LIBS
13179 LIBS="-lkstat $LIBS"
13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13183 /* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13186 #ifdef __cplusplus
13187 extern "C"
13188 #endif
13189 char kstat_open ();
13191 main ()
13193 return kstat_open ();
13195 return 0;
13197 _ACEOF
13198 if ac_fn_c_try_link "$LINENO"; then :
13199 ac_cv_lib_kstat_kstat_open=yes
13200 else
13201 ac_cv_lib_kstat_kstat_open=no
13203 rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 LIBS=$ac_check_lib_save_LIBS
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13208 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13209 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13211 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13213 KSTAT_LIBS="-lkstat"
13219 if test "$ac_cv_header_libprocstat_h" = "yes"
13220 then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13222 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13223 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 ac_check_lib_save_LIBS=$LIBS
13227 LIBS="-lprocstat $LIBS"
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13231 /* Override any GCC internal prototype to avoid an error.
13232 Use char because int might match the return type of a GCC
13233 builtin and then its argument prototype would still apply. */
13234 #ifdef __cplusplus
13235 extern "C"
13236 #endif
13237 char procstat_open_sysctl ();
13239 main ()
13241 return procstat_open_sysctl ();
13243 return 0;
13245 _ACEOF
13246 if ac_fn_c_try_link "$LINENO"; then :
13247 ac_cv_lib_procstat_procstat_open_sysctl=yes
13248 else
13249 ac_cv_lib_procstat_procstat_open_sysctl=no
13251 rm -f core conftest.err conftest.$ac_objext \
13252 conftest$ac_exeext conftest.$ac_ext
13253 LIBS=$ac_check_lib_save_LIBS
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13256 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13257 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13259 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13261 PROCSTAT_LIBS="-lprocstat"
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13268 $as_echo_n "checking for -lodbc... " >&6; }
13269 if ${ac_cv_lib_soname_odbc+:} false; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 ac_check_soname_save_LIBS=$LIBS
13273 LIBS="-lodbc $LIBS"
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13277 /* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
13280 #ifdef __cplusplus
13281 extern "C"
13282 #endif
13283 char SQLConnect ();
13285 main ()
13287 return SQLConnect ();
13289 return 0;
13291 _ACEOF
13292 if ac_fn_c_try_link "$LINENO"; then :
13293 case "$LIBEXT" in
13294 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13295 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'` ;;
13296 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13297 if ${ac_cv_lib_soname_odbc:+false} :; then :
13298 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13299 fi ;;
13300 esac
13302 rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 LIBS=$ac_check_soname_save_LIBS
13306 if ${ac_cv_lib_soname_odbc:+false} :; then :
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13308 $as_echo "not found" >&6; }
13309 cat >>confdefs.h <<_ACEOF
13310 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13311 _ACEOF
13313 else
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13315 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13317 cat >>confdefs.h <<_ACEOF
13318 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13319 _ACEOF
13324 if test "x$with_netapi" != "xno"
13325 then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13327 $as_echo_n "checking for -lnetapi... " >&6; }
13328 if ${ac_cv_lib_soname_netapi+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 ac_check_soname_save_LIBS=$LIBS
13332 LIBS="-lnetapi $LIBS"
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13336 /* Override any GCC internal prototype to avoid an error.
13337 Use char because int might match the return type of a GCC
13338 builtin and then its argument prototype would still apply. */
13339 #ifdef __cplusplus
13340 extern "C"
13341 #endif
13342 char libnetapi_init ();
13344 main ()
13346 return libnetapi_init ();
13348 return 0;
13350 _ACEOF
13351 if ac_fn_c_try_link "$LINENO"; then :
13352 case "$LIBEXT" in
13353 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13354 dylib) ac_cv_lib_soname_netapi=`otool -L conftest$ac_exeext | grep "libnetapi\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libnetapi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
13355 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13356 if ${ac_cv_lib_soname_netapi:+false} :; then :
13357 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13358 fi ;;
13359 esac
13361 rm -f core conftest.err conftest.$ac_objext \
13362 conftest$ac_exeext conftest.$ac_ext
13363 LIBS=$ac_check_soname_save_LIBS
13365 if ${ac_cv_lib_soname_netapi:+false} :; then :
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13367 $as_echo "not found" >&6; }
13368 cat >>confdefs.h <<_ACEOF
13369 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13370 _ACEOF
13372 else
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13374 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13376 cat >>confdefs.h <<_ACEOF
13377 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13378 _ACEOF
13384 test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13385 test -n "$COREAUDIO_LIBS" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13386 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13387 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13389 if test "x$ALSA_LIBS$COREAUDIO_LIBS" = "x" -a \
13390 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13391 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13392 then
13393 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13397 EXTRACFLAGS=""
13399 if test "x${GCC}" = "xyes"
13400 then
13401 EXTRACFLAGS="-Wall -pipe"
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13404 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13405 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 if test "$cross_compiling" = yes; then :
13409 ac_cv_c_gcc_strength_bug="yes"
13410 else
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13413 int L[4] = {0,1,2,3};
13415 main ()
13417 static int Array[3];
13418 unsigned int B = 3;
13419 int i;
13420 for(i=0; i<B; i++) Array[i] = i - 3;
13421 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13422 L[i] = 4;
13423 return (Array[1] != -2 || L[2] != 3)
13425 return 0;
13427 _ACEOF
13428 if ac_fn_c_try_run "$LINENO"; then :
13429 ac_cv_c_gcc_strength_bug="no"
13430 else
13431 ac_cv_c_gcc_strength_bug="yes"
13433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13434 conftest.$ac_objext conftest.beam conftest.$ac_ext
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13439 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13440 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13441 then
13442 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13446 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13447 if ${ac_cv_cflags__fno_builtin+:} false; then :
13448 $as_echo_n "(cached) " >&6
13449 else
13450 ac_wine_try_cflags_saved=$CFLAGS
13451 CFLAGS="$CFLAGS -fno-builtin"
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 int main(int argc, char **argv) { return 0; }
13455 _ACEOF
13456 if ac_fn_c_try_link "$LINENO"; then :
13457 ac_cv_cflags__fno_builtin=yes
13458 else
13459 ac_cv_cflags__fno_builtin=no
13461 rm -f core conftest.err conftest.$ac_objext \
13462 conftest$ac_exeext conftest.$ac_ext
13463 CFLAGS=$ac_wine_try_cflags_saved
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13466 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13467 if test "x$ac_cv_cflags__fno_builtin" = xyes; then :
13468 BUILTINFLAG="-fno-builtin"
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13472 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13473 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 ac_wine_try_cflags_saved=$CFLAGS
13477 CFLAGS="$CFLAGS -fno-strict-aliasing"
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13480 int main(int argc, char **argv) { return 0; }
13481 _ACEOF
13482 if ac_fn_c_try_link "$LINENO"; then :
13483 ac_cv_cflags__fno_strict_aliasing=yes
13484 else
13485 ac_cv_cflags__fno_strict_aliasing=no
13487 rm -f core conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
13489 CFLAGS=$ac_wine_try_cflags_saved
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13492 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13493 if test "x$ac_cv_cflags__fno_strict_aliasing" = xyes; then :
13494 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13496 saved_CFLAGS=$CFLAGS
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13498 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13499 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13500 $as_echo_n "(cached) " >&6
13501 else
13502 ac_wine_try_cflags_saved=$CFLAGS
13503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13506 int main(int argc, char **argv) { return 0; }
13507 _ACEOF
13508 if ac_fn_c_try_link "$LINENO"; then :
13509 ac_cv_cflags__Werror_unknown_warning_option=yes
13510 else
13511 ac_cv_cflags__Werror_unknown_warning_option=no
13513 rm -f core conftest.err conftest.$ac_objext \
13514 conftest$ac_exeext conftest.$ac_ext
13515 CFLAGS=$ac_wine_try_cflags_saved
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13518 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13519 if test "x$ac_cv_cflags__Werror_unknown_warning_option" = xyes; then :
13520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13523 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13524 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13525 $as_echo_n "(cached) " >&6
13526 else
13527 ac_wine_try_cflags_saved=$CFLAGS
13528 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13531 int main(int argc, char **argv) { return 0; }
13532 _ACEOF
13533 if ac_fn_c_try_link "$LINENO"; then :
13534 ac_cv_cflags__Wdeclaration_after_statement=yes
13535 else
13536 ac_cv_cflags__Wdeclaration_after_statement=no
13538 rm -f core conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13540 CFLAGS=$ac_wine_try_cflags_saved
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13543 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13544 if test "x$ac_cv_cflags__Wdeclaration_after_statement" = xyes; then :
13545 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13548 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13549 if ${ac_cv_cflags__Wempty_body+:} false; then :
13550 $as_echo_n "(cached) " >&6
13551 else
13552 ac_wine_try_cflags_saved=$CFLAGS
13553 CFLAGS="$CFLAGS -Wempty-body"
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 int main(int argc, char **argv) { return 0; }
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"; then :
13559 ac_cv_cflags__Wempty_body=yes
13560 else
13561 ac_cv_cflags__Wempty_body=no
13563 rm -f core conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 CFLAGS=$ac_wine_try_cflags_saved
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13568 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13569 if test "x$ac_cv_cflags__Wempty_body" = xyes; then :
13570 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13573 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13574 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576 else
13577 ac_wine_try_cflags_saved=$CFLAGS
13578 CFLAGS="$CFLAGS -Wignored-qualifiers"
13579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h. */
13581 int main(int argc, char **argv) { return 0; }
13582 _ACEOF
13583 if ac_fn_c_try_link "$LINENO"; then :
13584 ac_cv_cflags__Wignored_qualifiers=yes
13585 else
13586 ac_cv_cflags__Wignored_qualifiers=no
13588 rm -f core conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
13590 CFLAGS=$ac_wine_try_cflags_saved
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13593 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13594 if test "x$ac_cv_cflags__Wignored_qualifiers" = xyes; then :
13595 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13598 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13599 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13600 $as_echo_n "(cached) " >&6
13601 else
13602 ac_wine_try_cflags_saved=$CFLAGS
13603 CFLAGS="$CFLAGS -Wstrict-prototypes"
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 int main(int argc, char **argv) { return 0; }
13607 _ACEOF
13608 if ac_fn_c_try_link "$LINENO"; then :
13609 ac_cv_cflags__Wstrict_prototypes=yes
13610 else
13611 ac_cv_cflags__Wstrict_prototypes=no
13613 rm -f core conftest.err conftest.$ac_objext \
13614 conftest$ac_exeext conftest.$ac_ext
13615 CFLAGS=$ac_wine_try_cflags_saved
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13618 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13619 if test "x$ac_cv_cflags__Wstrict_prototypes" = xyes; then :
13620 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13623 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13624 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 ac_wine_try_cflags_saved=$CFLAGS
13628 CFLAGS="$CFLAGS -Wtype-limits"
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631 int main(int argc, char **argv) { return 0; }
13632 _ACEOF
13633 if ac_fn_c_try_link "$LINENO"; then :
13634 ac_cv_cflags__Wtype_limits=yes
13635 else
13636 ac_cv_cflags__Wtype_limits=no
13638 rm -f core conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
13640 CFLAGS=$ac_wine_try_cflags_saved
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13643 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13644 if test "x$ac_cv_cflags__Wtype_limits" = xyes; then :
13645 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13648 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13649 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 ac_wine_try_cflags_saved=$CFLAGS
13653 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 int main(int argc, char **argv) { return 0; }
13657 _ACEOF
13658 if ac_fn_c_try_link "$LINENO"; then :
13659 ac_cv_cflags__Wunused_but_set_parameter=yes
13660 else
13661 ac_cv_cflags__Wunused_but_set_parameter=no
13663 rm -f core conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
13665 CFLAGS=$ac_wine_try_cflags_saved
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13668 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13669 if test "x$ac_cv_cflags__Wunused_but_set_parameter" = xyes; then :
13670 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13673 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13674 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 ac_wine_try_cflags_saved=$CFLAGS
13678 CFLAGS="$CFLAGS -Wwrite-strings"
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681 int main(int argc, char **argv) { return 0; }
13682 _ACEOF
13683 if ac_fn_c_try_link "$LINENO"; then :
13684 ac_cv_cflags__Wwrite_strings=yes
13685 else
13686 ac_cv_cflags__Wwrite_strings=no
13688 rm -f core conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext conftest.$ac_ext
13690 CFLAGS=$ac_wine_try_cflags_saved
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
13693 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
13694 if test "x$ac_cv_cflags__Wwrite_strings" = xyes; then :
13695 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
13699 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
13700 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
13701 $as_echo_n "(cached) " >&6
13702 else
13703 ac_wine_try_cflags_saved=$CFLAGS
13704 CFLAGS="$CFLAGS -Wpointer-arith"
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13707 int main(int argc, char **argv) { return 0; }
13708 _ACEOF
13709 if ac_fn_c_try_link "$LINENO"; then :
13710 ac_cv_cflags__Wpointer_arith=yes
13711 else
13712 ac_cv_cflags__Wpointer_arith=no
13714 rm -f core conftest.err conftest.$ac_objext \
13715 conftest$ac_exeext conftest.$ac_ext
13716 CFLAGS=$ac_wine_try_cflags_saved
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
13719 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
13720 if test "x$ac_cv_cflags__Wpointer_arith" = xyes; then :
13721 saved_string_h_CFLAGS=$CFLAGS
13722 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
13724 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
13725 if ${ac_cv_c_string_h_warnings+:} false; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730 #include <string.h>
13732 main ()
13736 return 0;
13738 _ACEOF
13739 if ac_fn_c_try_compile "$LINENO"; then :
13740 ac_cv_c_string_h_warnings=no
13741 else
13742 ac_cv_c_string_h_warnings=yes
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
13747 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
13748 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13749 CFLAGS=$saved_string_h_CFLAGS
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
13753 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
13754 if ${ac_cv_cflags__Wlogical_op+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 ac_wine_try_cflags_saved=$CFLAGS
13758 CFLAGS="$CFLAGS -Wlogical-op"
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13761 int main(int argc, char **argv) { return 0; }
13762 _ACEOF
13763 if ac_fn_c_try_link "$LINENO"; then :
13764 ac_cv_cflags__Wlogical_op=yes
13765 else
13766 ac_cv_cflags__Wlogical_op=no
13768 rm -f core conftest.err conftest.$ac_objext \
13769 conftest$ac_exeext conftest.$ac_ext
13770 CFLAGS=$ac_wine_try_cflags_saved
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
13773 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
13774 if test "x$ac_cv_cflags__Wlogical_op" = xyes; then :
13775 saved_string_h_CFLAGS=$CFLAGS
13776 CFLAGS="$CFLAGS -Wlogical-op -Werror"
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
13778 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
13779 if ${ac_cv_c_logicalop_noisy+:} false; then :
13780 $as_echo_n "(cached) " >&6
13781 else
13782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h. */
13784 #include <string.h>
13785 char*f(const char *h,char n) {return strchr(h,n);}
13787 main ()
13791 return 0;
13793 _ACEOF
13794 if ac_fn_c_try_compile "$LINENO"; then :
13795 ac_cv_c_logicalop_noisy=no
13796 else
13797 ac_cv_c_logicalop_noisy=yes
13799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
13802 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
13803 CFLAGS=$saved_string_h_CFLAGS
13804 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
13807 CFLAGS=$saved_CFLAGS
13809 for ac_flag in $CFLAGS; do
13810 case $ac_flag in
13811 -g) case $host_os in
13812 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
13813 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
13814 if ${ac_cv_cflags__gstabsp+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 ac_wine_try_cflags_saved=$CFLAGS
13818 CFLAGS="$CFLAGS -gstabs+"
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 int main(int argc, char **argv) { return 0; }
13822 _ACEOF
13823 if ac_fn_c_try_link "$LINENO"; then :
13824 ac_cv_cflags__gstabsp=yes
13825 else
13826 ac_cv_cflags__gstabsp=no
13828 rm -f core conftest.err conftest.$ac_objext \
13829 conftest$ac_exeext conftest.$ac_ext
13830 CFLAGS=$ac_wine_try_cflags_saved
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
13833 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
13834 if test "x$ac_cv_cflags__gstabsp" = xyes; then :
13835 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13836 fi ;;
13837 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
13838 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
13839 if ${ac_cv_cflags__gdwarf_2+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 ac_wine_try_cflags_saved=$CFLAGS
13843 CFLAGS="$CFLAGS -gdwarf-2"
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846 int main(int argc, char **argv) { return 0; }
13847 _ACEOF
13848 if ac_fn_c_try_link "$LINENO"; then :
13849 ac_cv_cflags__gdwarf_2=yes
13850 else
13851 ac_cv_cflags__gdwarf_2=no
13853 rm -f core conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13855 CFLAGS=$ac_wine_try_cflags_saved
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
13858 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
13859 if test "x$ac_cv_cflags__gdwarf_2" = xyes; then :
13860 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
13863 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
13864 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 ac_wine_try_cflags_saved=$CFLAGS
13868 CFLAGS="$CFLAGS -gstrict-dwarf"
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871 int main(int argc, char **argv) { return 0; }
13872 _ACEOF
13873 if ac_fn_c_try_link "$LINENO"; then :
13874 ac_cv_cflags__gstrict_dwarf=yes
13875 else
13876 ac_cv_cflags__gstrict_dwarf=no
13878 rm -f core conftest.err conftest.$ac_objext \
13879 conftest$ac_exeext conftest.$ac_ext
13880 CFLAGS=$ac_wine_try_cflags_saved
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
13883 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
13884 if test "x$ac_cv_cflags__gstrict_dwarf" = xyes; then :
13885 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
13886 fi ;;
13887 esac ;;
13888 esac
13889 done
13891 case $host_cpu in
13892 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
13893 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
13894 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
13895 $as_echo_n "(cached) " >&6
13896 else
13897 ac_wine_try_cflags_saved=$CFLAGS
13898 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13901 int main(int argc, char **argv) { return 0; }
13902 _ACEOF
13903 if ac_fn_c_try_link "$LINENO"; then :
13904 ac_cv_cflags__fno_omit_frame_pointer=yes
13905 else
13906 ac_cv_cflags__fno_omit_frame_pointer=no
13908 rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 CFLAGS=$ac_wine_try_cflags_saved
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
13913 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
13914 if test "x$ac_cv_cflags__fno_omit_frame_pointer" = xyes; then :
13915 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
13916 fi ;;
13917 esac
13919 case $host in
13920 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
13921 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
13922 if ${ac_cv_cflags__Wno_format+:} false; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 ac_wine_try_cflags_saved=$CFLAGS
13926 CFLAGS="$CFLAGS -Wno-format"
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13929 int main(int argc, char **argv) { return 0; }
13930 _ACEOF
13931 if ac_fn_c_try_link "$LINENO"; then :
13932 ac_cv_cflags__Wno_format=yes
13933 else
13934 ac_cv_cflags__Wno_format=no
13936 rm -f core conftest.err conftest.$ac_objext \
13937 conftest$ac_exeext conftest.$ac_ext
13938 CFLAGS=$ac_wine_try_cflags_saved
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
13941 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
13942 if test "x$ac_cv_cflags__Wno_format" = xyes; then :
13943 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
13944 fi ;;
13945 esac
13947 if test "x$enable_maintainer_mode" = "xyes"
13948 then
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
13950 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
13951 if ${ac_cv_cflags__Werror+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954 ac_wine_try_cflags_saved=$CFLAGS
13955 CFLAGS="$CFLAGS -Werror"
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13958 int main(int argc, char **argv) { return 0; }
13959 _ACEOF
13960 if ac_fn_c_try_link "$LINENO"; then :
13961 ac_cv_cflags__Werror=yes
13962 else
13963 ac_cv_cflags__Werror=no
13965 rm -f core conftest.err conftest.$ac_objext \
13966 conftest$ac_exeext conftest.$ac_ext
13967 CFLAGS=$ac_wine_try_cflags_saved
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
13970 $as_echo "$ac_cv_cflags__Werror" >&6; }
13971 if test "x$ac_cv_cflags__Werror" = xyes; then :
13972 EXTRACFLAGS="$EXTRACFLAGS -Werror"
13976 saved_CFLAGS="$CFLAGS"
13977 CFLAGS="$CFLAGS -Werror"
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
13979 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
13980 if ${ac_cv_have_ms_hook_prologue+:} false; then :
13981 $as_echo_n "(cached) " >&6
13982 else
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
13987 main ()
13991 return 0;
13993 _ACEOF
13994 if ac_fn_c_try_compile "$LINENO"; then :
13995 ac_cv_have_ms_hook_prologue="yes"
13996 else
13997 ac_cv_have_ms_hook_prologue="no"
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14002 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14003 CFLAGS="$saved_CFLAGS"
14004 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14005 then
14007 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14009 else
14010 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14017 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14018 if ${ac_cv_c_fortify_enabled+:} false; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14023 #include <string.h>
14025 main ()
14027 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14028 #error Fortify enabled
14029 #endif
14031 return 0;
14033 _ACEOF
14034 if ac_fn_c_try_compile "$LINENO"; then :
14035 ac_cv_c_fortify_enabled=no
14036 else
14037 ac_cv_c_fortify_enabled=yes
14039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14042 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14043 if test "$ac_cv_c_fortify_enabled" = yes
14044 then
14045 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14050 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14051 if ${ac_cv_c_extern_prefix+:} false; then :
14052 $as_echo_n "(cached) " >&6
14053 else
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14056 extern int ac_test;
14058 main ()
14060 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14062 return 0;
14064 _ACEOF
14065 if ac_fn_c_try_link "$LINENO"; then :
14066 ac_cv_c_extern_prefix="yes"
14067 else
14068 ac_cv_c_extern_prefix="no"
14070 rm -f core conftest.err conftest.$ac_objext \
14071 conftest$ac_exeext conftest.$ac_ext
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14074 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14076 case $host_cpu in
14077 *i[3456789]86*)
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14079 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14080 if ${ac_cv_c_stdcall_suffix+:} false; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14084 /* end confdefs.h. */
14085 #ifndef _MSC_VER
14086 #define __stdcall __attribute__((__stdcall__))
14087 #endif
14088 int __stdcall ac_test(int i) { return i; }
14090 main ()
14092 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14094 return 0;
14096 _ACEOF
14097 if ac_fn_c_try_link "$LINENO"; then :
14098 ac_cv_c_stdcall_suffix="yes"
14099 else
14100 ac_cv_c_stdcall_suffix="no"
14102 rm -f core conftest.err conftest.$ac_objext \
14103 conftest$ac_exeext conftest.$ac_ext
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14106 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14107 *) ac_cv_c_stdcall_suffix="no" ;;
14108 esac
14111 if test "$ac_cv_c_extern_prefix" = "yes"
14112 then
14113 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14115 asm_name_prefix="_"
14116 else
14117 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14119 asm_name_prefix=""
14123 if test "$ac_cv_c_stdcall_suffix" = "yes"
14124 then
14125 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14127 else
14128 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14134 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14135 if ${ac_cv_asm_func_def+:} false; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14142 main ()
14144 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14146 return 0;
14148 _ACEOF
14149 if ac_fn_c_try_link "$LINENO"; then :
14150 ac_cv_asm_func_def=".def"
14151 else
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14156 main ()
14158 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14160 return 0;
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 ac_cv_asm_func_def=".type @function"
14165 else
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14170 main ()
14172 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14174 return 0;
14176 _ACEOF
14177 if ac_fn_c_try_link "$LINENO"; then :
14178 ac_cv_asm_func_def=".type 2"
14179 else
14180 ac_cv_asm_func_def="unknown"
14182 rm -f core conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
14185 rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14188 rm -f core conftest.err conftest.$ac_objext \
14189 conftest$ac_exeext conftest.$ac_ext
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14192 $as_echo "$ac_cv_asm_func_def" >&6; }
14195 case "$ac_cv_asm_func_def" in
14196 ".def")
14197 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14199 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14200 ".type @function")
14201 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14203 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14204 ".type 2")
14205 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14207 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14209 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14211 asm_func_header="" ;;
14212 esac
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14215 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14216 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14217 $as_echo_n "(cached) " >&6
14218 else
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14221 asm(".text\n\t.long 0");
14223 main ()
14227 return 0;
14229 _ACEOF
14230 if ac_fn_c_try_compile "$LINENO"; then :
14231 ac_cv_c_asm_outside_funcs="yes"
14232 else
14233 ac_cv_c_asm_outside_funcs="no"
14235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14238 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14241 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14242 if ${ac_cv_c_dot_previous+:} false; then :
14243 $as_echo_n "(cached) " >&6
14244 else
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14249 main ()
14251 asm(".text\nac_test:\t.long 0\n\t.previous");
14253 return 0;
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257 ac_cv_c_dot_previous="yes"
14258 else
14259 ac_cv_c_dot_previous="no"
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14265 $as_echo "$ac_cv_c_dot_previous" >&6; }
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14268 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14269 if ${ac_cv_c_cfi_support+:} false; then :
14270 $as_echo_n "(cached) " >&6
14271 else
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14276 main ()
14280 return 0;
14282 _ACEOF
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284 ac_cv_c_cfi_support="yes"
14285 else
14286 ac_cv_c_cfi_support="no"
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14291 $as_echo "$ac_cv_c_cfi_support" >&6; }
14293 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14294 asm_func_trailer=""
14295 if test "$ac_cv_c_dot_previous" = "yes"
14296 then
14297 asm_func_trailer="\\n\\t.previous"
14299 if test "$ac_cv_c_cfi_support" = "yes"
14300 then
14301 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14302 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14304 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14306 UNWINDFLAGS=-fasynchronous-unwind-tables
14308 else
14309 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14313 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14316 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14317 then
14318 cat >>confdefs.h <<_ACEOF
14319 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14320 _ACEOF
14322 else
14323 cat >>confdefs.h <<_ACEOF
14324 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14325 _ACEOF
14329 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14332 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14336 case $build_os in
14337 cygwin*|mingw32*) TOOLSEXT=".exe"
14339 esac
14341 case $host_os in
14342 linux*)
14343 case $host_cpu in
14344 *i[3456789]86*|x86_64*)
14345 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14346 loader_programs="$loader_programs $wine_binary-preloader"
14347 as_fn_append LOADER_RULES "
14348 $wine_binary-preloader: preloader.o
14349 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14351 install install-lib:: $wine_binary-preloader
14352 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14354 uninstall::
14355 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14357 preloader_EXTRADEFS = $BUILTINFLAG
14358 " ;;
14359 esac
14361 esac
14362 as_fn_append LOADER_RULES "
14363 PROGRAMS = $loader_programs
14367 ac_save_CFLAGS="$CFLAGS"
14368 CFLAGS="$CFLAGS $BUILTINFLAG"
14369 for ac_func in \
14370 __res_get_state \
14371 __res_getservers \
14372 _finite \
14373 _isnan \
14374 _pclose \
14375 _popen \
14376 _snprintf \
14377 _spawnvp \
14378 _strdup \
14379 _stricmp \
14380 _strnicmp \
14381 _strtoi64 \
14382 _strtoui64 \
14383 _vsnprintf \
14384 asctime_r \
14385 chsize \
14386 dlopen \
14387 epoll_create \
14388 ffs \
14389 fnmatch \
14390 fork \
14391 fpclass \
14392 fstatfs \
14393 fstatvfs \
14394 ftruncate \
14395 futimens \
14396 futimes \
14397 futimesat \
14398 getattrlist \
14399 getdirentries \
14400 getopt_long_only \
14401 getpwuid \
14402 gettimeofday \
14403 getuid \
14404 if_nameindex \
14405 kqueue \
14406 lstat \
14407 memmove \
14408 mmap \
14409 pclose \
14410 pipe2 \
14411 poll \
14412 popen \
14413 port_create \
14414 prctl \
14415 pread \
14416 proc_pidinfo \
14417 pwrite \
14418 readdir \
14419 readlink \
14420 sched_yield \
14421 select \
14422 setproctitle \
14423 setrlimit \
14424 settimeofday \
14425 sigaltstack \
14426 sigprocmask \
14427 snprintf \
14428 statfs \
14429 statvfs \
14430 strcasecmp \
14431 strdup \
14432 strerror \
14433 strncasecmp \
14434 strtold \
14435 strtoll \
14436 strtoull \
14437 symlink \
14438 tcdrain \
14439 thr_kill2 \
14440 timegm \
14441 usleep \
14442 vsnprintf
14444 do :
14445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14446 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14447 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14448 cat >>confdefs.h <<_ACEOF
14449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14450 _ACEOF
14453 done
14455 CFLAGS="$ac_save_CFLAGS"
14457 if test "$ac_cv_func_dlopen" = no
14458 then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14460 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14461 if ${ac_cv_lib_dl_dlopen+:} false; then :
14462 $as_echo_n "(cached) " >&6
14463 else
14464 ac_check_lib_save_LIBS=$LIBS
14465 LIBS="-ldl $LIBS"
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14469 /* Override any GCC internal prototype to avoid an error.
14470 Use char because int might match the return type of a GCC
14471 builtin and then its argument prototype would still apply. */
14472 #ifdef __cplusplus
14473 extern "C"
14474 #endif
14475 char dlopen ();
14477 main ()
14479 return dlopen ();
14481 return 0;
14483 _ACEOF
14484 if ac_fn_c_try_link "$LINENO"; then :
14485 ac_cv_lib_dl_dlopen=yes
14486 else
14487 ac_cv_lib_dl_dlopen=no
14489 rm -f core conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
14491 LIBS=$ac_check_lib_save_LIBS
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14494 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14495 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14496 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14497 DL_LIBS="-ldl"
14502 ac_wine_check_funcs_save_LIBS="$LIBS"
14503 LIBS="$LIBS $DL_LIBS"
14504 for ac_func in dladdr
14505 do :
14506 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14507 if test "x$ac_cv_func_dladdr" = xyes; then :
14508 cat >>confdefs.h <<_ACEOF
14509 #define HAVE_DLADDR 1
14510 _ACEOF
14513 done
14515 LIBS="$ac_wine_check_funcs_save_LIBS"
14517 if test "$ac_cv_func_poll" = no
14518 then
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14520 $as_echo_n "checking for poll in -lpoll... " >&6; }
14521 if ${ac_cv_lib_poll_poll+:} false; then :
14522 $as_echo_n "(cached) " >&6
14523 else
14524 ac_check_lib_save_LIBS=$LIBS
14525 LIBS="-lpoll $LIBS"
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14529 /* Override any GCC internal prototype to avoid an error.
14530 Use char because int might match the return type of a GCC
14531 builtin and then its argument prototype would still apply. */
14532 #ifdef __cplusplus
14533 extern "C"
14534 #endif
14535 char poll ();
14537 main ()
14539 return poll ();
14541 return 0;
14543 _ACEOF
14544 if ac_fn_c_try_link "$LINENO"; then :
14545 ac_cv_lib_poll_poll=yes
14546 else
14547 ac_cv_lib_poll_poll=no
14549 rm -f core conftest.err conftest.$ac_objext \
14550 conftest$ac_exeext conftest.$ac_ext
14551 LIBS=$ac_check_lib_save_LIBS
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14554 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14555 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14556 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14557 POLL_LIBS="-lpoll"
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14564 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14565 if ${ac_cv_search_gethostbyname+:} false; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 ac_func_search_save_LIBS=$LIBS
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14572 /* Override any GCC internal prototype to avoid an error.
14573 Use char because int might match the return type of a GCC
14574 builtin and then its argument prototype would still apply. */
14575 #ifdef __cplusplus
14576 extern "C"
14577 #endif
14578 char gethostbyname ();
14580 main ()
14582 return gethostbyname ();
14584 return 0;
14586 _ACEOF
14587 for ac_lib in '' nsl; do
14588 if test -z "$ac_lib"; then
14589 ac_res="none required"
14590 else
14591 ac_res=-l$ac_lib
14592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14594 if ac_fn_c_try_link "$LINENO"; then :
14595 ac_cv_search_gethostbyname=$ac_res
14597 rm -f core conftest.err conftest.$ac_objext \
14598 conftest$ac_exeext
14599 if ${ac_cv_search_gethostbyname+:} false; then :
14600 break
14602 done
14603 if ${ac_cv_search_gethostbyname+:} false; then :
14605 else
14606 ac_cv_search_gethostbyname=no
14608 rm conftest.$ac_ext
14609 LIBS=$ac_func_search_save_LIBS
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14612 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14613 ac_res=$ac_cv_search_gethostbyname
14614 if test "$ac_res" != no; then :
14615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14621 $as_echo_n "checking for library containing connect... " >&6; }
14622 if ${ac_cv_search_connect+:} false; then :
14623 $as_echo_n "(cached) " >&6
14624 else
14625 ac_func_search_save_LIBS=$LIBS
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h. */
14629 /* Override any GCC internal prototype to avoid an error.
14630 Use char because int might match the return type of a GCC
14631 builtin and then its argument prototype would still apply. */
14632 #ifdef __cplusplus
14633 extern "C"
14634 #endif
14635 char connect ();
14637 main ()
14639 return connect ();
14641 return 0;
14643 _ACEOF
14644 for ac_lib in '' socket; do
14645 if test -z "$ac_lib"; then
14646 ac_res="none required"
14647 else
14648 ac_res=-l$ac_lib
14649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14651 if ac_fn_c_try_link "$LINENO"; then :
14652 ac_cv_search_connect=$ac_res
14654 rm -f core conftest.err conftest.$ac_objext \
14655 conftest$ac_exeext
14656 if ${ac_cv_search_connect+:} false; then :
14657 break
14659 done
14660 if ${ac_cv_search_connect+:} false; then :
14662 else
14663 ac_cv_search_connect=no
14665 rm conftest.$ac_ext
14666 LIBS=$ac_func_search_save_LIBS
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14669 $as_echo "$ac_cv_search_connect" >&6; }
14670 ac_res=$ac_cv_search_connect
14671 if test "$ac_res" != no; then :
14672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14678 $as_echo_n "checking for library containing inet_aton... " >&6; }
14679 if ${ac_cv_search_inet_aton+:} false; then :
14680 $as_echo_n "(cached) " >&6
14681 else
14682 ac_func_search_save_LIBS=$LIBS
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14686 /* Override any GCC internal prototype to avoid an error.
14687 Use char because int might match the return type of a GCC
14688 builtin and then its argument prototype would still apply. */
14689 #ifdef __cplusplus
14690 extern "C"
14691 #endif
14692 char inet_aton ();
14694 main ()
14696 return inet_aton ();
14698 return 0;
14700 _ACEOF
14701 for ac_lib in '' resolv; do
14702 if test -z "$ac_lib"; then
14703 ac_res="none required"
14704 else
14705 ac_res=-l$ac_lib
14706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14708 if ac_fn_c_try_link "$LINENO"; then :
14709 ac_cv_search_inet_aton=$ac_res
14711 rm -f core conftest.err conftest.$ac_objext \
14712 conftest$ac_exeext
14713 if ${ac_cv_search_inet_aton+:} false; then :
14714 break
14716 done
14717 if ${ac_cv_search_inet_aton+:} false; then :
14719 else
14720 ac_cv_search_inet_aton=no
14722 rm conftest.$ac_ext
14723 LIBS=$ac_func_search_save_LIBS
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14726 $as_echo "$ac_cv_search_inet_aton" >&6; }
14727 ac_res=$ac_cv_search_inet_aton
14728 if test "$ac_res" != no; then :
14729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14734 for ac_func in \
14735 getaddrinfo \
14736 getnameinfo \
14737 getnetbyname \
14738 getprotobyname \
14739 getprotobynumber \
14740 getservbyport \
14741 inet_addr \
14742 inet_network \
14743 inet_ntop \
14744 inet_pton \
14745 sendmsg \
14746 socketpair \
14748 do :
14749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14750 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14751 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14752 cat >>confdefs.h <<_ACEOF
14753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14754 _ACEOF
14757 done
14760 ac_save_LIBS=$LIBS
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14762 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14763 if ${ac_cv_search_clock_gettime+:} false; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 ac_func_search_save_LIBS=$LIBS
14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14770 /* Override any GCC internal prototype to avoid an error.
14771 Use char because int might match the return type of a GCC
14772 builtin and then its argument prototype would still apply. */
14773 #ifdef __cplusplus
14774 extern "C"
14775 #endif
14776 char clock_gettime ();
14778 main ()
14780 return clock_gettime ();
14782 return 0;
14784 _ACEOF
14785 for ac_lib in '' rt; do
14786 if test -z "$ac_lib"; then
14787 ac_res="none required"
14788 else
14789 ac_res=-l$ac_lib
14790 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14792 if ac_fn_c_try_link "$LINENO"; then :
14793 ac_cv_search_clock_gettime=$ac_res
14795 rm -f core conftest.err conftest.$ac_objext \
14796 conftest$ac_exeext
14797 if ${ac_cv_search_clock_gettime+:} false; then :
14798 break
14800 done
14801 if ${ac_cv_search_clock_gettime+:} false; then :
14803 else
14804 ac_cv_search_clock_gettime=no
14806 rm conftest.$ac_ext
14807 LIBS=$ac_func_search_save_LIBS
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14810 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14811 ac_res=$ac_cv_search_clock_gettime
14812 if test "$ac_res" != no; then :
14813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14815 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14817 test "$ac_res" = "none required" || RT_LIBS="$ac_res"
14821 LIBS=$ac_save_LIBS
14823 LDAP_LIBS=""
14825 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
14826 then
14827 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
14829 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
14831 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
14832 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
14833 $as_echo_n "(cached) " >&6
14834 else
14835 ac_check_lib_save_LIBS=$LIBS
14836 LIBS="-lldap_r $PTHREAD_LIBS $LIBS"
14837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838 /* end confdefs.h. */
14840 /* Override any GCC internal prototype to avoid an error.
14841 Use char because int might match the return type of a GCC
14842 builtin and then its argument prototype would still apply. */
14843 #ifdef __cplusplus
14844 extern "C"
14845 #endif
14846 char ldap_initialize ();
14848 main ()
14850 return ldap_initialize ();
14852 return 0;
14854 _ACEOF
14855 if ac_fn_c_try_link "$LINENO"; then :
14856 ac_cv_lib_ldap_r_ldap_initialize=yes
14857 else
14858 ac_cv_lib_ldap_r_ldap_initialize=no
14860 rm -f core conftest.err conftest.$ac_objext \
14861 conftest$ac_exeext conftest.$ac_ext
14862 LIBS=$ac_check_lib_save_LIBS
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
14865 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
14866 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14868 $as_echo_n "checking for ber_init in -llber... " >&6; }
14869 if ${ac_cv_lib_lber_ber_init+:} false; then :
14870 $as_echo_n "(cached) " >&6
14871 else
14872 ac_check_lib_save_LIBS=$LIBS
14873 LIBS="-llber $PTHREAD_LIBS $LIBS"
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14877 /* Override any GCC internal prototype to avoid an error.
14878 Use char because int might match the return type of a GCC
14879 builtin and then its argument prototype would still apply. */
14880 #ifdef __cplusplus
14881 extern "C"
14882 #endif
14883 char ber_init ();
14885 main ()
14887 return ber_init ();
14889 return 0;
14891 _ACEOF
14892 if ac_fn_c_try_link "$LINENO"; then :
14893 ac_cv_lib_lber_ber_init=yes
14894 else
14895 ac_cv_lib_lber_ber_init=no
14897 rm -f core conftest.err conftest.$ac_objext \
14898 conftest$ac_exeext conftest.$ac_ext
14899 LIBS=$ac_check_lib_save_LIBS
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14902 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
14903 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
14905 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
14907 LDAP_LIBS="-lldap_r -llber"
14914 ac_wine_check_funcs_save_LIBS="$LIBS"
14915 LIBS="$LIBS $LDAP_LIBS $PTHREAD_LIBS"
14916 for ac_func in \
14917 ldap_count_references \
14918 ldap_first_reference \
14919 ldap_next_reference \
14920 ldap_parse_reference \
14921 ldap_parse_sort_control \
14922 ldap_parse_sortresponse_control \
14923 ldap_parse_vlv_control \
14924 ldap_parse_vlvresponse_control
14925 do :
14926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14927 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14928 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14929 cat >>confdefs.h <<_ACEOF
14930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14931 _ACEOF
14934 done
14936 LIBS="$ac_wine_check_funcs_save_LIBS"
14938 if test "x$LDAP_LIBS" = "x"; then :
14939 case "x$with_ldap" in
14940 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
14941 xno) ;;
14942 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
14943 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
14944 esac
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
14948 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
14949 if ${wine_cv_one_arg_mkdir+:} false; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14954 #include <sys/stat.h>
14956 main ()
14958 mkdir("foo");
14960 return 0;
14962 _ACEOF
14963 if ac_fn_c_try_compile "$LINENO"; then :
14964 wine_cv_one_arg_mkdir=yes
14965 else
14966 wine_cv_one_arg_mkdir=no
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
14971 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
14972 if test "$wine_cv_one_arg_mkdir" = "yes"
14973 then
14975 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
14980 $as_echo_n "checking for sched_setaffinity... " >&6; }
14981 if ${wine_cv_have_sched_setaffinity+:} false; then :
14982 $as_echo_n "(cached) " >&6
14983 else
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14986 #define _GNU_SOURCE
14987 #include <sched.h>
14989 main ()
14991 sched_setaffinity(0, 0, 0);
14993 return 0;
14995 _ACEOF
14996 if ac_fn_c_try_link "$LINENO"; then :
14997 wine_cv_have_sched_setaffinity=yes
14998 else
14999 wine_cv_have_sched_setaffinity=no
15001 rm -f core conftest.err conftest.$ac_objext \
15002 conftest$ac_exeext conftest.$ac_ext
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
15005 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15006 if test "$wine_cv_have_sched_setaffinity" = "yes"
15007 then
15009 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15014 $as_echo_n "checking for fallocate... " >&6; }
15015 if ${wine_cv_have_fallocate+:} false; then :
15016 $as_echo_n "(cached) " >&6
15017 else
15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15020 #define _GNU_SOURCE
15021 #include <fcntl.h>
15023 main ()
15025 fallocate(-1, 0, 0, 0);
15027 return 0;
15029 _ACEOF
15030 if ac_fn_c_try_link "$LINENO"; then :
15031 wine_cv_have_fallocate=yes
15032 else
15033 wine_cv_have_fallocate=no
15035 rm -f core conftest.err conftest.$ac_objext \
15036 conftest$ac_exeext conftest.$ac_ext
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15039 $as_echo "$wine_cv_have_fallocate" >&6; }
15040 if test "$wine_cv_have_fallocate" = "yes"
15041 then
15043 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15049 $as_echo_n "checking for inline... " >&6; }
15050 if ${ac_cv_c_inline+:} false; then :
15051 $as_echo_n "(cached) " >&6
15052 else
15053 ac_cv_c_inline=no
15054 for ac_kw in inline __inline__ __inline; do
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 #ifndef __cplusplus
15058 typedef int foo_t;
15059 static $ac_kw foo_t static_foo () {return 0; }
15060 $ac_kw foo_t foo () {return 0; }
15061 #endif
15063 _ACEOF
15064 if ac_fn_c_try_compile "$LINENO"; then :
15065 ac_cv_c_inline=$ac_kw
15067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068 test "$ac_cv_c_inline" != no && break
15069 done
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15073 $as_echo "$ac_cv_c_inline" >&6; }
15075 case $ac_cv_c_inline in
15076 inline | yes) ;;
15078 case $ac_cv_c_inline in
15079 no) ac_val=;;
15080 *) ac_val=$ac_cv_c_inline;;
15081 esac
15082 cat >>confdefs.h <<_ACEOF
15083 #ifndef __cplusplus
15084 #define inline $ac_val
15085 #endif
15086 _ACEOF
15088 esac
15090 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15091 if test "x$ac_cv_type_mode_t" = xyes; then :
15093 cat >>confdefs.h <<_ACEOF
15094 #define HAVE_MODE_T 1
15095 _ACEOF
15099 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15100 if test "x$ac_cv_type_off_t" = xyes; then :
15102 cat >>confdefs.h <<_ACEOF
15103 #define HAVE_OFF_T 1
15104 _ACEOF
15108 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15109 if test "x$ac_cv_type_pid_t" = xyes; then :
15111 cat >>confdefs.h <<_ACEOF
15112 #define HAVE_PID_T 1
15113 _ACEOF
15117 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15118 if test "x$ac_cv_type_size_t" = xyes; then :
15120 cat >>confdefs.h <<_ACEOF
15121 #define HAVE_SIZE_T 1
15122 _ACEOF
15126 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15127 if test "x$ac_cv_type_ssize_t" = xyes; then :
15129 cat >>confdefs.h <<_ACEOF
15130 #define HAVE_SSIZE_T 1
15131 _ACEOF
15135 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15136 if test "x$ac_cv_type_long_long" = xyes; then :
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_LONG_LONG 1
15140 _ACEOF
15144 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15145 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15147 cat >>confdefs.h <<_ACEOF
15148 #define HAVE_FSBLKCNT_T 1
15149 _ACEOF
15153 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15154 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15156 cat >>confdefs.h <<_ACEOF
15157 #define HAVE_FSFILCNT_T 1
15158 _ACEOF
15163 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15164 #include <signal.h>
15166 if test "x$ac_cv_type_sigset_t" = xyes; then :
15168 cat >>confdefs.h <<_ACEOF
15169 #define HAVE_SIGSET_T 1
15170 _ACEOF
15175 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15177 if test "x$ac_cv_type_request_sense" = xyes; then :
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_REQUEST_SENSE 1
15181 _ACEOF
15187 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15188 #ifdef HAVE_SYS_SOCKET_H
15189 #include <sys/socket.h>
15190 #endif
15191 #ifdef HAVE_SYS_SOCKETVAR_H
15192 #include <sys/socketvar.h>
15193 #endif
15194 #ifdef HAVE_NET_ROUTE_H
15195 #include <net/route.h>
15196 #endif
15197 #ifdef HAVE_NETINET_IN_H
15198 #include <netinet/in.h>
15199 #endif
15200 #ifdef HAVE_NETINET_IN_SYSTM_H
15201 #include <netinet/in_systm.h>
15202 #endif
15203 #ifdef HAVE_NETINET_IP_H
15204 #include <netinet/ip.h>
15205 #endif
15206 #ifdef HAVE_NETINET_IN_PCB_H
15207 #include <netinet/in_pcb.h>
15208 #endif
15210 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15212 cat >>confdefs.h <<_ACEOF
15213 #define HAVE_STRUCT_XINPGEN 1
15214 _ACEOF
15220 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15221 #include <link.h>
15222 #endif
15223 #ifdef HAVE_SYS_LINK_H
15224 #include <sys/link.h>
15225 #endif
15227 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15229 cat >>confdefs.h <<_ACEOF
15230 #define HAVE_STRUCT_R_DEBUG 1
15231 _ACEOF
15235 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15236 #include <link.h>
15237 #endif
15238 #ifdef HAVE_SYS_LINK_H
15239 #include <sys/link.h>
15240 #endif
15242 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15244 cat >>confdefs.h <<_ACEOF
15245 #define HAVE_STRUCT_LINK_MAP 1
15246 _ACEOF
15252 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15253 #include <linux/input.h>
15254 #endif
15256 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15258 cat >>confdefs.h <<_ACEOF
15259 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15260 _ACEOF
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15267 $as_echo_n "checking for sigaddset... " >&6; }
15268 if ${wine_cv_have_sigaddset+:} false; then :
15269 $as_echo_n "(cached) " >&6
15270 else
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 #include <signal.h>
15275 main ()
15277 sigset_t set; sigaddset(&set,SIGTERM);
15279 return 0;
15281 _ACEOF
15282 if ac_fn_c_try_link "$LINENO"; then :
15283 wine_cv_have_sigaddset=yes
15284 else
15285 wine_cv_have_sigaddset=no
15287 rm -f core conftest.err conftest.$ac_objext \
15288 conftest$ac_exeext conftest.$ac_ext
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15291 $as_echo "$wine_cv_have_sigaddset" >&6; }
15292 if test "$wine_cv_have_sigaddset" = "yes"
15293 then
15295 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15301 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15302 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15303 $as_echo_n "(cached) " >&6
15304 else
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307 #include <netdb.h>
15309 main ()
15312 char *name=0;
15313 struct hostent he;
15314 struct hostent *result;
15315 char *buf=0;
15316 int bufsize=0;
15317 int errnr;
15318 char *addr=0;
15319 int addrlen=0;
15320 int addrtype=0;
15321 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15322 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15325 return 0;
15327 _ACEOF
15328 if ac_fn_c_try_link "$LINENO"; then :
15329 wine_cv_linux_gethostbyname_r_6=yes
15330 else
15331 wine_cv_linux_gethostbyname_r_6=no
15334 rm -f core conftest.err conftest.$ac_objext \
15335 conftest$ac_exeext conftest.$ac_ext
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15339 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15340 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15341 then
15343 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15347 if test "$ac_cv_header_linux_joystick_h" = "yes"
15348 then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15350 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15351 if ${wine_cv_linux_joystick_22_api+:} false; then :
15352 $as_echo_n "(cached) " >&6
15353 else
15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h. */
15357 #include <sys/ioctl.h>
15358 #include <sys/types.h>
15359 #include <linux/joystick.h>
15361 struct js_event blub;
15362 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15363 #error "no 2.2 header"
15364 #endif
15367 main ()
15369 /*empty*/
15371 return 0;
15373 _ACEOF
15374 if ac_fn_c_try_compile "$LINENO"; then :
15375 wine_cv_linux_joystick_22_api=yes
15376 else
15377 wine_cv_linux_joystick_22_api=no
15379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15383 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15384 if test "$wine_cv_linux_joystick_22_api" = "yes"
15385 then
15387 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15393 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15394 #ifdef HAVE_SYS_PARAM_H
15395 # include <sys/param.h>
15396 #endif
15397 #ifdef HAVE_SYS_MOUNT_H
15398 # include <sys/mount.h>
15399 #endif
15400 #ifdef HAVE_SYS_VFS_H
15401 # include <sys/vfs.h>
15402 #endif
15403 #ifdef HAVE_SYS_STATFS_H
15404 # include <sys/statfs.h>
15405 #endif
15407 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15409 cat >>confdefs.h <<_ACEOF
15410 #define HAVE_STRUCT_STATFS_F_BFREE 1
15411 _ACEOF
15415 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15416 #ifdef HAVE_SYS_PARAM_H
15417 # include <sys/param.h>
15418 #endif
15419 #ifdef HAVE_SYS_MOUNT_H
15420 # include <sys/mount.h>
15421 #endif
15422 #ifdef HAVE_SYS_VFS_H
15423 # include <sys/vfs.h>
15424 #endif
15425 #ifdef HAVE_SYS_STATFS_H
15426 # include <sys/statfs.h>
15427 #endif
15429 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15431 cat >>confdefs.h <<_ACEOF
15432 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15433 _ACEOF
15437 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15438 #ifdef HAVE_SYS_PARAM_H
15439 # include <sys/param.h>
15440 #endif
15441 #ifdef HAVE_SYS_MOUNT_H
15442 # include <sys/mount.h>
15443 #endif
15444 #ifdef HAVE_SYS_VFS_H
15445 # include <sys/vfs.h>
15446 #endif
15447 #ifdef HAVE_SYS_STATFS_H
15448 # include <sys/statfs.h>
15449 #endif
15451 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15453 cat >>confdefs.h <<_ACEOF
15454 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15455 _ACEOF
15459 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15460 #ifdef HAVE_SYS_PARAM_H
15461 # include <sys/param.h>
15462 #endif
15463 #ifdef HAVE_SYS_MOUNT_H
15464 # include <sys/mount.h>
15465 #endif
15466 #ifdef HAVE_SYS_VFS_H
15467 # include <sys/vfs.h>
15468 #endif
15469 #ifdef HAVE_SYS_STATFS_H
15470 # include <sys/statfs.h>
15471 #endif
15473 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15475 cat >>confdefs.h <<_ACEOF
15476 #define HAVE_STRUCT_STATFS_F_FFREE 1
15477 _ACEOF
15481 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15482 #ifdef HAVE_SYS_PARAM_H
15483 # include <sys/param.h>
15484 #endif
15485 #ifdef HAVE_SYS_MOUNT_H
15486 # include <sys/mount.h>
15487 #endif
15488 #ifdef HAVE_SYS_VFS_H
15489 # include <sys/vfs.h>
15490 #endif
15491 #ifdef HAVE_SYS_STATFS_H
15492 # include <sys/statfs.h>
15493 #endif
15495 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15497 cat >>confdefs.h <<_ACEOF
15498 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15499 _ACEOF
15503 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15504 #ifdef HAVE_SYS_PARAM_H
15505 # include <sys/param.h>
15506 #endif
15507 #ifdef HAVE_SYS_MOUNT_H
15508 # include <sys/mount.h>
15509 #endif
15510 #ifdef HAVE_SYS_VFS_H
15511 # include <sys/vfs.h>
15512 #endif
15513 #ifdef HAVE_SYS_STATFS_H
15514 # include <sys/statfs.h>
15515 #endif
15517 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15519 cat >>confdefs.h <<_ACEOF
15520 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15521 _ACEOF
15527 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15528 #include <sys/statvfs.h>
15529 #endif
15531 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15533 cat >>confdefs.h <<_ACEOF
15534 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15535 _ACEOF
15541 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15542 #include <dirent.h>
15543 #endif
15545 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15547 cat >>confdefs.h <<_ACEOF
15548 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15549 _ACEOF
15555 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15556 #ifdef HAVE_SYS_SOCKET_H
15557 # include <sys/socket.h>
15558 #endif
15559 #ifdef HAVE_SYS_UN_H
15560 # include <sys/un.h>
15561 #endif
15563 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15565 cat >>confdefs.h <<_ACEOF
15566 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15567 _ACEOF
15571 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15572 #ifdef HAVE_SYS_SOCKET_H
15573 # include <sys/socket.h>
15574 #endif
15575 #ifdef HAVE_SYS_UN_H
15576 # include <sys/un.h>
15577 #endif
15579 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15581 cat >>confdefs.h <<_ACEOF
15582 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15583 _ACEOF
15587 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15588 #ifdef HAVE_SYS_SOCKET_H
15589 # include <sys/socket.h>
15590 #endif
15591 #ifdef HAVE_SYS_UN_H
15592 # include <sys/un.h>
15593 #endif
15595 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15597 cat >>confdefs.h <<_ACEOF
15598 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15599 _ACEOF
15605 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15606 #ifdef HAVE_SCSI_SG_H
15607 #include <scsi/sg.h>
15608 #endif
15610 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15612 cat >>confdefs.h <<_ACEOF
15613 #define HAVE_SCSIREQ_T_CMD 1
15614 _ACEOF
15618 ac_fn_c_check_member "$LINENO" "sg_io_hdr_t" "interface_id" "ac_cv_member_sg_io_hdr_t_interface_id" "#include <sys/types.h>
15619 #ifdef HAVE_SCSI_SG_H
15620 #include <scsi/sg.h>
15621 #endif
15623 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15625 cat >>confdefs.h <<_ACEOF
15626 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15627 _ACEOF
15633 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15635 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15637 cat >>confdefs.h <<_ACEOF
15638 #define HAVE_SIGINFO_T_SI_FD 1
15639 _ACEOF
15645 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15646 #ifdef HAVE_SYS_MTIO_H
15647 #include <sys/mtio.h>
15648 #endif
15650 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15654 _ACEOF
15658 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15659 #ifdef HAVE_SYS_MTIO_H
15660 #include <sys/mtio.h>
15661 #endif
15663 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15665 cat >>confdefs.h <<_ACEOF
15666 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15667 _ACEOF
15671 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15672 #ifdef HAVE_SYS_MTIO_H
15673 #include <sys/mtio.h>
15674 #endif
15676 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
15678 cat >>confdefs.h <<_ACEOF
15679 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
15680 _ACEOF
15686 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
15687 #include <getopt.h>
15688 #endif
15690 if test "x$ac_cv_member_struct_option_name" = xyes; then :
15692 cat >>confdefs.h <<_ACEOF
15693 #define HAVE_STRUCT_OPTION_NAME 1
15694 _ACEOF
15700 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15701 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15703 cat >>confdefs.h <<_ACEOF
15704 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15705 _ACEOF
15709 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15710 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
15712 cat >>confdefs.h <<_ACEOF
15713 #define HAVE_STRUCT_STAT_ST_MTIM 1
15714 _ACEOF
15718 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15719 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
15721 cat >>confdefs.h <<_ACEOF
15722 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
15723 _ACEOF
15727 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
15728 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
15730 cat >>confdefs.h <<_ACEOF
15731 #define HAVE_STRUCT_STAT_ST_CTIM 1
15732 _ACEOF
15736 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
15737 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
15739 cat >>confdefs.h <<_ACEOF
15740 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
15741 _ACEOF
15745 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
15746 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
15748 cat >>confdefs.h <<_ACEOF
15749 #define HAVE_STRUCT_STAT_ST_ATIM 1
15750 _ACEOF
15754 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
15755 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
15757 cat >>confdefs.h <<_ACEOF
15758 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
15759 _ACEOF
15763 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15764 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15766 cat >>confdefs.h <<_ACEOF
15767 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15768 _ACEOF
15772 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
15773 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
15775 cat >>confdefs.h <<_ACEOF
15776 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
15777 _ACEOF
15781 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
15782 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
15784 cat >>confdefs.h <<_ACEOF
15785 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
15786 _ACEOF
15790 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
15791 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
15793 cat >>confdefs.h <<_ACEOF
15794 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
15795 _ACEOF
15799 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
15800 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
15802 cat >>confdefs.h <<_ACEOF
15803 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
15804 _ACEOF
15810 ac_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
15811 #include <sys/types.h>
15812 #endif
15813 #ifdef HAVE_NETINET_IN_H
15814 #include <netinet/in.h>
15815 #endif
15817 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15819 cat >>confdefs.h <<_ACEOF
15820 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15821 _ACEOF
15827 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
15828 #include <resolv.h>
15829 #endif
15831 if test "x$ac_cv_type_struct___res_state" = xyes; then :
15833 cat >>confdefs.h <<_ACEOF
15834 #define HAVE_STRUCT___RES_STATE 1
15835 _ACEOF
15841 ac_fn_c_check_member "$LINENO" "struct __res_state" "_u._ext.nscount6" "ac_cv_member_struct___res_state__u__ext_nscount6" "#ifdef HAVE_RESOLV_H
15842 #include <resolv.h>
15843 #endif
15845 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
15847 cat >>confdefs.h <<_ACEOF
15848 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
15849 _ACEOF
15855 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
15856 #include <sys/types.h>
15857 #endif
15858 #ifdef HAVE_NETINET_IN_H
15859 # include <netinet/in.h>
15860 #endif
15861 #ifdef HAVE_ARPA_NAMESER_H
15862 # include <arpa/nameser.h>
15863 #endif
15865 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
15867 cat >>confdefs.h <<_ACEOF
15868 #define HAVE_NS_MSG__MSG_PTR 1
15869 _ACEOF
15875 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
15876 #include <sys/types.h>
15877 #endif
15878 #ifdef HAVE_NETINET_IP_H
15879 #include <netinet/ip.h>
15880 #endif
15881 #ifdef HAVE_NETINET_IP_ICMP_H
15882 #include <netinet/ip_icmp.h>
15883 #endif
15884 #ifdef HAVE_NETINET_ICMP_VAR_H
15885 #include <netinet/icmp_var.h>
15886 #endif
15888 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
15890 cat >>confdefs.h <<_ACEOF
15891 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
15892 _ACEOF
15898 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
15899 #include <sys/types.h>
15900 #endif
15901 #ifdef HAVE_ALIAS_H
15902 #include <alias.h>
15903 #endif
15904 #ifdef HAVE_SYS_SOCKET_H
15905 #include <sys/socket.h>
15906 #endif
15907 #ifdef HAVE_SYS_SOCKETVAR_H
15908 #include <sys/socketvar.h>
15909 #endif
15910 #ifdef HAVE_SYS_TIMEOUT_H
15911 #include <sys/timeout.h>
15912 #endif
15913 #ifdef HAVE_NETINET_IN_H
15914 #include <netinet/in.h>
15915 #endif
15916 #ifdef HAVE_NETINET_IN_SYSTM_H
15917 #include <netinet/in_systm.h>
15918 #endif
15919 #ifdef HAVE_NETINET_IP_H
15920 #include <netinet/ip.h>
15921 #endif
15922 #ifdef HAVE_NETINET_IP_VAR_H
15923 #include <netinet/ip_var.h>
15924 #endif
15925 #ifdef HAVE_NETINET_IP_ICMP_H
15926 #include <netinet/ip_icmp.h>
15927 #endif
15928 #ifdef HAVE_NETINET_ICMP_VAR_H
15929 #include <netinet/icmp_var.h>
15930 #endif
15932 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
15934 cat >>confdefs.h <<_ACEOF
15935 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
15936 _ACEOF
15942 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
15943 #include <sys/types.h>
15944 #endif
15945 #ifdef HAVE_SYS_SOCKETVAR_H
15946 #include <sys/socketvar.h>
15947 #endif
15948 #ifdef HAVE_NETINET_IN_H
15949 #include <netinet/in.h>
15950 #endif
15951 #ifdef HAVE_NETINET_IP_VAR_H
15952 #include <netinet/ip_var.h>
15953 #endif
15955 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
15957 cat >>confdefs.h <<_ACEOF
15958 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
15959 _ACEOF
15965 ac_fn_c_check_member "$LINENO" "struct ip_stats" "ips_total" "ac_cv_member_struct_ip_stats_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H
15966 #include <netinet/ip_var.h>
15967 #endif
15969 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
15971 cat >>confdefs.h <<_ACEOF
15972 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
15973 _ACEOF
15979 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
15980 #include <sys/types.h>
15981 #endif
15982 #ifdef HAVE_SYS_SOCKETVAR_H
15983 #include <sys/socketvar.h>
15984 #endif
15985 #ifdef HAVE_NETINET_IN_H
15986 #include <netinet/in.h>
15987 #endif
15988 #ifdef HAVE_NETINET_TCP_H
15989 #include <netinet/tcp.h>
15990 #endif
15991 #ifdef HAVE_NETINET_TCP_VAR_H
15992 #include <netinet/tcp_var.h>
15993 #endif
15995 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
15997 cat >>confdefs.h <<_ACEOF
15998 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
15999 _ACEOF
16005 ac_fn_c_check_member "$LINENO" "struct tcp_stats" "tcps_connattempt" "ac_cv_member_struct_tcp_stats_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H
16006 #include <netinet/tcp_var.h>
16007 #endif
16009 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16011 cat >>confdefs.h <<_ACEOF
16012 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16013 _ACEOF
16019 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16020 #include <sys/types.h>
16021 #endif
16022 #ifdef HAVE_NETINET_IN_H
16023 #include <netinet/in.h>
16024 #endif
16025 #ifdef HAVE_NETINET_IP_VAR_H
16026 #include <netinet/ip_var.h>
16027 #endif
16028 #ifdef HAVE_NETINET_UDP_H
16029 #include <netinet/udp.h>
16030 #endif
16031 #ifdef HAVE_NETINET_UDP_VAR_H
16032 #include <netinet/udp_var.h>
16033 #endif
16035 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16037 cat >>confdefs.h <<_ACEOF
16038 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16039 _ACEOF
16045 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16046 #include <sys/types.h>
16047 #endif
16048 #ifdef HAVE_NET_IF_H
16049 # include <net/if.h>
16050 #endif
16052 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16054 cat >>confdefs.h <<_ACEOF
16055 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16056 _ACEOF
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16063 $as_echo_n "checking for timezone variable... " >&6; }
16064 if ${ac_cv_have_timezone+:} false; then :
16065 $as_echo_n "(cached) " >&6
16066 else
16067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16069 #include <time.h>
16071 main ()
16073 timezone = 1
16075 return 0;
16077 _ACEOF
16078 if ac_fn_c_try_link "$LINENO"; then :
16079 ac_cv_have_timezone="yes"
16080 else
16081 ac_cv_have_timezone="no"
16083 rm -f core conftest.err conftest.$ac_objext \
16084 conftest$ac_exeext conftest.$ac_ext
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16087 $as_echo "$ac_cv_have_timezone" >&6; }
16088 if test "$ac_cv_have_timezone" = "yes"
16089 then
16091 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16095 $as_echo_n "checking for daylight variable... " >&6; }
16096 if ${ac_cv_have_daylight+:} false; then :
16097 $as_echo_n "(cached) " >&6
16098 else
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16101 #include <time.h>
16103 main ()
16105 daylight = 1
16107 return 0;
16109 _ACEOF
16110 if ac_fn_c_try_link "$LINENO"; then :
16111 ac_cv_have_daylight="yes"
16112 else
16113 ac_cv_have_daylight="no"
16115 rm -f core conftest.err conftest.$ac_objext \
16116 conftest$ac_exeext conftest.$ac_ext
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16119 $as_echo "$ac_cv_have_daylight" >&6; }
16120 if test "$ac_cv_have_daylight" = "yes"
16121 then
16123 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16127 ac_save_LIBS="$LIBS"
16128 LIBS="$LIBS -lm"
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16130 $as_echo_n "checking for isfinite... " >&6; }
16131 if ${ac_cv_have_isfinite+:} false; then :
16132 $as_echo_n "(cached) " >&6
16133 else
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16136 #define _GNU_SOURCE
16137 #include <math.h>
16139 main ()
16141 float f = 0.0; return isfinite(f)
16143 return 0;
16145 _ACEOF
16146 if ac_fn_c_try_link "$LINENO"; then :
16147 ac_cv_have_isfinite="yes"
16148 else
16149 ac_cv_have_isfinite="no"
16151 rm -f core conftest.err conftest.$ac_objext \
16152 conftest$ac_exeext conftest.$ac_ext
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16155 $as_echo "$ac_cv_have_isfinite" >&6; }
16156 if test "$ac_cv_have_isfinite" = "yes"
16157 then
16159 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16163 ac_save_LIBS="$LIBS"
16164 LIBS="$LIBS -lm"
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16166 $as_echo_n "checking for isinf... " >&6; }
16167 if ${ac_cv_have_isinf+:} false; then :
16168 $as_echo_n "(cached) " >&6
16169 else
16170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16171 /* end confdefs.h. */
16172 #include <math.h>
16174 main ()
16176 float f = 0.0; return isinf(f)
16178 return 0;
16180 _ACEOF
16181 if ac_fn_c_try_link "$LINENO"; then :
16182 ac_cv_have_isinf="yes"
16183 else
16184 ac_cv_have_isinf="no"
16186 rm -f core conftest.err conftest.$ac_objext \
16187 conftest$ac_exeext conftest.$ac_ext
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16190 $as_echo "$ac_cv_have_isinf" >&6; }
16191 if test "$ac_cv_have_isinf" = "yes"
16192 then
16194 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16199 $as_echo_n "checking for isnan... " >&6; }
16200 if ${ac_cv_have_isnan+:} false; then :
16201 $as_echo_n "(cached) " >&6
16202 else
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 #include <math.h>
16207 main ()
16209 float f = 0.0; return isnan(f)
16211 return 0;
16213 _ACEOF
16214 if ac_fn_c_try_link "$LINENO"; then :
16215 ac_cv_have_isnan="yes"
16216 else
16217 ac_cv_have_isnan="no"
16219 rm -f core conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16223 $as_echo "$ac_cv_have_isnan" >&6; }
16224 if test "$ac_cv_have_isnan" = "yes"
16225 then
16227 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16230 LIBS="$ac_save_LIBS"
16233 case $host_cpu in
16234 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16235 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16236 if ${ac_cv_cpp_def___i386__+:} false; then :
16237 $as_echo_n "(cached) " >&6
16238 else
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16241 #ifndef __i386__
16243 #endif
16244 _ACEOF
16245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16246 $EGREP "yes" >/dev/null 2>&1; then :
16247 ac_cv_cpp_def___i386__=yes
16248 else
16249 ac_cv_cpp_def___i386__=no
16251 rm -f conftest*
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16255 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16256 if test "x$ac_cv_cpp_def___i386__" = xyes; then :
16257 CFLAGS="$CFLAGS -D__i386__"
16258 LINTFLAGS="$LINTFLAGS -D__i386__"
16259 fi ;;
16260 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16261 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16262 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16263 $as_echo_n "(cached) " >&6
16264 else
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16267 #ifndef __x86_64__
16269 #endif
16270 _ACEOF
16271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16272 $EGREP "yes" >/dev/null 2>&1; then :
16273 ac_cv_cpp_def___x86_64__=yes
16274 else
16275 ac_cv_cpp_def___x86_64__=no
16277 rm -f conftest*
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16281 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16282 if test "x$ac_cv_cpp_def___x86_64__" = xyes; then :
16283 CFLAGS="$CFLAGS -D__x86_64__"
16284 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16285 fi ;;
16286 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16287 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16288 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16289 $as_echo_n "(cached) " >&6
16290 else
16291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292 /* end confdefs.h. */
16293 #ifndef __sparc64__
16295 #endif
16296 _ACEOF
16297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16298 $EGREP "yes" >/dev/null 2>&1; then :
16299 ac_cv_cpp_def___sparc64__=yes
16300 else
16301 ac_cv_cpp_def___sparc64__=no
16303 rm -f conftest*
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16307 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16308 if test "x$ac_cv_cpp_def___sparc64__" = xyes; then :
16309 CFLAGS="$CFLAGS -D__sparc64__"
16310 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16311 fi ;;
16312 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16313 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16314 if ${ac_cv_cpp_def___sparc__+:} false; then :
16315 $as_echo_n "(cached) " >&6
16316 else
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16319 #ifndef __sparc__
16321 #endif
16322 _ACEOF
16323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16324 $EGREP "yes" >/dev/null 2>&1; then :
16325 ac_cv_cpp_def___sparc__=yes
16326 else
16327 ac_cv_cpp_def___sparc__=no
16329 rm -f conftest*
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16333 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16334 if test "x$ac_cv_cpp_def___sparc__" = xyes; then :
16335 CFLAGS="$CFLAGS -D__sparc__"
16336 LINTFLAGS="$LINTFLAGS -D__sparc__"
16337 fi ;;
16338 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16339 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16340 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16341 $as_echo_n "(cached) " >&6
16342 else
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16345 #ifndef __powerpc64__
16347 #endif
16348 _ACEOF
16349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16350 $EGREP "yes" >/dev/null 2>&1; then :
16351 ac_cv_cpp_def___powerpc64__=yes
16352 else
16353 ac_cv_cpp_def___powerpc64__=no
16355 rm -f conftest*
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16359 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16360 if test "x$ac_cv_cpp_def___powerpc64__" = xyes; then :
16361 CFLAGS="$CFLAGS -D__powerpc64__"
16362 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16363 fi ;;
16364 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16365 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16366 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16367 $as_echo_n "(cached) " >&6
16368 else
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16371 #ifndef __powerpc__
16373 #endif
16374 _ACEOF
16375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16376 $EGREP "yes" >/dev/null 2>&1; then :
16377 ac_cv_cpp_def___powerpc__=yes
16378 else
16379 ac_cv_cpp_def___powerpc__=no
16381 rm -f conftest*
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16385 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16386 if test "x$ac_cv_cpp_def___powerpc__" = xyes; then :
16387 CFLAGS="$CFLAGS -D__powerpc__"
16388 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16389 fi ;;
16390 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16391 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16392 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16393 $as_echo_n "(cached) " >&6
16394 else
16395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h. */
16397 #ifndef __aarch64__
16399 #endif
16400 _ACEOF
16401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16402 $EGREP "yes" >/dev/null 2>&1; then :
16403 ac_cv_cpp_def___aarch64__=yes
16404 else
16405 ac_cv_cpp_def___aarch64__=no
16407 rm -f conftest*
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16411 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16412 if test "x$ac_cv_cpp_def___aarch64__" = xyes; then :
16413 CFLAGS="$CFLAGS -D__aarch64__"
16414 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16415 fi ;;
16416 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16417 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16418 if ${ac_cv_cpp_def___arm__+:} false; then :
16419 $as_echo_n "(cached) " >&6
16420 else
16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 #ifndef __arm__
16425 #endif
16426 _ACEOF
16427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16428 $EGREP "yes" >/dev/null 2>&1; then :
16429 ac_cv_cpp_def___arm__=yes
16430 else
16431 ac_cv_cpp_def___arm__=no
16433 rm -f conftest*
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16437 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16438 if test "x$ac_cv_cpp_def___arm__" = xyes; then :
16439 CFLAGS="$CFLAGS -D__arm__"
16440 LINTFLAGS="$LINTFLAGS -D__arm__"
16441 fi ;;
16442 esac
16444 case $host_vendor in
16445 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16446 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16447 if ${ac_cv_cpp_def___sun__+:} false; then :
16448 $as_echo_n "(cached) " >&6
16449 else
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452 #ifndef __sun__
16454 #endif
16455 _ACEOF
16456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16457 $EGREP "yes" >/dev/null 2>&1; then :
16458 ac_cv_cpp_def___sun__=yes
16459 else
16460 ac_cv_cpp_def___sun__=no
16462 rm -f conftest*
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16466 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16467 if test "x$ac_cv_cpp_def___sun__" = xyes; then :
16468 CFLAGS="$CFLAGS -D__sun__"
16469 LINTFLAGS="$LINTFLAGS -D__sun__"
16470 fi ;;
16471 esac
16477 ac_config_commands="$ac_config_commands include/stamp-h"
16479 $as_echo_n "creating Makefile rules..." >&6
16481 ALL_VARS_RULES="OPENGL_LIBS = $OPENGL_LIBS
16482 SOCKET_LIBS = $SOCKET_LIBS
16483 COREFOUNDATION_LIBS = $COREFOUNDATION_LIBS
16484 IOKIT_LIBS = $IOKIT_LIBS
16485 FORCEFEEDBACK_LIBS = $FORCEFEEDBACK_LIBS
16486 APPLICATIONSERVICES_LIBS = $APPLICATIONSERVICES_LIBS
16487 CORESERVICES_LIBS = $CORESERVICES_LIBS
16488 APPKIT_LIBS = $APPKIT_LIBS
16489 DISKARBITRATION_LIBS = $DISKARBITRATION_LIBS
16490 SECURITY_LIBS = $SECURITY_LIBS
16491 COREAUDIO_LIBS = $COREAUDIO_LIBS
16492 OPENAL_LIBS = $OPENAL_LIBS
16493 OPENCL_LIBS = $OPENCL_LIBS
16494 QUICKTIME_LIBS = $QUICKTIME_LIBS
16495 CARBON_LIBS = $CARBON_LIBS
16496 PTHREAD_LIBS = $PTHREAD_LIBS
16497 X_CFLAGS = $X_CFLAGS
16498 X_PRE_LIBS = $X_PRE_LIBS
16499 X_LIBS = $X_LIBS
16500 X_EXTRA_LIBS = $X_EXTRA_LIBS
16501 XML2_CFLAGS = $XML2_CFLAGS
16502 XML2_LIBS = $XML2_LIBS
16503 XSLT_CFLAGS = $XSLT_CFLAGS
16504 XSLT_LIBS = $XSLT_LIBS
16505 DBUS_CFLAGS = $DBUS_CFLAGS
16506 DBUS_LIBS = $DBUS_LIBS
16507 HAL_CFLAGS = $HAL_CFLAGS
16508 HAL_LIBS = $HAL_LIBS
16509 GNUTLS_CFLAGS = $GNUTLS_CFLAGS
16510 GNUTLS_LIBS = $GNUTLS_LIBS
16511 SANE_CFLAGS = $SANE_CFLAGS
16512 SANE_LIBS = $SANE_LIBS
16513 GPHOTO2_CFLAGS = $GPHOTO2_CFLAGS
16514 GPHOTO2_LIBS = $GPHOTO2_LIBS
16515 GPHOTO2_PORT_CFLAGS = $GPHOTO2_PORT_CFLAGS
16516 GPHOTO2_PORT_LIBS = $GPHOTO2_PORT_LIBS
16517 RESOLV_LIBS = $RESOLV_LIBS
16518 LCMS2_CFLAGS = $LCMS2_CFLAGS
16519 LCMS2_LIBS = $LCMS2_LIBS
16520 FREETYPE_CFLAGS = $FREETYPE_CFLAGS
16521 FREETYPE_LIBS = $FREETYPE_LIBS
16522 Z_LIBS = $Z_LIBS
16523 GETTEXTPO_LIBS = $GETTEXTPO_LIBS
16524 GSTREAMER_CFLAGS = $GSTREAMER_CFLAGS
16525 GSTREAMER_LIBS = $GSTREAMER_LIBS
16526 ALSA_LIBS = $ALSA_LIBS
16527 OSS4_CFLAGS = $OSS4_CFLAGS
16528 CAPI20_CFLAGS = $CAPI20_CFLAGS
16529 CAPI20_LIBS = $CAPI20_LIBS
16530 CUPS_CFLAGS = $CUPS_CFLAGS
16531 FONTCONFIG_CFLAGS = $FONTCONFIG_CFLAGS
16532 FONTCONFIG_LIBS = $FONTCONFIG_LIBS
16533 JPEG_CFLAGS = $JPEG_CFLAGS
16534 JPEG_LIBS = $JPEG_LIBS
16535 PNG_CFLAGS = $PNG_CFLAGS
16536 PNG_LIBS = $PNG_LIBS
16537 TIFF_CFLAGS = $TIFF_CFLAGS
16538 TIFF_LIBS = $TIFF_LIBS
16539 MPG123_CFLAGS = $MPG123_CFLAGS
16540 MPG123_LIBS = $MPG123_LIBS
16541 KSTAT_LIBS = $KSTAT_LIBS
16542 PROCSTAT_LIBS = $PROCSTAT_LIBS
16543 DL_LIBS = $DL_LIBS
16544 POLL_LIBS = $POLL_LIBS
16545 RT_LIBS = $RT_LIBS
16546 LDAP_LIBS = $LDAP_LIBS
16551 wine_fn_append_rule "
16552 # Rules automatically generated by configure
16554 CLEAN_FILES = *.o *.a *.so *.res *.fake *.ok *.tab.[ch] *.yy.c
16556 .INIT: Makefile
16557 .MAKEFILEDEPS:
16558 all: Makefile
16559 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
16560 @./config.status Make.tmp Makefile && \$(MAKEDEP) ."
16562 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16563 .gitignore: config.status
16564 @./config.status .gitignore"
16566 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16567 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16569 if test "x$enable_fonts" != xno; then
16570 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16571 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16572 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16573 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16574 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16576 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16577 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16578 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16579 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16580 ac_config_links="$ac_config_links wine:tools/winewrapper"
16581 wine_fn_config_symlink wine
16582 if test "x$enable_win64" != xno; then
16583 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16584 wine_fn_config_symlink wine64
16587 wine_fn_config_dll acledit enable_acledit
16588 wine_fn_config_dll aclui enable_aclui implib
16589 wine_fn_config_dll activeds enable_activeds implib
16590 wine_fn_config_dll actxprxy enable_actxprxy clean
16591 wine_fn_config_lib adsiid
16592 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16593 wine_fn_config_test dlls/advapi32/tests advapi32_test
16594 wine_fn_config_dll advpack enable_advpack implib
16595 wine_fn_config_test dlls/advpack/tests advpack_test
16596 wine_fn_config_dll amstream enable_amstream clean
16597 wine_fn_config_test dlls/amstream/tests amstream_test
16598 wine_fn_config_dll api-ms-win-core-com-l1-1-0 enable_api_ms_win_core_com_l1_1_0
16599 wine_fn_config_dll api-ms-win-core-console-l1-1-0 enable_api_ms_win_core_console_l1_1_0
16600 wine_fn_config_dll api-ms-win-core-debug-l1-1-1 enable_api_ms_win_core_debug_l1_1_1
16601 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-1 enable_api_ms_win_core_errorhandling_l1_1_1
16602 wine_fn_config_dll api-ms-win-core-file-l1-2-0 enable_api_ms_win_core_file_l1_2_0
16603 wine_fn_config_dll api-ms-win-core-handle-l1-1-0 enable_api_ms_win_core_handle_l1_1_0
16604 wine_fn_config_dll api-ms-win-core-heap-l1-2-0 enable_api_ms_win_core_heap_l1_2_0
16605 wine_fn_config_dll api-ms-win-core-heap-obsolete-l1-1-0 enable_api_ms_win_core_heap_obsolete_l1_1_0
16606 wine_fn_config_dll api-ms-win-core-interlocked-l1-2-0 enable_api_ms_win_core_interlocked_l1_2_0
16607 wine_fn_config_dll api-ms-win-core-io-l1-1-1 enable_api_ms_win_core_io_l1_1_1
16608 wine_fn_config_dll api-ms-win-core-kernel32-legacy-l1-1-0 enable_api_ms_win_core_kernel32_legacy_l1_1_0
16609 wine_fn_config_dll api-ms-win-core-libraryloader-l1-1-1 enable_api_ms_win_core_libraryloader_l1_1_1
16610 wine_fn_config_dll api-ms-win-core-localization-l1-2-0 enable_api_ms_win_core_localization_l1_2_0
16611 wine_fn_config_dll api-ms-win-core-localization-obsolete-l1-1-0 enable_api_ms_win_core_localization_obsolete_l1_1_0
16612 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16613 wine_fn_config_dll api-ms-win-core-memory-l1-1-1 enable_api_ms_win_core_memory_l1_1_1
16614 wine_fn_config_dll api-ms-win-core-namedpipe-l1-2-0 enable_api_ms_win_core_namedpipe_l1_2_0
16615 wine_fn_config_dll api-ms-win-core-processenvironment-l1-2-0 enable_api_ms_win_core_processenvironment_l1_2_0
16616 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16617 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-1 enable_api_ms_win_core_processthreads_l1_1_1
16618 wine_fn_config_dll api-ms-win-core-profile-l1-1-0 enable_api_ms_win_core_profile_l1_1_0
16619 wine_fn_config_dll api-ms-win-core-psapi-l1-1-0 enable_api_ms_win_core_psapi_l1_1_0
16620 wine_fn_config_dll api-ms-win-core-registry-l1-1-0 enable_api_ms_win_core_registry_l1_1_0
16621 wine_fn_config_dll api-ms-win-core-string-l1-1-0 enable_api_ms_win_core_string_l1_1_0
16622 wine_fn_config_dll api-ms-win-core-synch-l1-2-0 enable_api_ms_win_core_synch_l1_2_0
16623 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-0 enable_api_ms_win_core_sysinfo_l1_2_0
16624 wine_fn_config_dll api-ms-win-core-util-l1-1-0 enable_api_ms_win_core_util_l1_1_0
16625 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16626 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16627 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16628 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16629 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16630 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16631 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16632 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16633 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16634 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16635 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16636 wine_fn_config_dll api-ms-win-ntuser-dc-access-l1-1-0 enable_api_ms_win_ntuser_dc_access_l1_1_0
16637 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16638 wine_fn_config_dll apphelp enable_apphelp
16639 wine_fn_config_test dlls/apphelp/tests apphelp_test
16640 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16641 wine_fn_config_dll atl enable_atl clean,implib
16642 wine_fn_config_test dlls/atl/tests atl_test
16643 wine_fn_config_dll atl100 enable_atl100 implib
16644 wine_fn_config_test dlls/atl100/tests atl100_test
16645 wine_fn_config_dll atl110 enable_atl110
16646 wine_fn_config_dll atl80 enable_atl80 implib
16647 wine_fn_config_test dlls/atl80/tests atl80_test
16648 wine_fn_config_dll atl90 enable_atl90
16649 wine_fn_config_dll authz enable_authz
16650 wine_fn_config_dll avicap32 enable_avicap32 implib
16651 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
16652 wine_fn_config_test dlls/avifil32/tests avifil32_test
16653 wine_fn_config_dll avifile.dll16 enable_win16
16654 wine_fn_config_dll avrt enable_avrt implib
16655 wine_fn_config_dll bcrypt enable_bcrypt
16656 wine_fn_config_dll browseui enable_browseui clean,po
16657 wine_fn_config_test dlls/browseui/tests browseui_test
16658 wine_fn_config_dll cabinet enable_cabinet implib
16659 wine_fn_config_test dlls/cabinet/tests cabinet_test
16660 wine_fn_config_dll capi2032 enable_capi2032 implib
16661 wine_fn_config_dll cards enable_cards implib
16662 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16663 wine_fn_config_dll clusapi enable_clusapi implib
16664 wine_fn_config_dll comcat enable_comcat
16665 wine_fn_config_test dlls/comcat/tests comcat_test
16666 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16667 wine_fn_config_test dlls/comctl32/tests comctl32_test
16668 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
16669 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16670 wine_fn_config_dll comm.drv16 enable_win16
16671 wine_fn_config_dll commdlg.dll16 enable_win16
16672 wine_fn_config_dll compobj.dll16 enable_win16
16673 wine_fn_config_dll compstui enable_compstui implib
16674 wine_fn_config_dll comsvcs enable_comsvcs implib
16675 wine_fn_config_dll credui enable_credui implib,po
16676 wine_fn_config_test dlls/credui/tests credui_test
16677 wine_fn_config_dll crtdll enable_crtdll implib
16678 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16679 wine_fn_config_test dlls/crypt32/tests crypt32_test
16680 wine_fn_config_dll cryptdlg enable_cryptdlg po
16681 wine_fn_config_dll cryptdll enable_cryptdll implib
16682 wine_fn_config_dll cryptnet enable_cryptnet implib
16683 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16684 wine_fn_config_dll cryptui enable_cryptui implib,po
16685 wine_fn_config_test dlls/cryptui/tests cryptui_test
16686 wine_fn_config_dll ctapi32 enable_ctapi32
16687 wine_fn_config_dll ctl3d.dll16 enable_win16
16688 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16689 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16690 wine_fn_config_dll d3d10 enable_d3d10 implib
16691 wine_fn_config_test dlls/d3d10/tests d3d10_test
16692 wine_fn_config_dll d3d10core enable_d3d10core implib
16693 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16694 wine_fn_config_dll d3d11 enable_d3d11
16695 wine_fn_config_dll d3d8 enable_d3d8 implib
16696 wine_fn_config_test dlls/d3d8/tests d3d8_test
16697 wine_fn_config_dll d3d9 enable_d3d9 implib
16698 wine_fn_config_test dlls/d3d9/tests d3d9_test
16699 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16700 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16701 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16702 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16703 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16704 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16705 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16706 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16707 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16708 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16709 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16710 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16711 wine_fn_config_dll d3dim enable_d3dim implib
16712 wine_fn_config_dll d3drm enable_d3drm implib
16713 wine_fn_config_test dlls/d3drm/tests d3drm_test
16714 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16715 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16716 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16717 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16718 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16719 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16720 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16721 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16722 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16723 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16724 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16725 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
16726 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
16727 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16728 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16729 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16730 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16731 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16732 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16733 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16734 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16735 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16736 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16737 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16738 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16739 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16740 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16741 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16742 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16743 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16744 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16745 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16746 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16747 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16748 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
16749 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16750 wine_fn_config_dll dbgeng enable_dbgeng implib
16751 wine_fn_config_dll dbghelp enable_dbghelp implib
16752 wine_fn_config_dll dciman32 enable_dciman32 implib
16753 wine_fn_config_dll ddeml.dll16 enable_win16
16754 wine_fn_config_dll ddraw enable_ddraw clean,implib
16755 wine_fn_config_test dlls/ddraw/tests ddraw_test
16756 wine_fn_config_dll ddrawex enable_ddrawex clean
16757 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16758 wine_fn_config_dll devenum enable_devenum clean,po
16759 wine_fn_config_test dlls/devenum/tests devenum_test
16760 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16761 wine_fn_config_dll difxapi enable_difxapi
16762 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
16763 wine_fn_config_test dlls/dinput/tests dinput_test
16764 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
16765 wine_fn_config_test dlls/dinput8/tests dinput8_test
16766 wine_fn_config_dll dispdib.dll16 enable_win16
16767 wine_fn_config_dll dispex enable_dispex clean
16768 wine_fn_config_test dlls/dispex/tests dispex_test
16769 wine_fn_config_dll display.drv16 enable_win16
16770 wine_fn_config_dll dmband enable_dmband clean
16771 wine_fn_config_test dlls/dmband/tests dmband_test
16772 wine_fn_config_dll dmcompos enable_dmcompos clean
16773 wine_fn_config_test dlls/dmcompos/tests dmcompos_test
16774 wine_fn_config_dll dmime enable_dmime clean
16775 wine_fn_config_test dlls/dmime/tests dmime_test
16776 wine_fn_config_dll dmloader enable_dmloader clean
16777 wine_fn_config_test dlls/dmloader/tests dmloader_test
16778 wine_fn_config_dll dmscript enable_dmscript clean
16779 wine_fn_config_test dlls/dmscript/tests dmscript_test
16780 wine_fn_config_dll dmstyle enable_dmstyle clean
16781 wine_fn_config_test dlls/dmstyle/tests dmstyle_test
16782 wine_fn_config_dll dmsynth enable_dmsynth clean
16783 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16784 wine_fn_config_dll dmusic enable_dmusic clean
16785 wine_fn_config_test dlls/dmusic/tests dmusic_test
16786 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16787 wine_fn_config_dll dnsapi enable_dnsapi implib
16788 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16789 wine_fn_config_dll dplay enable_dplay implib
16790 wine_fn_config_dll dplayx enable_dplayx clean,implib
16791 wine_fn_config_test dlls/dplayx/tests dplayx_test
16792 wine_fn_config_dll dpnaddr enable_dpnaddr
16793 wine_fn_config_dll dpnet enable_dpnet clean,implib
16794 wine_fn_config_test dlls/dpnet/tests dpnet_test
16795 wine_fn_config_dll dpnhpast enable_dpnhpast
16796 wine_fn_config_dll dpnlobby enable_dpnlobby
16797 wine_fn_config_dll dpwsockx enable_dpwsockx
16798 wine_fn_config_dll drmclien enable_drmclien
16799 wine_fn_config_dll dsound enable_dsound clean,implib
16800 wine_fn_config_test dlls/dsound/tests dsound_test
16801 wine_fn_config_dll dssenh enable_dssenh
16802 wine_fn_config_test dlls/dssenh/tests dssenh_test
16803 wine_fn_config_dll dswave enable_dswave clean
16804 wine_fn_config_dll dwmapi enable_dwmapi implib
16805 wine_fn_config_dll dwrite enable_dwrite implib
16806 wine_fn_config_test dlls/dwrite/tests dwrite_test
16807 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
16808 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16809 wine_fn_config_lib dxerr8
16810 wine_fn_config_lib dxerr9
16811 wine_fn_config_dll dxgi enable_dxgi implib
16812 wine_fn_config_test dlls/dxgi/tests dxgi_test
16813 wine_fn_config_lib dxguid
16814 wine_fn_config_dll explorerframe enable_explorerframe clean
16815 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16816 wine_fn_config_dll ext-ms-win-gdi-devcaps-l1-1-0 enable_ext_ms_win_gdi_devcaps_l1_1_0
16817 wine_fn_config_dll faultrep enable_faultrep implib
16818 wine_fn_config_test dlls/faultrep/tests faultrep_test
16819 wine_fn_config_dll fltlib enable_fltlib
16820 wine_fn_config_dll fusion enable_fusion
16821 wine_fn_config_test dlls/fusion/tests fusion_test
16822 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16823 wine_fn_config_dll gameux enable_gameux clean
16824 wine_fn_config_test dlls/gameux/tests gameux_test
16825 wine_fn_config_dll gdi.exe16 enable_win16
16826 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
16827 wine_fn_config_test dlls/gdi32/tests gdi32_test
16828 wine_fn_config_dll gdiplus enable_gdiplus implib
16829 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16830 wine_fn_config_dll glu32 enable_glu32 implib
16831 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16832 wine_fn_config_dll gpkcsp enable_gpkcsp
16833 wine_fn_config_dll hal enable_hal
16834 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
16835 wine_fn_config_dll hid enable_hid implib
16836 wine_fn_config_dll hlink enable_hlink clean,implib
16837 wine_fn_config_test dlls/hlink/tests hlink_test
16838 wine_fn_config_dll hnetcfg enable_hnetcfg clean
16839 wine_fn_config_dll httpapi enable_httpapi
16840 wine_fn_config_dll iccvid enable_iccvid po
16841 wine_fn_config_dll icmp enable_icmp
16842 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
16843 wine_fn_config_test dlls/ieframe/tests ieframe_test
16844 wine_fn_config_dll ifsmgr.vxd enable_win16
16845 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16846 wine_fn_config_dll imagehlp enable_imagehlp implib
16847 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16848 wine_fn_config_dll imm.dll16 enable_win16
16849 wine_fn_config_dll imm32 enable_imm32 implib
16850 wine_fn_config_test dlls/imm32/tests imm32_test
16851 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
16852 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16853 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16854 wine_fn_config_dll inetmib1 enable_inetmib1
16855 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16856 wine_fn_config_dll infosoft enable_infosoft clean
16857 wine_fn_config_test dlls/infosoft/tests infosoft_test
16858 wine_fn_config_dll initpki enable_initpki
16859 wine_fn_config_dll inkobj enable_inkobj
16860 wine_fn_config_dll inseng enable_inseng clean
16861 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16862 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16863 wine_fn_config_dll itircl enable_itircl
16864 wine_fn_config_dll itss enable_itss clean
16865 wine_fn_config_test dlls/itss/tests itss_test
16866 wine_fn_config_dll joy.cpl enable_joy_cpl po
16867 wine_fn_config_dll jscript enable_jscript clean,po
16868 wine_fn_config_test dlls/jscript/tests jscript_test
16869 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
16870 wine_fn_config_test dlls/kernel32/tests kernel32_test
16871 wine_fn_config_dll keyboard.drv16 enable_win16
16872 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16873 wine_fn_config_dll ktmw32 enable_ktmw32
16874 wine_fn_config_dll loadperf enable_loadperf implib
16875 wine_fn_config_dll localspl enable_localspl po
16876 wine_fn_config_test dlls/localspl/tests localspl_test
16877 wine_fn_config_dll localui enable_localui po
16878 wine_fn_config_test dlls/localui/tests localui_test
16879 wine_fn_config_dll lz32 enable_lz32 implib
16880 wine_fn_config_test dlls/lz32/tests lz32_test
16881 wine_fn_config_dll lzexpand.dll16 enable_win16
16882 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16883 wine_fn_config_test dlls/mapi32/tests mapi32_test
16884 wine_fn_config_dll mapistub enable_mapistub
16885 wine_fn_config_dll mciavi32 enable_mciavi32
16886 wine_fn_config_dll mcicda enable_mcicda
16887 wine_fn_config_dll mciqtz32 enable_mciqtz32
16888 wine_fn_config_dll mciseq enable_mciseq
16889 wine_fn_config_dll mciwave enable_mciwave
16890 wine_fn_config_dll mgmtapi enable_mgmtapi
16891 wine_fn_config_dll midimap enable_midimap
16892 wine_fn_config_dll mlang enable_mlang clean,implib
16893 wine_fn_config_test dlls/mlang/tests mlang_test
16894 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
16895 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16896 wine_fn_config_dll mmdevapi enable_mmdevapi clean
16897 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16898 wine_fn_config_dll mmdevldr.vxd enable_win16
16899 wine_fn_config_dll mmsystem.dll16 enable_win16
16900 wine_fn_config_dll monodebg.vxd enable_win16
16901 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16902 wine_fn_config_dll mouse.drv16 enable_win16
16903 wine_fn_config_dll mpr enable_mpr implib,po
16904 wine_fn_config_test dlls/mpr/tests mpr_test
16905 wine_fn_config_dll mprapi enable_mprapi implib
16906 wine_fn_config_dll msacm.dll16 enable_win16
16907 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16908 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16909 wine_fn_config_test dlls/msacm32/tests msacm32_test
16910 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16911 wine_fn_config_dll mscat32 enable_mscat32
16912 wine_fn_config_dll mscms enable_mscms implib
16913 wine_fn_config_test dlls/mscms/tests mscms_test
16914 wine_fn_config_dll mscoree enable_mscoree clean
16915 wine_fn_config_test dlls/mscoree/tests mscoree_test
16916 wine_fn_config_dll msctf enable_msctf clean
16917 wine_fn_config_test dlls/msctf/tests msctf_test
16918 wine_fn_config_dll msdaps enable_msdaps clean
16919 wine_fn_config_dll msdmo enable_msdmo implib
16920 wine_fn_config_dll msftedit enable_msftedit
16921 wine_fn_config_dll msg711.acm enable_msg711_acm
16922 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16923 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
16924 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
16925 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
16926 wine_fn_config_dll msi enable_msi clean,implib,po
16927 wine_fn_config_test dlls/msi/tests msi_test
16928 wine_fn_config_dll msident enable_msident clean
16929 wine_fn_config_dll msimg32 enable_msimg32 implib
16930 wine_fn_config_dll msimsg enable_msimsg
16931 wine_fn_config_dll msimtf enable_msimtf clean
16932 wine_fn_config_dll msisip enable_msisip
16933 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16934 wine_fn_config_dll msls31 enable_msls31
16935 wine_fn_config_dll msnet32 enable_msnet32
16936 wine_fn_config_dll mspatcha enable_mspatcha
16937 wine_fn_config_dll msrle32 enable_msrle32 po
16938 wine_fn_config_test dlls/msrle32/tests msrle32_test
16939 wine_fn_config_dll mssign32 enable_mssign32
16940 wine_fn_config_dll mssip32 enable_mssip32
16941 wine_fn_config_dll mstask enable_mstask clean
16942 wine_fn_config_test dlls/mstask/tests mstask_test
16943 wine_fn_config_dll msvcirt enable_msvcirt
16944 wine_fn_config_dll msvcm80 enable_msvcm80
16945 wine_fn_config_dll msvcm90 enable_msvcm90
16946 wine_fn_config_dll msvcp100 enable_msvcp100
16947 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16948 wine_fn_config_dll msvcp110 enable_msvcp110
16949 wine_fn_config_dll msvcp60 enable_msvcp60
16950 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16951 wine_fn_config_dll msvcp70 enable_msvcp70
16952 wine_fn_config_dll msvcp71 enable_msvcp71
16953 wine_fn_config_dll msvcp80 enable_msvcp80
16954 wine_fn_config_dll msvcp90 enable_msvcp90
16955 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16956 wine_fn_config_dll msvcr100 enable_msvcr100 implib
16957 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16958 wine_fn_config_dll msvcr110 enable_msvcr110 implib
16959 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16960 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16961 wine_fn_config_dll msvcr80 enable_msvcr80 implib
16962 wine_fn_config_dll msvcr90 enable_msvcr90 implib
16963 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16964 wine_fn_config_dll msvcrt enable_msvcrt implib
16965 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16966 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16967 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16968 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16969 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16970 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16971 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16972 wine_fn_config_dll msvidc32 enable_msvidc32 po
16973 wine_fn_config_dll msvideo.dll16 enable_win16
16974 wine_fn_config_dll mswsock enable_mswsock implib
16975 wine_fn_config_dll msxml enable_msxml clean
16976 wine_fn_config_dll msxml2 enable_msxml2 clean
16977 wine_fn_config_dll msxml3 enable_msxml3 clean
16978 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
16979 wine_fn_config_dll msxml4 enable_msxml4 clean
16980 wine_fn_config_dll msxml6 enable_msxml6 clean
16981 wine_fn_config_dll nddeapi enable_nddeapi implib
16982 wine_fn_config_dll netapi32 enable_netapi32 implib
16983 wine_fn_config_test dlls/netapi32/tests netapi32_test
16984 wine_fn_config_dll netcfgx enable_netcfgx
16985 wine_fn_config_dll newdev enable_newdev implib
16986 wine_fn_config_dll normaliz enable_normaliz implib
16987 wine_fn_config_dll npmshtml enable_npmshtml
16988 wine_fn_config_dll ntdll enable_ntdll implib
16989 wine_fn_config_test dlls/ntdll/tests ntdll_test
16990 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16991 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16992 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16993 wine_fn_config_dll ntprint enable_ntprint
16994 wine_fn_config_test dlls/ntprint/tests ntprint_test
16995 wine_fn_config_dll objsel enable_objsel clean
16996 wine_fn_config_dll odbc32 enable_odbc32 implib
16997 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16998 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16999 wine_fn_config_dll odbccu32 enable_odbccu32
17000 wine_fn_config_dll ole2.dll16 enable_win16
17001 wine_fn_config_dll ole2conv.dll16 enable_win16
17002 wine_fn_config_dll ole2disp.dll16 enable_win16
17003 wine_fn_config_dll ole2nls.dll16 enable_win16
17004 wine_fn_config_dll ole2prox.dll16 enable_win16
17005 wine_fn_config_dll ole2thk.dll16 enable_win16
17006 wine_fn_config_dll ole32 enable_ole32 clean,implib
17007 wine_fn_config_test dlls/ole32/tests ole32_test
17008 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
17009 wine_fn_config_test dlls/oleacc/tests oleacc_test
17010 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
17011 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
17012 wine_fn_config_dll olecli.dll16 enable_win16
17013 wine_fn_config_dll olecli32 enable_olecli32 implib
17014 wine_fn_config_dll oledb32 enable_oledb32 clean
17015 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
17016 wine_fn_config_dll oledlg enable_oledlg implib,po
17017 wine_fn_config_dll olepro32 enable_olepro32 implib
17018 wine_fn_config_dll olesvr.dll16 enable_win16
17019 wine_fn_config_dll olesvr32 enable_olesvr32 implib
17020 wine_fn_config_dll olethk32 enable_olethk32
17021 wine_fn_config_dll openal32 enable_openal32
17022 wine_fn_config_dll opencl enable_opencl
17023 wine_fn_config_dll opengl32 enable_opengl32 implib
17024 wine_fn_config_test dlls/opengl32/tests opengl32_test
17025 wine_fn_config_dll pdh enable_pdh implib
17026 wine_fn_config_test dlls/pdh/tests pdh_test
17027 wine_fn_config_dll photometadatahandler enable_photometadatahandler
17028 wine_fn_config_dll pidgen enable_pidgen
17029 wine_fn_config_dll powrprof enable_powrprof implib
17030 wine_fn_config_dll printui enable_printui
17031 wine_fn_config_dll propsys enable_propsys clean,implib
17032 wine_fn_config_test dlls/propsys/tests propsys_test
17033 wine_fn_config_dll psapi enable_psapi implib
17034 wine_fn_config_test dlls/psapi/tests psapi_test
17035 wine_fn_config_dll pstorec enable_pstorec clean
17036 wine_fn_config_dll qcap enable_qcap
17037 wine_fn_config_test dlls/qcap/tests qcap_test
17038 wine_fn_config_dll qedit enable_qedit clean
17039 wine_fn_config_test dlls/qedit/tests qedit_test
17040 wine_fn_config_dll qmgr enable_qmgr clean
17041 wine_fn_config_test dlls/qmgr/tests qmgr_test
17042 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
17043 wine_fn_config_dll quartz enable_quartz clean,implib
17044 wine_fn_config_test dlls/quartz/tests quartz_test clean
17045 wine_fn_config_dll query enable_query
17046 wine_fn_config_dll rasapi16.dll16 enable_win16
17047 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17048 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17049 wine_fn_config_dll rasdlg enable_rasdlg implib
17050 wine_fn_config_dll regapi enable_regapi
17051 wine_fn_config_dll resutils enable_resutils implib
17052 wine_fn_config_dll riched20 enable_riched20 implib
17053 wine_fn_config_test dlls/riched20/tests riched20_test
17054 wine_fn_config_dll riched32 enable_riched32
17055 wine_fn_config_test dlls/riched32/tests riched32_test
17056 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17057 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17058 wine_fn_config_dll rsabase enable_rsabase
17059 wine_fn_config_dll rsaenh enable_rsaenh implib
17060 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17061 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17062 wine_fn_config_dll rtutils enable_rtutils implib
17063 wine_fn_config_dll samlib enable_samlib
17064 wine_fn_config_dll sane.ds enable_sane_ds po
17065 wine_fn_config_dll scarddlg enable_scarddlg
17066 wine_fn_config_dll sccbase enable_sccbase
17067 wine_fn_config_dll schannel enable_schannel
17068 wine_fn_config_test dlls/schannel/tests schannel_test
17069 wine_fn_config_dll scrrun enable_scrrun clean
17070 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17071 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17072 wine_fn_config_dll secur32 enable_secur32 implib
17073 wine_fn_config_test dlls/secur32/tests secur32_test
17074 wine_fn_config_dll security enable_security
17075 wine_fn_config_dll sensapi enable_sensapi implib
17076 wine_fn_config_dll serialui enable_serialui implib,po
17077 wine_fn_config_test dlls/serialui/tests serialui_test
17078 wine_fn_config_dll setupapi enable_setupapi implib,po
17079 wine_fn_config_test dlls/setupapi/tests setupapi_test
17080 wine_fn_config_dll setupx.dll16 enable_win16
17081 wine_fn_config_dll sfc enable_sfc implib
17082 wine_fn_config_dll sfc_os enable_sfc_os implib
17083 wine_fn_config_dll shdoclc enable_shdoclc po
17084 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17085 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17086 wine_fn_config_dll shell.dll16 enable_win16
17087 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17088 wine_fn_config_test dlls/shell32/tests shell32_test
17089 wine_fn_config_dll shfolder enable_shfolder implib
17090 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17091 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17092 wine_fn_config_dll slbcsp enable_slbcsp
17093 wine_fn_config_dll slc enable_slc implib
17094 wine_fn_config_dll snmpapi enable_snmpapi implib
17095 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17096 wine_fn_config_dll softpub enable_softpub
17097 wine_fn_config_dll sound.drv16 enable_win16
17098 wine_fn_config_dll spoolss enable_spoolss implib
17099 wine_fn_config_test dlls/spoolss/tests spoolss_test
17100 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17101 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17102 wine_fn_config_dll sti enable_sti clean,implib
17103 wine_fn_config_test dlls/sti/tests sti_test
17104 wine_fn_config_dll storage.dll16 enable_win16
17105 wine_fn_config_dll stress.dll16 enable_win16
17106 wine_fn_config_lib strmbase
17107 wine_fn_config_lib strmiids
17108 wine_fn_config_dll svrapi enable_svrapi
17109 wine_fn_config_dll sxs enable_sxs implib
17110 wine_fn_config_test dlls/sxs/tests sxs_test
17111 wine_fn_config_dll system.drv16 enable_win16
17112 wine_fn_config_dll t2embed enable_t2embed
17113 wine_fn_config_dll tapi32 enable_tapi32 implib
17114 wine_fn_config_dll taskschd enable_taskschd clean
17115 wine_fn_config_test dlls/taskschd/tests taskschd_test
17116 wine_fn_config_dll toolhelp.dll16 enable_win16
17117 wine_fn_config_dll traffic enable_traffic
17118 wine_fn_config_dll twain.dll16 enable_win16
17119 wine_fn_config_dll twain_32 enable_twain_32
17120 wine_fn_config_test dlls/twain_32/tests twain_32_test
17121 wine_fn_config_dll typelib.dll16 enable_win16
17122 wine_fn_config_dll unicows enable_unicows implib
17123 wine_fn_config_dll updspapi enable_updspapi
17124 wine_fn_config_dll url enable_url implib
17125 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17126 wine_fn_config_test dlls/urlmon/tests urlmon_test
17127 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17128 wine_fn_config_dll user.exe16 enable_win16
17129 wine_fn_config_dll user32 enable_user32 clean,implib,po
17130 wine_fn_config_test dlls/user32/tests user32_test
17131 wine_fn_config_dll userenv enable_userenv implib
17132 wine_fn_config_test dlls/userenv/tests userenv_test
17133 wine_fn_config_dll usp10 enable_usp10 implib
17134 wine_fn_config_test dlls/usp10/tests usp10_test
17135 wine_fn_config_lib uuid
17136 wine_fn_config_dll uxtheme enable_uxtheme implib
17137 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17138 wine_fn_config_dll vbscript enable_vbscript clean
17139 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17140 wine_fn_config_dll vcomp enable_vcomp
17141 wine_fn_config_dll vcomp100 enable_vcomp100
17142 wine_fn_config_dll vcomp90 enable_vcomp90
17143 wine_fn_config_dll vdhcp.vxd enable_win16
17144 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17145 wine_fn_config_dll ver.dll16 enable_win16
17146 wine_fn_config_dll version enable_version implib
17147 wine_fn_config_test dlls/version/tests version_test
17148 wine_fn_config_dll vmm.vxd enable_win16
17149 wine_fn_config_dll vnbt.vxd enable_win16
17150 wine_fn_config_dll vnetbios.vxd enable_win16
17151 wine_fn_config_dll vtdapi.vxd enable_win16
17152 wine_fn_config_dll vwin32.vxd enable_win16
17153 wine_fn_config_dll w32skrnl enable_win16
17154 wine_fn_config_dll w32sys.dll16 enable_win16
17155 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17156 wine_fn_config_dll wbemprox enable_wbemprox clean
17157 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17158 wine_fn_config_dll webservices enable_webservices implib
17159 wine_fn_config_dll wer enable_wer implib
17160 wine_fn_config_test dlls/wer/tests wer_test
17161 wine_fn_config_dll wevtapi enable_wevtapi
17162 wine_fn_config_dll wiaservc enable_wiaservc clean
17163 wine_fn_config_dll win32s16.dll16 enable_win16
17164 wine_fn_config_dll win87em.dll16 enable_win16
17165 wine_fn_config_dll winaspi.dll16 enable_win16
17166 wine_fn_config_dll windebug.dll16 enable_win16
17167 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17168 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17169 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17170 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17171 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17172 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17173 wine_fn_config_lib winecrt0
17174 wine_fn_config_dll wined3d enable_wined3d implib
17175 wine_fn_config_dll winegstreamer enable_winegstreamer
17176 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17177 wine_fn_config_dll winemac.drv enable_winemac_drv
17178 wine_fn_config_dll winemapi enable_winemapi
17179 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17180 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17181 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17182 wine_fn_config_dll wineps16.drv16 enable_win16
17183 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17184 wine_fn_config_dll winex11.drv enable_winex11_drv
17185 wine_fn_config_dll wing.dll16 enable_win16
17186 wine_fn_config_dll wing32 enable_wing32
17187 wine_fn_config_dll winhttp enable_winhttp clean,implib
17188 wine_fn_config_test dlls/winhttp/tests winhttp_test
17189 wine_fn_config_dll wininet enable_wininet implib,po
17190 wine_fn_config_test dlls/wininet/tests wininet_test
17191 wine_fn_config_dll winmm enable_winmm implib,po
17192 wine_fn_config_test dlls/winmm/tests winmm_test
17193 wine_fn_config_dll winnls.dll16 enable_win16
17194 wine_fn_config_dll winnls32 enable_winnls32 implib
17195 wine_fn_config_dll winscard enable_winscard implib
17196 wine_fn_config_dll winsock.dll16 enable_win16
17197 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17198 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17199 wine_fn_config_dll winsta enable_winsta
17200 wine_fn_config_dll wintab.dll16 enable_win16
17201 wine_fn_config_dll wintab32 enable_wintab32 implib
17202 wine_fn_config_test dlls/wintab32/tests wintab32_test
17203 wine_fn_config_dll wintrust enable_wintrust implib
17204 wine_fn_config_test dlls/wintrust/tests wintrust_test
17205 wine_fn_config_dll wlanapi enable_wlanapi
17206 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17207 wine_fn_config_test dlls/wldap32/tests wldap32_test
17208 wine_fn_config_dll wmi enable_wmi
17209 wine_fn_config_dll wmiutils enable_wmiutils clean
17210 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17211 wine_fn_config_dll wmp enable_wmp clean
17212 wine_fn_config_test dlls/wmp/tests wmp_test
17213 wine_fn_config_dll wmvcore enable_wmvcore
17214 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17215 wine_fn_config_dll wow32 enable_win16 implib
17216 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17217 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17218 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17219 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17220 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17221 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17222 wine_fn_config_dll wsock32 enable_wsock32 implib
17223 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17224 wine_fn_config_dll wuapi enable_wuapi clean
17225 wine_fn_config_dll wuaueng enable_wuaueng
17226 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17227 wine_fn_config_dll xinput1_1 enable_xinput1_1
17228 wine_fn_config_dll xinput1_2 enable_xinput1_2
17229 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17230 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17231 wine_fn_config_dll xinput1_4 enable_xinput1_4
17232 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17233 wine_fn_config_dll xmllite enable_xmllite
17234 wine_fn_config_test dlls/xmllite/tests xmllite_test
17235 wine_fn_config_dll xolehlp enable_xolehlp
17236 wine_fn_config_dll xpsprint enable_xpsprint
17237 wine_fn_config_dll xpssvcs enable_xpssvcs
17238 wine_fn_config_makefile documentation enable_documentation clean
17239 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17240 wine_fn_config_makefile include enable_include clean,install-dev
17241 wine_fn_config_makefile libs/port enable_libs_port
17242 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17243 wine_fn_config_makefile libs/wpp enable_libs_wpp
17244 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17245 wine_fn_config_program arp enable_arp install
17246 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17247 wine_fn_config_program attrib enable_attrib install,po
17248 wine_fn_config_program cabarc enable_cabarc install
17249 wine_fn_config_program cacls enable_cacls install
17250 wine_fn_config_program clock enable_clock install,po
17251 wine_fn_config_program cmd enable_cmd install,po
17252 wine_fn_config_test programs/cmd/tests cmd.exe_test
17253 wine_fn_config_program conhost enable_conhost install
17254 wine_fn_config_program control enable_control install
17255 wine_fn_config_program cscript enable_cscript install
17256 wine_fn_config_program dxdiag enable_dxdiag install,po
17257 wine_fn_config_program eject enable_eject install
17258 wine_fn_config_program expand enable_expand install
17259 wine_fn_config_program explorer enable_explorer install,po
17260 wine_fn_config_program extrac32 enable_extrac32 install
17261 wine_fn_config_program findstr enable_findstr install
17262 wine_fn_config_program hh enable_hh install
17263 wine_fn_config_program hostname enable_hostname install,po
17264 wine_fn_config_program icinfo enable_icinfo install
17265 wine_fn_config_program iexplore enable_iexplore install
17266 wine_fn_config_program ipconfig enable_ipconfig install,po
17267 wine_fn_config_program lodctr enable_lodctr install
17268 wine_fn_config_program mofcomp enable_mofcomp install
17269 wine_fn_config_program mshta enable_mshta install
17270 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17271 wine_fn_config_program net enable_net install,po
17272 wine_fn_config_program netsh enable_netsh install
17273 wine_fn_config_program netstat enable_netstat install,po
17274 wine_fn_config_program ngen enable_ngen install
17275 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17276 wine_fn_config_program oleview enable_oleview install,po
17277 wine_fn_config_program ping enable_ping install
17278 wine_fn_config_program plugplay enable_plugplay install
17279 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17280 wine_fn_config_program progman enable_progman install,po
17281 wine_fn_config_program reg enable_reg install,po
17282 wine_fn_config_program regasm enable_regasm install
17283 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17284 wine_fn_config_test programs/regedit/tests regedit.exe_test
17285 wine_fn_config_program regsvcs enable_regsvcs install
17286 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
17287 wine_fn_config_program rpcss enable_rpcss clean,install
17288 wine_fn_config_program rundll.exe16 enable_win16 install
17289 wine_fn_config_program rundll32 enable_rundll32 install
17290 wine_fn_config_program sc enable_sc install
17291 wine_fn_config_program schtasks enable_schtasks install
17292 wine_fn_config_program secedit enable_secedit install
17293 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17294 wine_fn_config_program services enable_services clean,install
17295 wine_fn_config_test programs/services/tests services.exe_test
17296 wine_fn_config_program spoolsv enable_spoolsv install
17297 wine_fn_config_program start enable_start install,po
17298 wine_fn_config_program svchost enable_svchost install
17299 wine_fn_config_program taskkill enable_taskkill install,po
17300 wine_fn_config_program tasklist enable_tasklist install
17301 wine_fn_config_program taskmgr enable_taskmgr install,po
17302 wine_fn_config_program termsv enable_termsv install
17303 wine_fn_config_program uninstaller enable_uninstaller install,po
17304 wine_fn_config_program unlodctr enable_unlodctr install
17305 wine_fn_config_program view enable_view install,po
17306 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17307 wine_fn_config_program winebrowser enable_winebrowser install
17308 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17309 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17310 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17311 wine_fn_config_program winedevice enable_winedevice install
17312 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17313 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17314 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17315 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17316 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17317 wine_fn_config_program winetest enable_winetest clean
17318 wine_fn_config_program winevdm enable_win16 install
17319 wine_fn_config_program winhelp.exe16 enable_win16 install
17320 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17321 wine_fn_config_program winoldap.mod16 enable_win16 install
17322 wine_fn_config_program winver enable_winver install
17323 wine_fn_config_program wmic enable_wmic install,po
17324 wine_fn_config_program wordpad enable_wordpad install,po
17325 wine_fn_config_program write enable_write install,po
17326 wine_fn_config_program wscript enable_wscript clean,install
17327 wine_fn_config_test programs/wscript/tests wscript.exe_test
17328 wine_fn_config_program wusa enable_wusa install
17329 wine_fn_config_program xcopy enable_xcopy install,po
17330 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17331 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17332 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17333 wine_fn_config_tool tools/widl clean,install-dev,manpage
17334 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17335 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17336 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17337 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17338 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17340 LINGUAS="\
17341 ar \
17342 bg \
17343 ca \
17344 cs \
17345 da \
17346 de \
17347 el \
17348 en \
17349 en_US \
17350 eo \
17351 es \
17352 fa \
17353 fi \
17354 fr \
17355 he \
17356 hi \
17357 hr \
17358 hu \
17359 it \
17360 ja \
17361 ko \
17362 lt \
17363 ml \
17364 nb_NO \
17365 nl \
17366 or \
17367 pa \
17368 pl \
17369 pt_BR \
17370 pt_PT \
17371 rm \
17372 ro \
17373 ru \
17374 sk \
17375 sl \
17376 sr_RS@cyrillic \
17377 sr_RS@latin \
17378 sv \
17379 te \
17380 th \
17381 tr \
17382 uk \
17383 wa \
17384 zh_CN \
17385 zh_TW"
17390 wine_fn_ignore_file ".gitignore"
17391 wine_fn_ignore_file "Makefile"
17392 wine_fn_ignore_file "TAGS"
17393 wine_fn_ignore_file "tags"
17394 wine_fn_ignore_file "autom4te.cache"
17395 wine_fn_ignore_file "config.cache"
17396 wine_fn_ignore_file "config.log"
17397 wine_fn_ignore_file "config.status"
17398 wine_fn_ignore_file "configure.lineno"
17399 wine_fn_ignore_file "include/config.h"
17400 wine_fn_ignore_file "include/stamp-h"
17401 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17403 if test "x$enable_tools" != xno
17404 then
17405 wine_fn_ignore_file "tools/makedep$ac_exeext"
17406 ac_config_commands="$ac_config_commands tools/makedep"
17410 ac_config_commands="$ac_config_commands Makefile"
17413 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17417 if test "x$enable_maintainer_mode" = xyes
17418 then
17419 wine_fn_append_rule "configure: configure.ac aclocal.m4
17420 autoconf --warnings=all
17421 include/config.h.in: include/stamp-h.in
17422 include/stamp-h.in: configure.ac aclocal.m4
17423 autoheader --warnings=all
17424 @echo timestamp > \$@"
17427 if test "x$with_gettextpo" = xyes
17428 then
17429 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17430 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17431 \$(LINGUAS:%=po/%.po): po/wine.pot
17432 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17433 po/wine.pot: \$(ALL_POT_FILES)
17434 msgcat -o \$@ \$(ALL_POT_FILES)"
17437 if test "$MSGFMT" != false
17438 then
17439 wine_fn_append_rule "__builddeps__: \$(LINGUAS:%=po/%.mo)
17440 clean::
17441 \$(RM) \$(LINGUAS:%=po/%.mo)"
17443 posrc="po"
17444 test "$srcdir" = . || posrc="$srcdir/po"
17445 for i in $LINGUAS
17447 wine_fn_ignore_file "po/$i.mo"
17448 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17449 \$(MSGFMT) -o \$@ $posrc/$i.po"
17450 done
17451 else
17452 LINGUAS=
17455 if test "x$enable_tools" != xno
17456 then
17457 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h config.status
17458 @./config.status tools/makedep
17459 Makefile: tools/makedep$ac_exeext
17460 distclean:: clean
17461 \$(RM) tools/makedep$ac_exeext"
17462 else
17463 wine_fn_append_rule "\$(MAKEDEP):
17464 @echo \"You need to run make in $TOOLSDIR first\" && false"
17467 if test -n "$with_wine64"
17468 then
17469 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17470 fonts server tools:
17471 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17472 $with_wine64/loader/wine:
17473 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17474 $with_wine64/loader/wine-preloader:
17475 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17476 clean::
17477 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17478 else
17479 as_fn_append LOADER_RULES "
17480 all: wine.inf
17482 install install-lib:: wine.inf install-man-pages
17483 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17484 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17486 uninstall::
17487 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17491 if test "$srcdir" = .
17492 then
17493 ac_config_commands="$ac_config_commands .gitignore"
17497 $as_echo " done" >&6
17498 cat >confcache <<\_ACEOF
17499 # This file is a shell script that caches the results of configure
17500 # tests run on this system so they can be shared between configure
17501 # scripts and configure runs, see configure's option --config-cache.
17502 # It is not useful on other systems. If it contains results you don't
17503 # want to keep, you may remove or edit it.
17505 # config.status only pays attention to the cache file if you give it
17506 # the --recheck option to rerun configure.
17508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17510 # following values.
17512 _ACEOF
17514 # The following way of writing the cache mishandles newlines in values,
17515 # but we know of no workaround that is simple, portable, and efficient.
17516 # So, we kill variables containing newlines.
17517 # Ultrix sh set writes to stderr and can't be redirected directly,
17518 # and sets the high bit in the cache file unless we assign to the vars.
17520 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17521 eval ac_val=\$$ac_var
17522 case $ac_val in #(
17523 *${as_nl}*)
17524 case $ac_var in #(
17525 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17527 esac
17528 case $ac_var in #(
17529 _ | IFS | as_nl) ;; #(
17530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17531 *) { eval $ac_var=; unset $ac_var;} ;;
17532 esac ;;
17533 esac
17534 done
17536 (set) 2>&1 |
17537 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17538 *${as_nl}ac_space=\ *)
17539 # `set' does not quote correctly, so add quotes: double-quote
17540 # substitution turns \\\\ into \\, and sed turns \\ into \.
17541 sed -n \
17542 "s/'/'\\\\''/g;
17543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17544 ;; #(
17546 # `set' quotes correctly as required by POSIX, so do not add quotes.
17547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17549 esac |
17550 sort
17552 sed '
17553 /^ac_cv_env_/b end
17554 t clear
17555 :clear
17556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17557 t end
17558 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17559 :end' >>confcache
17560 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17561 if test -w "$cache_file"; then
17562 if test "x$cache_file" != "x/dev/null"; then
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17564 $as_echo "$as_me: updating cache $cache_file" >&6;}
17565 if test ! -f "$cache_file" || test -h "$cache_file"; then
17566 cat confcache >"$cache_file"
17567 else
17568 case $cache_file in #(
17569 */* | ?:*)
17570 mv -f confcache "$cache_file"$$ &&
17571 mv -f "$cache_file"$$ "$cache_file" ;; #(
17573 mv -f confcache "$cache_file" ;;
17574 esac
17577 else
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17579 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17582 rm -f confcache
17584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17585 # Let make expand exec_prefix.
17586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17588 DEFS=-DHAVE_CONFIG_H
17590 ac_libobjs=
17591 ac_ltlibobjs=
17593 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17594 # 1. Remove the extension, and $U if already installed.
17595 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17596 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17597 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17598 # will be set to the directory where LIBOBJS objects are built.
17599 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17600 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17601 done
17602 LIBOBJS=$ac_libobjs
17604 LTLIBOBJS=$ac_ltlibobjs
17608 : "${CONFIG_STATUS=./config.status}"
17609 ac_write_fail=0
17610 ac_clean_files_save=$ac_clean_files
17611 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17613 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17614 as_write_fail=0
17615 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17616 #! $SHELL
17617 # Generated by $as_me.
17618 # Run this file to recreate the current configuration.
17619 # Compiler output produced by configure, useful for debugging
17620 # configure, is in config.log if it exists.
17622 debug=false
17623 ac_cs_recheck=false
17624 ac_cs_silent=false
17626 SHELL=\${CONFIG_SHELL-$SHELL}
17627 export SHELL
17628 _ASEOF
17629 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17630 ## -------------------- ##
17631 ## M4sh Initialization. ##
17632 ## -------------------- ##
17634 # Be more Bourne compatible
17635 DUALCASE=1; export DUALCASE # for MKS sh
17636 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17637 emulate sh
17638 NULLCMD=:
17639 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17640 # is contrary to our usage. Disable this feature.
17641 alias -g '${1+"$@"}'='"$@"'
17642 setopt NO_GLOB_SUBST
17643 else
17644 case `(set -o) 2>/dev/null` in #(
17645 *posix*) :
17646 set -o posix ;; #(
17647 *) :
17649 esac
17653 as_nl='
17655 export as_nl
17656 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17657 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17658 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17659 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17660 # Prefer a ksh shell builtin over an external printf program on Solaris,
17661 # but without wasting forks for bash or zsh.
17662 if test -z "$BASH_VERSION$ZSH_VERSION" \
17663 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17664 as_echo='print -r --'
17665 as_echo_n='print -rn --'
17666 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17667 as_echo='printf %s\n'
17668 as_echo_n='printf %s'
17669 else
17670 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17671 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17672 as_echo_n='/usr/ucb/echo -n'
17673 else
17674 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17675 as_echo_n_body='eval
17676 arg=$1;
17677 case $arg in #(
17678 *"$as_nl"*)
17679 expr "X$arg" : "X\\(.*\\)$as_nl";
17680 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17681 esac;
17682 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17684 export as_echo_n_body
17685 as_echo_n='sh -c $as_echo_n_body as_echo'
17687 export as_echo_body
17688 as_echo='sh -c $as_echo_body as_echo'
17691 # The user is always right.
17692 if test "${PATH_SEPARATOR+set}" != set; then
17693 PATH_SEPARATOR=:
17694 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17695 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17696 PATH_SEPARATOR=';'
17701 # IFS
17702 # We need space, tab and new line, in precisely that order. Quoting is
17703 # there to prevent editors from complaining about space-tab.
17704 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17705 # splitting by setting IFS to empty value.)
17706 IFS=" "" $as_nl"
17708 # Find who we are. Look in the path if we contain no directory separator.
17709 as_myself=
17710 case $0 in #((
17711 *[\\/]* ) as_myself=$0 ;;
17712 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17713 for as_dir in $PATH
17715 IFS=$as_save_IFS
17716 test -z "$as_dir" && as_dir=.
17717 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17718 done
17719 IFS=$as_save_IFS
17722 esac
17723 # We did not find ourselves, most probably we were run as `sh COMMAND'
17724 # in which case we are not to be found in the path.
17725 if test "x$as_myself" = x; then
17726 as_myself=$0
17728 if test ! -f "$as_myself"; then
17729 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17730 exit 1
17733 # Unset variables that we do not need and which cause bugs (e.g. in
17734 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17735 # suppresses any "Segmentation fault" message there. '((' could
17736 # trigger a bug in pdksh 5.2.14.
17737 for as_var in BASH_ENV ENV MAIL MAILPATH
17738 do eval test x\${$as_var+set} = xset \
17739 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17740 done
17741 PS1='$ '
17742 PS2='> '
17743 PS4='+ '
17745 # NLS nuisances.
17746 LC_ALL=C
17747 export LC_ALL
17748 LANGUAGE=C
17749 export LANGUAGE
17751 # CDPATH.
17752 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17755 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17756 # ----------------------------------------
17757 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17758 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17759 # script with STATUS, using 1 if that was 0.
17760 as_fn_error ()
17762 as_status=$1; test $as_status -eq 0 && as_status=1
17763 if test "$4"; then
17764 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17765 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17767 $as_echo "$as_me: error: $2" >&2
17768 as_fn_exit $as_status
17769 } # as_fn_error
17772 # as_fn_set_status STATUS
17773 # -----------------------
17774 # Set $? to STATUS, without forking.
17775 as_fn_set_status ()
17777 return $1
17778 } # as_fn_set_status
17780 # as_fn_exit STATUS
17781 # -----------------
17782 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17783 as_fn_exit ()
17785 set +e
17786 as_fn_set_status $1
17787 exit $1
17788 } # as_fn_exit
17790 # as_fn_unset VAR
17791 # ---------------
17792 # Portably unset VAR.
17793 as_fn_unset ()
17795 { eval $1=; unset $1;}
17797 as_unset=as_fn_unset
17798 # as_fn_append VAR VALUE
17799 # ----------------------
17800 # Append the text in VALUE to the end of the definition contained in VAR. Take
17801 # advantage of any shell optimizations that allow amortized linear growth over
17802 # repeated appends, instead of the typical quadratic growth present in naive
17803 # implementations.
17804 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17805 eval 'as_fn_append ()
17807 eval $1+=\$2
17809 else
17810 as_fn_append ()
17812 eval $1=\$$1\$2
17814 fi # as_fn_append
17816 # as_fn_arith ARG...
17817 # ------------------
17818 # Perform arithmetic evaluation on the ARGs, and store the result in the
17819 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17820 # must be portable across $(()) and expr.
17821 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17822 eval 'as_fn_arith ()
17824 as_val=$(( $* ))
17826 else
17827 as_fn_arith ()
17829 as_val=`expr "$@" || test $? -eq 1`
17831 fi # as_fn_arith
17834 if expr a : '\(a\)' >/dev/null 2>&1 &&
17835 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17836 as_expr=expr
17837 else
17838 as_expr=false
17841 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17842 as_basename=basename
17843 else
17844 as_basename=false
17847 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17848 as_dirname=dirname
17849 else
17850 as_dirname=false
17853 as_me=`$as_basename -- "$0" ||
17854 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17855 X"$0" : 'X\(//\)$' \| \
17856 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17857 $as_echo X/"$0" |
17858 sed '/^.*\/\([^/][^/]*\)\/*$/{
17859 s//\1/
17862 /^X\/\(\/\/\)$/{
17863 s//\1/
17866 /^X\/\(\/\).*/{
17867 s//\1/
17870 s/.*/./; q'`
17872 # Avoid depending upon Character Ranges.
17873 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17874 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17875 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17876 as_cr_digits='0123456789'
17877 as_cr_alnum=$as_cr_Letters$as_cr_digits
17879 ECHO_C= ECHO_N= ECHO_T=
17880 case `echo -n x` in #(((((
17881 -n*)
17882 case `echo 'xy\c'` in
17883 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17884 xy) ECHO_C='\c';;
17885 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17886 ECHO_T=' ';;
17887 esac;;
17889 ECHO_N='-n';;
17890 esac
17892 rm -f conf$$ conf$$.exe conf$$.file
17893 if test -d conf$$.dir; then
17894 rm -f conf$$.dir/conf$$.file
17895 else
17896 rm -f conf$$.dir
17897 mkdir conf$$.dir 2>/dev/null
17899 if (echo >conf$$.file) 2>/dev/null; then
17900 if ln -s conf$$.file conf$$ 2>/dev/null; then
17901 as_ln_s='ln -s'
17902 # ... but there are two gotchas:
17903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17905 # In both cases, we have to default to `cp -pR'.
17906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17907 as_ln_s='cp -pR'
17908 elif ln conf$$.file conf$$ 2>/dev/null; then
17909 as_ln_s=ln
17910 else
17911 as_ln_s='cp -pR'
17913 else
17914 as_ln_s='cp -pR'
17916 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17917 rmdir conf$$.dir 2>/dev/null
17920 # as_fn_mkdir_p
17921 # -------------
17922 # Create "$as_dir" as a directory, including parents if necessary.
17923 as_fn_mkdir_p ()
17926 case $as_dir in #(
17927 -*) as_dir=./$as_dir;;
17928 esac
17929 test -d "$as_dir" || eval $as_mkdir_p || {
17930 as_dirs=
17931 while :; do
17932 case $as_dir in #(
17933 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17934 *) as_qdir=$as_dir;;
17935 esac
17936 as_dirs="'$as_qdir' $as_dirs"
17937 as_dir=`$as_dirname -- "$as_dir" ||
17938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17939 X"$as_dir" : 'X\(//\)[^/]' \| \
17940 X"$as_dir" : 'X\(//\)$' \| \
17941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17942 $as_echo X"$as_dir" |
17943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17944 s//\1/
17947 /^X\(\/\/\)[^/].*/{
17948 s//\1/
17951 /^X\(\/\/\)$/{
17952 s//\1/
17955 /^X\(\/\).*/{
17956 s//\1/
17959 s/.*/./; q'`
17960 test -d "$as_dir" && break
17961 done
17962 test -z "$as_dirs" || eval "mkdir $as_dirs"
17963 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17966 } # as_fn_mkdir_p
17967 if mkdir -p . 2>/dev/null; then
17968 as_mkdir_p='mkdir -p "$as_dir"'
17969 else
17970 test -d ./-p && rmdir ./-p
17971 as_mkdir_p=false
17975 # as_fn_executable_p FILE
17976 # -----------------------
17977 # Test if FILE is an executable regular file.
17978 as_fn_executable_p ()
17980 test -f "$1" && test -x "$1"
17981 } # as_fn_executable_p
17982 as_test_x='test -x'
17983 as_executable_p=as_fn_executable_p
17985 # Sed expression to map a string onto a valid CPP name.
17986 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17988 # Sed expression to map a string onto a valid variable name.
17989 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17992 exec 6>&1
17993 ## ----------------------------------- ##
17994 ## Main body of $CONFIG_STATUS script. ##
17995 ## ----------------------------------- ##
17996 _ASEOF
17997 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18000 # Save the log message, to keep $0 and so on meaningful, and to
18001 # report actual input values of CONFIG_FILES etc. instead of their
18002 # values after options handling.
18003 ac_log="
18004 This file was extended by Wine $as_me 1.7.11, which was
18005 generated by GNU Autoconf 2.69. Invocation command line was
18007 CONFIG_FILES = $CONFIG_FILES
18008 CONFIG_HEADERS = $CONFIG_HEADERS
18009 CONFIG_LINKS = $CONFIG_LINKS
18010 CONFIG_COMMANDS = $CONFIG_COMMANDS
18011 $ $0 $@
18013 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18016 _ACEOF
18018 case $ac_config_files in *"
18019 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18020 esac
18022 case $ac_config_headers in *"
18023 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18024 esac
18027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18028 # Files that config.status was made for.
18029 config_files="$ac_config_files"
18030 config_headers="$ac_config_headers"
18031 config_links="$ac_config_links"
18032 config_commands="$ac_config_commands"
18034 _ACEOF
18036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18037 ac_cs_usage="\
18038 \`$as_me' instantiates files and other configuration actions
18039 from templates according to the current configuration. Unless the files
18040 and actions are specified as TAGs, all are instantiated by default.
18042 Usage: $0 [OPTION]... [TAG]...
18044 -h, --help print this help, then exit
18045 -V, --version print version number and configuration settings, then exit
18046 --config print configuration, then exit
18047 -q, --quiet, --silent
18048 do not print progress messages
18049 -d, --debug don't remove temporary files
18050 --recheck update $as_me by reconfiguring in the same conditions
18051 --file=FILE[:TEMPLATE]
18052 instantiate the configuration file FILE
18053 --header=FILE[:TEMPLATE]
18054 instantiate the configuration header FILE
18056 Configuration files:
18057 $config_files
18059 Configuration headers:
18060 $config_headers
18062 Configuration links:
18063 $config_links
18065 Configuration commands:
18066 $config_commands
18068 Report bugs to <wine-devel@winehq.org>.
18069 Wine home page: <http://www.winehq.org>."
18071 _ACEOF
18072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18073 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18074 ac_cs_version="\\
18075 Wine config.status 1.7.11
18076 configured by $0, generated by GNU Autoconf 2.69,
18077 with options \\"\$ac_cs_config\\"
18079 Copyright (C) 2012 Free Software Foundation, Inc.
18080 This config.status script is free software; the Free Software Foundation
18081 gives unlimited permission to copy, distribute and modify it."
18083 ac_pwd='$ac_pwd'
18084 srcdir='$srcdir'
18085 test -n "\$AWK" || AWK=awk
18086 _ACEOF
18088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18089 # The default lists apply if the user does not specify any file.
18090 ac_need_defaults=:
18091 while test $# != 0
18093 case $1 in
18094 --*=?*)
18095 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18096 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18097 ac_shift=:
18099 --*=)
18100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18101 ac_optarg=
18102 ac_shift=:
18105 ac_option=$1
18106 ac_optarg=$2
18107 ac_shift=shift
18109 esac
18111 case $ac_option in
18112 # Handling of the options.
18113 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18114 ac_cs_recheck=: ;;
18115 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18116 $as_echo "$ac_cs_version"; exit ;;
18117 --config | --confi | --conf | --con | --co | --c )
18118 $as_echo "$ac_cs_config"; exit ;;
18119 --debug | --debu | --deb | --de | --d | -d )
18120 debug=: ;;
18121 --file | --fil | --fi | --f )
18122 $ac_shift
18123 case $ac_optarg in
18124 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18125 '') as_fn_error $? "missing file argument" ;;
18126 esac
18127 as_fn_append CONFIG_FILES " '$ac_optarg'"
18128 ac_need_defaults=false;;
18129 --header | --heade | --head | --hea )
18130 $ac_shift
18131 case $ac_optarg in
18132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18133 esac
18134 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18135 ac_need_defaults=false;;
18136 --he | --h)
18137 # Conflict between --help and --header
18138 as_fn_error $? "ambiguous option: \`$1'
18139 Try \`$0 --help' for more information.";;
18140 --help | --hel | -h )
18141 $as_echo "$ac_cs_usage"; exit ;;
18142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18143 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18144 ac_cs_silent=: ;;
18146 # This is an error.
18147 -*) as_fn_error $? "unrecognized option: \`$1'
18148 Try \`$0 --help' for more information." ;;
18150 *) as_fn_append ac_config_targets " $1"
18151 ac_need_defaults=false ;;
18153 esac
18154 shift
18155 done
18157 ac_configure_extra_args=
18159 if $ac_cs_silent; then
18160 exec 6>/dev/null
18161 ac_configure_extra_args="$ac_configure_extra_args --silent"
18164 _ACEOF
18165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18166 if \$ac_cs_recheck; then
18167 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18168 shift
18169 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18170 CONFIG_SHELL='$SHELL'
18171 export CONFIG_SHELL
18172 exec "\$@"
18175 _ACEOF
18176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18177 exec 5>>config.log
18179 echo
18180 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18181 ## Running $as_me. ##
18182 _ASBOX
18183 $as_echo "$ac_log"
18184 } >&5
18186 _ACEOF
18187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18189 # INIT-COMMANDS
18191 wine_fn_output_makedep ()
18193 as_dir=tools; as_fn_mkdir_p
18194 $CC -Iinclude -I$srcdir/include -D__WINESRC__ $EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext $srcdir/tools/makedep.c $LDFLAGS
18196 wine_fn_output_makefile ()
18198 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
18199 `cat $wine_rules_file`
18200 _WINE_EOF
18201 as_fn_error $? "could not create Makefile" "$LINENO" 5
18203 wine_fn_output_gitignore ()
18205 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18206 $GITIGNORE
18207 _WINE_EOF
18208 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18211 _ACEOF
18213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18215 # Handling of arguments.
18216 for ac_config_target in $ac_config_targets
18218 case $ac_config_target in
18219 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18220 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18221 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18222 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18223 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18224 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18225 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18226 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18227 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18228 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18229 "tools/makedep") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/makedep" ;;
18230 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18231 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18232 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18234 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18235 esac
18236 done
18239 # If the user did not use the arguments to specify the items to instantiate,
18240 # then the envvar interface is used. Set only those that are not.
18241 # We use the long form for the default assignment because of an extremely
18242 # bizarre bug on SunOS 4.1.3.
18243 if $ac_need_defaults; then
18244 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18245 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18246 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18247 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18250 # Have a temporary directory for convenience. Make it in the build tree
18251 # simply because there is no reason against having it here, and in addition,
18252 # creating and moving files from /tmp can sometimes cause problems.
18253 # Hook for its removal unless debugging.
18254 # Note that there is a small window in which the directory will not be cleaned:
18255 # after its creation but before its name has been assigned to `$tmp'.
18256 $debug ||
18258 tmp= ac_tmp=
18259 trap 'exit_status=$?
18260 : "${ac_tmp:=$tmp}"
18261 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18263 trap 'as_fn_exit 1' 1 2 13 15
18265 # Create a (secure) tmp directory for tmp files.
18268 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18269 test -d "$tmp"
18270 } ||
18272 tmp=./conf$$-$RANDOM
18273 (umask 077 && mkdir "$tmp")
18274 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18275 ac_tmp=$tmp
18277 # Set up the scripts for CONFIG_FILES section.
18278 # No need to generate them if there are no CONFIG_FILES.
18279 # This happens for instance with `./config.status config.h'.
18280 if test -n "$CONFIG_FILES"; then
18283 ac_cr=`echo X | tr X '\015'`
18284 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18285 # But we know of no other shell where ac_cr would be empty at this
18286 # point, so we can use a bashism as a fallback.
18287 if test "x$ac_cr" = x; then
18288 eval ac_cr=\$\'\\r\'
18290 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18291 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18292 ac_cs_awk_cr='\\r'
18293 else
18294 ac_cs_awk_cr=$ac_cr
18297 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18298 _ACEOF
18302 echo "cat >conf$$subs.awk <<_ACEOF" &&
18303 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18304 echo "_ACEOF"
18305 } >conf$$subs.sh ||
18306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18307 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18308 ac_delim='%!_!# '
18309 for ac_last_try in false false false false false :; do
18310 . ./conf$$subs.sh ||
18311 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18313 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18314 if test $ac_delim_n = $ac_delim_num; then
18315 break
18316 elif $ac_last_try; then
18317 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18318 else
18319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18321 done
18322 rm -f conf$$subs.sh
18324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18325 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18326 _ACEOF
18327 sed -n '
18329 s/^/S["/; s/!.*/"]=/
18332 s/^[^!]*!//
18333 :repl
18334 t repl
18335 s/'"$ac_delim"'$//
18336 t delim
18339 s/\(.\{148\}\)..*/\1/
18340 t more1
18341 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18344 b repl
18345 :more1
18346 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18349 s/.\{148\}//
18350 t nl
18351 :delim
18353 s/\(.\{148\}\)..*/\1/
18354 t more2
18355 s/["\\]/\\&/g; s/^/"/; s/$/"/
18358 :more2
18359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18362 s/.\{148\}//
18363 t delim
18364 ' <conf$$subs.awk | sed '
18365 /^[^""]/{
18367 s/\n//
18369 ' >>$CONFIG_STATUS || ac_write_fail=1
18370 rm -f conf$$subs.awk
18371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18372 _ACAWK
18373 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18374 for (key in S) S_is_set[key] = 1
18375 FS = "\a"
18379 line = $ 0
18380 nfields = split(line, field, "@")
18381 substed = 0
18382 len = length(field[1])
18383 for (i = 2; i < nfields; i++) {
18384 key = field[i]
18385 keylen = length(key)
18386 if (S_is_set[key]) {
18387 value = S[key]
18388 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18389 len += length(value) + length(field[++i])
18390 substed = 1
18391 } else
18392 len += 1 + keylen
18395 print line
18398 _ACAWK
18399 _ACEOF
18400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18401 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18402 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18403 else
18405 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18406 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18407 _ACEOF
18409 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18410 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18411 # trailing colons and then remove the whole line if VPATH becomes empty
18412 # (actually we leave an empty line to preserve line numbers).
18413 if test "x$srcdir" = x.; then
18414 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18416 s///
18417 s/^/:/
18418 s/[ ]*$/:/
18419 s/:\$(srcdir):/:/g
18420 s/:\${srcdir}:/:/g
18421 s/:@srcdir@:/:/g
18422 s/^:*//
18423 s/:*$//
18425 s/\(=[ ]*\).*/\1/
18427 s/\n//
18428 s/^[^=]*=[ ]*$//
18432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18433 fi # test -n "$CONFIG_FILES"
18435 # Set up the scripts for CONFIG_HEADERS section.
18436 # No need to generate them if there are no CONFIG_HEADERS.
18437 # This happens for instance with `./config.status Makefile'.
18438 if test -n "$CONFIG_HEADERS"; then
18439 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18440 BEGIN {
18441 _ACEOF
18443 # Transform confdefs.h into an awk script `defines.awk', embedded as
18444 # here-document in config.status, that substitutes the proper values into
18445 # config.h.in to produce config.h.
18447 # Create a delimiter string that does not exist in confdefs.h, to ease
18448 # handling of long lines.
18449 ac_delim='%!_!# '
18450 for ac_last_try in false false :; do
18451 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18452 if test -z "$ac_tt"; then
18453 break
18454 elif $ac_last_try; then
18455 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18456 else
18457 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18459 done
18461 # For the awk script, D is an array of macro values keyed by name,
18462 # likewise P contains macro parameters if any. Preserve backslash
18463 # newline sequences.
18465 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18466 sed -n '
18467 s/.\{148\}/&'"$ac_delim"'/g
18468 t rset
18469 :rset
18470 s/^[ ]*#[ ]*define[ ][ ]*/ /
18471 t def
18473 :def
18474 s/\\$//
18475 t bsnl
18476 s/["\\]/\\&/g
18477 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18478 D["\1"]=" \3"/p
18479 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18481 :bsnl
18482 s/["\\]/\\&/g
18483 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18484 D["\1"]=" \3\\\\\\n"\\/p
18485 t cont
18486 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18487 t cont
18489 :cont
18491 s/.\{148\}/&'"$ac_delim"'/g
18492 t clear
18493 :clear
18494 s/\\$//
18495 t bsnlc
18496 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18498 :bsnlc
18499 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18500 b cont
18501 ' <confdefs.h | sed '
18502 s/'"$ac_delim"'/"\\\
18503 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18506 for (key in D) D_is_set[key] = 1
18507 FS = "\a"
18509 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18510 line = \$ 0
18511 split(line, arg, " ")
18512 if (arg[1] == "#") {
18513 defundef = arg[2]
18514 mac1 = arg[3]
18515 } else {
18516 defundef = substr(arg[1], 2)
18517 mac1 = arg[2]
18519 split(mac1, mac2, "(") #)
18520 macro = mac2[1]
18521 prefix = substr(line, 1, index(line, defundef) - 1)
18522 if (D_is_set[macro]) {
18523 # Preserve the white space surrounding the "#".
18524 print prefix "define", macro P[macro] D[macro]
18525 next
18526 } else {
18527 # Replace #undef with comments. This is necessary, for example,
18528 # in the case of _POSIX_SOURCE, which is predefined and required
18529 # on some systems where configure will not decide to define it.
18530 if (defundef == "undef") {
18531 print "/*", prefix defundef, macro, "*/"
18532 next
18536 { print }
18537 _ACAWK
18538 _ACEOF
18539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18540 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18541 fi # test -n "$CONFIG_HEADERS"
18544 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18545 shift
18546 for ac_tag
18548 case $ac_tag in
18549 :[FHLC]) ac_mode=$ac_tag; continue;;
18550 esac
18551 case $ac_mode$ac_tag in
18552 :[FHL]*:*);;
18553 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18554 :[FH]-) ac_tag=-:-;;
18555 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18556 esac
18557 ac_save_IFS=$IFS
18558 IFS=:
18559 set x $ac_tag
18560 IFS=$ac_save_IFS
18561 shift
18562 ac_file=$1
18563 shift
18565 case $ac_mode in
18566 :L) ac_source=$1;;
18567 :[FH])
18568 ac_file_inputs=
18569 for ac_f
18571 case $ac_f in
18572 -) ac_f="$ac_tmp/stdin";;
18573 *) # Look for the file first in the build tree, then in the source tree
18574 # (if the path is not absolute). The absolute path cannot be DOS-style,
18575 # because $ac_f cannot contain `:'.
18576 test -f "$ac_f" ||
18577 case $ac_f in
18578 [\\/$]*) false;;
18579 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18580 esac ||
18581 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18582 esac
18583 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18584 as_fn_append ac_file_inputs " '$ac_f'"
18585 done
18587 # Let's still pretend it is `configure' which instantiates (i.e., don't
18588 # use $as_me), people would be surprised to read:
18589 # /* config.h. Generated by config.status. */
18590 configure_input='Generated from '`
18591 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18592 `' by configure.'
18593 if test x"$ac_file" != x-; then
18594 configure_input="$ac_file. $configure_input"
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18596 $as_echo "$as_me: creating $ac_file" >&6;}
18598 # Neutralize special characters interpreted by sed in replacement strings.
18599 case $configure_input in #(
18600 *\&* | *\|* | *\\* )
18601 ac_sed_conf_input=`$as_echo "$configure_input" |
18602 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18603 *) ac_sed_conf_input=$configure_input;;
18604 esac
18606 case $ac_tag in
18607 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18609 esac
18611 esac
18613 ac_dir=`$as_dirname -- "$ac_file" ||
18614 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18615 X"$ac_file" : 'X\(//\)[^/]' \| \
18616 X"$ac_file" : 'X\(//\)$' \| \
18617 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18618 $as_echo X"$ac_file" |
18619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18620 s//\1/
18623 /^X\(\/\/\)[^/].*/{
18624 s//\1/
18627 /^X\(\/\/\)$/{
18628 s//\1/
18631 /^X\(\/\).*/{
18632 s//\1/
18635 s/.*/./; q'`
18636 as_dir="$ac_dir"; as_fn_mkdir_p
18637 ac_builddir=.
18639 case "$ac_dir" in
18640 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18642 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18643 # A ".." for each directory in $ac_dir_suffix.
18644 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18645 case $ac_top_builddir_sub in
18646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18648 esac ;;
18649 esac
18650 ac_abs_top_builddir=$ac_pwd
18651 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18652 # for backward compatibility:
18653 ac_top_builddir=$ac_top_build_prefix
18655 case $srcdir in
18656 .) # We are building in place.
18657 ac_srcdir=.
18658 ac_top_srcdir=$ac_top_builddir_sub
18659 ac_abs_top_srcdir=$ac_pwd ;;
18660 [\\/]* | ?:[\\/]* ) # Absolute name.
18661 ac_srcdir=$srcdir$ac_dir_suffix;
18662 ac_top_srcdir=$srcdir
18663 ac_abs_top_srcdir=$srcdir ;;
18664 *) # Relative name.
18665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18666 ac_top_srcdir=$ac_top_build_prefix$srcdir
18667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18668 esac
18669 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18672 case $ac_mode in
18675 # CONFIG_FILE
18678 _ACEOF
18680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18681 # If the template does not know about datarootdir, expand it.
18682 # FIXME: This hack should be removed a few years after 2.60.
18683 ac_datarootdir_hack=; ac_datarootdir_seen=
18684 ac_sed_dataroot='
18685 /datarootdir/ {
18689 /@datadir@/p
18690 /@docdir@/p
18691 /@infodir@/p
18692 /@localedir@/p
18693 /@mandir@/p'
18694 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18695 *datarootdir*) ac_datarootdir_seen=yes;;
18696 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18698 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18699 _ACEOF
18700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18701 ac_datarootdir_hack='
18702 s&@datadir@&$datadir&g
18703 s&@docdir@&$docdir&g
18704 s&@infodir@&$infodir&g
18705 s&@localedir@&$localedir&g
18706 s&@mandir@&$mandir&g
18707 s&\\\${datarootdir}&$datarootdir&g' ;;
18708 esac
18709 _ACEOF
18711 # Neutralize VPATH when `$srcdir' = `.'.
18712 # Shell code in configure.ac might set extrasub.
18713 # FIXME: do we really want to maintain this feature?
18714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18715 ac_sed_extra="$ac_vpsub
18716 $extrasub
18717 _ACEOF
18718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18721 s|@configure_input@|$ac_sed_conf_input|;t t
18722 s&@top_builddir@&$ac_top_builddir_sub&;t t
18723 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18724 s&@srcdir@&$ac_srcdir&;t t
18725 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18726 s&@top_srcdir@&$ac_top_srcdir&;t t
18727 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18728 s&@builddir@&$ac_builddir&;t t
18729 s&@abs_builddir@&$ac_abs_builddir&;t t
18730 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18731 $ac_datarootdir_hack
18733 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18734 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18736 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18737 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18738 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18739 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18741 which seems to be undefined. Please make sure it is defined" >&5
18742 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18743 which seems to be undefined. Please make sure it is defined" >&2;}
18745 rm -f "$ac_tmp/stdin"
18746 case $ac_file in
18747 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18748 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18749 esac \
18750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18754 # CONFIG_HEADER
18756 if test x"$ac_file" != x-; then
18758 $as_echo "/* $configure_input */" \
18759 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18760 } >"$ac_tmp/config.h" \
18761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18762 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18764 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18765 else
18766 rm -f "$ac_file"
18767 mv "$ac_tmp/config.h" "$ac_file" \
18768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18770 else
18771 $as_echo "/* $configure_input */" \
18772 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18773 || as_fn_error $? "could not create -" "$LINENO" 5
18778 # CONFIG_LINK
18781 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18783 else
18784 # Prefer the file from the source tree if names are identical.
18785 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18786 ac_source=$srcdir/$ac_source
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18790 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18792 if test ! -r "$ac_source"; then
18793 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18795 rm -f "$ac_file"
18797 # Try a relative symlink, then a hard link, then a copy.
18798 case $ac_source in
18799 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18800 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18801 esac
18802 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18803 ln "$ac_source" "$ac_file" 2>/dev/null ||
18804 cp -p "$ac_source" "$ac_file" ||
18805 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18808 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18809 $as_echo "$as_me: executing $ac_file commands" >&6;}
18811 esac
18814 case $ac_file$ac_mode in
18815 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18816 "tools/makedep":C) wine_fn_output_makedep || as_fn_exit $? ;;
18817 "Makefile":C) wine_fn_output_makefile Makefile ;;
18818 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
18820 esac
18821 done # for ac_tag
18824 as_fn_exit 0
18825 _ACEOF
18826 ac_clean_files=$ac_clean_files_save
18828 test $ac_write_fail = 0 ||
18829 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18832 # configure is writing to config.log, and then calls config.status.
18833 # config.status does its own redirection, appending to config.log.
18834 # Unfortunately, on DOS this fails, as config.log is still kept open
18835 # by configure, so config.status won't be able to write to it; its
18836 # output is simply discarded. So we exec the FD to /dev/null,
18837 # effectively closing config.log, so it can be properly (re)opened and
18838 # appended to by config.status. When coming back to configure, we
18839 # need to make the FD available again.
18840 if test "$no_create" != yes; then
18841 ac_cs_success=:
18842 ac_config_status_args=
18843 test "$silent" = yes &&
18844 ac_config_status_args="$ac_config_status_args --quiet"
18845 exec 5>/dev/null
18846 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18847 exec 5>>config.log
18848 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18849 # would make configure fail if this is the last instruction.
18850 $ac_cs_success || as_fn_exit 1
18852 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18854 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18858 if test "$no_create" = "yes"
18859 then
18860 exit 0
18863 ac_save_IFS="$IFS"
18864 if test "x$wine_notices != "x; then
18865 echo >&6
18866 IFS="|"
18867 for msg in $wine_notices; do
18868 IFS="$ac_save_IFS"
18869 if ${msg+:} false; then :
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18871 $as_echo "$as_me: $msg" >&6;}
18873 done
18875 IFS="|"
18876 for msg in $wine_warnings; do
18877 IFS="$ac_save_IFS"
18878 if ${msg+:} false; then :
18879 echo >&2
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18881 $as_echo "$as_me: WARNING: $msg" >&2;}
18883 done
18884 IFS="$ac_save_IFS"
18886 $as_echo "
18887 $as_me: Finished. Do '${ac_make}' to compile Wine.
18888 " >&6