msxml3: Avoid double free of str (Coverity).
[wine/wine-gecko.git] / configure
blob71ff42b8c5e9933a445fb99613dad54ad2c28a5e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.9.
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.9'
584 PACKAGE_STRING='Wine 1.7.9'
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 PORCFLAGS
628 LINGUAS
629 MAKE_TEST_RULES
630 MAKE_PROG_RULES
631 MAKE_DLL_RULES
632 MAKE_IMPLIB_RULES
633 LDAPLIBS
634 LIBRT
635 LIBPOLL
636 LIBDL
637 TOOLSEXT
638 UNWINDFLAGS
639 BUILTINFLAG
640 EXTRACFLAGS
641 LIBPROCSTAT
642 LIBKSTAT
643 LIBOPENAL
644 MPG123_LIBS
645 MPG123_CFLAGS
646 TIFF_LIBS
647 TIFF_CFLAGS
648 PNG_LIBS
649 PNG_CFLAGS
650 JPEG_LIBS
651 JPEG_CFLAGS
652 FONTCONFIGINCL
653 CUPSINCL
654 CAPI20_LIBS
655 CAPI20_CFLAGS
656 OSS4INCL
657 ALSALIBS
658 GSTREAMER_LIBS
659 GSTREAMER_CFLAGS
660 LIBGETTEXTPO
661 ZLIB
662 FREETYPE_LIBS
663 FREETYPE_CFLAGS
664 LCMS2_LIBS
665 LCMS2_CFLAGS
666 RESOLVLIBS
667 GPHOTO2_PORT_LIBS
668 GPHOTO2_PORT_CFLAGS
669 GPHOTO2_LIBS
670 GPHOTO2_CFLAGS
671 SANE_LIBS
672 SANE_CFLAGS
673 GNUTLS_LIBS
674 GNUTLS_CFLAGS
675 HAL_LIBS
676 HAL_CFLAGS
677 DBUS_LIBS
678 DBUS_CFLAGS
679 XSLT_LIBS
680 XSLT_CFLAGS
681 XML2_LIBS
682 XML2_CFLAGS
683 X_EXTRA_LIBS
684 X_LIBS
685 X_PRE_LIBS
686 X_CFLAGS
687 XMKMF
688 LIBPTHREAD
689 CROSSCC
690 CROSSTARGET
691 PRELINK
692 CARBONLIB
693 QUICKTIMELIB
694 LIBOPENCL
695 FRAMEWORK_OPENAL
696 COREAUDIO
697 SECURITYLIB
698 DISKARBITRATIONLIB
699 APPKITLIB
700 CORESERVICESLIB
701 APPLICATIONSERVICESLIB
702 FORCEFEEDBACKLIB
703 IOKITLIB
704 COREFOUNDATIONLIB
705 LIBWINE_RULES
706 SOCKETLIBS
707 DLLTOOL
708 LOADER_RULES
709 ALL_TEST_RESOURCES
710 READELF
712 LDRPATH_LOCAL
713 LDRPATH_INSTALL
714 DLLFLAGS
715 DLLPREFIX
716 dlldir
718 OPENGL_LIBS
719 XLIB
720 ICOTOOL
721 CONVERT
722 RSVG
723 FONTFORGE
724 PKG_CONFIG
725 MSGFMT
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 INSTALL
730 LDCONFIG
731 MKDIR_P
732 EGREP
733 GREP
734 LN_S
735 RANLIB
736 ARFLAGS
737 STRIP
738 ac_ct_AR
740 BISON
741 FLEX
742 TOOLSDIR
743 TARGETFLAGS
744 CPPBIN
745 ac_ct_CXX
746 CXXFLAGS
748 OBJEXT
749 EXEEXT
750 ac_ct_CC
751 CPPFLAGS
752 LDFLAGS
753 CFLAGS
755 SET_MAKE
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files='MAKE_RULES'
803 ac_user_opts='
804 enable_option_checking
805 enable_win16
806 enable_win64
807 enable_tests
808 enable_maintainer_mode
809 with_alsa
810 with_capi
811 with_cms
812 with_coreaudio
813 with_cups
814 with_curses
815 with_dbus
816 with_fontconfig
817 with_freetype
818 with_gettext
819 with_gettextpo
820 with_gphoto
821 with_glu
822 with_gnutls
823 with_gsm
824 with_gstreamer
825 with_hal
826 with_jpeg
827 with_ldap
828 with_mpg123
829 with_netapi
830 with_openal
831 with_opencl
832 with_opengl
833 with_osmesa
834 with_oss
835 with_png
836 with_pthread
837 with_sane
838 with_tiff
839 with_v4l
840 with_xcomposite
841 with_xcursor
842 with_xinerama
843 with_xinput
844 with_xinput2
845 with_xml
846 with_xrandr
847 with_xrender
848 with_xshape
849 with_xshm
850 with_xslt
851 with_xxf86vm
852 with_zlib
853 with_wine_tools
854 with_wine64
855 enable_largefile
856 with_x
857 enable_acledit
858 enable_aclui
859 enable_activeds
860 enable_actxprxy
861 enable_advapi32
862 enable_advpack
863 enable_amstream
864 enable_api_ms_win_core_localregistry_l1_1_0
865 enable_api_ms_win_core_processthreads_l1_1_0
866 enable_api_ms_win_core_winrt_error_l1_1_0
867 enable_api_ms_win_core_winrt_string_l1_1_0
868 enable_api_ms_win_downlevel_advapi32_l1_1_0
869 enable_api_ms_win_downlevel_advapi32_l2_1_0
870 enable_api_ms_win_downlevel_normaliz_l1_1_0
871 enable_api_ms_win_downlevel_ole32_l1_1_0
872 enable_api_ms_win_downlevel_shell32_l1_1_0
873 enable_api_ms_win_downlevel_shlwapi_l1_1_0
874 enable_api_ms_win_downlevel_shlwapi_l2_1_0
875 enable_api_ms_win_downlevel_user32_l1_1_0
876 enable_api_ms_win_downlevel_version_l1_1_0
877 enable_api_ms_win_security_base_l1_1_0
878 enable_apphelp
879 enable_appwiz_cpl
880 enable_atl
881 enable_atl100
882 enable_atl110
883 enable_atl80
884 enable_atl90
885 enable_authz
886 enable_avicap32
887 enable_avifil32
888 enable_avrt
889 enable_bcrypt
890 enable_browseui
891 enable_cabinet
892 enable_capi2032
893 enable_cards
894 enable_cfgmgr32
895 enable_clusapi
896 enable_comcat
897 enable_comctl32
898 enable_comdlg32
899 enable_compstui
900 enable_comsvcs
901 enable_credui
902 enable_crtdll
903 enable_crypt32
904 enable_cryptdlg
905 enable_cryptdll
906 enable_cryptnet
907 enable_cryptui
908 enable_ctapi32
909 enable_ctl3d32
910 enable_d3d10
911 enable_d3d10core
912 enable_d3d11
913 enable_d3d8
914 enable_d3d9
915 enable_d3dcompiler_33
916 enable_d3dcompiler_34
917 enable_d3dcompiler_35
918 enable_d3dcompiler_36
919 enable_d3dcompiler_37
920 enable_d3dcompiler_38
921 enable_d3dcompiler_39
922 enable_d3dcompiler_40
923 enable_d3dcompiler_41
924 enable_d3dcompiler_42
925 enable_d3dcompiler_43
926 enable_d3dim
927 enable_d3drm
928 enable_d3dx10_33
929 enable_d3dx10_34
930 enable_d3dx10_35
931 enable_d3dx10_36
932 enable_d3dx10_37
933 enable_d3dx10_38
934 enable_d3dx10_39
935 enable_d3dx10_40
936 enable_d3dx10_41
937 enable_d3dx10_42
938 enable_d3dx10_43
939 enable_d3dx11_42
940 enable_d3dx11_43
941 enable_d3dx9_24
942 enable_d3dx9_25
943 enable_d3dx9_26
944 enable_d3dx9_27
945 enable_d3dx9_28
946 enable_d3dx9_29
947 enable_d3dx9_30
948 enable_d3dx9_31
949 enable_d3dx9_32
950 enable_d3dx9_33
951 enable_d3dx9_34
952 enable_d3dx9_35
953 enable_d3dx9_36
954 enable_d3dx9_37
955 enable_d3dx9_38
956 enable_d3dx9_39
957 enable_d3dx9_40
958 enable_d3dx9_41
959 enable_d3dx9_42
960 enable_d3dx9_43
961 enable_d3dxof
962 enable_dbgeng
963 enable_dbghelp
964 enable_dciman32
965 enable_ddraw
966 enable_ddrawex
967 enable_devenum
968 enable_dhcpcsvc
969 enable_difxapi
970 enable_dinput
971 enable_dinput8
972 enable_dispex
973 enable_dmband
974 enable_dmcompos
975 enable_dmime
976 enable_dmloader
977 enable_dmscript
978 enable_dmstyle
979 enable_dmsynth
980 enable_dmusic
981 enable_dmusic32
982 enable_dnsapi
983 enable_dplay
984 enable_dplayx
985 enable_dpnaddr
986 enable_dpnet
987 enable_dpnhpast
988 enable_dpnlobby
989 enable_dpwsockx
990 enable_drmclien
991 enable_dsound
992 enable_dssenh
993 enable_dswave
994 enable_dwmapi
995 enable_dwrite
996 enable_dxdiagn
997 enable_dxgi
998 enable_explorerframe
999 enable_faultrep
1000 enable_fltlib
1001 enable_fusion
1002 enable_fwpuclnt
1003 enable_gameux
1004 enable_gdi32
1005 enable_gdiplus
1006 enable_glu32
1007 enable_gphoto2_ds
1008 enable_gpkcsp
1009 enable_hal
1010 enable_hhctrl_ocx
1011 enable_hid
1012 enable_hlink
1013 enable_hnetcfg
1014 enable_httpapi
1015 enable_iccvid
1016 enable_icmp
1017 enable_ieframe
1018 enable_imaadp32_acm
1019 enable_imagehlp
1020 enable_imm32
1021 enable_inetcomm
1022 enable_inetcpl_cpl
1023 enable_inetmib1
1024 enable_infosoft
1025 enable_initpki
1026 enable_inkobj
1027 enable_inseng
1028 enable_iphlpapi
1029 enable_itircl
1030 enable_itss
1031 enable_joy_cpl
1032 enable_jscript
1033 enable_kernel32
1034 enable_ktmw32
1035 enable_loadperf
1036 enable_localspl
1037 enable_localui
1038 enable_lz32
1039 enable_mapi32
1040 enable_mapistub
1041 enable_mciavi32
1042 enable_mcicda
1043 enable_mciqtz32
1044 enable_mciseq
1045 enable_mciwave
1046 enable_mgmtapi
1047 enable_midimap
1048 enable_mlang
1049 enable_mmcndmgr
1050 enable_mmdevapi
1051 enable_mountmgr_sys
1052 enable_mpr
1053 enable_mprapi
1054 enable_msacm32_drv
1055 enable_msacm32
1056 enable_msadp32_acm
1057 enable_mscat32
1058 enable_mscms
1059 enable_mscoree
1060 enable_msctf
1061 enable_msdaps
1062 enable_msdmo
1063 enable_msftedit
1064 enable_msg711_acm
1065 enable_msgsm32_acm
1066 enable_mshtml_tlb
1067 enable_mshtml
1068 enable_msi
1069 enable_msident
1070 enable_msimg32
1071 enable_msimsg
1072 enable_msimtf
1073 enable_msisip
1074 enable_msisys_ocx
1075 enable_msls31
1076 enable_msnet32
1077 enable_mspatcha
1078 enable_msrle32
1079 enable_mssign32
1080 enable_mssip32
1081 enable_mstask
1082 enable_msvcirt
1083 enable_msvcm80
1084 enable_msvcm90
1085 enable_msvcp100
1086 enable_msvcp110
1087 enable_msvcp60
1088 enable_msvcp70
1089 enable_msvcp71
1090 enable_msvcp80
1091 enable_msvcp90
1092 enable_msvcr100
1093 enable_msvcr110
1094 enable_msvcr70
1095 enable_msvcr71
1096 enable_msvcr80
1097 enable_msvcr90
1098 enable_msvcrt
1099 enable_msvcrt20
1100 enable_msvcrt40
1101 enable_msvcrtd
1102 enable_msvfw32
1103 enable_msvidc32
1104 enable_mswsock
1105 enable_msxml
1106 enable_msxml2
1107 enable_msxml3
1108 enable_msxml4
1109 enable_msxml6
1110 enable_nddeapi
1111 enable_netapi32
1112 enable_netcfgx
1113 enable_newdev
1114 enable_normaliz
1115 enable_npmshtml
1116 enable_ntdll
1117 enable_ntdsapi
1118 enable_ntoskrnl_exe
1119 enable_ntprint
1120 enable_objsel
1121 enable_odbc32
1122 enable_odbccp32
1123 enable_odbccu32
1124 enable_ole32
1125 enable_oleacc
1126 enable_oleaut32
1127 enable_olecli32
1128 enable_oledb32
1129 enable_oledlg
1130 enable_olepro32
1131 enable_olesvr32
1132 enable_olethk32
1133 enable_openal32
1134 enable_opencl
1135 enable_opengl32
1136 enable_pdh
1137 enable_photometadatahandler
1138 enable_pidgen
1139 enable_powrprof
1140 enable_printui
1141 enable_propsys
1142 enable_psapi
1143 enable_pstorec
1144 enable_qcap
1145 enable_qedit
1146 enable_qmgr
1147 enable_qmgrprxy
1148 enable_quartz
1149 enable_query
1150 enable_rasapi32
1151 enable_rasdlg
1152 enable_regapi
1153 enable_resutils
1154 enable_riched20
1155 enable_riched32
1156 enable_rpcrt4
1157 enable_rsabase
1158 enable_rsaenh
1159 enable_rstrtmgr
1160 enable_rtutils
1161 enable_samlib
1162 enable_sane_ds
1163 enable_scarddlg
1164 enable_sccbase
1165 enable_schannel
1166 enable_scrrun
1167 enable_scsiport_sys
1168 enable_secur32
1169 enable_security
1170 enable_sensapi
1171 enable_serialui
1172 enable_setupapi
1173 enable_sfc
1174 enable_sfc_os
1175 enable_shdoclc
1176 enable_shdocvw
1177 enable_shell32
1178 enable_shfolder
1179 enable_shlwapi
1180 enable_slbcsp
1181 enable_slc
1182 enable_snmpapi
1183 enable_softpub
1184 enable_spoolss
1185 enable_stdole2_tlb
1186 enable_stdole32_tlb
1187 enable_sti
1188 enable_svrapi
1189 enable_sxs
1190 enable_t2embed
1191 enable_tapi32
1192 enable_taskschd
1193 enable_traffic
1194 enable_twain_32
1195 enable_unicows
1196 enable_updspapi
1197 enable_url
1198 enable_urlmon
1199 enable_usbd_sys
1200 enable_user32
1201 enable_userenv
1202 enable_usp10
1203 enable_uxtheme
1204 enable_vbscript
1205 enable_vcomp
1206 enable_vcomp100
1207 enable_vcomp90
1208 enable_vdmdbg
1209 enable_version
1210 enable_wbemdisp
1211 enable_wbemprox
1212 enable_webservices
1213 enable_wer
1214 enable_wevtapi
1215 enable_wiaservc
1216 enable_windowscodecs
1217 enable_windowscodecsext
1218 enable_winealsa_drv
1219 enable_winecoreaudio_drv
1220 enable_wined3d
1221 enable_winegstreamer
1222 enable_winejoystick_drv
1223 enable_winemac_drv
1224 enable_winemapi
1225 enable_winemp3_acm
1226 enable_wineoss_drv
1227 enable_wineps_drv
1228 enable_wineqtdecoder
1229 enable_winex11_drv
1230 enable_wing32
1231 enable_winhttp
1232 enable_wininet
1233 enable_winmm
1234 enable_winnls32
1235 enable_winscard
1236 enable_winspool_drv
1237 enable_winsta
1238 enable_wintab32
1239 enable_wintrust
1240 enable_wlanapi
1241 enable_wldap32
1242 enable_wmi
1243 enable_wmiutils
1244 enable_wmvcore
1245 enable_wnaspi32
1246 enable_ws2_32
1247 enable_wshom_ocx
1248 enable_wsnmp32
1249 enable_wsock32
1250 enable_wtsapi32
1251 enable_wuapi
1252 enable_wuaueng
1253 enable_xapofx1_1
1254 enable_xinput1_1
1255 enable_xinput1_2
1256 enable_xinput1_3
1257 enable_xinput1_4
1258 enable_xinput9_1_0
1259 enable_xmllite
1260 enable_xolehlp
1261 enable_xpsprint
1262 enable_xpssvcs
1263 enable_documentation
1264 enable_fonts
1265 enable_include
1266 enable_libs_port
1267 enable_libs_wine
1268 enable_libs_wpp
1269 enable_loader
1270 enable_arp
1271 enable_aspnet_regiis
1272 enable_attrib
1273 enable_cabarc
1274 enable_cacls
1275 enable_clock
1276 enable_cmd
1277 enable_conhost
1278 enable_control
1279 enable_cscript
1280 enable_dxdiag
1281 enable_eject
1282 enable_expand
1283 enable_explorer
1284 enable_extrac32
1285 enable_findstr
1286 enable_hh
1287 enable_hostname
1288 enable_icinfo
1289 enable_iexplore
1290 enable_ipconfig
1291 enable_lodctr
1292 enable_mofcomp
1293 enable_mshta
1294 enable_msiexec
1295 enable_net
1296 enable_netsh
1297 enable_netstat
1298 enable_ngen
1299 enable_notepad
1300 enable_oleview
1301 enable_ping
1302 enable_plugplay
1303 enable_presentationfontcache
1304 enable_progman
1305 enable_reg
1306 enable_regasm
1307 enable_regedit
1308 enable_regsvcs
1309 enable_regsvr32
1310 enable_rpcss
1311 enable_rundll32
1312 enable_sc
1313 enable_schtasks
1314 enable_secedit
1315 enable_servicemodelreg
1316 enable_services
1317 enable_spoolsv
1318 enable_start
1319 enable_svchost
1320 enable_taskkill
1321 enable_tasklist
1322 enable_taskmgr
1323 enable_termsv
1324 enable_uninstaller
1325 enable_unlodctr
1326 enable_view
1327 enable_wineboot
1328 enable_winebrowser
1329 enable_winecfg
1330 enable_wineconsole
1331 enable_winedbg
1332 enable_winedevice
1333 enable_winefile
1334 enable_winemenubuilder
1335 enable_winemine
1336 enable_winemsibuilder
1337 enable_winepath
1338 enable_winetest
1339 enable_winhlp32
1340 enable_winver
1341 enable_wmic
1342 enable_wordpad
1343 enable_write
1344 enable_wscript
1345 enable_wusa
1346 enable_xcopy
1347 enable_server
1348 enable_tools
1350 ac_precious_vars='build_alias
1351 host_alias
1352 target_alias
1354 CFLAGS
1355 LDFLAGS
1356 LIBS
1357 CPPFLAGS
1359 CXXFLAGS
1362 XMKMF
1363 XML2_CFLAGS
1364 XML2_LIBS
1365 XSLT_CFLAGS
1366 XSLT_LIBS
1367 DBUS_CFLAGS
1368 DBUS_LIBS
1369 HAL_CFLAGS
1370 HAL_LIBS
1371 GNUTLS_CFLAGS
1372 GNUTLS_LIBS
1373 SANE_CFLAGS
1374 SANE_LIBS
1375 GPHOTO2_CFLAGS
1376 GPHOTO2_LIBS
1377 GPHOTO2_PORT_CFLAGS
1378 GPHOTO2_PORT_LIBS
1379 LCMS2_CFLAGS
1380 LCMS2_LIBS
1381 FREETYPE_CFLAGS
1382 FREETYPE_LIBS
1383 GSTREAMER_CFLAGS
1384 GSTREAMER_LIBS
1385 CAPI20_CFLAGS
1386 CAPI20_LIBS
1387 JPEG_CFLAGS
1388 JPEG_LIBS
1389 PNG_CFLAGS
1390 PNG_LIBS
1391 TIFF_CFLAGS
1392 TIFF_LIBS
1393 MPG123_CFLAGS
1394 MPG123_LIBS'
1397 # Initialize some variables set by options.
1398 ac_init_help=
1399 ac_init_version=false
1400 ac_unrecognized_opts=
1401 ac_unrecognized_sep=
1402 # The variables have the same names as the options, with
1403 # dashes changed to underlines.
1404 cache_file=/dev/null
1405 exec_prefix=NONE
1406 no_create=
1407 no_recursion=
1408 prefix=NONE
1409 program_prefix=NONE
1410 program_suffix=NONE
1411 program_transform_name=s,x,x,
1412 silent=
1413 site=
1414 srcdir=
1415 verbose=
1416 x_includes=NONE
1417 x_libraries=NONE
1419 # Installation directory options.
1420 # These are left unexpanded so users can "make install exec_prefix=/foo"
1421 # and all the variables that are supposed to be based on exec_prefix
1422 # by default will actually change.
1423 # Use braces instead of parens because sh, perl, etc. also accept them.
1424 # (The list follows the same order as the GNU Coding Standards.)
1425 bindir='${exec_prefix}/bin'
1426 sbindir='${exec_prefix}/sbin'
1427 libexecdir='${exec_prefix}/libexec'
1428 datarootdir='${prefix}/share'
1429 datadir='${datarootdir}'
1430 sysconfdir='${prefix}/etc'
1431 sharedstatedir='${prefix}/com'
1432 localstatedir='${prefix}/var'
1433 includedir='${prefix}/include'
1434 oldincludedir='/usr/include'
1435 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1436 infodir='${datarootdir}/info'
1437 htmldir='${docdir}'
1438 dvidir='${docdir}'
1439 pdfdir='${docdir}'
1440 psdir='${docdir}'
1441 libdir='${exec_prefix}/lib'
1442 localedir='${datarootdir}/locale'
1443 mandir='${datarootdir}/man'
1445 ac_prev=
1446 ac_dashdash=
1447 for ac_option
1449 # If the previous option needs an argument, assign it.
1450 if test -n "$ac_prev"; then
1451 eval $ac_prev=\$ac_option
1452 ac_prev=
1453 continue
1456 case $ac_option in
1457 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1458 *=) ac_optarg= ;;
1459 *) ac_optarg=yes ;;
1460 esac
1462 # Accept the important Cygnus configure options, so we can diagnose typos.
1464 case $ac_dashdash$ac_option in
1466 ac_dashdash=yes ;;
1468 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1469 ac_prev=bindir ;;
1470 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1471 bindir=$ac_optarg ;;
1473 -build | --build | --buil | --bui | --bu)
1474 ac_prev=build_alias ;;
1475 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1476 build_alias=$ac_optarg ;;
1478 -cache-file | --cache-file | --cache-fil | --cache-fi \
1479 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1480 ac_prev=cache_file ;;
1481 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1482 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1483 cache_file=$ac_optarg ;;
1485 --config-cache | -C)
1486 cache_file=config.cache ;;
1488 -datadir | --datadir | --datadi | --datad)
1489 ac_prev=datadir ;;
1490 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1491 datadir=$ac_optarg ;;
1493 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1494 | --dataroo | --dataro | --datar)
1495 ac_prev=datarootdir ;;
1496 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1497 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1498 datarootdir=$ac_optarg ;;
1500 -disable-* | --disable-*)
1501 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1502 # Reject names that are not valid shell variable names.
1503 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1504 as_fn_error $? "invalid feature name: $ac_useropt"
1505 ac_useropt_orig=$ac_useropt
1506 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1507 case $ac_user_opts in
1509 "enable_$ac_useropt"
1510 "*) ;;
1511 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1512 ac_unrecognized_sep=', ';;
1513 esac
1514 eval enable_$ac_useropt=no ;;
1516 -docdir | --docdir | --docdi | --doc | --do)
1517 ac_prev=docdir ;;
1518 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1519 docdir=$ac_optarg ;;
1521 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1522 ac_prev=dvidir ;;
1523 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1524 dvidir=$ac_optarg ;;
1526 -enable-* | --enable-*)
1527 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1528 # Reject names that are not valid shell variable names.
1529 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1530 as_fn_error $? "invalid feature name: $ac_useropt"
1531 ac_useropt_orig=$ac_useropt
1532 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1533 case $ac_user_opts in
1535 "enable_$ac_useropt"
1536 "*) ;;
1537 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1538 ac_unrecognized_sep=', ';;
1539 esac
1540 eval enable_$ac_useropt=\$ac_optarg ;;
1542 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1543 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1544 | --exec | --exe | --ex)
1545 ac_prev=exec_prefix ;;
1546 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1547 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1548 | --exec=* | --exe=* | --ex=*)
1549 exec_prefix=$ac_optarg ;;
1551 -gas | --gas | --ga | --g)
1552 # Obsolete; use --with-gas.
1553 with_gas=yes ;;
1555 -help | --help | --hel | --he | -h)
1556 ac_init_help=long ;;
1557 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1558 ac_init_help=recursive ;;
1559 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1560 ac_init_help=short ;;
1562 -host | --host | --hos | --ho)
1563 ac_prev=host_alias ;;
1564 -host=* | --host=* | --hos=* | --ho=*)
1565 host_alias=$ac_optarg ;;
1567 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1568 ac_prev=htmldir ;;
1569 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1570 | --ht=*)
1571 htmldir=$ac_optarg ;;
1573 -includedir | --includedir | --includedi | --included | --include \
1574 | --includ | --inclu | --incl | --inc)
1575 ac_prev=includedir ;;
1576 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1577 | --includ=* | --inclu=* | --incl=* | --inc=*)
1578 includedir=$ac_optarg ;;
1580 -infodir | --infodir | --infodi | --infod | --info | --inf)
1581 ac_prev=infodir ;;
1582 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1583 infodir=$ac_optarg ;;
1585 -libdir | --libdir | --libdi | --libd)
1586 ac_prev=libdir ;;
1587 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1588 libdir=$ac_optarg ;;
1590 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1591 | --libexe | --libex | --libe)
1592 ac_prev=libexecdir ;;
1593 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1594 | --libexe=* | --libex=* | --libe=*)
1595 libexecdir=$ac_optarg ;;
1597 -localedir | --localedir | --localedi | --localed | --locale)
1598 ac_prev=localedir ;;
1599 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1600 localedir=$ac_optarg ;;
1602 -localstatedir | --localstatedir | --localstatedi | --localstated \
1603 | --localstate | --localstat | --localsta | --localst | --locals)
1604 ac_prev=localstatedir ;;
1605 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1606 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1607 localstatedir=$ac_optarg ;;
1609 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1610 ac_prev=mandir ;;
1611 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1612 mandir=$ac_optarg ;;
1614 -nfp | --nfp | --nf)
1615 # Obsolete; use --without-fp.
1616 with_fp=no ;;
1618 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1619 | --no-cr | --no-c | -n)
1620 no_create=yes ;;
1622 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1623 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1624 no_recursion=yes ;;
1626 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1627 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1628 | --oldin | --oldi | --old | --ol | --o)
1629 ac_prev=oldincludedir ;;
1630 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1631 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1632 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1633 oldincludedir=$ac_optarg ;;
1635 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1636 ac_prev=prefix ;;
1637 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1638 prefix=$ac_optarg ;;
1640 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1641 | --program-pre | --program-pr | --program-p)
1642 ac_prev=program_prefix ;;
1643 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1644 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1645 program_prefix=$ac_optarg ;;
1647 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1648 | --program-suf | --program-su | --program-s)
1649 ac_prev=program_suffix ;;
1650 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1651 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1652 program_suffix=$ac_optarg ;;
1654 -program-transform-name | --program-transform-name \
1655 | --program-transform-nam | --program-transform-na \
1656 | --program-transform-n | --program-transform- \
1657 | --program-transform | --program-transfor \
1658 | --program-transfo | --program-transf \
1659 | --program-trans | --program-tran \
1660 | --progr-tra | --program-tr | --program-t)
1661 ac_prev=program_transform_name ;;
1662 -program-transform-name=* | --program-transform-name=* \
1663 | --program-transform-nam=* | --program-transform-na=* \
1664 | --program-transform-n=* | --program-transform-=* \
1665 | --program-transform=* | --program-transfor=* \
1666 | --program-transfo=* | --program-transf=* \
1667 | --program-trans=* | --program-tran=* \
1668 | --progr-tra=* | --program-tr=* | --program-t=*)
1669 program_transform_name=$ac_optarg ;;
1671 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1672 ac_prev=pdfdir ;;
1673 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1674 pdfdir=$ac_optarg ;;
1676 -psdir | --psdir | --psdi | --psd | --ps)
1677 ac_prev=psdir ;;
1678 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1679 psdir=$ac_optarg ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1683 silent=yes ;;
1685 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1686 ac_prev=sbindir ;;
1687 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1688 | --sbi=* | --sb=*)
1689 sbindir=$ac_optarg ;;
1691 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1692 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1693 | --sharedst | --shareds | --shared | --share | --shar \
1694 | --sha | --sh)
1695 ac_prev=sharedstatedir ;;
1696 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1697 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1698 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1699 | --sha=* | --sh=*)
1700 sharedstatedir=$ac_optarg ;;
1702 -site | --site | --sit)
1703 ac_prev=site ;;
1704 -site=* | --site=* | --sit=*)
1705 site=$ac_optarg ;;
1707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1708 ac_prev=srcdir ;;
1709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1710 srcdir=$ac_optarg ;;
1712 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1713 | --syscon | --sysco | --sysc | --sys | --sy)
1714 ac_prev=sysconfdir ;;
1715 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1716 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1717 sysconfdir=$ac_optarg ;;
1719 -target | --target | --targe | --targ | --tar | --ta | --t)
1720 ac_prev=target_alias ;;
1721 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1722 target_alias=$ac_optarg ;;
1724 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1725 verbose=yes ;;
1727 -version | --version | --versio | --versi | --vers | -V)
1728 ac_init_version=: ;;
1730 -with-* | --with-*)
1731 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1732 # Reject names that are not valid shell variable names.
1733 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1734 as_fn_error $? "invalid package name: $ac_useropt"
1735 ac_useropt_orig=$ac_useropt
1736 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1737 case $ac_user_opts in
1739 "with_$ac_useropt"
1740 "*) ;;
1741 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1742 ac_unrecognized_sep=', ';;
1743 esac
1744 eval with_$ac_useropt=\$ac_optarg ;;
1746 -without-* | --without-*)
1747 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1748 # Reject names that are not valid shell variable names.
1749 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1750 as_fn_error $? "invalid package name: $ac_useropt"
1751 ac_useropt_orig=$ac_useropt
1752 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1753 case $ac_user_opts in
1755 "with_$ac_useropt"
1756 "*) ;;
1757 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1758 ac_unrecognized_sep=', ';;
1759 esac
1760 eval with_$ac_useropt=no ;;
1762 --x)
1763 # Obsolete; use --with-x.
1764 with_x=yes ;;
1766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1767 | --x-incl | --x-inc | --x-in | --x-i)
1768 ac_prev=x_includes ;;
1769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1771 x_includes=$ac_optarg ;;
1773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1775 ac_prev=x_libraries ;;
1776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1778 x_libraries=$ac_optarg ;;
1780 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1781 Try \`$0 --help' for more information"
1784 *=*)
1785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1786 # Reject names that are not valid shell variable names.
1787 case $ac_envvar in #(
1788 '' | [0-9]* | *[!_$as_cr_alnum]* )
1789 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1790 esac
1791 eval $ac_envvar=\$ac_optarg
1792 export $ac_envvar ;;
1795 # FIXME: should be removed in autoconf 3.0.
1796 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1798 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1799 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1802 esac
1803 done
1805 if test -n "$ac_prev"; then
1806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1807 as_fn_error $? "missing argument to $ac_option"
1810 if test -n "$ac_unrecognized_opts"; then
1811 case $enable_option_checking in
1812 no) ;;
1813 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1814 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1815 esac
1818 # Check all directory arguments for consistency.
1819 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1820 datadir sysconfdir sharedstatedir localstatedir includedir \
1821 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1822 libdir localedir mandir
1824 eval ac_val=\$$ac_var
1825 # Remove trailing slashes.
1826 case $ac_val in
1827 */ )
1828 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1829 eval $ac_var=\$ac_val;;
1830 esac
1831 # Be sure to have absolute directory names.
1832 case $ac_val in
1833 [\\/$]* | ?:[\\/]* ) continue;;
1834 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1835 esac
1836 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1837 done
1839 # There might be people who depend on the old broken behavior: `$host'
1840 # used to hold the argument of --host etc.
1841 # FIXME: To remove some day.
1842 build=$build_alias
1843 host=$host_alias
1844 target=$target_alias
1846 # FIXME: To remove some day.
1847 if test "x$host_alias" != x; then
1848 if test "x$build_alias" = x; then
1849 cross_compiling=maybe
1850 elif test "x$build_alias" != "x$host_alias"; then
1851 cross_compiling=yes
1855 ac_tool_prefix=
1856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1858 test "$silent" = yes && exec 6>/dev/null
1861 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1862 ac_ls_di=`ls -di .` &&
1863 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1864 as_fn_error $? "working directory cannot be determined"
1865 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1866 as_fn_error $? "pwd does not report name of working directory"
1869 # Find the source files, if location was not specified.
1870 if test -z "$srcdir"; then
1871 ac_srcdir_defaulted=yes
1872 # Try the directory containing this script, then the parent directory.
1873 ac_confdir=`$as_dirname -- "$as_myself" ||
1874 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1875 X"$as_myself" : 'X\(//\)[^/]' \| \
1876 X"$as_myself" : 'X\(//\)$' \| \
1877 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1878 $as_echo X"$as_myself" |
1879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1880 s//\1/
1883 /^X\(\/\/\)[^/].*/{
1884 s//\1/
1887 /^X\(\/\/\)$/{
1888 s//\1/
1891 /^X\(\/\).*/{
1892 s//\1/
1895 s/.*/./; q'`
1896 srcdir=$ac_confdir
1897 if test ! -r "$srcdir/$ac_unique_file"; then
1898 srcdir=..
1900 else
1901 ac_srcdir_defaulted=no
1903 if test ! -r "$srcdir/$ac_unique_file"; then
1904 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1905 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1907 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1908 ac_abs_confdir=`(
1909 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1910 pwd)`
1911 # When building in place, set srcdir=.
1912 if test "$ac_abs_confdir" = "$ac_pwd"; then
1913 srcdir=.
1915 # Remove unnecessary trailing slashes from srcdir.
1916 # Double slashes in file names in object file debugging info
1917 # mess up M-x gdb in Emacs.
1918 case $srcdir in
1919 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1920 esac
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1923 eval ac_env_${ac_var}_value=\$${ac_var}
1924 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1925 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1926 done
1929 # Report the --help message.
1931 if test "$ac_init_help" = "long"; then
1932 # Omit some internal or obsolete options to make the list less imposing.
1933 # This message is too long to be a string in the A/UX 3.1 sh.
1934 cat <<_ACEOF
1935 \`configure' configures Wine 1.7.9 to adapt to many kinds of systems.
1937 Usage: $0 [OPTION]... [VAR=VALUE]...
1939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1940 VAR=VALUE. See below for descriptions of some of the useful variables.
1942 Defaults for the options are specified in brackets.
1944 Configuration:
1945 -h, --help display this help and exit
1946 --help=short display options specific to this package
1947 --help=recursive display the short help of all the included packages
1948 -V, --version display version information and exit
1949 -q, --quiet, --silent do not print \`checking ...' messages
1950 --cache-file=FILE cache test results in FILE [disabled]
1951 -C, --config-cache alias for \`--cache-file=config.cache'
1952 -n, --no-create do not create output files
1953 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1955 Installation directories:
1956 --prefix=PREFIX install architecture-independent files in PREFIX
1957 [$ac_default_prefix]
1958 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1959 [PREFIX]
1961 By default, \`make install' will install all the files in
1962 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1963 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1964 for instance \`--prefix=\$HOME'.
1966 For better control, use the options below.
1968 Fine tuning of the installation directories:
1969 --bindir=DIR user executables [EPREFIX/bin]
1970 --sbindir=DIR system admin executables [EPREFIX/sbin]
1971 --libexecdir=DIR program executables [EPREFIX/libexec]
1972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1975 --libdir=DIR object code libraries [EPREFIX/lib]
1976 --includedir=DIR C header files [PREFIX/include]
1977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1978 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1979 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1980 --infodir=DIR info documentation [DATAROOTDIR/info]
1981 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1982 --mandir=DIR man documentation [DATAROOTDIR/man]
1983 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1984 --htmldir=DIR html documentation [DOCDIR]
1985 --dvidir=DIR dvi documentation [DOCDIR]
1986 --pdfdir=DIR pdf documentation [DOCDIR]
1987 --psdir=DIR ps documentation [DOCDIR]
1988 _ACEOF
1990 cat <<\_ACEOF
1992 X features:
1993 --x-includes=DIR X include files are in DIR
1994 --x-libraries=DIR X library files are in DIR
1996 System types:
1997 --build=BUILD configure for building on BUILD [guessed]
1998 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1999 _ACEOF
2002 if test -n "$ac_init_help"; then
2003 case $ac_init_help in
2004 short | recursive ) echo "Configuration of Wine 1.7.9:";;
2005 esac
2006 cat <<\_ACEOF
2008 Optional Features:
2009 --disable-option-checking ignore unrecognized --enable/--with options
2010 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2011 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2012 --disable-win16 do not include Win16 support
2013 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2014 binaries)
2015 --disable-tests do not build the regression tests
2016 --enable-maintainer-mode
2017 enable maintainer-specific build rules
2018 --disable-largefile omit support for large files
2020 Optional Packages:
2021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2023 --without-alsa do not use the Alsa sound support
2024 --without-capi do not use CAPI (ISDN support)
2025 --without-cms do not use CMS (color management support)
2026 --without-coreaudio do not use the CoreAudio sound support
2027 --without-cups do not use CUPS
2028 --without-curses do not use (n)curses
2029 --without-dbus do not use DBus (dynamic device support)
2030 --without-fontconfig do not use fontconfig
2031 --without-freetype do not use the FreeType library
2032 --without-gettext do not use gettext
2033 --with-gettextpo use the GetTextPO library to rebuild po files
2034 --without-gphoto do not use gphoto (Digital Camera support)
2035 --without-glu do not use the GLU library
2036 --without-gnutls do not use GnuTLS (schannel support)
2037 --without-gsm do not use libgsm (GSM 06.10 codec support)
2038 --without-gstreamer do not use GStreamer (codecs support)
2039 --without-hal do not use HAL (dynamic device support)
2040 --without-jpeg do not use JPEG
2041 --without-ldap do not use LDAP
2042 --without-mpg123 do not use the mpg123 library
2043 --without-netapi do not use the Samba NetAPI library
2044 --without-openal do not use OpenAL
2045 --without-opencl do not use OpenCL
2046 --without-opengl do not use OpenGL
2047 --without-osmesa do not use the OSMesa library
2048 --without-oss do not use the OSS sound support
2049 --without-png do not use PNG
2050 --without-pthread do not use the pthread library
2051 --without-sane do not use SANE (scanner support)
2052 --without-tiff do not use TIFF
2053 --without-v4l do not use v4l1 (v4l support)
2054 --without-xcomposite do not use the Xcomposite extension
2055 --without-xcursor do not use the Xcursor extension
2056 --without-xinerama do not use Xinerama (multi-monitor support)
2057 --without-xinput do not use the Xinput extension
2058 --without-xinput2 do not use the Xinput 2 extension
2059 --without-xml do not use XML
2060 --without-xrandr do not use Xrandr (resolution changes)
2061 --without-xrender do not use the Xrender extension
2062 --without-xshape do not use the Xshape extension
2063 --without-xshm do not use XShm (shared memory extension)
2064 --without-xslt do not use XSLT
2065 --without-xxf86vm do not use XFree video mode extension
2066 --without-zlib do not use Zlib (data compression)
2067 --with-wine-tools=DIR use Wine tools from directory DIR
2068 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2069 --with-x use the X Window System
2071 Some influential environment variables:
2072 CC C compiler command
2073 CFLAGS C compiler flags
2074 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2075 nonstandard directory <lib dir>
2076 LIBS libraries to pass to the linker, e.g. -l<library>
2077 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2078 you have headers in a nonstandard directory <include dir>
2079 CXX C++ compiler command
2080 CXXFLAGS C++ compiler flags
2081 CPP C preprocessor
2082 XMKMF Path to xmkmf, Makefile generator for X Window System
2083 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2084 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2085 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2086 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2087 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2088 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2089 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2090 HAL_LIBS Linker flags for hal, overriding pkg-config
2091 GNUTLS_CFLAGS
2092 C compiler flags for gnutls, overriding pkg-config
2093 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2094 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2095 SANE_LIBS Linker flags for libsane, overriding pkg-config
2096 GPHOTO2_CFLAGS
2097 C compiler flags for libgphoto2, overriding pkg-config
2098 GPHOTO2_LIBS
2099 Linker flags for libgphoto2, overriding pkg-config
2100 GPHOTO2_PORT_CFLAGS
2101 C compiler flags for libgphoto2_port, overriding pkg-config
2102 GPHOTO2_PORT_LIBS
2103 Linker flags for libgphoto2_port, overriding pkg-config
2104 LCMS2_CFLAGS
2105 C compiler flags for lcms2, overriding pkg-config
2106 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2107 FREETYPE_CFLAGS
2108 C compiler flags for freetype2, overriding pkg-config
2109 FREETYPE_LIBS
2110 Linker flags for freetype2, overriding pkg-config
2111 GSTREAMER_CFLAGS
2112 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2113 GSTREAMER_LIBS
2114 Linker flags for gstreamer-app-0.10, overriding pkg-config
2115 CAPI20_CFLAGS
2116 C compiler flags for capi20, overriding pkg-config
2117 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2118 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2119 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2120 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2121 PNG_LIBS Linker flags for libpng, overriding pkg-config
2122 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2123 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2124 MPG123_CFLAGS
2125 C compiler flags for libmpg123, overriding pkg-config
2126 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2128 Use these variables to override the choices made by `configure' or to help
2129 it to find libraries and programs with nonstandard names/locations.
2131 Report bugs to <wine-devel@winehq.org>.
2132 Wine home page: <http://www.winehq.org>.
2133 _ACEOF
2134 ac_status=$?
2137 if test "$ac_init_help" = "recursive"; then
2138 # If there are subdirs, report their specific --help.
2139 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2140 test -d "$ac_dir" ||
2141 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2142 continue
2143 ac_builddir=.
2145 case "$ac_dir" in
2146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2148 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2149 # A ".." for each directory in $ac_dir_suffix.
2150 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2151 case $ac_top_builddir_sub in
2152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2154 esac ;;
2155 esac
2156 ac_abs_top_builddir=$ac_pwd
2157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2158 # for backward compatibility:
2159 ac_top_builddir=$ac_top_build_prefix
2161 case $srcdir in
2162 .) # We are building in place.
2163 ac_srcdir=.
2164 ac_top_srcdir=$ac_top_builddir_sub
2165 ac_abs_top_srcdir=$ac_pwd ;;
2166 [\\/]* | ?:[\\/]* ) # Absolute name.
2167 ac_srcdir=$srcdir$ac_dir_suffix;
2168 ac_top_srcdir=$srcdir
2169 ac_abs_top_srcdir=$srcdir ;;
2170 *) # Relative name.
2171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2172 ac_top_srcdir=$ac_top_build_prefix$srcdir
2173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2174 esac
2175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2177 cd "$ac_dir" || { ac_status=$?; continue; }
2178 # Check for guested configure.
2179 if test -f "$ac_srcdir/configure.gnu"; then
2180 echo &&
2181 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2182 elif test -f "$ac_srcdir/configure"; then
2183 echo &&
2184 $SHELL "$ac_srcdir/configure" --help=recursive
2185 else
2186 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2187 fi || ac_status=$?
2188 cd "$ac_pwd" || { ac_status=$?; break; }
2189 done
2192 test -n "$ac_init_help" && exit $ac_status
2193 if $ac_init_version; then
2194 cat <<\_ACEOF
2195 Wine configure 1.7.9
2196 generated by GNU Autoconf 2.69
2198 Copyright (C) 2012 Free Software Foundation, Inc.
2199 This configure script is free software; the Free Software Foundation
2200 gives unlimited permission to copy, distribute and modify it.
2201 _ACEOF
2202 exit
2205 ## ------------------------ ##
2206 ## Autoconf initialization. ##
2207 ## ------------------------ ##
2209 # ac_fn_c_try_compile LINENO
2210 # --------------------------
2211 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2212 ac_fn_c_try_compile ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 rm -f conftest.$ac_objext
2216 if { { ac_try="$ac_compile"
2217 case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2220 esac
2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222 $as_echo "$ac_try_echo"; } >&5
2223 (eval "$ac_compile") 2>conftest.err
2224 ac_status=$?
2225 if test -s conftest.err; then
2226 grep -v '^ *+' conftest.err >conftest.er1
2227 cat conftest.er1 >&5
2228 mv -f conftest.er1 conftest.err
2230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2231 test $ac_status = 0; } && {
2232 test -z "$ac_c_werror_flag" ||
2233 test ! -s conftest.err
2234 } && test -s conftest.$ac_objext; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2240 ac_retval=1
2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 as_fn_set_status $ac_retval
2245 } # ac_fn_c_try_compile
2247 # ac_fn_cxx_try_compile LINENO
2248 # ----------------------------
2249 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2250 ac_fn_cxx_try_compile ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 rm -f conftest.$ac_objext
2254 if { { ac_try="$ac_compile"
2255 case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258 esac
2259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 $as_echo "$ac_try_echo"; } >&5
2261 (eval "$ac_compile") 2>conftest.err
2262 ac_status=$?
2263 if test -s conftest.err; then
2264 grep -v '^ *+' conftest.err >conftest.er1
2265 cat conftest.er1 >&5
2266 mv -f conftest.er1 conftest.err
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } && {
2270 test -z "$ac_cxx_werror_flag" ||
2271 test ! -s conftest.err
2272 } && test -s conftest.$ac_objext; then :
2273 ac_retval=0
2274 else
2275 $as_echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2278 ac_retval=1
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281 as_fn_set_status $ac_retval
2283 } # ac_fn_cxx_try_compile
2285 # ac_fn_c_try_link LINENO
2286 # -----------------------
2287 # Try to link conftest.$ac_ext, and return whether this succeeded.
2288 ac_fn_c_try_link ()
2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291 rm -f conftest.$ac_objext conftest$ac_exeext
2292 if { { ac_try="$ac_link"
2293 case "(($ac_try" in
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2296 esac
2297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2298 $as_echo "$ac_try_echo"; } >&5
2299 (eval "$ac_link") 2>conftest.err
2300 ac_status=$?
2301 if test -s conftest.err; then
2302 grep -v '^ *+' conftest.err >conftest.er1
2303 cat conftest.er1 >&5
2304 mv -f conftest.er1 conftest.err
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } && {
2308 test -z "$ac_c_werror_flag" ||
2309 test ! -s conftest.err
2310 } && test -s conftest$ac_exeext && {
2311 test "$cross_compiling" = yes ||
2312 test -x conftest$ac_exeext
2313 }; then :
2314 ac_retval=0
2315 else
2316 $as_echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2319 ac_retval=1
2321 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2322 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2323 # interfere with the next link command; also delete a directory that is
2324 # left behind by Apple's compiler. We do this before executing the actions.
2325 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327 as_fn_set_status $ac_retval
2329 } # ac_fn_c_try_link
2331 # ac_fn_c_try_cpp LINENO
2332 # ----------------------
2333 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_c_try_cpp ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 if { { ac_try="$ac_cpp conftest.$ac_ext"
2338 case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341 esac
2342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343 $as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2345 ac_status=$?
2346 if test -s conftest.err; then
2347 grep -v '^ *+' conftest.err >conftest.er1
2348 cat conftest.er1 >&5
2349 mv -f conftest.er1 conftest.err
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } > conftest.i && {
2353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2354 test ! -s conftest.err
2355 }; then :
2356 ac_retval=0
2357 else
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2361 ac_retval=1
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 as_fn_set_status $ac_retval
2366 } # ac_fn_c_try_cpp
2368 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2369 # -------------------------------------------------------
2370 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2371 # the include files in INCLUDES and setting the cache variable VAR
2372 # accordingly.
2373 ac_fn_c_check_header_mongrel ()
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 if eval \${$3+:} false; then :
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378 $as_echo_n "checking for $2... " >&6; }
2379 if eval \${$3+:} false; then :
2380 $as_echo_n "(cached) " >&6
2382 eval ac_res=\$$3
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2385 else
2386 # Is the header compilable?
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2388 $as_echo_n "checking $2 usability... " >&6; }
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2392 #include <$2>
2393 _ACEOF
2394 if ac_fn_c_try_compile "$LINENO"; then :
2395 ac_header_compiler=yes
2396 else
2397 ac_header_compiler=no
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2401 $as_echo "$ac_header_compiler" >&6; }
2403 # Is the header present?
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2405 $as_echo_n "checking $2 presence... " >&6; }
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2408 #include <$2>
2409 _ACEOF
2410 if ac_fn_c_try_cpp "$LINENO"; then :
2411 ac_header_preproc=yes
2412 else
2413 ac_header_preproc=no
2415 rm -f conftest.err conftest.i conftest.$ac_ext
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2417 $as_echo "$ac_header_preproc" >&6; }
2419 # So? What about this header?
2420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2421 yes:no: )
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2423 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2425 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2427 no:yes:* )
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2429 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2431 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2433 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2435 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2437 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2438 ( $as_echo "## ------------------------------------ ##
2439 ## Report this to wine-devel@winehq.org ##
2440 ## ------------------------------------ ##"
2441 ) | sed "s/^/$as_me: WARNING: /" >&2
2443 esac
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2445 $as_echo_n "checking for $2... " >&6; }
2446 if eval \${$3+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 eval "$3=\$ac_header_compiler"
2451 eval ac_res=\$$3
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457 } # ac_fn_c_check_header_mongrel
2459 # ac_fn_c_try_run LINENO
2460 # ----------------------
2461 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2462 # that executables *can* be run.
2463 ac_fn_c_try_run ()
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 if { { ac_try="$ac_link"
2467 case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2470 esac
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473 (eval "$ac_link") 2>&5
2474 ac_status=$?
2475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2477 { { case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480 esac
2481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482 $as_echo "$ac_try_echo"; } >&5
2483 (eval "$ac_try") 2>&5
2484 ac_status=$?
2485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2486 test $ac_status = 0; }; }; then :
2487 ac_retval=0
2488 else
2489 $as_echo "$as_me: program exited with status $ac_status" >&5
2490 $as_echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2493 ac_retval=$ac_status
2495 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2497 as_fn_set_status $ac_retval
2499 } # ac_fn_c_try_run
2501 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2502 # -------------------------------------------------------
2503 # Tests whether HEADER exists and can be compiled using the include files in
2504 # INCLUDES, setting the cache variable VAR accordingly.
2505 ac_fn_c_check_header_compile ()
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2509 $as_echo_n "checking for $2... " >&6; }
2510 if eval \${$3+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2516 #include <$2>
2517 _ACEOF
2518 if ac_fn_c_try_compile "$LINENO"; then :
2519 eval "$3=yes"
2520 else
2521 eval "$3=no"
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 eval ac_res=\$$3
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2530 } # ac_fn_c_check_header_compile
2532 # ac_fn_c_check_func LINENO FUNC VAR
2533 # ----------------------------------
2534 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2535 ac_fn_c_check_func ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if eval \${$3+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2545 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2547 #define $2 innocuous_$2
2549 /* System header to define __stub macros and hopefully few prototypes,
2550 which can conflict with char $2 (); below.
2551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2552 <limits.h> exists even on freestanding compilers. */
2554 #ifdef __STDC__
2555 # include <limits.h>
2556 #else
2557 # include <assert.h>
2558 #endif
2560 #undef $2
2562 /* Override any GCC internal prototype to avoid an error.
2563 Use char because int might match the return type of a GCC
2564 builtin and then its argument prototype would still apply. */
2565 #ifdef __cplusplus
2566 extern "C"
2567 #endif
2568 char $2 ();
2569 /* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572 #if defined __stub_$2 || defined __stub___$2
2573 choke me
2574 #endif
2577 main ()
2579 return $2 ();
2581 return 0;
2583 _ACEOF
2584 if ac_fn_c_try_link "$LINENO"; then :
2585 eval "$3=yes"
2586 else
2587 eval "$3=no"
2589 rm -f core conftest.err conftest.$ac_objext \
2590 conftest$ac_exeext conftest.$ac_ext
2592 eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597 } # ac_fn_c_check_func
2599 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2600 # ----------------------------------------------------
2601 # Tries to find if the field MEMBER exists in type AGGR, after including
2602 # INCLUDES, setting cache variable VAR accordingly.
2603 ac_fn_c_check_member ()
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2607 $as_echo_n "checking for $2.$3... " >&6; }
2608 if eval \${$4+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2615 main ()
2617 static $2 ac_aggr;
2618 if (ac_aggr.$3)
2619 return 0;
2621 return 0;
2623 _ACEOF
2624 if ac_fn_c_try_compile "$LINENO"; then :
2625 eval "$4=yes"
2626 else
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h. */
2631 main ()
2633 static $2 ac_aggr;
2634 if (sizeof ac_aggr.$3)
2635 return 0;
2637 return 0;
2639 _ACEOF
2640 if ac_fn_c_try_compile "$LINENO"; then :
2641 eval "$4=yes"
2642 else
2643 eval "$4=no"
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 eval ac_res=\$$4
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2651 $as_echo "$ac_res" >&6; }
2652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2654 } # ac_fn_c_check_member
2656 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2657 # -------------------------------------------
2658 # Tests whether TYPE exists after having included INCLUDES, setting cache
2659 # variable VAR accordingly.
2660 ac_fn_c_check_type ()
2662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2664 $as_echo_n "checking for $2... " >&6; }
2665 if eval \${$3+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 eval "$3=no"
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2673 main ()
2675 if (sizeof ($2))
2676 return 0;
2678 return 0;
2680 _ACEOF
2681 if ac_fn_c_try_compile "$LINENO"; then :
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2686 main ()
2688 if (sizeof (($2)))
2689 return 0;
2691 return 0;
2693 _ACEOF
2694 if ac_fn_c_try_compile "$LINENO"; then :
2696 else
2697 eval "$3=yes"
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 eval ac_res=\$$3
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2705 $as_echo "$ac_res" >&6; }
2706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2708 } # ac_fn_c_check_type
2709 cat >config.log <<_ACEOF
2710 This file contains any messages produced by compilers while
2711 running configure, to aid debugging if configure makes a mistake.
2713 It was created by Wine $as_me 1.7.9, which was
2714 generated by GNU Autoconf 2.69. Invocation command line was
2716 $ $0 $@
2718 _ACEOF
2719 exec 5>>config.log
2721 cat <<_ASUNAME
2722 ## --------- ##
2723 ## Platform. ##
2724 ## --------- ##
2726 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2727 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2728 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2729 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2730 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2732 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2733 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2735 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2736 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2737 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2738 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2739 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2740 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2741 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2743 _ASUNAME
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 $as_echo "PATH: $as_dir"
2751 done
2752 IFS=$as_save_IFS
2754 } >&5
2756 cat >&5 <<_ACEOF
2759 ## ----------- ##
2760 ## Core tests. ##
2761 ## ----------- ##
2763 _ACEOF
2766 # Keep a trace of the command line.
2767 # Strip out --no-create and --no-recursion so they do not pile up.
2768 # Strip out --silent because we don't want to record it for future runs.
2769 # Also quote any args containing shell meta-characters.
2770 # Make two passes to allow for proper duplicate-argument suppression.
2771 ac_configure_args=
2772 ac_configure_args0=
2773 ac_configure_args1=
2774 ac_must_keep_next=false
2775 for ac_pass in 1 2
2777 for ac_arg
2779 case $ac_arg in
2780 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2782 | -silent | --silent | --silen | --sile | --sil)
2783 continue ;;
2784 *\'*)
2785 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2786 esac
2787 case $ac_pass in
2788 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2790 as_fn_append ac_configure_args1 " '$ac_arg'"
2791 if test $ac_must_keep_next = true; then
2792 ac_must_keep_next=false # Got value, back to normal.
2793 else
2794 case $ac_arg in
2795 *=* | --config-cache | -C | -disable-* | --disable-* \
2796 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2797 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2798 | -with-* | --with-* | -without-* | --without-* | --x)
2799 case "$ac_configure_args0 " in
2800 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2801 esac
2803 -* ) ac_must_keep_next=true ;;
2804 esac
2806 as_fn_append ac_configure_args " '$ac_arg'"
2808 esac
2809 done
2810 done
2811 { ac_configure_args0=; unset ac_configure_args0;}
2812 { ac_configure_args1=; unset ac_configure_args1;}
2814 # When interrupted or exit'd, cleanup temporary files, and complete
2815 # config.log. We remove comments because anyway the quotes in there
2816 # would cause problems or look ugly.
2817 # WARNING: Use '\'' to represent an apostrophe within the trap.
2818 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2819 trap 'exit_status=$?
2820 # Save into config.log some information that might help in debugging.
2822 echo
2824 $as_echo "## ---------------- ##
2825 ## Cache variables. ##
2826 ## ---------------- ##"
2827 echo
2828 # The following way of writing the cache mishandles newlines in values,
2830 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2831 eval ac_val=\$$ac_var
2832 case $ac_val in #(
2833 *${as_nl}*)
2834 case $ac_var in #(
2835 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2836 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2837 esac
2838 case $ac_var in #(
2839 _ | IFS | as_nl) ;; #(
2840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2841 *) { eval $ac_var=; unset $ac_var;} ;;
2842 esac ;;
2843 esac
2844 done
2845 (set) 2>&1 |
2846 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2847 *${as_nl}ac_space=\ *)
2848 sed -n \
2849 "s/'\''/'\''\\\\'\'''\''/g;
2850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2851 ;; #(
2853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2855 esac |
2856 sort
2858 echo
2860 $as_echo "## ----------------- ##
2861 ## Output variables. ##
2862 ## ----------------- ##"
2863 echo
2864 for ac_var in $ac_subst_vars
2866 eval ac_val=\$$ac_var
2867 case $ac_val in
2868 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2869 esac
2870 $as_echo "$ac_var='\''$ac_val'\''"
2871 done | sort
2872 echo
2874 if test -n "$ac_subst_files"; then
2875 $as_echo "## ------------------- ##
2876 ## File substitutions. ##
2877 ## ------------------- ##"
2878 echo
2879 for ac_var in $ac_subst_files
2881 eval ac_val=\$$ac_var
2882 case $ac_val in
2883 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2884 esac
2885 $as_echo "$ac_var='\''$ac_val'\''"
2886 done | sort
2887 echo
2890 if test -s confdefs.h; then
2891 $as_echo "## ----------- ##
2892 ## confdefs.h. ##
2893 ## ----------- ##"
2894 echo
2895 cat confdefs.h
2896 echo
2898 test "$ac_signal" != 0 &&
2899 $as_echo "$as_me: caught signal $ac_signal"
2900 $as_echo "$as_me: exit $exit_status"
2901 } >&5
2902 rm -f core *.core core.conftest.* &&
2903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2904 exit $exit_status
2906 for ac_signal in 1 2 13 15; do
2907 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2908 done
2909 ac_signal=0
2911 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2912 rm -f -r conftest* confdefs.h
2914 $as_echo "/* confdefs.h */" > confdefs.h
2916 # Predefined preprocessor variables.
2918 cat >>confdefs.h <<_ACEOF
2919 #define PACKAGE_NAME "$PACKAGE_NAME"
2920 _ACEOF
2922 cat >>confdefs.h <<_ACEOF
2923 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2924 _ACEOF
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2928 _ACEOF
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE_STRING "$PACKAGE_STRING"
2932 _ACEOF
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2936 _ACEOF
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE_URL "$PACKAGE_URL"
2940 _ACEOF
2943 # Let the site file select an alternate cache file if it wants to.
2944 # Prefer an explicitly selected file to automatically selected ones.
2945 ac_site_file1=NONE
2946 ac_site_file2=NONE
2947 if test -n "$CONFIG_SITE"; then
2948 # We do not want a PATH search for config.site.
2949 case $CONFIG_SITE in #((
2950 -*) ac_site_file1=./$CONFIG_SITE;;
2951 */*) ac_site_file1=$CONFIG_SITE;;
2952 *) ac_site_file1=./$CONFIG_SITE;;
2953 esac
2954 elif test "x$prefix" != xNONE; then
2955 ac_site_file1=$prefix/share/config.site
2956 ac_site_file2=$prefix/etc/config.site
2957 else
2958 ac_site_file1=$ac_default_prefix/share/config.site
2959 ac_site_file2=$ac_default_prefix/etc/config.site
2961 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2963 test "x$ac_site_file" = xNONE && continue
2964 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2966 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2967 sed 's/^/| /' "$ac_site_file" >&5
2968 . "$ac_site_file" \
2969 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 as_fn_error $? "failed to load site script $ac_site_file
2972 See \`config.log' for more details" "$LINENO" 5; }
2974 done
2976 if test -r "$cache_file"; then
2977 # Some versions of bash will fail to source /dev/null (special files
2978 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2979 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2981 $as_echo "$as_me: loading cache $cache_file" >&6;}
2982 case $cache_file in
2983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2984 *) . "./$cache_file";;
2985 esac
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2989 $as_echo "$as_me: creating cache $cache_file" >&6;}
2990 >$cache_file
2993 # Check that the precious variables saved in the cache have kept the same
2994 # value.
2995 ac_cache_corrupted=false
2996 for ac_var in $ac_precious_vars; do
2997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2998 eval ac_new_set=\$ac_env_${ac_var}_set
2999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3000 eval ac_new_val=\$ac_env_${ac_var}_value
3001 case $ac_old_set,$ac_new_set in
3002 set,)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3004 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3005 ac_cache_corrupted=: ;;
3006 ,set)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3008 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3009 ac_cache_corrupted=: ;;
3010 ,);;
3012 if test "x$ac_old_val" != "x$ac_new_val"; then
3013 # differences in whitespace do not lead to failure.
3014 ac_old_val_w=`echo x $ac_old_val`
3015 ac_new_val_w=`echo x $ac_new_val`
3016 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3018 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3019 ac_cache_corrupted=:
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3022 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3023 eval $ac_var=\$ac_old_val
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3026 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3028 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3029 fi;;
3030 esac
3031 # Pass precious variables to config.status.
3032 if test "$ac_new_set" = set; then
3033 case $ac_new_val in
3034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3035 *) ac_arg=$ac_var=$ac_new_val ;;
3036 esac
3037 case " $ac_configure_args " in
3038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3039 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3040 esac
3042 done
3043 if $ac_cache_corrupted; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3047 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3048 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3050 ## -------------------- ##
3051 ## Main body of script. ##
3052 ## -------------------- ##
3054 ac_ext=c
3055 ac_cpp='$CPP $CPPFLAGS'
3056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 ac_config_headers="$ac_config_headers include/config.h"
3064 ac_aux_dir=
3065 for ac_dir in tools "$srcdir"/tools; do
3066 if test -f "$ac_dir/install-sh"; then
3067 ac_aux_dir=$ac_dir
3068 ac_install_sh="$ac_aux_dir/install-sh -c"
3069 break
3070 elif test -f "$ac_dir/install.sh"; then
3071 ac_aux_dir=$ac_dir
3072 ac_install_sh="$ac_aux_dir/install.sh -c"
3073 break
3074 elif test -f "$ac_dir/shtool"; then
3075 ac_aux_dir=$ac_dir
3076 ac_install_sh="$ac_aux_dir/shtool install -c"
3077 break
3079 done
3080 if test -z "$ac_aux_dir"; then
3081 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3084 # These three variables are undocumented and unsupported,
3085 # and are intended to be withdrawn in a future Autoconf release.
3086 # They can cause serious problems if a builder's source tree is in a directory
3087 # whose full name contains unusual characters.
3088 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3089 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3090 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3094 libwine_version="1.0"
3098 # Check whether --enable-win16 was given.
3099 if test "${enable_win16+set}" = set; then :
3100 enableval=$enable_win16;
3103 # Check whether --enable-win64 was given.
3104 if test "${enable_win64+set}" = set; then :
3105 enableval=$enable_win64;
3108 # Check whether --enable-tests was given.
3109 if test "${enable_tests+set}" = set; then :
3110 enableval=$enable_tests;
3113 # Check whether --enable-maintainer-mode was given.
3114 if test "${enable_maintainer_mode+set}" = set; then :
3115 enableval=$enable_maintainer_mode;
3120 # Check whether --with-alsa was given.
3121 if test "${with_alsa+set}" = set; then :
3122 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3126 # Check whether --with-capi was given.
3127 if test "${with_capi+set}" = set; then :
3128 withval=$with_capi;
3132 # Check whether --with-cms was given.
3133 if test "${with_cms+set}" = set; then :
3134 withval=$with_cms;
3138 # Check whether --with-coreaudio was given.
3139 if test "${with_coreaudio+set}" = set; then :
3140 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3144 # Check whether --with-cups was given.
3145 if test "${with_cups+set}" = set; then :
3146 withval=$with_cups;
3150 # Check whether --with-curses was given.
3151 if test "${with_curses+set}" = set; then :
3152 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3156 # Check whether --with-dbus was given.
3157 if test "${with_dbus+set}" = set; then :
3158 withval=$with_dbus;
3162 # Check whether --with-fontconfig was given.
3163 if test "${with_fontconfig+set}" = set; then :
3164 withval=$with_fontconfig;
3168 # Check whether --with-freetype was given.
3169 if test "${with_freetype+set}" = set; then :
3170 withval=$with_freetype;
3174 # Check whether --with-gettext was given.
3175 if test "${with_gettext+set}" = set; then :
3176 withval=$with_gettext;
3180 # Check whether --with-gettextpo was given.
3181 if test "${with_gettextpo+set}" = set; then :
3182 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3186 # Check whether --with-gphoto was given.
3187 if test "${with_gphoto+set}" = set; then :
3188 withval=$with_gphoto;
3192 # Check whether --with-glu was given.
3193 if test "${with_glu+set}" = set; then :
3194 withval=$with_glu;
3198 # Check whether --with-gnutls was given.
3199 if test "${with_gnutls+set}" = set; then :
3200 withval=$with_gnutls;
3204 # Check whether --with-gsm was given.
3205 if test "${with_gsm+set}" = set; then :
3206 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3210 # Check whether --with-gstreamer was given.
3211 if test "${with_gstreamer+set}" = set; then :
3212 withval=$with_gstreamer;
3216 # Check whether --with-hal was given.
3217 if test "${with_hal+set}" = set; then :
3218 withval=$with_hal;
3222 # Check whether --with-jpeg was given.
3223 if test "${with_jpeg+set}" = set; then :
3224 withval=$with_jpeg;
3228 # Check whether --with-ldap was given.
3229 if test "${with_ldap+set}" = set; then :
3230 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3234 # Check whether --with-mpg123 was given.
3235 if test "${with_mpg123+set}" = set; then :
3236 withval=$with_mpg123;
3240 # Check whether --with-netapi was given.
3241 if test "${with_netapi+set}" = set; then :
3242 withval=$with_netapi;
3246 # Check whether --with-openal was given.
3247 if test "${with_openal+set}" = set; then :
3248 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3252 # Check whether --with-opencl was given.
3253 if test "${with_opencl+set}" = set; then :
3254 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3258 # Check whether --with-opengl was given.
3259 if test "${with_opengl+set}" = set; then :
3260 withval=$with_opengl;
3264 # Check whether --with-osmesa was given.
3265 if test "${with_osmesa+set}" = set; then :
3266 withval=$with_osmesa;
3270 # Check whether --with-oss was given.
3271 if test "${with_oss+set}" = set; then :
3272 withval=$with_oss;
3276 # Check whether --with-png was given.
3277 if test "${with_png+set}" = set; then :
3278 withval=$with_png;
3282 # Check whether --with-pthread was given.
3283 if test "${with_pthread+set}" = set; then :
3284 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3288 # Check whether --with-sane was given.
3289 if test "${with_sane+set}" = set; then :
3290 withval=$with_sane;
3294 # Check whether --with-tiff was given.
3295 if test "${with_tiff+set}" = set; then :
3296 withval=$with_tiff;
3300 # Check whether --with-v4l was given.
3301 if test "${with_v4l+set}" = set; then :
3302 withval=$with_v4l;
3306 # Check whether --with-xcomposite was given.
3307 if test "${with_xcomposite+set}" = set; then :
3308 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3312 # Check whether --with-xcursor was given.
3313 if test "${with_xcursor+set}" = set; then :
3314 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3318 # Check whether --with-xinerama was given.
3319 if test "${with_xinerama+set}" = set; then :
3320 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3324 # Check whether --with-xinput was given.
3325 if test "${with_xinput+set}" = set; then :
3326 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3330 # Check whether --with-xinput2 was given.
3331 if test "${with_xinput2+set}" = set; then :
3332 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3336 # Check whether --with-xml was given.
3337 if test "${with_xml+set}" = set; then :
3338 withval=$with_xml;
3342 # Check whether --with-xrandr was given.
3343 if test "${with_xrandr+set}" = set; then :
3344 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3348 # Check whether --with-xrender was given.
3349 if test "${with_xrender+set}" = set; then :
3350 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3354 # Check whether --with-xshape was given.
3355 if test "${with_xshape+set}" = set; then :
3356 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3360 # Check whether --with-xshm was given.
3361 if test "${with_xshm+set}" = set; then :
3362 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3366 # Check whether --with-xslt was given.
3367 if test "${with_xslt+set}" = set; then :
3368 withval=$with_xslt;
3372 # Check whether --with-xxf86vm was given.
3373 if test "${with_xxf86vm+set}" = set; then :
3374 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
3378 # Check whether --with-zlib was given.
3379 if test "${with_zlib+set}" = set; then :
3380 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3385 # Check whether --with-wine-tools was given.
3386 if test "${with_wine_tools+set}" = set; then :
3387 withval=$with_wine_tools;
3391 # Check whether --with-wine64 was given.
3392 if test "${with_wine64+set}" = set; then :
3393 withval=$with_wine64;
3397 # Make sure we can run config.sub.
3398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3399 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3402 $as_echo_n "checking build system type... " >&6; }
3403 if ${ac_cv_build+:} false; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 ac_build_alias=$build_alias
3407 test "x$ac_build_alias" = x &&
3408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3409 test "x$ac_build_alias" = x &&
3410 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3416 $as_echo "$ac_cv_build" >&6; }
3417 case $ac_cv_build in
3418 *-*-*) ;;
3419 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3420 esac
3421 build=$ac_cv_build
3422 ac_save_IFS=$IFS; IFS='-'
3423 set x $ac_cv_build
3424 shift
3425 build_cpu=$1
3426 build_vendor=$2
3427 shift; shift
3428 # Remember, the first character of IFS is used to create $*,
3429 # except with old shells:
3430 build_os=$*
3431 IFS=$ac_save_IFS
3432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3436 $as_echo_n "checking host system type... " >&6; }
3437 if ${ac_cv_host+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test "x$host_alias" = x; then
3441 ac_cv_host=$ac_cv_build
3442 else
3443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3449 $as_echo "$ac_cv_host" >&6; }
3450 case $ac_cv_host in
3451 *-*-*) ;;
3452 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3453 esac
3454 host=$ac_cv_host
3455 ac_save_IFS=$IFS; IFS='-'
3456 set x $ac_cv_host
3457 shift
3458 host_cpu=$1
3459 host_vendor=$2
3460 shift; shift
3461 # Remember, the first character of IFS is used to create $*,
3462 # except with old shells:
3463 host_os=$*
3464 IFS=$ac_save_IFS
3465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3469 case "$srcdir" in
3470 .) ;;
3471 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3472 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3473 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3474 fi ;;
3475 esac
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3479 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3480 set x ${MAKE-make}
3481 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3482 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 cat >conftest.make <<\_ACEOF
3486 SHELL = /bin/sh
3487 all:
3488 @echo '@@@%%%=$(MAKE)=@@@%%%'
3489 _ACEOF
3490 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3492 *@@@%%%=?*=@@@%%%*)
3493 eval ac_cv_prog_make_${ac_make}_set=yes;;
3495 eval ac_cv_prog_make_${ac_make}_set=no;;
3496 esac
3497 rm -f conftest.make
3499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 $as_echo "yes" >&6; }
3502 SET_MAKE=
3503 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 SET_MAKE="MAKE=${MAKE-make}"
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if ${ac_cv_prog_CC+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3536 done
3537 done
3538 IFS=$as_save_IFS
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3546 else
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3553 if test -z "$ac_cv_prog_CC"; then
3554 ac_ct_CC=$CC
3555 # Extract the first word of "gcc", so it can be a program name with args.
3556 set dummy gcc; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572 ac_cv_prog_ac_ct_CC="gcc"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3576 done
3577 done
3578 IFS=$as_save_IFS
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3585 $as_echo "$ac_ct_CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600 CC=$ac_ct_CC
3602 else
3603 CC="$ac_cv_prog_CC"
3606 if test -z "$CC"; then
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}cc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_CC+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_CC="${ac_tool_prefix}cc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3629 done
3630 done
3631 IFS=$as_save_IFS
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 # Extract the first word of "cc", so it can be a program name with args.
3649 set dummy cc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if ${ac_cv_prog_CC+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 ac_prog_rejected=no
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3667 ac_prog_rejected=yes
3668 continue
3670 ac_cv_prog_CC="cc"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3674 done
3675 done
3676 IFS=$as_save_IFS
3678 if test $ac_prog_rejected = yes; then
3679 # We found a bogon in the path, so make sure we never use it.
3680 set dummy $ac_cv_prog_CC
3681 shift
3682 if test $# != 0; then
3683 # We chose a different compiler from the bogus one.
3684 # However, it has the same basename, so the bogon will be chosen
3685 # first if we set CC to just the basename; use the full file name.
3686 shift
3687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3703 if test -z "$CC"; then
3704 if test -n "$ac_tool_prefix"; then
3705 for ac_prog in cl.exe
3707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 break 2
3728 done
3729 done
3730 IFS=$as_save_IFS
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3738 else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3744 test -n "$CC" && break
3745 done
3747 if test -z "$CC"; then
3748 ac_ct_CC=$CC
3749 for ac_prog in cl.exe
3751 # Extract the first word of "$ac_prog", so it can be a program name with args.
3752 set dummy $ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 if test -n "$ac_ct_CC"; then
3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 ac_cv_prog_ac_ct_CC="$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3772 done
3773 done
3774 IFS=$as_save_IFS
3778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3781 $as_echo "$ac_ct_CC" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3788 test -n "$ac_ct_CC" && break
3789 done
3791 if test "x$ac_ct_CC" = x; then
3792 CC=""
3793 else
3794 case $cross_compiling:$ac_tool_warned in
3795 yes:)
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798 ac_tool_warned=yes ;;
3799 esac
3800 CC=$ac_ct_CC
3807 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error $? "no acceptable C compiler found in \$PATH
3810 See \`config.log' for more details" "$LINENO" 5; }
3812 # Provide some information about the compiler.
3813 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3814 set X $ac_compile
3815 ac_compiler=$2
3816 for ac_option in --version -v -V -qversion; do
3817 { { ac_try="$ac_compiler $ac_option >&5"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3825 ac_status=$?
3826 if test -s conftest.err; then
3827 sed '10a\
3828 ... rest of stderr output deleted ...
3829 10q' conftest.err >conftest.er1
3830 cat conftest.er1 >&5
3832 rm -f conftest.er1 conftest.err
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }
3835 done
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3841 main ()
3845 return 0;
3847 _ACEOF
3848 ac_clean_files_save=$ac_clean_files
3849 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3850 # Try to create an executable without -o first, disregard a.out.
3851 # It will help us diagnose broken compilers, and finding out an intuition
3852 # of exeext.
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3854 $as_echo_n "checking whether the C compiler works... " >&6; }
3855 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3857 # The possible output files:
3858 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3860 ac_rmfiles=
3861 for ac_file in $ac_files
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3866 esac
3867 done
3868 rm -f $ac_rmfiles
3870 if { { ac_try="$ac_link_default"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_link_default") 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
3881 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3882 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3883 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3884 # so that the user can short-circuit this test for compilers unknown to
3885 # Autoconf.
3886 for ac_file in $ac_files ''
3888 test -f "$ac_file" || continue
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3892 [ab].out )
3893 # We found the default executable, but exeext='' is most
3894 # certainly right.
3895 break;;
3896 *.* )
3897 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3898 then :; else
3899 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3901 # We set ac_cv_exeext here because the later test for it is not
3902 # safe: cross compilers may not add the suffix if given an `-o'
3903 # argument, so we may need to know it at that point already.
3904 # Even if this section looks crufty: it has the advantage of
3905 # actually working.
3906 break;;
3908 break;;
3909 esac
3910 done
3911 test "$ac_cv_exeext" = no && ac_cv_exeext=
3913 else
3914 ac_file=''
3916 if test -z "$ac_file"; then :
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3919 $as_echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 as_fn_error 77 "C compiler cannot create executables
3925 See \`config.log' for more details" "$LINENO" 5; }
3926 else
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3928 $as_echo "yes" >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3931 $as_echo_n "checking for C compiler default output file name... " >&6; }
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3933 $as_echo "$ac_file" >&6; }
3934 ac_exeext=$ac_cv_exeext
3936 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3937 ac_clean_files=$ac_clean_files_save
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3939 $as_echo_n "checking for suffix of executables... " >&6; }
3940 if { { ac_try="$ac_link"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }; then :
3951 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3952 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3953 # work properly (i.e., refer to `conftest.exe'), while it won't with
3954 # `rm'.
3955 for ac_file in conftest.exe conftest conftest.*; do
3956 test -f "$ac_file" || continue
3957 case $ac_file in
3958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3959 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 break;;
3961 * ) break;;
3962 esac
3963 done
3964 else
3965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3967 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3968 See \`config.log' for more details" "$LINENO" 5; }
3970 rm -f conftest conftest$ac_cv_exeext
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3972 $as_echo "$ac_cv_exeext" >&6; }
3974 rm -f conftest.$ac_ext
3975 EXEEXT=$ac_cv_exeext
3976 ac_exeext=$EXEEXT
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979 #include <stdio.h>
3981 main ()
3983 FILE *f = fopen ("conftest.out", "w");
3984 return ferror (f) || fclose (f) != 0;
3987 return 0;
3989 _ACEOF
3990 ac_clean_files="$ac_clean_files conftest.out"
3991 # Check that the compiler produces executables we can run. If not, either
3992 # the compiler is broken, or we cross compile.
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3994 $as_echo_n "checking whether we are cross compiling... " >&6; }
3995 if test "$cross_compiling" != yes; then
3996 { { ac_try="$ac_link"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 $as_echo "$ac_try_echo"; } >&5
4003 (eval "$ac_link") 2>&5
4004 ac_status=$?
4005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4006 test $ac_status = 0; }
4007 if { ac_try='./conftest$ac_cv_exeext'
4008 { { case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; }; then
4018 cross_compiling=no
4019 else
4020 if test "$cross_compiling" = maybe; then
4021 cross_compiling=yes
4022 else
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error $? "cannot run C compiled programs.
4026 If you meant to cross compile, use \`--host'.
4027 See \`config.log' for more details" "$LINENO" 5; }
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4032 $as_echo "$cross_compiling" >&6; }
4034 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4035 ac_clean_files=$ac_clean_files_save
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4037 $as_echo_n "checking for suffix of object files... " >&6; }
4038 if ${ac_cv_objext+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4045 main ()
4049 return 0;
4051 _ACEOF
4052 rm -f conftest.o conftest.obj
4053 if { { ac_try="$ac_compile"
4054 case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 $as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_compile") 2>&5
4061 ac_status=$?
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }; then :
4064 for ac_file in conftest.o conftest.obj conftest.*; do
4065 test -f "$ac_file" || continue;
4066 case $ac_file in
4067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4068 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4069 break;;
4070 esac
4071 done
4072 else
4073 $as_echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4078 as_fn_error $? "cannot compute suffix of object files: cannot compile
4079 See \`config.log' for more details" "$LINENO" 5; }
4081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4084 $as_echo "$ac_cv_objext" >&6; }
4085 OBJEXT=$ac_cv_objext
4086 ac_objext=$OBJEXT
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4088 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4089 if ${ac_cv_c_compiler_gnu+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4098 #ifndef __GNUC__
4099 choke me
4100 #endif
4103 return 0;
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_compiler_gnu=yes
4108 else
4109 ac_compiler_gnu=no
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4116 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4117 if test $ac_compiler_gnu = yes; then
4118 GCC=yes
4119 else
4120 GCC=
4122 ac_test_CFLAGS=${CFLAGS+set}
4123 ac_save_CFLAGS=$CFLAGS
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4125 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4126 if ${ac_cv_prog_cc_g+:} false; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 ac_save_c_werror_flag=$ac_c_werror_flag
4130 ac_c_werror_flag=yes
4131 ac_cv_prog_cc_g=no
4132 CFLAGS="-g"
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4141 return 0;
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_g=yes
4146 else
4147 CFLAGS=""
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4152 main ()
4156 return 0;
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4161 else
4162 ac_c_werror_flag=$ac_save_c_werror_flag
4163 CFLAGS="-g"
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4168 main ()
4172 return 0;
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_prog_cc_g=yes
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4186 $as_echo "$ac_cv_prog_cc_g" >&6; }
4187 if test "$ac_test_CFLAGS" = set; then
4188 CFLAGS=$ac_save_CFLAGS
4189 elif test $ac_cv_prog_cc_g = yes; then
4190 if test "$GCC" = yes; then
4191 CFLAGS="-g -O2"
4192 else
4193 CFLAGS="-g"
4195 else
4196 if test "$GCC" = yes; then
4197 CFLAGS="-O2"
4198 else
4199 CFLAGS=
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4203 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4204 if ${ac_cv_prog_cc_c89+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 ac_cv_prog_cc_c89=no
4208 ac_save_CC=$CC
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 #include <stdarg.h>
4212 #include <stdio.h>
4213 struct stat;
4214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4215 struct buf { int x; };
4216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4217 static char *e (p, i)
4218 char **p;
4219 int i;
4221 return p[i];
4223 static char *f (char * (*g) (char **, int), char **p, ...)
4225 char *s;
4226 va_list v;
4227 va_start (v,p);
4228 s = g (p, va_arg (v,int));
4229 va_end (v);
4230 return s;
4233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4234 function prototypes and stuff, but not '\xHH' hex character constants.
4235 These don't provoke an error unfortunately, instead are silently treated
4236 as 'x'. The following induces an error, until -std is added to get
4237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4238 array size at least. It's necessary to write '\x00'==0 to get something
4239 that's true only with -std. */
4240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4243 inside strings and character constants. */
4244 #define FOO(x) 'x'
4245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4247 int test (int i, double x);
4248 struct s1 {int (*f) (int a);};
4249 struct s2 {int (*f) (double a);};
4250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4251 int argc;
4252 char **argv;
4254 main ()
4256 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4258 return 0;
4260 _ACEOF
4261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4262 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4264 CC="$ac_save_CC $ac_arg"
4265 if ac_fn_c_try_compile "$LINENO"; then :
4266 ac_cv_prog_cc_c89=$ac_arg
4268 rm -f core conftest.err conftest.$ac_objext
4269 test "x$ac_cv_prog_cc_c89" != "xno" && break
4270 done
4271 rm -f conftest.$ac_ext
4272 CC=$ac_save_CC
4275 # AC_CACHE_VAL
4276 case "x$ac_cv_prog_cc_c89" in
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4279 $as_echo "none needed" >&6; } ;;
4280 xno)
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4282 $as_echo "unsupported" >&6; } ;;
4284 CC="$CC $ac_cv_prog_cc_c89"
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4286 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4287 esac
4288 if test "x$ac_cv_prog_cc_c89" != xno; then :
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 ac_ext=cpp
4299 ac_cpp='$CXXCPP $CPPFLAGS'
4300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4303 if test -z "$CXX"; then
4304 if test -n "$CCC"; then
4305 CXX=$CCC
4306 else
4307 if test -n "$ac_tool_prefix"; then
4308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_prog_CXX+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -n "$CXX"; then
4318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4331 done
4332 done
4333 IFS=$as_save_IFS
4337 CXX=$ac_cv_prog_CXX
4338 if test -n "$CXX"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4340 $as_echo "$CXX" >&6; }
4341 else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4347 test -n "$CXX" && break
4348 done
4350 if test -z "$CXX"; then
4351 ac_ct_CXX=$CXX
4352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4354 # Extract the first word of "$ac_prog", so it can be a program name with args.
4355 set dummy $ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if test -n "$ac_ct_CXX"; then
4362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_ac_ct_CXX="$ac_prog"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4377 IFS=$as_save_IFS
4381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4382 if test -n "$ac_ct_CXX"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4384 $as_echo "$ac_ct_CXX" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4391 test -n "$ac_ct_CXX" && break
4392 done
4394 if test "x$ac_ct_CXX" = x; then
4395 CXX="g++"
4396 else
4397 case $cross_compiling:$ac_tool_warned in
4398 yes:)
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4401 ac_tool_warned=yes ;;
4402 esac
4403 CXX=$ac_ct_CXX
4409 # Provide some information about the compiler.
4410 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4411 set X $ac_compile
4412 ac_compiler=$2
4413 for ac_option in --version -v -V -qversion; do
4414 { { ac_try="$ac_compiler $ac_option >&5"
4415 case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4422 ac_status=$?
4423 if test -s conftest.err; then
4424 sed '10a\
4425 ... rest of stderr output deleted ...
4426 10q' conftest.err >conftest.er1
4427 cat conftest.er1 >&5
4429 rm -f conftest.er1 conftest.err
4430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431 test $ac_status = 0; }
4432 done
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4435 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4436 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4443 main ()
4445 #ifndef __GNUC__
4446 choke me
4447 #endif
4450 return 0;
4452 _ACEOF
4453 if ac_fn_cxx_try_compile "$LINENO"; then :
4454 ac_compiler_gnu=yes
4455 else
4456 ac_compiler_gnu=no
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4463 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4464 if test $ac_compiler_gnu = yes; then
4465 GXX=yes
4466 else
4467 GXX=
4469 ac_test_CXXFLAGS=${CXXFLAGS+set}
4470 ac_save_CXXFLAGS=$CXXFLAGS
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4472 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4473 if ${ac_cv_prog_cxx_g+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4477 ac_cxx_werror_flag=yes
4478 ac_cv_prog_cxx_g=no
4479 CXXFLAGS="-g"
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4484 main ()
4488 return 0;
4490 _ACEOF
4491 if ac_fn_cxx_try_compile "$LINENO"; then :
4492 ac_cv_prog_cxx_g=yes
4493 else
4494 CXXFLAGS=""
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4499 main ()
4503 return 0;
4505 _ACEOF
4506 if ac_fn_cxx_try_compile "$LINENO"; then :
4508 else
4509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4510 CXXFLAGS="-g"
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4515 main ()
4519 return 0;
4521 _ACEOF
4522 if ac_fn_cxx_try_compile "$LINENO"; then :
4523 ac_cv_prog_cxx_g=yes
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4533 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4534 if test "$ac_test_CXXFLAGS" = set; then
4535 CXXFLAGS=$ac_save_CXXFLAGS
4536 elif test $ac_cv_prog_cxx_g = yes; then
4537 if test "$GXX" = yes; then
4538 CXXFLAGS="-g -O2"
4539 else
4540 CXXFLAGS="-g"
4542 else
4543 if test "$GXX" = yes; then
4544 CXXFLAGS="-O2"
4545 else
4546 CXXFLAGS=
4549 ac_ext=c
4550 ac_cpp='$CPP $CPPFLAGS'
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4555 if test -n "$ac_tool_prefix"; then
4556 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4557 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if ${ac_cv_prog_CPPBIN+:} false; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 if test -n "$CPPBIN"; then
4564 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4579 IFS=$as_save_IFS
4583 CPPBIN=$ac_cv_prog_CPPBIN
4584 if test -n "$CPPBIN"; then
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4586 $as_echo "$CPPBIN" >&6; }
4587 else
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4594 if test -z "$ac_cv_prog_CPPBIN"; then
4595 ac_ct_CPPBIN=$CPPBIN
4596 # Extract the first word of "cpp", so it can be a program name with args.
4597 set dummy cpp; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$ac_ct_CPPBIN"; then
4604 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_ac_ct_CPPBIN="cpp"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4619 IFS=$as_save_IFS
4623 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4624 if test -n "$ac_ct_CPPBIN"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4626 $as_echo "$ac_ct_CPPBIN" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4632 if test "x$ac_ct_CPPBIN" = x; then
4633 CPPBIN="cpp"
4634 else
4635 case $cross_compiling:$ac_tool_warned in
4636 yes:)
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4639 ac_tool_warned=yes ;;
4640 esac
4641 CPPBIN=$ac_ct_CPPBIN
4643 else
4644 CPPBIN="$ac_cv_prog_CPPBIN"
4648 cat >>confdefs.h <<_ACEOF
4649 #define EXEEXT "$ac_exeext"
4650 _ACEOF
4653 case $host in
4654 *-darwin*)
4655 if test "x$enable_win64" = "xyes"
4656 then
4657 CC="$CC -m64"
4658 CXX="$CXX -m64"
4659 host_cpu="x86_64"
4660 notice_platform="64-bit "
4661 TARGETFLAGS="-m64"
4663 else
4664 CC="$CC -m32"
4665 CXX="$CXX -m32"
4666 host_cpu="i386"
4667 notice_platform="32-bit "
4668 TARGETFLAGS="-m32"
4670 enable_win16=${enable_win16:-yes}
4672 with_fontconfig=${with_fontconfig:-no}
4674 x86_64*)
4675 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4676 then
4677 CC="$CC -m32"
4678 CXX="$CXX -m32"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4680 $as_echo_n "checking whether $CC works... " >&6; }
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4686 main ()
4690 return 0;
4692 _ACEOF
4693 if ac_fn_c_try_link "$LINENO"; then :
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4695 $as_echo "yes" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4701 rm -f core conftest.err conftest.$ac_objext \
4702 conftest$ac_exeext conftest.$ac_ext
4703 host_cpu="i386"
4704 notice_platform="32-bit "
4705 TARGETFLAGS="-m32"
4707 enable_win16=${enable_win16:-yes}
4708 else
4709 if test "x${GCC}" = "xyes"
4710 then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4712 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715 #include <stdarg.h>
4717 main ()
4719 void func(__builtin_ms_va_list *args);
4721 return 0;
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4726 $as_echo "yes" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 TARGETFLAGS="-m64"
4738 arm*)
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4740 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 int ac_test(int i) { return i; }
4745 main ()
4747 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4749 return 0;
4751 _ACEOF
4752 if ac_fn_c_try_link "$LINENO"; then :
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4754 $as_echo "yes" >&6; }
4755 else
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4760 rm -f core conftest.err conftest.$ac_objext \
4761 conftest$ac_exeext conftest.$ac_ext
4762 CFLAGS="$CFLAGS -marm"
4764 *-mingw32*|*-cygwin*)
4765 enable_win16=${enable_win16:-no}
4766 CFLAGS="$CFLAGS -D_WIN32"
4768 i[3456789]86*)
4769 enable_win16=${enable_win16:-yes}
4771 esac
4773 enable_win16=${enable_win16:-no}
4774 enable_win64=${enable_win64:-no}
4776 enable_winetest=${enable_winetest:-$enable_tests}
4778 if test -n "$with_wine64"
4779 then
4780 if test "x$enable_win64" = "xyes"
4781 then
4782 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4783 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4785 enable_fonts=${enable_fonts:-no}
4786 enable_server=${enable_server:-no}
4787 elif test "x$enable_win64" = "xyes"
4788 then
4789 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4793 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4794 if ${wine_cv_toolsdir+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 wine_cv_toolsdir="$with_wine_tools"
4798 if test -z "$with_wine_tools"; then
4799 if test "$cross_compiling" = "yes"; then
4800 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4801 elif test -n "$with_wine64"; then
4802 wine_cv_toolsdir="$with_wine64"
4805 if test -z "$wine_cv_toolsdir"; then
4806 wine_cv_toolsdir="\$(top_builddir)"
4807 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4808 case "$wine_cv_toolsdir" in
4809 /*) ;;
4810 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4811 esac
4812 enable_tools=${enable_tools:-no}
4813 else
4814 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4818 $as_echo "$wine_cv_toolsdir" >&6; }
4819 TOOLSDIR=$wine_cv_toolsdir
4821 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4822 then
4823 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4827 for ac_prog in flex
4829 # Extract the first word of "$ac_prog", so it can be a program name with args.
4830 set dummy $ac_prog; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_prog_FLEX+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 if test -n "$FLEX"; then
4837 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846 ac_cv_prog_FLEX="$ac_prog"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4850 done
4851 done
4852 IFS=$as_save_IFS
4856 FLEX=$ac_cv_prog_FLEX
4857 if test -n "$FLEX"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4859 $as_echo "$FLEX" >&6; }
4860 else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4866 test -n "$FLEX" && break
4867 done
4868 test -n "$FLEX" || FLEX="none"
4870 if test "$FLEX" = "none"
4871 then
4872 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4875 $as_echo_n "checking whether flex is recent enough... " >&6; }
4876 cat >conftest.l <<EOF
4877 %top{
4878 #include "prediluvian.h"
4882 if $FLEX -t conftest.l >/dev/null 2>&5
4883 then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4885 $as_echo "yes" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4892 for ac_prog in bison
4894 # Extract the first word of "$ac_prog", so it can be a program name with args.
4895 set dummy $ac_prog; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_BISON+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 if test -n "$BISON"; then
4902 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911 ac_cv_prog_BISON="$ac_prog"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4915 done
4916 done
4917 IFS=$as_save_IFS
4921 BISON=$ac_cv_prog_BISON
4922 if test -n "$BISON"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4924 $as_echo "$BISON" >&6; }
4925 else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4931 test -n "$BISON" && break
4932 done
4933 test -n "$BISON" || BISON="none"
4935 if test "$BISON" = "none"
4936 then
4937 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4940 if test -n "$ac_tool_prefix"; then
4941 for ac_prog in ar gar
4943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if ${ac_cv_prog_AR+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$AR"; then
4951 ac_cv_prog_AR="$AR" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4964 done
4965 done
4966 IFS=$as_save_IFS
4970 AR=$ac_cv_prog_AR
4971 if test -n "$AR"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4973 $as_echo "$AR" >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4980 test -n "$AR" && break
4981 done
4983 if test -z "$AR"; then
4984 ac_ct_AR=$AR
4985 for ac_prog in ar gar
4987 # Extract the first word of "$ac_prog", so it can be a program name with args.
4988 set dummy $ac_prog; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -n "$ac_ct_AR"; then
4995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_ac_ct_AR="$ac_prog"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5008 done
5009 done
5010 IFS=$as_save_IFS
5014 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5015 if test -n "$ac_ct_AR"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5017 $as_echo "$ac_ct_AR" >&6; }
5018 else
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5024 test -n "$ac_ct_AR" && break
5025 done
5027 if test "x$ac_ct_AR" = x; then
5028 AR="ar"
5029 else
5030 case $cross_compiling:$ac_tool_warned in
5031 yes:)
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5034 ac_tool_warned=yes ;;
5035 esac
5036 AR=$ac_ct_AR
5040 if test -n "$ac_tool_prefix"; then
5041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5042 set dummy ${ac_tool_prefix}strip; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_STRIP+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$STRIP"; then
5049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5064 IFS=$as_save_IFS
5068 STRIP=$ac_cv_prog_STRIP
5069 if test -n "$STRIP"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5071 $as_echo "$STRIP" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5079 if test -z "$ac_cv_prog_STRIP"; then
5080 ac_ct_STRIP=$STRIP
5081 # Extract the first word of "strip", so it can be a program name with args.
5082 set dummy strip; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$ac_ct_STRIP"; then
5089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098 ac_cv_prog_ac_ct_STRIP="strip"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5102 done
5103 done
5104 IFS=$as_save_IFS
5108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5109 if test -n "$ac_ct_STRIP"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5111 $as_echo "$ac_ct_STRIP" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5117 if test "x$ac_ct_STRIP" = x; then
5118 STRIP="strip"
5119 else
5120 case $cross_compiling:$ac_tool_warned in
5121 yes:)
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5124 ac_tool_warned=yes ;;
5125 esac
5126 STRIP=$ac_ct_STRIP
5128 else
5129 STRIP="$ac_cv_prog_STRIP"
5132 ARFLAGS=rc
5134 if test -n "$ac_tool_prefix"; then
5135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_RANLIB+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$RANLIB"; then
5143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5162 RANLIB=$ac_cv_prog_RANLIB
5163 if test -n "$RANLIB"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5165 $as_echo "$RANLIB" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5173 if test -z "$ac_cv_prog_RANLIB"; then
5174 ac_ct_RANLIB=$RANLIB
5175 # Extract the first word of "ranlib", so it can be a program name with args.
5176 set dummy ranlib; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$ac_ct_RANLIB"; then
5183 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_RANLIB="ranlib"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5202 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5203 if test -n "$ac_ct_RANLIB"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5205 $as_echo "$ac_ct_RANLIB" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5211 if test "x$ac_ct_RANLIB" = x; then
5212 RANLIB=":"
5213 else
5214 case $cross_compiling:$ac_tool_warned in
5215 yes:)
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218 ac_tool_warned=yes ;;
5219 esac
5220 RANLIB=$ac_ct_RANLIB
5222 else
5223 RANLIB="$ac_cv_prog_RANLIB"
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5227 $as_echo_n "checking whether ln -s works... " >&6; }
5228 LN_S=$as_ln_s
5229 if test "$LN_S" = "ln -s"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5231 $as_echo "yes" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5234 $as_echo "no, using $LN_S" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5238 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5239 if ${ac_cv_path_GREP+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if test -z "$GREP"; then
5243 ac_path_GREP_found=false
5244 # Loop through the user's path and test for each of PROGNAME-LIST
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_prog in grep ggrep; do
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5253 as_fn_executable_p "$ac_path_GREP" || continue
5254 # Check for GNU ac_path_GREP and select it if it is found.
5255 # Check for GNU $ac_path_GREP
5256 case `"$ac_path_GREP" --version 2>&1` in
5257 *GNU*)
5258 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5260 ac_count=0
5261 $as_echo_n 0123456789 >"conftest.in"
5262 while :
5264 cat "conftest.in" "conftest.in" >"conftest.tmp"
5265 mv "conftest.tmp" "conftest.in"
5266 cp "conftest.in" "conftest.nl"
5267 $as_echo 'GREP' >> "conftest.nl"
5268 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5270 as_fn_arith $ac_count + 1 && ac_count=$as_val
5271 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5272 # Best one so far, save it but keep looking for a better one
5273 ac_cv_path_GREP="$ac_path_GREP"
5274 ac_path_GREP_max=$ac_count
5276 # 10*(2^10) chars as input seems more than enough
5277 test $ac_count -gt 10 && break
5278 done
5279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5280 esac
5282 $ac_path_GREP_found && break 3
5283 done
5284 done
5285 done
5286 IFS=$as_save_IFS
5287 if test -z "$ac_cv_path_GREP"; then
5288 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5290 else
5291 ac_cv_path_GREP=$GREP
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5296 $as_echo "$ac_cv_path_GREP" >&6; }
5297 GREP="$ac_cv_path_GREP"
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5301 $as_echo_n "checking for egrep... " >&6; }
5302 if ${ac_cv_path_EGREP+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5306 then ac_cv_path_EGREP="$GREP -E"
5307 else
5308 if test -z "$EGREP"; then
5309 ac_path_EGREP_found=false
5310 # Loop through the user's path and test for each of PROGNAME-LIST
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_prog in egrep; do
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5319 as_fn_executable_p "$ac_path_EGREP" || continue
5320 # Check for GNU ac_path_EGREP and select it if it is found.
5321 # Check for GNU $ac_path_EGREP
5322 case `"$ac_path_EGREP" --version 2>&1` in
5323 *GNU*)
5324 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5326 ac_count=0
5327 $as_echo_n 0123456789 >"conftest.in"
5328 while :
5330 cat "conftest.in" "conftest.in" >"conftest.tmp"
5331 mv "conftest.tmp" "conftest.in"
5332 cp "conftest.in" "conftest.nl"
5333 $as_echo 'EGREP' >> "conftest.nl"
5334 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5336 as_fn_arith $ac_count + 1 && ac_count=$as_val
5337 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5338 # Best one so far, save it but keep looking for a better one
5339 ac_cv_path_EGREP="$ac_path_EGREP"
5340 ac_path_EGREP_max=$ac_count
5342 # 10*(2^10) chars as input seems more than enough
5343 test $ac_count -gt 10 && break
5344 done
5345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5346 esac
5348 $ac_path_EGREP_found && break 3
5349 done
5350 done
5351 done
5352 IFS=$as_save_IFS
5353 if test -z "$ac_cv_path_EGREP"; then
5354 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5356 else
5357 ac_cv_path_EGREP=$EGREP
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5363 $as_echo "$ac_cv_path_EGREP" >&6; }
5364 EGREP="$ac_cv_path_EGREP"
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5368 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5369 if test -z "$MKDIR_P"; then
5370 if ${ac_cv_path_mkdir+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_prog in mkdir gmkdir; do
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5381 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5382 'mkdir (GNU coreutils) '* | \
5383 'mkdir (coreutils) '* | \
5384 'mkdir (fileutils) '4.1*)
5385 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5386 break 3;;
5387 esac
5388 done
5389 done
5390 done
5391 IFS=$as_save_IFS
5395 test -d ./--version && rmdir ./--version
5396 if test "${ac_cv_path_mkdir+set}" = set; then
5397 MKDIR_P="$ac_cv_path_mkdir -p"
5398 else
5399 # As a last resort, use the slow shell script. Don't cache a
5400 # value for MKDIR_P within a source directory, because that will
5401 # break other packages using the cache if that directory is
5402 # removed, or if the value is a relative name.
5403 MKDIR_P="$ac_install_sh -d"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5407 $as_echo "$MKDIR_P" >&6; }
5409 # Extract the first word of "ldconfig", so it can be a program name with args.
5410 set dummy ldconfig; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_path_LDCONFIG+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 case $LDCONFIG in
5417 [\\/]* | ?:[\\/]*)
5418 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in /sbin /usr/sbin $PATH
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5432 done
5433 done
5434 IFS=$as_save_IFS
5436 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5438 esac
5440 LDCONFIG=$ac_cv_path_LDCONFIG
5441 if test -n "$LDCONFIG"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5443 $as_echo "$LDCONFIG" >&6; }
5444 else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5451 test -z "$INSTALL" && INSTALL="\$(top_srcdir)/tools/install-sh"
5453 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM="STRIPPROG=\"\$(STRIP)\" \$(INSTALL)"
5455 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT="\$(INSTALL)"
5457 test -z "$INSTALL_DATA" && INSTALL_DATA="\$(INSTALL) -m 644"
5460 for ac_prog in msgfmt
5462 # Extract the first word of "$ac_prog", so it can be a program name with args.
5463 set dummy $ac_prog; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_MSGFMT+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -n "$MSGFMT"; then
5470 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_MSGFMT="$ac_prog"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5483 done
5484 done
5485 IFS=$as_save_IFS
5489 MSGFMT=$ac_cv_prog_MSGFMT
5490 if test -n "$MSGFMT"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5492 $as_echo "$MSGFMT" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5499 test -n "$MSGFMT" && break
5500 done
5501 test -n "$MSGFMT" || MSGFMT="false"
5503 if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5505 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -n "$PKG_CONFIG"; then
5512 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5525 done
5526 done
5527 IFS=$as_save_IFS
5531 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5532 if test -n "$PKG_CONFIG"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5534 $as_echo "$PKG_CONFIG" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5542 if test -n "$ac_cv_prog_PKG_CONFIG"; then
5543 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
5544 elif test "$cross_compiling" != yes; then
5545 unset ac_cv_prog_PKG_CONFIG
5546 # Extract the first word of "pkg-config", so it can be a program name with args.
5547 set dummy pkg-config; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 if test -n "$PKG_CONFIG"; then
5554 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563 ac_cv_prog_PKG_CONFIG="pkg-config"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5567 done
5568 done
5569 IFS=$as_save_IFS
5573 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5574 if test -n "$PKG_CONFIG"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5576 $as_echo "$PKG_CONFIG" >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5585 if test "x$enable_maintainer_mode" != "xyes"
5586 then
5587 FONTFORGE=""
5588 RSVG=""
5589 CONVERT=""
5590 ICOTOOL=""
5591 else
5592 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5593 for ac_prog in fontforge
5595 # Extract the first word of "$ac_prog", so it can be a program name with args.
5596 set dummy $ac_prog; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if ${ac_cv_prog_FONTFORGE+:} false; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 if test -n "$FONTFORGE"; then
5603 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5604 else
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612 ac_cv_prog_FONTFORGE="$ac_prog"
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5616 done
5617 done
5618 IFS=$as_save_IFS
5622 FONTFORGE=$ac_cv_prog_FONTFORGE
5623 if test -n "$FONTFORGE"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5625 $as_echo "$FONTFORGE" >&6; }
5626 else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }
5632 test -n "$FONTFORGE" && break
5633 done
5634 test -n "$FONTFORGE" || FONTFORGE="false"
5636 for ac_prog in rsvg
5638 # Extract the first word of "$ac_prog", so it can be a program name with args.
5639 set dummy $ac_prog; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_RSVG+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -n "$RSVG"; then
5646 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_RSVG="$ac_prog"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5659 done
5660 done
5661 IFS=$as_save_IFS
5665 RSVG=$ac_cv_prog_RSVG
5666 if test -n "$RSVG"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5668 $as_echo "$RSVG" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5675 test -n "$RSVG" && break
5676 done
5677 test -n "$RSVG" || RSVG="false"
5679 for ac_prog in convert
5681 # Extract the first word of "$ac_prog", so it can be a program name with args.
5682 set dummy $ac_prog; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_prog_CONVERT+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if test -n "$CONVERT"; then
5689 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_CONVERT="$ac_prog"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5702 done
5703 done
5704 IFS=$as_save_IFS
5708 CONVERT=$ac_cv_prog_CONVERT
5709 if test -n "$CONVERT"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5711 $as_echo "$CONVERT" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5718 test -n "$CONVERT" && break
5719 done
5720 test -n "$CONVERT" || CONVERT="false"
5722 for ac_prog in icotool
5724 # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_ICOTOOL+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$ICOTOOL"; then
5732 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_ICOTOOL="$ac_prog"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5745 done
5746 done
5747 IFS=$as_save_IFS
5751 ICOTOOL=$ac_cv_prog_ICOTOOL
5752 if test -n "$ICOTOOL"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5754 $as_echo "$ICOTOOL" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5761 test -n "$ICOTOOL" && break
5762 done
5763 test -n "$ICOTOOL" || ICOTOOL="false"
5765 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5766 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5768 if test "$CONVERT" = false
5769 then
5770 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5773 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5774 convert_version=`convert --version | head -n1`
5775 if test "x$convert_version" != "x"
5776 then
5777 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5778 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5779 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5780 then
5781 CONVERT=false
5784 if test "$CONVERT" = false
5785 then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5787 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5788 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5791 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5795 if test "$ICOTOOL" = false
5796 then
5797 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5800 $as_echo_n "checking for recent enough icotool... " >&6; }
5801 icotool_version=`icotool --version | head -n1`
5802 if test "x$icotool_version" != "x"
5803 then
5804 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5805 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5806 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5807 then
5808 ICOTOOL=false
5809 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5812 if test "$ICOTOOL" = false
5813 then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5815 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5816 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5817 else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5819 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5823 with_gettext=yes
5824 with_gettextpo=yes
5825 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5828 test "x$with_gettext" != xno || MSGFMT=false
5829 if test "$MSGFMT" != "false"
5830 then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5832 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5833 cat >conftest.po <<EOF
5834 # comment
5835 msgctxt "ctxt"
5836 msgid "id"
5837 msgstr "str"
5839 if $MSGFMT -o /dev/null conftest.po 2>&5
5840 then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5842 $as_echo "yes" >&6; }
5843 else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5846 MSGFMT=false
5849 if test "$MSGFMT" = false; then :
5850 case "x$with_gettext" in
5851 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5852 xno) ;;
5853 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5854 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5855 esac
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5860 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5861 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 ac_check_lib_save_LIBS=$LIBS
5865 LIBS="-li386 $LIBS"
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5869 /* Override any GCC internal prototype to avoid an error.
5870 Use char because int might match the return type of a GCC
5871 builtin and then its argument prototype would still apply. */
5872 #ifdef __cplusplus
5873 extern "C"
5874 #endif
5875 char i386_set_ldt ();
5877 main ()
5879 return i386_set_ldt ();
5881 return 0;
5883 _ACEOF
5884 if ac_fn_c_try_link "$LINENO"; then :
5885 ac_cv_lib_i386_i386_set_ldt=yes
5886 else
5887 ac_cv_lib_i386_i386_set_ldt=no
5889 rm -f core conftest.err conftest.$ac_objext \
5890 conftest$ac_exeext conftest.$ac_ext
5891 LIBS=$ac_check_lib_save_LIBS
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5894 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5895 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5896 cat >>confdefs.h <<_ACEOF
5897 #define HAVE_LIBI386 1
5898 _ACEOF
5900 LIBS="-li386 $LIBS"
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5905 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5906 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 ac_check_lib_save_LIBS=$LIBS
5910 LIBS="-lossaudio $LIBS"
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5914 /* Override any GCC internal prototype to avoid an error.
5915 Use char because int might match the return type of a GCC
5916 builtin and then its argument prototype would still apply. */
5917 #ifdef __cplusplus
5918 extern "C"
5919 #endif
5920 char _oss_ioctl ();
5922 main ()
5924 return _oss_ioctl ();
5926 return 0;
5928 _ACEOF
5929 if ac_fn_c_try_link "$LINENO"; then :
5930 ac_cv_lib_ossaudio__oss_ioctl=yes
5931 else
5932 ac_cv_lib_ossaudio__oss_ioctl=no
5934 rm -f core conftest.err conftest.$ac_objext \
5935 conftest$ac_exeext conftest.$ac_ext
5936 LIBS=$ac_check_lib_save_LIBS
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5939 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5940 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5941 cat >>confdefs.h <<_ACEOF
5942 #define HAVE_LIBOSSAUDIO 1
5943 _ACEOF
5945 LIBS="-lossaudio $LIBS"
5950 XLIB=""
5952 OPENGL_LIBS=""
5956 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5958 # Check whether --enable-largefile was given.
5959 if test "${enable_largefile+set}" = set; then :
5960 enableval=$enable_largefile;
5963 if test "$enable_largefile" != no; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5966 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5967 if ${ac_cv_sys_largefile_CC+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 ac_cv_sys_largefile_CC=no
5971 if test "$GCC" != yes; then
5972 ac_save_CC=$CC
5973 while :; do
5974 # IRIX 6.2 and later do not support large files by default,
5975 # so use the C compiler's -n32 option if that helps.
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978 #include <sys/types.h>
5979 /* Check that off_t can represent 2**63 - 1 correctly.
5980 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5981 since some C++ compilers masquerading as C compilers
5982 incorrectly reject 9223372036854775807. */
5983 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5984 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5985 && LARGE_OFF_T % 2147483647 == 1)
5986 ? 1 : -1];
5988 main ()
5992 return 0;
5994 _ACEOF
5995 if ac_fn_c_try_compile "$LINENO"; then :
5996 break
5998 rm -f core conftest.err conftest.$ac_objext
5999 CC="$CC -n32"
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001 ac_cv_sys_largefile_CC=' -n32'; break
6003 rm -f core conftest.err conftest.$ac_objext
6004 break
6005 done
6006 CC=$ac_save_CC
6007 rm -f conftest.$ac_ext
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6011 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6012 if test "$ac_cv_sys_largefile_CC" != no; then
6013 CC=$CC$ac_cv_sys_largefile_CC
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6017 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6018 if ${ac_cv_sys_file_offset_bits+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 while :; do
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 #include <sys/types.h>
6025 /* Check that off_t can represent 2**63 - 1 correctly.
6026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6027 since some C++ compilers masquerading as C compilers
6028 incorrectly reject 9223372036854775807. */
6029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6031 && LARGE_OFF_T % 2147483647 == 1)
6032 ? 1 : -1];
6034 main ()
6038 return 0;
6040 _ACEOF
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042 ac_cv_sys_file_offset_bits=no; break
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 #define _FILE_OFFSET_BITS 64
6048 #include <sys/types.h>
6049 /* Check that off_t can represent 2**63 - 1 correctly.
6050 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6051 since some C++ compilers masquerading as C compilers
6052 incorrectly reject 9223372036854775807. */
6053 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6054 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6055 && LARGE_OFF_T % 2147483647 == 1)
6056 ? 1 : -1];
6058 main ()
6062 return 0;
6064 _ACEOF
6065 if ac_fn_c_try_compile "$LINENO"; then :
6066 ac_cv_sys_file_offset_bits=64; break
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 ac_cv_sys_file_offset_bits=unknown
6070 break
6071 done
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6074 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6075 case $ac_cv_sys_file_offset_bits in #(
6076 no | unknown) ;;
6078 cat >>confdefs.h <<_ACEOF
6079 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6080 _ACEOF
6082 esac
6083 rm -rf conftest*
6084 if test $ac_cv_sys_file_offset_bits = unknown; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6086 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6087 if ${ac_cv_sys_large_files+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 while :; do
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 #include <sys/types.h>
6094 /* Check that off_t can represent 2**63 - 1 correctly.
6095 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6096 since some C++ compilers masquerading as C compilers
6097 incorrectly reject 9223372036854775807. */
6098 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6100 && LARGE_OFF_T % 2147483647 == 1)
6101 ? 1 : -1];
6103 main ()
6107 return 0;
6109 _ACEOF
6110 if ac_fn_c_try_compile "$LINENO"; then :
6111 ac_cv_sys_large_files=no; break
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116 #define _LARGE_FILES 1
6117 #include <sys/types.h>
6118 /* Check that off_t can represent 2**63 - 1 correctly.
6119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6120 since some C++ compilers masquerading as C compilers
6121 incorrectly reject 9223372036854775807. */
6122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6124 && LARGE_OFF_T % 2147483647 == 1)
6125 ? 1 : -1];
6127 main ()
6131 return 0;
6133 _ACEOF
6134 if ac_fn_c_try_compile "$LINENO"; then :
6135 ac_cv_sys_large_files=1; break
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 ac_cv_sys_large_files=unknown
6139 break
6140 done
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6143 $as_echo "$ac_cv_sys_large_files" >&6; }
6144 case $ac_cv_sys_large_files in #(
6145 no | unknown) ;;
6147 cat >>confdefs.h <<_ACEOF
6148 #define _LARGE_FILES $ac_cv_sys_large_files
6149 _ACEOF
6151 esac
6152 rm -rf conftest*
6159 ac_ext=c
6160 ac_cpp='$CPP $CPPFLAGS'
6161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6165 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6166 # On Suns, sometimes $CPP names a directory.
6167 if test -n "$CPP" && test -d "$CPP"; then
6168 CPP=
6170 if test -z "$CPP"; then
6171 if ${ac_cv_prog_CPP+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 # Double quotes because CPP needs to be expanded
6175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6177 ac_preproc_ok=false
6178 for ac_c_preproc_warn_flag in '' yes
6180 # Use a header file that comes with gcc, so configuring glibc
6181 # with a fresh cross-compiler works.
6182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6183 # <limits.h> exists even on freestanding compilers.
6184 # On the NeXT, cc -E runs the code through the compiler's parser,
6185 # not just through cpp. "Syntax error" is here to catch this case.
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 #ifdef __STDC__
6189 # include <limits.h>
6190 #else
6191 # include <assert.h>
6192 #endif
6193 Syntax error
6194 _ACEOF
6195 if ac_fn_c_try_cpp "$LINENO"; then :
6197 else
6198 # Broken: fails on valid input.
6199 continue
6201 rm -f conftest.err conftest.i conftest.$ac_ext
6203 # OK, works on sane cases. Now check whether nonexistent headers
6204 # can be detected and how.
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 #include <ac_nonexistent.h>
6208 _ACEOF
6209 if ac_fn_c_try_cpp "$LINENO"; then :
6210 # Broken: success on invalid input.
6211 continue
6212 else
6213 # Passes both tests.
6214 ac_preproc_ok=:
6215 break
6217 rm -f conftest.err conftest.i conftest.$ac_ext
6219 done
6220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6221 rm -f conftest.i conftest.err conftest.$ac_ext
6222 if $ac_preproc_ok; then :
6223 break
6226 done
6227 ac_cv_prog_CPP=$CPP
6230 CPP=$ac_cv_prog_CPP
6231 else
6232 ac_cv_prog_CPP=$CPP
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6235 $as_echo "$CPP" >&6; }
6236 ac_preproc_ok=false
6237 for ac_c_preproc_warn_flag in '' yes
6239 # Use a header file that comes with gcc, so configuring glibc
6240 # with a fresh cross-compiler works.
6241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6242 # <limits.h> exists even on freestanding compilers.
6243 # On the NeXT, cc -E runs the code through the compiler's parser,
6244 # not just through cpp. "Syntax error" is here to catch this case.
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 #ifdef __STDC__
6248 # include <limits.h>
6249 #else
6250 # include <assert.h>
6251 #endif
6252 Syntax error
6253 _ACEOF
6254 if ac_fn_c_try_cpp "$LINENO"; then :
6256 else
6257 # Broken: fails on valid input.
6258 continue
6260 rm -f conftest.err conftest.i conftest.$ac_ext
6262 # OK, works on sane cases. Now check whether nonexistent headers
6263 # can be detected and how.
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 #include <ac_nonexistent.h>
6267 _ACEOF
6268 if ac_fn_c_try_cpp "$LINENO"; then :
6269 # Broken: success on invalid input.
6270 continue
6271 else
6272 # Passes both tests.
6273 ac_preproc_ok=:
6274 break
6276 rm -f conftest.err conftest.i conftest.$ac_ext
6278 done
6279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6280 rm -f conftest.i conftest.err conftest.$ac_ext
6281 if $ac_preproc_ok; then :
6283 else
6284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6286 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6287 See \`config.log' for more details" "$LINENO" 5; }
6290 ac_ext=c
6291 ac_cpp='$CPP $CPPFLAGS'
6292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6298 $as_echo_n "checking for ANSI C header files... " >&6; }
6299 if ${ac_cv_header_stdc+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 #include <stdlib.h>
6305 #include <stdarg.h>
6306 #include <string.h>
6307 #include <float.h>
6310 main ()
6314 return 0;
6316 _ACEOF
6317 if ac_fn_c_try_compile "$LINENO"; then :
6318 ac_cv_header_stdc=yes
6319 else
6320 ac_cv_header_stdc=no
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 if test $ac_cv_header_stdc = yes; then
6325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 #include <string.h>
6330 _ACEOF
6331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6332 $EGREP "memchr" >/dev/null 2>&1; then :
6334 else
6335 ac_cv_header_stdc=no
6337 rm -f conftest*
6341 if test $ac_cv_header_stdc = yes; then
6342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 #include <stdlib.h>
6347 _ACEOF
6348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6349 $EGREP "free" >/dev/null 2>&1; then :
6351 else
6352 ac_cv_header_stdc=no
6354 rm -f conftest*
6358 if test $ac_cv_header_stdc = yes; then
6359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6360 if test "$cross_compiling" = yes; then :
6362 else
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 #include <ctype.h>
6366 #include <stdlib.h>
6367 #if ((' ' & 0x0FF) == 0x020)
6368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6370 #else
6371 # define ISLOWER(c) \
6372 (('a' <= (c) && (c) <= 'i') \
6373 || ('j' <= (c) && (c) <= 'r') \
6374 || ('s' <= (c) && (c) <= 'z'))
6375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6376 #endif
6378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6380 main ()
6382 int i;
6383 for (i = 0; i < 256; i++)
6384 if (XOR (islower (i), ISLOWER (i))
6385 || toupper (i) != TOUPPER (i))
6386 return 2;
6387 return 0;
6389 _ACEOF
6390 if ac_fn_c_try_run "$LINENO"; then :
6392 else
6393 ac_cv_header_stdc=no
6395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6396 conftest.$ac_objext conftest.beam conftest.$ac_ext
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6402 $as_echo "$ac_cv_header_stdc" >&6; }
6403 if test $ac_cv_header_stdc = yes; then
6405 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6409 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6410 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6411 inttypes.h stdint.h unistd.h
6412 do :
6413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6414 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6417 cat >>confdefs.h <<_ACEOF
6418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6419 _ACEOF
6423 done
6426 for ac_header in \
6427 AL/al.h \
6428 ApplicationServices/ApplicationServices.h \
6429 AudioToolbox/AudioConverter.h \
6430 AudioUnit/AudioUnit.h \
6431 AudioUnit/AudioComponent.h \
6432 CL/cl.h \
6433 Carbon/Carbon.h \
6434 CoreAudio/CoreAudio.h \
6435 CoreServices/CoreServices.h \
6436 DiskArbitration/DiskArbitration.h \
6437 IOKit/IOKitLib.h \
6438 IOKit/hid/IOHIDLib.h \
6439 OpenAL/al.h \
6440 OpenCL/opencl.h \
6441 QuickTime/ImageCompression.h \
6442 Security/Security.h \
6443 alias.h \
6444 alsa/asoundlib.h \
6445 arpa/inet.h \
6446 arpa/nameser.h \
6447 asm/types.h \
6448 asm/user.h \
6449 curses.h \
6450 direct.h \
6451 dirent.h \
6452 dlfcn.h \
6453 elf.h \
6454 float.h \
6455 fnmatch.h \
6456 fontconfig/fontconfig.h \
6457 getopt.h \
6458 gettext-po.h \
6459 grp.h \
6460 gsm.h \
6461 gsm/gsm.h \
6462 ieeefp.h \
6463 inet/mib2.h \
6464 io.h \
6465 kstat.h \
6466 lber.h \
6467 ldap.h \
6468 libproc.h \
6469 link.h \
6470 linux/cdrom.h \
6471 linux/compiler.h \
6472 linux/filter.h \
6473 linux/hdreg.h \
6474 linux/input.h \
6475 linux/ioctl.h \
6476 linux/joystick.h \
6477 linux/major.h \
6478 linux/param.h \
6479 linux/serial.h \
6480 linux/types.h \
6481 linux/ucdrom.h \
6482 lwp.h \
6483 mach-o/nlist.h \
6484 mach-o/loader.h \
6485 mach/mach.h \
6486 mach/machine.h \
6487 machine/cpu.h \
6488 machine/limits.h \
6489 machine/sysarch.h \
6490 mntent.h \
6491 ncurses.h \
6492 netdb.h \
6493 netinet/in.h \
6494 netinet/in_systm.h \
6495 netinet/tcp.h \
6496 netinet/tcp_fsm.h \
6497 poll.h \
6498 port.h \
6499 process.h \
6500 pthread.h \
6501 pwd.h \
6502 sched.h \
6503 scsi/scsi.h \
6504 scsi/scsi_ioctl.h \
6505 scsi/sg.h \
6506 stdbool.h \
6507 stdint.h \
6508 stropts.h \
6509 sys/asoundlib.h \
6510 sys/attr.h \
6511 sys/cdio.h \
6512 sys/elf32.h \
6513 sys/epoll.h \
6514 sys/event.h \
6515 sys/exec_elf.h \
6516 sys/filio.h \
6517 sys/inotify.h \
6518 sys/ioctl.h \
6519 sys/ipc.h \
6520 sys/limits.h \
6521 sys/link.h \
6522 sys/mman.h \
6523 sys/modem.h \
6524 sys/msg.h \
6525 sys/mtio.h \
6526 sys/param.h \
6527 sys/poll.h \
6528 sys/prctl.h \
6529 sys/protosw.h \
6530 sys/ptrace.h \
6531 sys/queue.h \
6532 sys/resource.h \
6533 sys/scsiio.h \
6534 sys/shm.h \
6535 sys/signal.h \
6536 sys/socket.h \
6537 sys/socketvar.h \
6538 sys/sockio.h \
6539 sys/statvfs.h \
6540 sys/strtio.h \
6541 sys/syscall.h \
6542 sys/tihdr.h \
6543 sys/time.h \
6544 sys/timeout.h \
6545 sys/times.h \
6546 sys/uio.h \
6547 sys/user.h \
6548 sys/utsname.h \
6549 sys/vm86.h \
6550 sys/wait.h \
6551 syscall.h \
6552 termios.h \
6553 unistd.h \
6554 utime.h \
6555 valgrind/memcheck.h \
6556 valgrind/valgrind.h \
6557 zlib.h
6559 do :
6560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6562 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6563 cat >>confdefs.h <<_ACEOF
6564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6565 _ACEOF
6569 done
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6572 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6573 if ${ac_cv_header_stat_broken+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 #include <sys/types.h>
6579 #include <sys/stat.h>
6581 #if defined S_ISBLK && defined S_IFDIR
6582 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6583 #endif
6585 #if defined S_ISBLK && defined S_IFCHR
6586 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6587 #endif
6589 #if defined S_ISLNK && defined S_IFREG
6590 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6591 #endif
6593 #if defined S_ISSOCK && defined S_IFREG
6594 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6595 #endif
6597 _ACEOF
6598 if ac_fn_c_try_compile "$LINENO"; then :
6599 ac_cv_header_stat_broken=no
6600 else
6601 ac_cv_header_stat_broken=yes
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6606 $as_echo "$ac_cv_header_stat_broken" >&6; }
6607 if test $ac_cv_header_stat_broken = yes; then
6609 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6615 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6616 do :
6617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6618 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6619 #ifdef HAVE_SYS_PARAM_H
6620 # include <sys/param.h>
6621 #endif
6623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6624 cat >>confdefs.h <<_ACEOF
6625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6626 _ACEOF
6630 done
6633 for ac_header in \
6634 netinet/ip.h \
6635 net/if.h \
6636 net/if_arp.h \
6637 net/if_dl.h \
6638 net/if_types.h \
6639 net/route.h \
6640 netinet/if_ether.h \
6641 netinet/if_inarp.h \
6642 netinet/in_pcb.h \
6643 netinet/ip_icmp.h \
6644 netinet/ip_var.h \
6645 netinet/udp.h \
6646 netipx/ipx.h \
6647 sys/un.h \
6649 do :
6650 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6651 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6652 #ifdef HAVE_SYS_SOCKET_H
6653 # include <sys/socket.h>
6654 #endif
6655 #ifdef HAVE_SYS_SOCKETVAR_H
6656 # include <sys/socketvar.h>
6657 #endif
6658 #ifdef HAVE_NET_ROUTE_H
6659 # include <net/route.h>
6660 #endif
6661 #ifdef HAVE_NETINET_IN_H
6662 # include <netinet/in.h>
6663 #endif
6664 #ifdef HAVE_NETINET_IN_SYSTM_H
6665 # include <netinet/in_systm.h>
6666 #endif
6667 #ifdef HAVE_NET_IF_H
6668 # include <net/if.h>
6669 #endif
6670 #ifdef HAVE_NETINET_IP_H
6671 # include <netinet/ip.h>
6672 #endif
6674 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6675 cat >>confdefs.h <<_ACEOF
6676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6677 _ACEOF
6681 done
6684 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6685 do :
6686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6687 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6688 #ifdef HAVE_ALIAS_H
6689 # include <alias.h>
6690 #endif
6691 #ifdef HAVE_SYS_SOCKET_H
6692 # include <sys/socket.h>
6693 #endif
6694 #ifdef HAVE_SYS_SOCKETVAR_H
6695 # include <sys/socketvar.h>
6696 #endif
6697 #ifdef HAVE_SYS_TIMEOUT_H
6698 # include <sys/timeout.h>
6699 #endif
6700 #ifdef HAVE_NETINET_IN_H
6701 # include <netinet/in.h>
6702 #endif
6703 #ifdef HAVE_NETINET_IN_SYSTM_H
6704 # include <netinet/in_systm.h>
6705 #endif
6706 #ifdef HAVE_NETINET_IP_H
6707 # include <netinet/ip.h>
6708 #endif
6709 #ifdef HAVE_NETINET_IP_VAR_H
6710 # include <netinet/ip_var.h>
6711 #endif
6712 #ifdef HAVE_NETINET_IP_ICMP_H
6713 # include <netinet/ip_icmp.h>
6714 #endif
6715 #ifdef HAVE_NETINET_UDP_H
6716 # include <netinet/udp.h>
6717 #endif
6718 #ifdef HAVE_NETINET_TCP_H
6719 # include <netinet/tcp.h>
6720 #endif
6721 #ifdef HAVE_NETINET_TCP_TIMER_H
6722 #include <netinet/tcp_timer.h>
6723 #endif
6725 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6726 cat >>confdefs.h <<_ACEOF
6727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6728 _ACEOF
6732 done
6735 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6736 do :
6737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6738 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6739 #ifdef HAVE_ASM_TYPES_H
6740 # include <asm/types.h>
6741 #endif
6742 #ifdef HAVE_SYS_SOCKET_H
6743 # include <sys/socket.h>
6744 #endif
6745 #ifdef HAVE_LINUX_TYPES_H
6746 # include <linux/types.h>
6747 #endif
6749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6750 cat >>confdefs.h <<_ACEOF
6751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6752 _ACEOF
6756 done
6759 for ac_header in mach-o/dyld_images.h
6760 do :
6761 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6762 # include <stdbool.h>
6763 #endif
6764 #ifdef HAVE_STDINT_H
6765 # include <stdint.h>
6766 #endif
6768 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6769 cat >>confdefs.h <<_ACEOF
6770 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6771 _ACEOF
6775 done
6778 for ac_header in resolv.h
6779 do :
6780 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6781 #ifdef HAVE_SYS_SOCKET_H
6782 # include <sys/socket.h>
6783 #endif
6784 #ifdef HAVE_NETINET_IN_H
6785 # include <netinet/in.h>
6786 #endif
6787 #ifdef HAVE_ARPA_NAMESER_H
6788 # include <arpa/nameser.h>
6789 #endif
6791 if test "x$ac_cv_header_resolv_h" = xyes; then :
6792 cat >>confdefs.h <<_ACEOF
6793 #define HAVE_RESOLV_H 1
6794 _ACEOF
6798 done
6801 for ac_header in ifaddrs.h
6802 do :
6803 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6805 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6806 cat >>confdefs.h <<_ACEOF
6807 #define HAVE_IFADDRS_H 1
6808 _ACEOF
6812 done
6815 for ac_header in ucontext.h
6816 do :
6817 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6819 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6820 cat >>confdefs.h <<_ACEOF
6821 #define HAVE_UCONTEXT_H 1
6822 _ACEOF
6826 done
6829 for ac_header in sys/thr.h
6830 do :
6831 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6832 #ifdef HAVE_UCONTEXT_H
6833 #include <ucontext.h>
6834 #endif
6836 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6837 cat >>confdefs.h <<_ACEOF
6838 #define HAVE_SYS_THR_H 1
6839 _ACEOF
6843 done
6846 for ac_header in pthread_np.h
6847 do :
6848 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6849 #include <pthread.h>
6850 #endif
6852 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6853 cat >>confdefs.h <<_ACEOF
6854 #define HAVE_PTHREAD_NP_H 1
6855 _ACEOF
6859 done
6862 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6863 do :
6864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6865 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6866 #include <sys/time.h>
6867 #endif
6868 #include <sys/types.h>
6869 #ifdef HAVE_ASM_TYPES_H
6870 #include <asm/types.h>
6871 #endif
6873 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6874 cat >>confdefs.h <<_ACEOF
6875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6876 _ACEOF
6880 done
6883 for ac_header in libprocstat.h
6884 do :
6885 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6886 #include <sys/param.h>
6887 #endif
6888 #ifdef HAVE_SYS_QUEUE_H
6889 #include <sys/queue.h>
6890 #endif
6891 #ifdef HAVE_SYS_SOCKET_H
6892 #include <sys/socket.h>
6893 #endif
6895 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6896 cat >>confdefs.h <<_ACEOF
6897 #define HAVE_LIBPROCSTAT_H 1
6898 _ACEOF
6902 done
6906 dlldir="\${libdir}/wine"
6908 DLLPREFIX=""
6910 DLLFLAGS="-D_REENTRANT"
6912 LDRPATH_INSTALL=""
6914 LDRPATH_LOCAL=""
6916 LIBEXT="so"
6917 DLLEXT=".so"
6918 IMPLIBEXT="def"
6919 STATIC_IMPLIBEXT="def.a"
6920 # Extract the first word of "ldd", so it can be a program name with args.
6921 set dummy ldd; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if ${ac_cv_path_LDD+:} false; then :
6925 $as_echo_n "(cached) " >&6
6926 else
6927 case $LDD in
6928 [\\/]* | ?:[\\/]*)
6929 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 as_dummy="/sbin:/usr/sbin:$PATH"
6934 for as_dir in $as_dummy
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6944 done
6945 done
6946 IFS=$as_save_IFS
6948 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6950 esac
6952 LDD=$ac_cv_path_LDD
6953 if test -n "$LDD"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6955 $as_echo "$LDD" >&6; }
6956 else
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6962 if test -n "$ac_tool_prefix"; then
6963 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6964 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_READELF+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 if test -n "$READELF"; then
6971 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6984 done
6985 done
6986 IFS=$as_save_IFS
6990 READELF=$ac_cv_prog_READELF
6991 if test -n "$READELF"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6993 $as_echo "$READELF" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
7001 if test -z "$ac_cv_prog_READELF"; then
7002 ac_ct_READELF=$READELF
7003 # Extract the first word of "readelf", so it can be a program name with args.
7004 set dummy readelf; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 if test -n "$ac_ct_READELF"; then
7011 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
7012 else
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020 ac_cv_prog_ac_ct_READELF="readelf"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7024 done
7025 done
7026 IFS=$as_save_IFS
7030 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7031 if test -n "$ac_ct_READELF"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7033 $as_echo "$ac_ct_READELF" >&6; }
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7039 if test "x$ac_ct_READELF" = x; then
7040 READELF="true"
7041 else
7042 case $cross_compiling:$ac_tool_warned in
7043 yes:)
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7046 ac_tool_warned=yes ;;
7047 esac
7048 READELF=$ac_ct_READELF
7050 else
7051 READELF="$ac_cv_prog_READELF"
7054 wine_rules_file=conf$$rules.make
7055 rm -f $wine_rules_file
7056 ALL_POT_FILES=""
7057 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7058 ALL_TEST_RESOURCES=""
7061 wine_fn_append_file ()
7063 as_fn_append $1 " \\$as_nl $2"
7066 wine_fn_ignore_file ()
7068 case "$1" in
7069 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7070 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7071 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7072 esac
7075 wine_fn_append_rule ()
7077 $as_echo "$1" >>$wine_rules_file
7080 wine_fn_has_flag ()
7082 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7085 wine_fn_depend_rules ()
7087 ac_alldeps=$1
7088 ac_makedep="\$(MAKEDEP)"
7089 ac_input=Make.vars.in:$ac_dir/Makefile.in
7090 case $1 in
7091 *.in)
7092 ac_input=$ac_input:$1
7093 test "$srcdir" = . || ac_alldeps="$srcdir/$ac_alldeps" ;;
7095 ac_makedep="$1 $ac_makedep" ;;
7096 esac
7098 wine_fn_append_rule \
7099 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status $ac_alldeps \$(MAKEDEP)
7100 @./config.status --file $ac_dir/Makefile:$ac_input && \$(MAKEDEP) -M $ac_dir
7101 depend: $ac_dir/depend
7102 .PHONY: $ac_dir/depend
7103 $ac_dir/depend: $ac_makedep dummy
7104 @./config.status --file $ac_dir/Makefile:$ac_input && \$(MAKEDEP) -M $ac_dir"
7107 wine_fn_pot_rules ()
7109 test "x$with_gettextpo" = xyes || return
7111 if wine_fn_has_flag mc
7112 then
7113 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7114 wine_fn_append_rule \
7115 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7116 @cd $ac_dir && \$(MAKE) msg.pot
7117 $ac_dir/msg.pot: tools/wmc include"
7119 if wine_fn_has_flag po
7120 then
7121 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7122 wine_fn_append_rule \
7123 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7124 @cd $ac_dir && \$(MAKE) rsrc.pot
7125 $ac_dir/rsrc.pot: tools/wrc include"
7129 wine_fn_all_rules ()
7131 ac_rules=$1
7133 wine_fn_depend_rules ${ac_rules:-Make.rules}
7134 wine_fn_append_rule \
7135 "all: $ac_dir
7136 .PHONY: $ac_dir
7137 $ac_dir: $ac_dir/Makefile dummy
7138 @cd $ac_dir && \$(MAKE)"
7141 wine_fn_install_rules ()
7143 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7145 wine_fn_append_rule \
7146 ".PHONY: $ac_dir/install $ac_dir/uninstall
7147 $ac_dir/install:: $ac_dir
7148 @cd $ac_dir && \$(MAKE) install
7149 $ac_dir/uninstall:: $ac_dir/Makefile
7150 @cd $ac_dir && \$(MAKE) uninstall
7151 install:: $ac_dir/install
7152 __uninstall__: $ac_dir/uninstall"
7154 if wine_fn_has_flag install-lib
7155 then
7156 wine_fn_append_rule \
7157 ".PHONY: $ac_dir/install-lib
7158 $ac_dir/install-lib:: $ac_dir
7159 @cd $ac_dir && \$(MAKE) install-lib
7160 install-lib:: $ac_dir/install-lib"
7163 if wine_fn_has_flag install-dev
7164 then
7165 wine_fn_append_rule \
7166 ".PHONY: $ac_dir/install-dev
7167 $ac_dir/install-dev:: $ac_dir
7168 @cd $ac_dir && \$(MAKE) install-dev
7169 install-dev:: $ac_dir/install-dev"
7173 wine_fn_clean_rules ()
7175 ac_clean=$@
7176 ac_extraclean="$ac_dir/Makefile"
7177 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7179 if wine_fn_has_flag clean
7180 then
7181 wine_fn_append_rule \
7182 "__clean__: $ac_dir/clean
7183 .PHONY: $ac_dir/clean
7184 $ac_dir/clean: $ac_dir/Makefile
7185 @cd $ac_dir && \$(MAKE) clean
7186 \$(RM) $ac_extraclean"
7187 else
7188 wine_fn_append_rule \
7189 "__clean__: $ac_dir/clean
7190 .PHONY: $ac_dir/clean
7191 $ac_dir/clean: dummy
7192 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7196 wine_fn_disabled_rules ()
7198 ac_clean=$@
7199 ac_extraclean="$ac_dir/Makefile"
7200 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7202 wine_fn_append_rule \
7203 "__clean__: $ac_dir/clean
7204 .PHONY: $ac_dir/clean
7205 $ac_dir/clean: dummy
7206 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7209 wine_fn_config_makefile ()
7211 ac_dir=$1
7212 ac_enable=$2
7213 ac_flags=$3
7215 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7216 wine_fn_disabled_rules; return
7218 wine_fn_all_rules
7219 wine_fn_install_rules
7220 wine_fn_clean_rules
7223 wine_fn_config_lib ()
7225 ac_name=$1
7226 ac_flags=$2
7227 ac_dir=dlls/$ac_name
7228 ac_deps="include"
7230 if test "x$enable_tools" = xno; then :
7232 else
7233 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7235 wine_fn_all_rules Make.rules.in
7236 wine_fn_clean_rules
7238 wine_fn_append_rule \
7239 ".PHONY: $ac_dir/install $ac_dir/uninstall
7240 $ac_dir/install:: $ac_dir
7241 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7242 $ac_dir/uninstall::
7243 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7244 install install-dev:: $ac_dir/install
7245 __uninstall__: $ac_dir/uninstall
7246 __builddeps__: $ac_dir
7247 $ac_dir: $ac_deps"
7250 wine_fn_config_dll ()
7252 ac_name=$1
7253 ac_dir=dlls/$ac_name
7254 ac_enable=$2
7255 ac_flags=$3
7256 ac_implib=${4:-$ac_name}
7257 ac_file=$ac_dir/lib$ac_implib
7258 ac_dll=$ac_name
7259 ac_deps="include"
7260 ac_implibflags=""
7262 if test "x$enable_tools" = xno; then :
7264 else
7265 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7267 case $ac_name in
7268 *16) ac_implibflags=" -m16" ;;
7269 *.*) ;;
7270 *) ac_dll=$ac_dll.dll ;;
7271 esac
7273 ac_clean=
7274 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7275 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7276 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7277 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7279 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7280 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7281 then
7282 wine_fn_depend_rules Make.rules.in
7283 wine_fn_clean_rules $ac_clean
7284 else
7285 wine_fn_disabled_rules $ac_clean
7286 return
7288 else
7289 wine_fn_all_rules Make.rules.in
7290 wine_fn_clean_rules $ac_clean
7291 wine_fn_append_rule \
7292 "$ac_dir: __builddeps__
7293 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7294 @cd $ac_dir && \$(MAKE) \$@
7295 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7296 install install-lib:: $ac_dir/install-lib
7297 __uninstall__: $ac_dir/uninstall"
7298 if test -n "$DLLEXT"
7299 then
7300 wine_fn_append_rule \
7301 "$ac_dir/install-lib:: $ac_dir
7302 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7303 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7304 $ac_dir/uninstall::
7305 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7306 else
7307 wine_fn_append_rule \
7308 "$ac_dir/install-lib:: $ac_dir
7309 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7310 $ac_dir/uninstall::
7311 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7314 wine_fn_pot_rules
7317 if wine_fn_has_flag staticimplib
7318 then
7319 wine_fn_append_rule \
7320 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7321 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7322 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7323 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7324 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7325 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7326 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7327 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7328 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7329 $ac_dir/uninstall::
7330 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7331 install install-dev:: $ac_dir/install-dev
7332 __uninstall__: $ac_dir/uninstall"
7334 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7335 then
7336 wine_fn_append_rule \
7337 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7338 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7339 $ac_dir/uninstall::
7340 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7343 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7344 then
7345 wine_fn_append_rule \
7346 "__builddeps__: $ac_file.cross.a
7347 $ac_file.cross.a: $ac_dir/Makefile dummy
7348 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7351 elif wine_fn_has_flag implib
7352 then
7353 wine_fn_append_rule \
7354 "__builddeps__: $ac_file.$IMPLIBEXT
7355 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7356 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7357 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7358 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7359 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7360 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7361 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7362 $ac_dir/uninstall::
7363 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7364 install install-dev:: $ac_dir/install-dev
7365 __uninstall__: $ac_dir/uninstall"
7366 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7367 then
7368 wine_fn_append_rule \
7369 "__builddeps__: $ac_file.cross.a
7370 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7371 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7374 if test "$ac_name" != "$ac_implib"
7375 then
7376 wine_fn_append_rule \
7377 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7378 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7379 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7380 clean::
7381 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7382 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7383 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7384 then
7385 wine_fn_append_rule \
7386 "__builddeps__: dlls/lib$ac_implib.cross.a
7387 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7388 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7389 clean::
7390 \$(RM) dlls/lib$ac_implib.cross.a"
7391 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7397 wine_fn_config_program ()
7399 ac_name=$1
7400 ac_dir=programs/$ac_name
7401 ac_enable=$2
7402 ac_flags=$3
7403 ac_program=$ac_name
7405 case $ac_name in
7406 *.*) ;;
7407 *) ac_program=$ac_program.exe ;;
7408 esac
7410 ac_clean=
7411 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7412 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7413 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7414 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7416 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7417 wine_fn_disabled_rules $ac_clean; return
7420 wine_fn_all_rules Make.rules.in
7421 wine_fn_clean_rules $ac_clean
7422 wine_fn_append_rule "$ac_dir: __builddeps__"
7423 wine_fn_pot_rules
7425 wine_fn_has_flag install || return
7426 wine_fn_append_rule \
7427 ".PHONY: $ac_dir/install $ac_dir/uninstall
7428 install install-lib:: $ac_dir/install
7429 __uninstall__: $ac_dir/uninstall"
7431 if test -n "$DLLEXT"
7432 then
7433 wine_fn_append_rule \
7434 "$ac_dir/install:: $ac_dir
7435 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7436 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7437 $ac_dir/uninstall::
7438 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7440 if test -z "$with_wine64" && wine_fn_has_flag installbin
7441 then
7442 wine_fn_append_rule \
7443 "$ac_dir/install:: __tooldeps__
7444 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7445 $ac_dir/uninstall::
7446 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7448 else
7449 wine_fn_append_rule \
7450 "$ac_dir/install:: $ac_dir
7451 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7452 $ac_dir/uninstall::
7453 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7456 if test -z "$with_wine64" && wine_fn_has_flag manpage
7457 then
7458 wine_fn_append_rule \
7459 "$ac_dir/install:: $ac_dir
7460 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7461 $ac_dir/uninstall::
7462 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7466 wine_fn_config_test ()
7468 ac_dir=$1
7469 ac_name=$2
7470 ac_flags=$3
7472 ac_clean=
7473 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7474 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7475 ac_clean="$ac_clean $ac_dir/testlist.c"
7477 if test "x$enable_tests" = xno; then :
7478 wine_fn_disabled_rules $ac_clean; return
7481 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7482 wine_fn_all_rules Make.rules.in
7483 wine_fn_clean_rules $ac_clean
7485 wine_fn_append_rule \
7486 "$ac_dir: programs/winetest/Makefile __builddeps__
7487 programs/winetest: $ac_dir
7488 check test: $ac_dir/test
7489 .PHONY: $ac_dir/test
7490 $ac_dir/test: dummy
7491 @cd $ac_dir && \$(MAKE) test
7492 testclean::
7493 \$(RM) $ac_dir/*.ok"
7495 if test -n "$CROSSTARGET"
7496 then
7497 wine_fn_append_rule \
7498 "crosstest: $ac_dir/crosstest
7499 .PHONY: $ac_dir/crosstest
7500 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7501 @cd $ac_dir && \$(MAKE) crosstest"
7505 wine_fn_config_tool ()
7507 ac_dir=$1
7508 ac_flags=$2
7509 if test "x$enable_tools" = xno; then :
7510 return
7513 wine_fn_all_rules
7514 wine_fn_install_rules
7515 wine_fn_clean_rules
7517 wine_fn_append_rule "__tooldeps__: $ac_dir"
7518 wine_fn_append_rule "$ac_dir: libs/port"
7519 case $ac_dir in
7520 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7521 esac
7524 wine_fn_config_makerules ()
7526 ac_rules=$1
7527 ac_deps=$2
7528 wine_fn_append_rule \
7529 "$ac_rules: $srcdir/$ac_rules.in $ac_deps config.status
7530 @./config.status $ac_rules
7531 distclean::
7532 \$(RM) $ac_rules"
7533 wine_fn_ignore_file $ac_rules
7536 wine_fn_config_symlink ()
7538 ac_linkdir=
7539 if test "x$1" = "x-d"
7540 then
7541 ac_linkdir=$2
7542 shift; shift
7544 ac_links=$@
7545 wine_fn_append_rule \
7546 "$ac_links:
7547 @./config.status \$@
7548 distclean::
7549 \$(RM) $ac_links"
7550 for f in $ac_links; do wine_fn_ignore_file $f; done
7551 test -n "$ac_linkdir" || return
7552 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7555 wine_binary="wine"
7556 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7557 loader_programs="$wine_binary wine-installed"
7558 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7560 LOADER_RULES="
7561 install install-lib:: wine-installed
7562 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7564 uninstall::
7565 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7569 case $host_os in
7570 cygwin*|mingw32*)
7571 if test -n "$ac_tool_prefix"; then
7572 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7573 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_DLLTOOL+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 if test -n "$DLLTOOL"; then
7580 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7593 done
7594 done
7595 IFS=$as_save_IFS
7599 DLLTOOL=$ac_cv_prog_DLLTOOL
7600 if test -n "$DLLTOOL"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7602 $as_echo "$DLLTOOL" >&6; }
7603 else
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7610 if test -z "$ac_cv_prog_DLLTOOL"; then
7611 ac_ct_DLLTOOL=$DLLTOOL
7612 # Extract the first word of "dlltool", so it can be a program name with args.
7613 set dummy dlltool; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 if test -n "$ac_ct_DLLTOOL"; then
7620 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7633 done
7634 done
7635 IFS=$as_save_IFS
7639 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7640 if test -n "$ac_ct_DLLTOOL"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7642 $as_echo "$ac_ct_DLLTOOL" >&6; }
7643 else
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7648 if test "x$ac_ct_DLLTOOL" = x; then
7649 DLLTOOL="false"
7650 else
7651 case $cross_compiling:$ac_tool_warned in
7652 yes:)
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655 ac_tool_warned=yes ;;
7656 esac
7657 DLLTOOL=$ac_ct_DLLTOOL
7659 else
7660 DLLTOOL="$ac_cv_prog_DLLTOOL"
7663 LIBEXT="dll"
7664 DLLEXT=""
7665 IMPLIBEXT="a"
7666 STATIC_IMPLIBEXT="a"
7667 enable_iphlpapi=${enable_iphlpapi:-no}
7668 enable_kernel32=${enable_kernel32:-no}
7669 enable_msvcrt=${enable_msvcrt:-no}
7670 enable_ntdll=${enable_ntdll:-no}
7671 enable_ws2_32=${enable_ws2_32:-no}
7672 enable_loader=${enable_loader:-no}
7673 enable_server=${enable_server:-no}
7674 with_x=${with_x:-no}
7675 with_pthread=${with_pthread:-no}
7677 crtlibs=""
7678 case $host_os in
7679 mingw32*)
7680 crtlibs="-lmsvcrt"
7681 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7683 esac
7685 libwine_targets="libwine.dll libwine.a"
7686 LIBWINE_RULES="
7687 all: libwine.dll libwine.a
7689 libwine.a: \$(srcdir)/wine.def
7690 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7692 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7693 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7695 install install-lib:: libwine.dll
7696 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7698 install install-dev:: libwine.a
7699 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7701 uninstall::
7702 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7707 darwin*|macosx*)
7708 LIBEXT="dylib"
7709 DLLFLAGS="$DLLFLAGS -fPIC"
7710 LIBWINE_LDFLAGS="-multiply_defined suppress"
7711 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7712 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7713 COREFOUNDATIONLIB="-framework CoreFoundation"
7715 IOKITLIB="-framework IOKit -framework CoreFoundation"
7717 FORCEFEEDBACKLIB="-framework ForceFeedback -framework CoreFoundation"
7719 APPLICATIONSERVICESLIB="-framework ApplicationServices"
7721 CORESERVICESLIB="-framework CoreServices"
7723 APPKITLIB="-framework AppKit"
7725 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7726 case $host_os in
7727 darwin11*) LDEXECFLAGS="-Wl,-macosx_version_min,10.6 $LDEXECFLAGS" ;;
7728 esac
7729 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7730 then
7731 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
7734 if test "$ac_cv_header_Security_Security_h" = "yes"
7735 then
7736 SECURITYLIB="-framework Security -framework CoreFoundation"
7738 ac_save_LIBS="$LIBS"
7739 LIBS="$LIBS $SECURITYLIB"
7740 for ac_func in SSLCopyPeerCertificates
7741 do :
7742 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7743 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7744 cat >>confdefs.h <<_ACEOF
7745 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7746 _ACEOF
7749 done
7751 LIBS="$ac_save_LIBS"
7752 with_gnutls=${with_gnutls:-no}
7754 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7755 then
7756 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7757 then
7758 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7760 else
7761 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7764 ac_save_LIBS="$LIBS"
7765 LIBS="$LIBS $COREAUDIO"
7766 for ac_func in AUGraphAddNode
7767 do :
7768 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7769 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7770 cat >>confdefs.h <<_ACEOF
7771 #define HAVE_AUGRAPHADDNODE 1
7772 _ACEOF
7775 done
7777 LIBS="$ac_save_LIBS"
7779 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7780 then
7781 FRAMEWORK_OPENAL="-framework OpenAL"
7784 cat >>confdefs.h <<_ACEOF
7785 #define HAVE_OPENAL 1
7786 _ACEOF
7788 ac_cv_lib_openal=yes
7790 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7791 then
7792 LIBOPENCL="-framework OpenCL"
7794 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7796 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7797 then
7798 ac_save_LIBS="$LIBS"
7799 LIBS="$LIBS $IOKITLIB"
7800 for ac_func in IOHIDManagerCreate
7801 do :
7802 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7803 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7804 cat >>confdefs.h <<_ACEOF
7805 #define HAVE_IOHIDMANAGERCREATE 1
7806 _ACEOF
7809 done
7811 LIBS="$ac_save_LIBS"
7813 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7814 then
7815 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7817 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7818 else
7819 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7821 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7822 then
7823 CARBONLIB="-framework Carbon"
7827 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
7828 then
7829 ac_save_LIBS="$LIBS"
7830 LIBS="$LIBS $APPLICATIONSERVICESLIB"
7831 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
7832 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
7833 enable_winemac_drv=${enable_winemac_drv:-yes}
7836 LIBS="$ac_save_LIBS"
7839 if test "x$enable_win16" = "xyes"
7840 then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
7842 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
7843 if test "$cross_compiling" = yes; then :
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
7845 $as_echo "cross-compiling, assuming yes" >&6; }
7846 else
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 asm(".text\n"
7850 "bad:\tnop;nop\n"
7851 "good:\tnop;nop\n\t"
7852 ".globl _testfunc\n"
7853 "_testfunc:\tcallw good");
7854 extern void testfunc();
7856 main ()
7858 unsigned short *p = (unsigned short *)testfunc;
7859 return p[0] != 0xe866 || p[1] != 0xfffa
7861 return 0;
7863 _ACEOF
7864 if ac_fn_c_try_run "$LINENO"; then :
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7866 $as_echo "yes" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 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
7872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7873 conftest.$ac_objext conftest.beam conftest.$ac_ext
7878 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
7879 LIBWINE_RULES="
7880 all: libwine.dylib
7882 libwine.$libwine_version.dylib: \$(OBJS)
7883 \$(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 \$@
7885 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
7886 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
7888 libwine.dylib: libwine.$libwine_soversion.dylib
7889 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
7891 install install-lib:: libwine.$libwine_version.dylib
7892 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
7893 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
7895 install install-dev::
7896 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
7898 uninstall::
7899 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
7903 as_fn_append LOADER_RULES "
7904 $wine_binary: main.o wine_info.plist
7905 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
7907 wine-installed: main.o wine_info.plist
7908 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
7912 linux-android*)
7913 DLLFLAGS="$DLLFLAGS -fPIC"
7914 DLLPREFIX="lib"
7915 LDEXECFLAGS=""
7916 dlldir="\${libdir}"
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7918 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7919 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 ac_wine_try_cflags_saved=$CFLAGS
7923 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926 int main(int argc, char **argv) { return 0; }
7927 _ACEOF
7928 if ac_fn_c_try_link "$LINENO"; then :
7929 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7930 else
7931 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7933 rm -f core conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
7935 CFLAGS=$ac_wine_try_cflags_saved
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7938 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7939 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7940 LDEXECFLAGS="-Wl,--export-dynamic"
7942 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7944 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7945 if eval \${$as_ac_var+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 ac_wine_try_cflags_saved=$CFLAGS
7949 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952 int main(int argc, char **argv) { return 0; }
7953 _ACEOF
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 eval "$as_ac_var=yes"
7956 else
7957 eval "$as_ac_var=no"
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 CFLAGS=$ac_wine_try_cflags_saved
7963 eval ac_res=\$$as_ac_var
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7965 $as_echo "$ac_res" >&6; }
7966 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7967 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7968 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7969 else
7970 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7972 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7973 if eval \${$as_ac_var+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 ac_wine_try_cflags_saved=$CFLAGS
7977 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980 int main(int argc, char **argv) { return 0; }
7981 _ACEOF
7982 if ac_fn_c_try_link "$LINENO"; then :
7983 eval "$as_ac_var=yes"
7984 else
7985 eval "$as_ac_var=no"
7987 rm -f core conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7989 CFLAGS=$ac_wine_try_cflags_saved
7991 eval ac_res=\$$as_ac_var
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7993 $as_echo "$ac_res" >&6; }
7994 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7995 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7996 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8001 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8002 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 ac_wine_try_cflags_saved=$CFLAGS
8006 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 int main(int argc, char **argv) { return 0; }
8010 _ACEOF
8011 if ac_fn_c_try_link "$LINENO"; then :
8012 ac_cv_cflags__Wl___enable_new_dtags=yes
8013 else
8014 ac_cv_cflags__Wl___enable_new_dtags=no
8016 rm -f core conftest.err conftest.$ac_objext \
8017 conftest$ac_exeext conftest.$ac_ext
8018 CFLAGS=$ac_wine_try_cflags_saved
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8021 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8022 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8023 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8026 case $host_cpu in
8027 *i[3456789]86* | x86_64)
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8029 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8030 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 ac_wine_try_cflags_saved=$CFLAGS
8034 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 int main(int argc, char **argv) { return 0; }
8038 _ACEOF
8039 if ac_fn_c_try_link "$LINENO"; then :
8040 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8041 else
8042 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8044 rm -f core conftest.err conftest.$ac_objext \
8045 conftest$ac_exeext conftest.$ac_ext
8046 CFLAGS=$ac_wine_try_cflags_saved
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8049 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8050 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8051 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8054 esac
8056 libwine_targets="libwine.so"
8057 LIBWINE_RULES="
8058 all: libwine.so
8060 libwine.so: \$(OBJS)
8061 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8063 install install-lib:: libwine.so
8064 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8066 uninstall::
8067 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8071 as_fn_append LOADER_RULES "
8072 $wine_binary: main.o
8073 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8075 wine-installed: main.o
8076 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8081 DLLFLAGS="$DLLFLAGS -fPIC"
8082 LDEXECFLAGS=""
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8084 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8085 if ${ac_cv_c_dll_gnuelf+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 ac_wine_try_cflags_saved=$CFLAGS
8089 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8092 void myfunc() {}
8093 _ACEOF
8094 if ac_fn_c_try_link "$LINENO"; then :
8095 ac_cv_c_dll_gnuelf="yes"
8096 else
8097 ac_cv_c_dll_gnuelf="no"
8099 rm -f core conftest.err conftest.$ac_objext \
8100 conftest$ac_exeext conftest.$ac_ext
8101 CFLAGS=$ac_wine_try_cflags_saved
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8104 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8105 if test "$ac_cv_c_dll_gnuelf" = "yes"
8106 then
8107 LDSHARED="\$(CC) -shared"
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8109 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8110 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 ac_wine_try_cflags_saved=$CFLAGS
8114 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8117 int main(int argc, char **argv) { return 0; }
8118 _ACEOF
8119 if ac_fn_c_try_link "$LINENO"; then :
8120 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8121 else
8122 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8124 rm -f core conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
8126 CFLAGS=$ac_wine_try_cflags_saved
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8129 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8130 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
8131 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8134 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8135 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 ac_wine_try_cflags_saved=$CFLAGS
8139 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8142 int main(int argc, char **argv) { return 0; }
8143 _ACEOF
8144 if ac_fn_c_try_link "$LINENO"; then :
8145 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8146 else
8147 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8149 rm -f core conftest.err conftest.$ac_objext \
8150 conftest$ac_exeext conftest.$ac_ext
8151 CFLAGS=$ac_wine_try_cflags_saved
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8154 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8155 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
8156 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8160 echo '{ global: *; };' >conftest.map
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8162 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8163 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 ac_wine_try_cflags_saved=$CFLAGS
8167 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 int main(int argc, char **argv) { return 0; }
8171 _ACEOF
8172 if ac_fn_c_try_link "$LINENO"; then :
8173 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8174 else
8175 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8177 rm -f core conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
8179 CFLAGS=$ac_wine_try_cflags_saved
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8182 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8183 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
8184 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8186 rm -f conftest.map
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8189 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8190 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 ac_wine_try_cflags_saved=$CFLAGS
8194 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 int main(int argc, char **argv) { return 0; }
8198 _ACEOF
8199 if ac_fn_c_try_link "$LINENO"; then :
8200 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8201 else
8202 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8204 rm -f core conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8206 CFLAGS=$ac_wine_try_cflags_saved
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8209 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8210 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
8211 LDEXECFLAGS="-Wl,--export-dynamic"
8214 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8216 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8217 if eval \${$as_ac_var+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 ac_wine_try_cflags_saved=$CFLAGS
8221 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 int main(int argc, char **argv) { return 0; }
8225 _ACEOF
8226 if ac_fn_c_try_link "$LINENO"; then :
8227 eval "$as_ac_var=yes"
8228 else
8229 eval "$as_ac_var=no"
8231 rm -f core conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
8233 CFLAGS=$ac_wine_try_cflags_saved
8235 eval ac_res=\$$as_ac_var
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8237 $as_echo "$ac_res" >&6; }
8238 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8239 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8240 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8241 else
8242 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8244 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8245 if eval \${$as_ac_var+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 ac_wine_try_cflags_saved=$CFLAGS
8249 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 int main(int argc, char **argv) { return 0; }
8253 _ACEOF
8254 if ac_fn_c_try_link "$LINENO"; then :
8255 eval "$as_ac_var=yes"
8256 else
8257 eval "$as_ac_var=no"
8259 rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8261 CFLAGS=$ac_wine_try_cflags_saved
8263 eval ac_res=\$$as_ac_var
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8265 $as_echo "$ac_res" >&6; }
8266 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8267 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8268 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8273 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8274 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 ac_wine_try_cflags_saved=$CFLAGS
8278 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8281 int main(int argc, char **argv) { return 0; }
8282 _ACEOF
8283 if ac_fn_c_try_link "$LINENO"; then :
8284 ac_cv_cflags__Wl___enable_new_dtags=yes
8285 else
8286 ac_cv_cflags__Wl___enable_new_dtags=no
8288 rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8290 CFLAGS=$ac_wine_try_cflags_saved
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8293 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8294 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8295 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8298 case $host_cpu in
8299 *i[3456789]86* | x86_64)
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8301 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8302 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 ac_wine_try_cflags_saved=$CFLAGS
8306 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 int main(int argc, char **argv) { return 0; }
8310 _ACEOF
8311 if ac_fn_c_try_link "$LINENO"; then :
8312 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8313 else
8314 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8316 rm -f core conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
8318 CFLAGS=$ac_wine_try_cflags_saved
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8321 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8322 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8323 case $host_os in
8324 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8325 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8326 esac
8329 # Extract the first word of "prelink", so it can be a program name with args.
8330 set dummy prelink; ac_word=$2
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332 $as_echo_n "checking for $ac_word... " >&6; }
8333 if ${ac_cv_path_PRELINK+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 case $PRELINK in
8337 [\\/]* | ?:[\\/]*)
8338 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in /sbin /usr/sbin $PATH
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 break 2
8352 done
8353 done
8354 IFS=$as_save_IFS
8356 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8358 esac
8360 PRELINK=$ac_cv_path_PRELINK
8361 if test -n "$PRELINK"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8363 $as_echo "$PRELINK" >&6; }
8364 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8370 if test "x$PRELINK" = xfalse
8371 then
8372 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8375 esac
8377 else
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8379 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8380 if ${ac_cv_c_dll_unixware+:} false; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 ac_wine_try_cflags_saved=$CFLAGS
8384 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 void myfunc() {}
8388 _ACEOF
8389 if ac_fn_c_try_link "$LINENO"; then :
8390 ac_cv_c_dll_unixware="yes"
8391 else
8392 ac_cv_c_dll_unixware="no"
8394 rm -f core conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396 CFLAGS=$ac_wine_try_cflags_saved
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8399 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8400 if test "$ac_cv_c_dll_unixware" = "yes"
8401 then
8402 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8405 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8406 LIBWINE_RULES="
8407 all: libwine.so
8409 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8410 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8412 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8413 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8415 libwine.so: libwine.so.$libwine_soversion
8416 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8418 install install-lib:: libwine.so.$libwine_version
8419 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8420 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8422 install install-dev::
8423 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8425 uninstall::
8426 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8430 as_fn_append LOADER_RULES "
8431 $wine_binary: main.o
8432 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8434 wine-installed: main.o
8435 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8438 esac
8440 as_fn_append LIBWINE_RULES "
8441 EXTRA_TARGETS = $libwine_targets
8444 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8445 enable_winemac_drv=${enable_winemac_drv:-no}
8447 CROSSTARGET=""
8449 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8450 then
8451 case "$host_cpu" in
8452 i[3456789]86*)
8453 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
8454 mingw32-gcc" ;;
8455 x86_64)
8456 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 " ;;
8458 ac_prefix_list="" ;;
8459 esac
8460 for ac_prog in $ac_prefix_list
8462 # Extract the first word of "$ac_prog", so it can be a program name with args.
8463 set dummy $ac_prog; ac_word=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if ${ac_cv_prog_CROSSCC+:} false; then :
8467 $as_echo_n "(cached) " >&6
8468 else
8469 if test -n "$CROSSCC"; then
8470 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8471 else
8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 for as_dir in $PATH
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_CROSSCC="$ac_prog"
8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 break 2
8483 done
8484 done
8485 IFS=$as_save_IFS
8489 CROSSCC=$ac_cv_prog_CROSSCC
8490 if test -n "$CROSSCC"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8492 $as_echo "$CROSSCC" >&6; }
8493 else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8499 test -n "$CROSSCC" && break
8500 done
8501 test -n "$CROSSCC" || CROSSCC="false"
8503 if test "$CROSSCC" != "false"
8504 then
8505 ac_save_CC="$CC"
8506 CC="$CROSSCC"
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8508 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8513 main ()
8517 return 0;
8519 _ACEOF
8520 if ac_fn_c_try_compile "$LINENO"; then :
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8522 $as_echo "yes" >&6; }
8523 set x $CROSSCC
8524 shift
8525 while test $# -ge 1
8527 case "$1" in
8528 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8529 esac
8530 shift
8531 done
8532 else
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534 $as_echo "no" >&6; }
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 CC="$ac_save_CC"
8542 if test "$ac_cv_header_pthread_h" = "yes"
8543 then
8544 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8545 if test "x$ac_cv_func_pthread_create" = xyes; then :
8547 else
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8549 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8550 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 ac_check_lib_save_LIBS=$LIBS
8554 LIBS="-lpthread $LIBS"
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8558 /* Override any GCC internal prototype to avoid an error.
8559 Use char because int might match the return type of a GCC
8560 builtin and then its argument prototype would still apply. */
8561 #ifdef __cplusplus
8562 extern "C"
8563 #endif
8564 char pthread_create ();
8566 main ()
8568 return pthread_create ();
8570 return 0;
8572 _ACEOF
8573 if ac_fn_c_try_link "$LINENO"; then :
8574 ac_cv_lib_pthread_pthread_create=yes
8575 else
8576 ac_cv_lib_pthread_pthread_create=no
8578 rm -f core conftest.err conftest.$ac_objext \
8579 conftest$ac_exeext conftest.$ac_ext
8580 LIBS=$ac_check_lib_save_LIBS
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8583 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8584 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8585 LIBPTHREAD="-lpthread"
8592 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
8593 case "x$with_pthread" in
8594 xno) ;;
8595 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8596 Wine cannot support threads without libpthread.
8597 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8598 esac
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8603 $as_echo_n "checking for X... " >&6; }
8606 # Check whether --with-x was given.
8607 if test "${with_x+set}" = set; then :
8608 withval=$with_x;
8611 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8612 if test "x$with_x" = xno; then
8613 # The user explicitly disabled X.
8614 have_x=disabled
8615 else
8616 case $x_includes,$x_libraries in #(
8617 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8618 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 # One or both of the vars are not set, and there is no cached value.
8622 ac_x_includes=no ac_x_libraries=no
8623 rm -f -r conftest.dir
8624 if mkdir conftest.dir; then
8625 cd conftest.dir
8626 cat >Imakefile <<'_ACEOF'
8627 incroot:
8628 @echo incroot='${INCROOT}'
8629 usrlibdir:
8630 @echo usrlibdir='${USRLIBDIR}'
8631 libdir:
8632 @echo libdir='${LIBDIR}'
8633 _ACEOF
8634 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8635 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8636 for ac_var in incroot usrlibdir libdir; do
8637 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8638 done
8639 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8640 for ac_extension in a so sl dylib la dll; do
8641 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8642 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8643 ac_im_usrlibdir=$ac_im_libdir; break
8645 done
8646 # Screen out bogus values from the imake configuration. They are
8647 # bogus both because they are the default anyway, and because
8648 # using them would break gcc on systems where it needs fixed includes.
8649 case $ac_im_incroot in
8650 /usr/include) ac_x_includes= ;;
8651 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8652 esac
8653 case $ac_im_usrlibdir in
8654 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8655 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8656 esac
8658 cd ..
8659 rm -f -r conftest.dir
8662 # Standard set of common directories for X headers.
8663 # Check X11 before X11Rn because it is often a symlink to the current release.
8664 ac_x_header_dirs='
8665 /usr/X11/include
8666 /usr/X11R7/include
8667 /usr/X11R6/include
8668 /usr/X11R5/include
8669 /usr/X11R4/include
8671 /usr/include/X11
8672 /usr/include/X11R7
8673 /usr/include/X11R6
8674 /usr/include/X11R5
8675 /usr/include/X11R4
8677 /usr/local/X11/include
8678 /usr/local/X11R7/include
8679 /usr/local/X11R6/include
8680 /usr/local/X11R5/include
8681 /usr/local/X11R4/include
8683 /usr/local/include/X11
8684 /usr/local/include/X11R7
8685 /usr/local/include/X11R6
8686 /usr/local/include/X11R5
8687 /usr/local/include/X11R4
8689 /usr/X386/include
8690 /usr/x386/include
8691 /usr/XFree86/include/X11
8693 /usr/include
8694 /usr/local/include
8695 /usr/unsupported/include
8696 /usr/athena/include
8697 /usr/local/x11r5/include
8698 /usr/lpp/Xamples/include
8700 /usr/openwin/include
8701 /usr/openwin/share/include'
8703 if test "$ac_x_includes" = no; then
8704 # Guess where to find include files, by looking for Xlib.h.
8705 # First, try using that file with no special directory specified.
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 #include <X11/Xlib.h>
8709 _ACEOF
8710 if ac_fn_c_try_cpp "$LINENO"; then :
8711 # We can compile using X headers with no special include directory.
8712 ac_x_includes=
8713 else
8714 for ac_dir in $ac_x_header_dirs; do
8715 if test -r "$ac_dir/X11/Xlib.h"; then
8716 ac_x_includes=$ac_dir
8717 break
8719 done
8721 rm -f conftest.err conftest.i conftest.$ac_ext
8722 fi # $ac_x_includes = no
8724 if test "$ac_x_libraries" = no; then
8725 # Check for the libraries.
8726 # See if we find them without any special options.
8727 # Don't add to $LIBS permanently.
8728 ac_save_LIBS=$LIBS
8729 LIBS="-lX11 $LIBS"
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 #include <X11/Xlib.h>
8734 main ()
8736 XrmInitialize ()
8738 return 0;
8740 _ACEOF
8741 if ac_fn_c_try_link "$LINENO"; then :
8742 LIBS=$ac_save_LIBS
8743 # We can link X programs with no special library path.
8744 ac_x_libraries=
8745 else
8746 LIBS=$ac_save_LIBS
8747 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8749 # Don't even attempt the hair of trying to link an X program!
8750 for ac_extension in a so sl dylib la dll; do
8751 if test -r "$ac_dir/libX11.$ac_extension"; then
8752 ac_x_libraries=$ac_dir
8753 break 2
8755 done
8756 done
8758 rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 fi # $ac_x_libraries = no
8762 case $ac_x_includes,$ac_x_libraries in #(
8763 no,* | *,no | *\'*)
8764 # Didn't find X, or a directory has "'" in its name.
8765 ac_cv_have_x="have_x=no";; #(
8767 # Record where we found X for the cache.
8768 ac_cv_have_x="have_x=yes\
8769 ac_x_includes='$ac_x_includes'\
8770 ac_x_libraries='$ac_x_libraries'"
8771 esac
8773 ;; #(
8774 *) have_x=yes;;
8775 esac
8776 eval "$ac_cv_have_x"
8777 fi # $with_x != no
8779 if test "$have_x" != yes; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8781 $as_echo "$have_x" >&6; }
8782 no_x=yes
8783 else
8784 # If each of the values was on the command line, it overrides each guess.
8785 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8786 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8787 # Update the cache value to reflect the command line values.
8788 ac_cv_have_x="have_x=yes\
8789 ac_x_includes='$x_includes'\
8790 ac_x_libraries='$x_libraries'"
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8792 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8795 if test "$no_x" = yes; then
8796 # Not all programs may use this symbol, but it does not hurt to define it.
8798 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8800 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8801 else
8802 if test -n "$x_includes"; then
8803 X_CFLAGS="$X_CFLAGS -I$x_includes"
8806 # It would also be nice to do this for all -L options, not just this one.
8807 if test -n "$x_libraries"; then
8808 X_LIBS="$X_LIBS -L$x_libraries"
8809 # For Solaris; some versions of Sun CC require a space after -R and
8810 # others require no space. Words are not sufficient . . . .
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8812 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8813 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8814 ac_xsave_c_werror_flag=$ac_c_werror_flag
8815 ac_c_werror_flag=yes
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8820 main ()
8824 return 0;
8826 _ACEOF
8827 if ac_fn_c_try_link "$LINENO"; then :
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829 $as_echo "no" >&6; }
8830 X_LIBS="$X_LIBS -R$x_libraries"
8831 else
8832 LIBS="$ac_xsave_LIBS -R $x_libraries"
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8837 main ()
8841 return 0;
8843 _ACEOF
8844 if ac_fn_c_try_link "$LINENO"; then :
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8846 $as_echo "yes" >&6; }
8847 X_LIBS="$X_LIBS -R $x_libraries"
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8850 $as_echo "neither works" >&6; }
8852 rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8855 rm -f core conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857 ac_c_werror_flag=$ac_xsave_c_werror_flag
8858 LIBS=$ac_xsave_LIBS
8861 # Check for system-dependent libraries X programs must link with.
8862 # Do this before checking for the system-independent R6 libraries
8863 # (-lICE), since we may need -lsocket or whatever for X linking.
8865 if test "$ISC" = yes; then
8866 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8867 else
8868 # Martyn Johnson says this is needed for Ultrix, if the X
8869 # libraries were built with DECnet support. And Karl Berry says
8870 # the Alpha needs dnet_stub (dnet does not exist).
8871 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8875 /* Override any GCC internal prototype to avoid an error.
8876 Use char because int might match the return type of a GCC
8877 builtin and then its argument prototype would still apply. */
8878 #ifdef __cplusplus
8879 extern "C"
8880 #endif
8881 char XOpenDisplay ();
8883 main ()
8885 return XOpenDisplay ();
8887 return 0;
8889 _ACEOF
8890 if ac_fn_c_try_link "$LINENO"; then :
8892 else
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8894 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8895 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 ac_check_lib_save_LIBS=$LIBS
8899 LIBS="-ldnet $LIBS"
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8903 /* Override any GCC internal prototype to avoid an error.
8904 Use char because int might match the return type of a GCC
8905 builtin and then its argument prototype would still apply. */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 char dnet_ntoa ();
8911 main ()
8913 return dnet_ntoa ();
8915 return 0;
8917 _ACEOF
8918 if ac_fn_c_try_link "$LINENO"; then :
8919 ac_cv_lib_dnet_dnet_ntoa=yes
8920 else
8921 ac_cv_lib_dnet_dnet_ntoa=no
8923 rm -f core conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
8925 LIBS=$ac_check_lib_save_LIBS
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8928 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8929 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8930 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8933 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8935 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8936 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8939 ac_check_lib_save_LIBS=$LIBS
8940 LIBS="-ldnet_stub $LIBS"
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8944 /* Override any GCC internal prototype to avoid an error.
8945 Use char because int might match the return type of a GCC
8946 builtin and then its argument prototype would still apply. */
8947 #ifdef __cplusplus
8948 extern "C"
8949 #endif
8950 char dnet_ntoa ();
8952 main ()
8954 return dnet_ntoa ();
8956 return 0;
8958 _ACEOF
8959 if ac_fn_c_try_link "$LINENO"; then :
8960 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8961 else
8962 ac_cv_lib_dnet_stub_dnet_ntoa=no
8964 rm -f core conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966 LIBS=$ac_check_lib_save_LIBS
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8969 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8970 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8971 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8976 rm -f core conftest.err conftest.$ac_objext \
8977 conftest$ac_exeext conftest.$ac_ext
8978 LIBS="$ac_xsave_LIBS"
8980 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8981 # to get the SysV transport functions.
8982 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8983 # needs -lnsl.
8984 # The nsl library prevents programs from opening the X display
8985 # on Irix 5.2, according to T.E. Dickey.
8986 # The functions gethostbyname, getservbyname, and inet_addr are
8987 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8988 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8989 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8993 if test $ac_cv_func_gethostbyname = no; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8995 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8996 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 ac_check_lib_save_LIBS=$LIBS
9000 LIBS="-lnsl $LIBS"
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 char gethostbyname ();
9012 main ()
9014 return gethostbyname ();
9016 return 0;
9018 _ACEOF
9019 if ac_fn_c_try_link "$LINENO"; then :
9020 ac_cv_lib_nsl_gethostbyname=yes
9021 else
9022 ac_cv_lib_nsl_gethostbyname=no
9024 rm -f core conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
9026 LIBS=$ac_check_lib_save_LIBS
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9029 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9030 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9031 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9034 if test $ac_cv_lib_nsl_gethostbyname = no; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
9036 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9037 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
9038 $as_echo_n "(cached) " >&6
9039 else
9040 ac_check_lib_save_LIBS=$LIBS
9041 LIBS="-lbsd $LIBS"
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9045 /* Override any GCC internal prototype to avoid an error.
9046 Use char because int might match the return type of a GCC
9047 builtin and then its argument prototype would still apply. */
9048 #ifdef __cplusplus
9049 extern "C"
9050 #endif
9051 char gethostbyname ();
9053 main ()
9055 return gethostbyname ();
9057 return 0;
9059 _ACEOF
9060 if ac_fn_c_try_link "$LINENO"; then :
9061 ac_cv_lib_bsd_gethostbyname=yes
9062 else
9063 ac_cv_lib_bsd_gethostbyname=no
9065 rm -f core conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067 LIBS=$ac_check_lib_save_LIBS
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9070 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9071 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9072 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9078 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9079 # socket/setsockopt and other routines are undefined under SCO ODT
9080 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9081 # on later versions), says Simon Leinen: it contains gethostby*
9082 # variants that don't use the name server (or something). -lsocket
9083 # must be given before -lnsl if both are needed. We assume that
9084 # if connect needs -lnsl, so does gethostbyname.
9085 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9086 if test "x$ac_cv_func_connect" = xyes; then :
9090 if test $ac_cv_func_connect = no; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9092 $as_echo_n "checking for connect in -lsocket... " >&6; }
9093 if ${ac_cv_lib_socket_connect+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 ac_check_lib_save_LIBS=$LIBS
9097 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9101 /* Override any GCC internal prototype to avoid an error.
9102 Use char because int might match the return type of a GCC
9103 builtin and then its argument prototype would still apply. */
9104 #ifdef __cplusplus
9105 extern "C"
9106 #endif
9107 char connect ();
9109 main ()
9111 return connect ();
9113 return 0;
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"; then :
9117 ac_cv_lib_socket_connect=yes
9118 else
9119 ac_cv_lib_socket_connect=no
9121 rm -f core conftest.err conftest.$ac_objext \
9122 conftest$ac_exeext conftest.$ac_ext
9123 LIBS=$ac_check_lib_save_LIBS
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9126 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9127 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9128 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9133 # Guillermo Gomez says -lposix is necessary on A/UX.
9134 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9135 if test "x$ac_cv_func_remove" = xyes; then :
9139 if test $ac_cv_func_remove = no; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9141 $as_echo_n "checking for remove in -lposix... " >&6; }
9142 if ${ac_cv_lib_posix_remove+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 ac_check_lib_save_LIBS=$LIBS
9146 LIBS="-lposix $LIBS"
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9150 /* Override any GCC internal prototype to avoid an error.
9151 Use char because int might match the return type of a GCC
9152 builtin and then its argument prototype would still apply. */
9153 #ifdef __cplusplus
9154 extern "C"
9155 #endif
9156 char remove ();
9158 main ()
9160 return remove ();
9162 return 0;
9164 _ACEOF
9165 if ac_fn_c_try_link "$LINENO"; then :
9166 ac_cv_lib_posix_remove=yes
9167 else
9168 ac_cv_lib_posix_remove=no
9170 rm -f core conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
9172 LIBS=$ac_check_lib_save_LIBS
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9175 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9176 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9177 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9182 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9183 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9184 if test "x$ac_cv_func_shmat" = xyes; then :
9188 if test $ac_cv_func_shmat = no; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9190 $as_echo_n "checking for shmat in -lipc... " >&6; }
9191 if ${ac_cv_lib_ipc_shmat+:} false; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lipc $LIBS"
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9199 /* Override any GCC internal prototype to avoid an error.
9200 Use char because int might match the return type of a GCC
9201 builtin and then its argument prototype would still apply. */
9202 #ifdef __cplusplus
9203 extern "C"
9204 #endif
9205 char shmat ();
9207 main ()
9209 return shmat ();
9211 return 0;
9213 _ACEOF
9214 if ac_fn_c_try_link "$LINENO"; then :
9215 ac_cv_lib_ipc_shmat=yes
9216 else
9217 ac_cv_lib_ipc_shmat=no
9219 rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221 LIBS=$ac_check_lib_save_LIBS
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9224 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9225 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9226 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9232 # Check for libraries that X11R6 Xt/Xaw programs need.
9233 ac_save_LDFLAGS=$LDFLAGS
9234 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9235 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9236 # check for ICE first), but we must link in the order -lSM -lICE or
9237 # we get undefined symbols. So assume we have SM if we have ICE.
9238 # These have to be linked with before -lX11, unlike the other
9239 # libraries we check for below, so use a different variable.
9240 # John Interrante, Karl Berry
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9242 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9243 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 ac_check_lib_save_LIBS=$LIBS
9247 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9251 /* Override any GCC internal prototype to avoid an error.
9252 Use char because int might match the return type of a GCC
9253 builtin and then its argument prototype would still apply. */
9254 #ifdef __cplusplus
9255 extern "C"
9256 #endif
9257 char IceConnectionNumber ();
9259 main ()
9261 return IceConnectionNumber ();
9263 return 0;
9265 _ACEOF
9266 if ac_fn_c_try_link "$LINENO"; then :
9267 ac_cv_lib_ICE_IceConnectionNumber=yes
9268 else
9269 ac_cv_lib_ICE_IceConnectionNumber=no
9271 rm -f core conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273 LIBS=$ac_check_lib_save_LIBS
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9276 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9277 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9278 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9281 LDFLAGS=$ac_save_LDFLAGS
9286 if test "$have_x" = "yes"
9287 then
9288 XLIB="-lX11"
9289 ac_save_CPPFLAGS="$CPPFLAGS"
9290 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9293 $as_echo_n "checking for -lX11... " >&6; }
9294 if ${ac_cv_lib_soname_X11+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 ac_check_soname_save_LIBS=$LIBS
9298 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9302 /* Override any GCC internal prototype to avoid an error.
9303 Use char because int might match the return type of a GCC
9304 builtin and then its argument prototype would still apply. */
9305 #ifdef __cplusplus
9306 extern "C"
9307 #endif
9308 char XCreateWindow ();
9310 main ()
9312 return XCreateWindow ();
9314 return 0;
9316 _ACEOF
9317 if ac_fn_c_try_link "$LINENO"; then :
9318 case "$LIBEXT" in
9319 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9320 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'` ;;
9321 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9322 if test "x$ac_cv_lib_soname_X11" = x; then :
9323 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9324 fi ;;
9325 esac
9327 rm -f core conftest.err conftest.$ac_objext \
9328 conftest$ac_exeext conftest.$ac_ext
9329 LIBS=$ac_check_soname_save_LIBS
9331 if test "x$ac_cv_lib_soname_X11" = "x"; then :
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9333 $as_echo "not found" >&6; }
9335 else
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9337 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9339 cat >>confdefs.h <<_ACEOF
9340 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9341 _ACEOF
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9346 $as_echo_n "checking for -lXext... " >&6; }
9347 if ${ac_cv_lib_soname_Xext+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 ac_check_soname_save_LIBS=$LIBS
9351 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 char XextCreateExtension ();
9363 main ()
9365 return XextCreateExtension ();
9367 return 0;
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9371 case "$LIBEXT" in
9372 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9373 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'` ;;
9374 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9375 if test "x$ac_cv_lib_soname_Xext" = x; then :
9376 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9377 fi ;;
9378 esac
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 LIBS=$ac_check_soname_save_LIBS
9384 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9386 $as_echo "not found" >&6; }
9388 else
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9390 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9392 cat >>confdefs.h <<_ACEOF
9393 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9394 _ACEOF
9396 XLIB="-lXext $XLIB"
9399 for ac_header in X11/Xlib.h \
9400 X11/XKBlib.h \
9401 X11/Xutil.h \
9402 X11/Xcursor/Xcursor.h \
9403 X11/extensions/shape.h \
9404 X11/extensions/XInput.h \
9405 X11/extensions/XInput2.h \
9406 X11/extensions/XShm.h \
9407 X11/extensions/Xcomposite.h \
9408 X11/extensions/Xinerama.h \
9409 X11/extensions/Xrandr.h \
9410 X11/extensions/Xrender.h \
9411 X11/extensions/xf86vmode.h \
9412 X11/extensions/xf86vmproto.h
9413 do :
9414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9415 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9416 # include <X11/Xlib.h>
9417 #endif
9418 #ifdef HAVE_X11_XUTIL_H
9419 # include <X11/Xutil.h>
9420 #endif
9422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9423 cat >>confdefs.h <<_ACEOF
9424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9425 _ACEOF
9429 done
9432 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9433 then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9435 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9436 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 ac_check_lib_save_LIBS=$LIBS
9440 LIBS="-lX11 $X_LIBS $XLIB $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 XkbQueryExtension ();
9452 main ()
9454 return XkbQueryExtension ();
9456 return 0;
9458 _ACEOF
9459 if ac_fn_c_try_link "$LINENO"; then :
9460 ac_cv_lib_X11_XkbQueryExtension=yes
9461 else
9462 ac_cv_lib_X11_XkbQueryExtension=no
9464 rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9466 LIBS=$ac_check_lib_save_LIBS
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9469 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9470 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9472 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9478 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9479 then
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9481 $as_echo_n "checking for -lXcursor... " >&6; }
9482 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9483 $as_echo_n "(cached) " >&6
9484 else
9485 ac_check_soname_save_LIBS=$LIBS
9486 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9490 /* Override any GCC internal prototype to avoid an error.
9491 Use char because int might match the return type of a GCC
9492 builtin and then its argument prototype would still apply. */
9493 #ifdef __cplusplus
9494 extern "C"
9495 #endif
9496 char XcursorImageLoadCursor ();
9498 main ()
9500 return XcursorImageLoadCursor ();
9502 return 0;
9504 _ACEOF
9505 if ac_fn_c_try_link "$LINENO"; then :
9506 case "$LIBEXT" in
9507 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9508 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'` ;;
9509 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9510 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
9511 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9512 fi ;;
9513 esac
9515 rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 LIBS=$ac_check_soname_save_LIBS
9519 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9521 $as_echo "not found" >&6; }
9523 else
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9525 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9527 cat >>confdefs.h <<_ACEOF
9528 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9529 _ACEOF
9534 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9535 case "x$with_xcursor" in
9536 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9537 xno) ;;
9538 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9539 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9540 esac
9543 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9544 then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9546 $as_echo_n "checking for -lXi... " >&6; }
9547 if ${ac_cv_lib_soname_Xi+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 ac_check_soname_save_LIBS=$LIBS
9551 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9555 /* Override any GCC internal prototype to avoid an error.
9556 Use char because int might match the return type of a GCC
9557 builtin and then its argument prototype would still apply. */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 char XOpenDevice ();
9563 main ()
9565 return XOpenDevice ();
9567 return 0;
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9571 case "$LIBEXT" in
9572 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9573 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'` ;;
9574 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9575 if test "x$ac_cv_lib_soname_Xi" = x; then :
9576 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9577 fi ;;
9578 esac
9580 rm -f core conftest.err conftest.$ac_objext \
9581 conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_soname_save_LIBS
9584 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9586 $as_echo "not found" >&6; }
9588 else
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9590 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9592 cat >>confdefs.h <<_ACEOF
9593 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9594 _ACEOF
9599 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9600 case "x$with_xinput" in
9601 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9602 xno) ;;
9603 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9604 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9605 esac
9608 if test "x$ac_cv_lib_soname_Xi" != x
9609 then
9610 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9611 case "x$with_xinput2" in
9612 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9613 xno) ;;
9614 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9615 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9616 esac
9620 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9621 then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9623 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9624 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 ac_check_lib_save_LIBS=$LIBS
9628 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9632 /* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9635 #ifdef __cplusplus
9636 extern "C"
9637 #endif
9638 char XShmQueryExtension ();
9640 main ()
9642 return XShmQueryExtension ();
9644 return 0;
9646 _ACEOF
9647 if ac_fn_c_try_link "$LINENO"; then :
9648 ac_cv_lib_Xext_XShmQueryExtension=yes
9649 else
9650 ac_cv_lib_Xext_XShmQueryExtension=no
9652 rm -f core conftest.err conftest.$ac_objext \
9653 conftest$ac_exeext conftest.$ac_ext
9654 LIBS=$ac_check_lib_save_LIBS
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9657 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9658 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9660 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9665 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9666 case "x$with_xshm" in
9667 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9668 xno) ;;
9669 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9670 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9671 esac
9674 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9675 then
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9677 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9678 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9679 $as_echo_n "(cached) " >&6
9680 else
9681 ac_check_lib_save_LIBS=$LIBS
9682 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9686 /* Override any GCC internal prototype to avoid an error.
9687 Use char because int might match the return type of a GCC
9688 builtin and then its argument prototype would still apply. */
9689 #ifdef __cplusplus
9690 extern "C"
9691 #endif
9692 char XShapeQueryExtension ();
9694 main ()
9696 return XShapeQueryExtension ();
9698 return 0;
9700 _ACEOF
9701 if ac_fn_c_try_link "$LINENO"; then :
9702 ac_cv_lib_Xext_XShapeQueryExtension=yes
9703 else
9704 ac_cv_lib_Xext_XShapeQueryExtension=no
9706 rm -f core conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9708 LIBS=$ac_check_lib_save_LIBS
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9711 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9712 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9714 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9719 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9720 case "x$with_xshape" in
9721 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9722 xno) ;;
9723 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9724 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9725 esac
9728 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9729 then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9731 $as_echo_n "checking for -lXxf86vm... " >&6; }
9732 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 ac_check_soname_save_LIBS=$LIBS
9736 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9740 /* Override any GCC internal prototype to avoid an error.
9741 Use char because int might match the return type of a GCC
9742 builtin and then its argument prototype would still apply. */
9743 #ifdef __cplusplus
9744 extern "C"
9745 #endif
9746 char XF86VidModeQueryExtension ();
9748 main ()
9750 return XF86VidModeQueryExtension ();
9752 return 0;
9754 _ACEOF
9755 if ac_fn_c_try_link "$LINENO"; then :
9756 case "$LIBEXT" in
9757 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9758 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'` ;;
9759 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9760 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
9761 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9762 fi ;;
9763 esac
9765 rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 LIBS=$ac_check_soname_save_LIBS
9769 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9771 $as_echo "not found" >&6; }
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9775 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9777 cat >>confdefs.h <<_ACEOF
9778 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9779 _ACEOF
9784 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9785 case "x$with_xxf86vm" in
9786 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9787 xno) ;;
9788 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9789 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9790 esac
9793 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"
9794 then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9796 $as_echo_n "checking for -lXrender... " >&6; }
9797 if ${ac_cv_lib_soname_Xrender+:} false; then :
9798 $as_echo_n "(cached) " >&6
9799 else
9800 ac_check_soname_save_LIBS=$LIBS
9801 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9805 /* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
9808 #ifdef __cplusplus
9809 extern "C"
9810 #endif
9811 char XRenderQueryExtension ();
9813 main ()
9815 return XRenderQueryExtension ();
9817 return 0;
9819 _ACEOF
9820 if ac_fn_c_try_link "$LINENO"; then :
9821 case "$LIBEXT" in
9822 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9823 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'` ;;
9824 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9825 if test "x$ac_cv_lib_soname_Xrender" = x; then :
9826 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9827 fi ;;
9828 esac
9830 rm -f core conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
9832 LIBS=$ac_check_soname_save_LIBS
9834 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9836 $as_echo "not found" >&6; }
9838 else
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
9840 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
9842 cat >>confdefs.h <<_ACEOF
9843 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9844 _ACEOF
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
9847 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9848 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 ac_check_lib_save_LIBS=$LIBS
9852 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9856 /* Override any GCC internal prototype to avoid an error.
9857 Use char because int might match the return type of a GCC
9858 builtin and then its argument prototype would still apply. */
9859 #ifdef __cplusplus
9860 extern "C"
9861 #endif
9862 char XRenderSetPictureTransform ();
9864 main ()
9866 return XRenderSetPictureTransform ();
9868 return 0;
9870 _ACEOF
9871 if ac_fn_c_try_link "$LINENO"; then :
9872 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9873 else
9874 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9876 rm -f core conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9878 LIBS=$ac_check_lib_save_LIBS
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9881 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9882 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
9884 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
9889 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
9890 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 ac_check_lib_save_LIBS=$LIBS
9894 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9901 #ifdef __cplusplus
9902 extern "C"
9903 #endif
9904 char XRenderCreateLinearGradient ();
9906 main ()
9908 return XRenderCreateLinearGradient ();
9910 return 0;
9912 _ACEOF
9913 if ac_fn_c_try_link "$LINENO"; then :
9914 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
9915 else
9916 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
9918 rm -f core conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 LIBS=$ac_check_lib_save_LIBS
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
9923 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
9924 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
9926 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
9933 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9934 case "x$with_xrender" in
9935 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
9936 xno) ;;
9937 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9938 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9939 esac
9942 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9943 then
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946 #include <X11/Xlib.h>
9947 #include <X11/extensions/Xrandr.h>
9949 main ()
9951 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9953 return 0;
9955 _ACEOF
9956 if ac_fn_c_try_compile "$LINENO"; then :
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9958 $as_echo_n "checking for -lXrandr... " >&6; }
9959 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 ac_check_soname_save_LIBS=$LIBS
9963 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9967 /* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9970 #ifdef __cplusplus
9971 extern "C"
9972 #endif
9973 char XRRQueryExtension ();
9975 main ()
9977 return XRRQueryExtension ();
9979 return 0;
9981 _ACEOF
9982 if ac_fn_c_try_link "$LINENO"; then :
9983 case "$LIBEXT" in
9984 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9985 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'` ;;
9986 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9987 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9988 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9989 fi ;;
9990 esac
9992 rm -f core conftest.err conftest.$ac_objext \
9993 conftest$ac_exeext conftest.$ac_ext
9994 LIBS=$ac_check_soname_save_LIBS
9996 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9998 $as_echo "not found" >&6; }
10000 else
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
10002 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
10004 cat >>confdefs.h <<_ACEOF
10005 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
10006 _ACEOF
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10010 #include <X11/Xlib.h>
10011 #include <X11/extensions/Xrandr.h>
10013 main ()
10015 static typeof(XRRGetScreenResources) *f; if (f) return 0;
10017 return 0;
10019 _ACEOF
10020 if ac_fn_c_try_compile "$LINENO"; then :
10022 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
10031 case "x$with_xrandr" in
10032 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
10033 xno) ;;
10034 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
10035 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
10036 esac
10039 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10040 then
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043 #include <X11/Xlib.h>
10044 #include <X11/extensions/Xinerama.h>
10046 main ()
10048 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10050 return 0;
10052 _ACEOF
10053 if ac_fn_c_try_compile "$LINENO"; then :
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10055 $as_echo_n "checking for -lXinerama... " >&6; }
10056 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 ac_check_soname_save_LIBS=$LIBS
10060 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10064 /* Override any GCC internal prototype to avoid an error.
10065 Use char because int might match the return type of a GCC
10066 builtin and then its argument prototype would still apply. */
10067 #ifdef __cplusplus
10068 extern "C"
10069 #endif
10070 char XineramaQueryScreens ();
10072 main ()
10074 return XineramaQueryScreens ();
10076 return 0;
10078 _ACEOF
10079 if ac_fn_c_try_link "$LINENO"; then :
10080 case "$LIBEXT" in
10081 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10082 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'` ;;
10083 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10084 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
10085 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10086 fi ;;
10087 esac
10089 rm -f core conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10091 LIBS=$ac_check_soname_save_LIBS
10093 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10095 $as_echo "not found" >&6; }
10097 else
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10099 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10101 cat >>confdefs.h <<_ACEOF
10102 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10103 _ACEOF
10108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10110 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10111 case "x$with_xinerama" in
10112 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10113 xno) ;;
10114 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10115 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10116 esac
10119 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10120 then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10122 $as_echo_n "checking for -lXcomposite... " >&6; }
10123 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 ac_check_soname_save_LIBS=$LIBS
10127 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10131 /* Override any GCC internal prototype to avoid an error.
10132 Use char because int might match the return type of a GCC
10133 builtin and then its argument prototype would still apply. */
10134 #ifdef __cplusplus
10135 extern "C"
10136 #endif
10137 char XCompositeRedirectWindow ();
10139 main ()
10141 return XCompositeRedirectWindow ();
10143 return 0;
10145 _ACEOF
10146 if ac_fn_c_try_link "$LINENO"; then :
10147 case "$LIBEXT" in
10148 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10149 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'` ;;
10150 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10151 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
10152 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10153 fi ;;
10154 esac
10156 rm -f core conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10158 LIBS=$ac_check_soname_save_LIBS
10160 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10162 $as_echo "not found" >&6; }
10164 else
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10166 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10168 cat >>confdefs.h <<_ACEOF
10169 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10170 _ACEOF
10175 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10176 case "x$with_xcomposite" in
10177 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10178 xno) ;;
10179 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10180 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10181 esac
10184 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10185 #include <X11/Xlib.h>
10186 #endif
10188 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10190 cat >>confdefs.h <<_ACEOF
10191 #define HAVE_XICCALLBACK_CALLBACK 1
10192 _ACEOF
10196 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10197 #include <X11/Xlib.h>
10198 #endif
10200 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE_XEVENT_XCOOKIE 1
10204 _ACEOF
10211 opengl_msg=""
10212 if test "x$with_opengl" != "xno"
10213 then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10215 $as_echo_n "checking for -lGL... " >&6; }
10216 if ${ac_cv_lib_soname_GL+:} false; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 ac_check_soname_save_LIBS=$LIBS
10220 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10224 /* Override any GCC internal prototype to avoid an error.
10225 Use char because int might match the return type of a GCC
10226 builtin and then its argument prototype would still apply. */
10227 #ifdef __cplusplus
10228 extern "C"
10229 #endif
10230 char glXCreateContext ();
10232 main ()
10234 return glXCreateContext ();
10236 return 0;
10238 _ACEOF
10239 if ac_fn_c_try_link "$LINENO"; then :
10240 case "$LIBEXT" in
10241 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10242 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'` ;;
10243 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10244 if test "x$ac_cv_lib_soname_GL" = x; then :
10245 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10246 fi ;;
10247 esac
10249 rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
10251 LIBS=$ac_check_soname_save_LIBS
10253 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10255 $as_echo "not found" >&6; }
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10257 $as_echo_n "checking for -lGL... " >&6; }
10258 if ${ac_cv_lib_soname_GL+:} false; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 ac_check_soname_save_LIBS=$LIBS
10262 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10266 /* Override any GCC internal prototype to avoid an error.
10267 Use char because int might match the return type of a GCC
10268 builtin and then its argument prototype would still apply. */
10269 #ifdef __cplusplus
10270 extern "C"
10271 #endif
10272 char glXCreateContext ();
10274 main ()
10276 return glXCreateContext ();
10278 return 0;
10280 _ACEOF
10281 if ac_fn_c_try_link "$LINENO"; then :
10282 case "$LIBEXT" in
10283 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10284 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'` ;;
10285 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10286 if test "x$ac_cv_lib_soname_GL" = x; then :
10287 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10288 fi ;;
10289 esac
10291 rm -f core conftest.err conftest.$ac_objext \
10292 conftest$ac_exeext conftest.$ac_ext
10293 LIBS=$ac_check_soname_save_LIBS
10295 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10297 $as_echo "not found" >&6; }
10298 if test -f /usr/X11R6/lib/libGL.a
10299 then
10300 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10301 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10302 else
10303 opengl_msg="No OpenGL library found on this system."
10305 else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10307 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10309 cat >>confdefs.h <<_ACEOF
10310 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10311 _ACEOF
10313 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"
10315 else
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10317 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10319 cat >>confdefs.h <<_ACEOF
10320 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10321 _ACEOF
10323 OPENGL_LIBS="-lGL"
10325 if test "x$with_glu" != "xno"
10326 then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10328 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10329 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 ac_check_lib_save_LIBS=$LIBS
10333 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10337 /* Override any GCC internal prototype to avoid an error.
10338 Use char because int might match the return type of a GCC
10339 builtin and then its argument prototype would still apply. */
10340 #ifdef __cplusplus
10341 extern "C"
10342 #endif
10343 char gluLookAt ();
10345 main ()
10347 return gluLookAt ();
10349 return 0;
10351 _ACEOF
10352 if ac_fn_c_try_link "$LINENO"; then :
10353 ac_cv_lib_GLU_gluLookAt=yes
10354 else
10355 ac_cv_lib_GLU_gluLookAt=no
10357 rm -f core conftest.err conftest.$ac_objext \
10358 conftest$ac_exeext conftest.$ac_ext
10359 LIBS=$ac_check_lib_save_LIBS
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10362 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10363 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10367 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10368 case "x$with_glu" in
10369 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10370 xno) ;;
10371 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10372 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10373 esac
10377 if test "x$with_osmesa" != "xno"
10378 then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10380 $as_echo_n "checking for -lOSMesa... " >&6; }
10381 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 ac_check_soname_save_LIBS=$LIBS
10385 LIBS="-lOSMesa $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10389 /* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 char glAccum ();
10397 main ()
10399 return glAccum ();
10401 return 0;
10403 _ACEOF
10404 if ac_fn_c_try_link "$LINENO"; then :
10405 case "$LIBEXT" in
10406 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10407 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'` ;;
10408 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10409 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
10410 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10411 fi ;;
10412 esac
10414 rm -f core conftest.err conftest.$ac_objext \
10415 conftest$ac_exeext conftest.$ac_ext
10416 LIBS=$ac_check_soname_save_LIBS
10418 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10420 $as_echo "not found" >&6; }
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10424 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10426 cat >>confdefs.h <<_ACEOF
10427 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10428 _ACEOF
10432 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10433 case "x$with_osmesa" in
10434 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10435 xno) ;;
10436 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10437 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10438 esac
10442 if test -n "$opengl_msg"; then :
10443 case "x$with_opengl" in
10444 x) as_fn_append wine_warnings "|$opengl_msg
10445 OpenGL and Direct3D won't be supported." ;;
10446 xno) ;;
10447 *) as_fn_error $? "$opengl_msg
10448 OpenGL and Direct3D won't be supported.
10449 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10450 esac
10453 CPPFLAGS="$ac_save_CPPFLAGS"
10454 else
10455 XLIB=""
10456 X_CFLAGS=""
10457 X_LIBS=""
10458 enable_winex11_drv=${enable_winex11_drv:-no}
10460 if test "x$XLIB" = "x"; then :
10461 case "x$with_x" in
10462 xno) ;;
10463 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10464 without X support, which probably isn't what you want. You will need
10465 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10466 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10467 esac
10470 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10472 if test "$ac_cv_header_CL_cl_h" = "yes"
10473 then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10475 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10476 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 ac_check_lib_save_LIBS=$LIBS
10480 LIBS="-lOpenCL $LIBS"
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10484 /* Override any GCC internal prototype to avoid an error.
10485 Use char because int might match the return type of a GCC
10486 builtin and then its argument prototype would still apply. */
10487 #ifdef __cplusplus
10488 extern "C"
10489 #endif
10490 char clGetPlatformInfo ();
10492 main ()
10494 return clGetPlatformInfo ();
10496 return 0;
10498 _ACEOF
10499 if ac_fn_c_try_link "$LINENO"; then :
10500 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10501 else
10502 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10504 rm -f core conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
10506 LIBS=$ac_check_lib_save_LIBS
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10509 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10510 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10511 LIBOPENCL="-lOpenCL"
10516 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10517 case "x$with_opencl" in
10518 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10519 xno) ;;
10520 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10521 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10522 esac
10524 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10527 if test "x$with_xml" != "xno"
10528 then
10529 if test -n "$XML2_CFLAGS"; then :
10531 elif test -n "$PKG_CONFIG"; then :
10532 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10534 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10535 if test -n "$XML2_LIBS"; then :
10537 elif test -n "$PKG_CONFIG"; then :
10538 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10540 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10541 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10542 ac_save_CPPFLAGS=$CPPFLAGS
10543 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10544 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10545 do :
10546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10547 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10549 cat >>confdefs.h <<_ACEOF
10550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10551 _ACEOF
10555 done
10557 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"
10558 then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10560 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10561 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 ac_check_lib_save_LIBS=$LIBS
10565 LIBS="-lxml2 $XML2_LIBS $LIBS"
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10569 /* Override any GCC internal prototype to avoid an error.
10570 Use char because int might match the return type of a GCC
10571 builtin and then its argument prototype would still apply. */
10572 #ifdef __cplusplus
10573 extern "C"
10574 #endif
10575 char xmlParseMemory ();
10577 main ()
10579 return xmlParseMemory ();
10581 return 0;
10583 _ACEOF
10584 if ac_fn_c_try_link "$LINENO"; then :
10585 ac_cv_lib_xml2_xmlParseMemory=yes
10586 else
10587 ac_cv_lib_xml2_xmlParseMemory=no
10589 rm -f core conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591 LIBS=$ac_check_lib_save_LIBS
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10594 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10595 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10597 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10599 else
10600 XML2_LIBS=""
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10604 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10605 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 ac_check_lib_save_LIBS=$LIBS
10609 LIBS="-lxml2 $XML2_LIBS $LIBS"
10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10613 /* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
10616 #ifdef __cplusplus
10617 extern "C"
10618 #endif
10619 char xmlReadMemory ();
10621 main ()
10623 return xmlReadMemory ();
10625 return 0;
10627 _ACEOF
10628 if ac_fn_c_try_link "$LINENO"; then :
10629 ac_cv_lib_xml2_xmlReadMemory=yes
10630 else
10631 ac_cv_lib_xml2_xmlReadMemory=no
10633 rm -f core conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10635 LIBS=$ac_check_lib_save_LIBS
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10638 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10639 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10641 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10646 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10647 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 ac_check_lib_save_LIBS=$LIBS
10651 LIBS="-lxml2 $XML2_LIBS $LIBS"
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 char xmlNewDocPI ();
10663 main ()
10665 return xmlNewDocPI ();
10667 return 0;
10669 _ACEOF
10670 if ac_fn_c_try_link "$LINENO"; then :
10671 ac_cv_lib_xml2_xmlNewDocPI=yes
10672 else
10673 ac_cv_lib_xml2_xmlNewDocPI=no
10675 rm -f core conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677 LIBS=$ac_check_lib_save_LIBS
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10680 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10681 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10683 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10688 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10689 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-lxml2 $XML2_LIBS $LIBS"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char xmlSchemaSetParserStructuredErrors ();
10705 main ()
10707 return xmlSchemaSetParserStructuredErrors ();
10709 return 0;
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10714 else
10715 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10722 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10723 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10725 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10730 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10731 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 ac_check_lib_save_LIBS=$LIBS
10735 LIBS="-lxml2 $XML2_LIBS $LIBS"
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 char xmlSchemaSetValidStructuredErrors ();
10747 main ()
10749 return xmlSchemaSetValidStructuredErrors ();
10751 return 0;
10753 _ACEOF
10754 if ac_fn_c_try_link "$LINENO"; then :
10755 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10756 else
10757 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
10759 rm -f core conftest.err conftest.$ac_objext \
10760 conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
10764 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
10765 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
10767 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
10772 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
10773 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-lxml2 $XML2_LIBS $LIBS"
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10784 #ifdef __cplusplus
10785 extern "C"
10786 #endif
10787 char xmlFirstElementChild ();
10789 main ()
10791 return xmlFirstElementChild ();
10793 return 0;
10795 _ACEOF
10796 if ac_fn_c_try_link "$LINENO"; then :
10797 ac_cv_lib_xml2_xmlFirstElementChild=yes
10798 else
10799 ac_cv_lib_xml2_xmlFirstElementChild=no
10801 rm -f core conftest.err conftest.$ac_objext \
10802 conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_check_lib_save_LIBS
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
10806 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
10807 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
10809 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
10813 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
10815 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
10817 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
10821 else
10822 XML2_CFLAGS=""
10823 XML2_LIBS=""
10825 CPPFLAGS=$ac_save_CPPFLAGS
10826 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10827 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10830 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
10831 case "x$with_xml" in
10832 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
10833 xno) ;;
10834 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
10835 This is an error since --with-xml was requested." "$LINENO" 5 ;;
10836 esac
10839 if test "x$with_xslt" != "xno"
10840 then
10841 if test -n "$XSLT_CFLAGS"; then :
10843 elif test -n "$PKG_CONFIG"; then :
10844 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
10846 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
10847 if test -n "$XSLT_LIBS"; then :
10849 elif test -n "$PKG_CONFIG"; then :
10850 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10852 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10853 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10854 ac_save_CPPFLAGS=$CPPFLAGS
10855 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10856 for ac_header in libxslt/pattern.h libxslt/transform.h
10857 do :
10858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10859 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10860 # include <libxslt/pattern.h>
10861 #endif
10863 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10864 cat >>confdefs.h <<_ACEOF
10865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10866 _ACEOF
10870 done
10872 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10873 then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10875 $as_echo_n "checking for -lxslt... " >&6; }
10876 if ${ac_cv_lib_soname_xslt+:} false; then :
10877 $as_echo_n "(cached) " >&6
10878 else
10879 ac_check_soname_save_LIBS=$LIBS
10880 LIBS="-lxslt $XSLT_LIBS $LIBS"
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10884 /* Override any GCC internal prototype to avoid an error.
10885 Use char because int might match the return type of a GCC
10886 builtin and then its argument prototype would still apply. */
10887 #ifdef __cplusplus
10888 extern "C"
10889 #endif
10890 char xsltCompilePattern ();
10892 main ()
10894 return xsltCompilePattern ();
10896 return 0;
10898 _ACEOF
10899 if ac_fn_c_try_link "$LINENO"; then :
10900 case "$LIBEXT" in
10901 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10902 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'` ;;
10903 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10904 if test "x$ac_cv_lib_soname_xslt" = x; then :
10905 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10906 fi ;;
10907 esac
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_soname_save_LIBS
10913 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10915 $as_echo "not found" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10919 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10921 cat >>confdefs.h <<_ACEOF
10922 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10923 _ACEOF
10927 else
10928 XSLT_CFLAGS=""
10930 CPPFLAGS=$ac_save_CPPFLAGS
10931 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10932 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10935 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10936 case "x$with_xslt" in
10937 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10938 xno) ;;
10939 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10940 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10941 esac
10944 if test "x$with_dbus" != "xno"
10945 then
10946 if test -n "$DBUS_CFLAGS"; then :
10948 elif test -n "$PKG_CONFIG"; then :
10949 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10952 if test -n "$DBUS_LIBS"; then :
10954 elif test -n "$PKG_CONFIG"; then :
10955 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10959 ac_save_CPPFLAGS=$CPPFLAGS
10960 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10961 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10962 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10964 $as_echo_n "checking for -ldbus-1... " >&6; }
10965 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 ac_check_soname_save_LIBS=$LIBS
10969 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10973 /* Override any GCC internal prototype to avoid an error.
10974 Use char because int might match the return type of a GCC
10975 builtin and then its argument prototype would still apply. */
10976 #ifdef __cplusplus
10977 extern "C"
10978 #endif
10979 char dbus_connection_close ();
10981 main ()
10983 return dbus_connection_close ();
10985 return 0;
10987 _ACEOF
10988 if ac_fn_c_try_link "$LINENO"; then :
10989 case "$LIBEXT" in
10990 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10991 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'` ;;
10992 *) 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'`
10993 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10994 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10995 fi ;;
10996 esac
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_soname_save_LIBS
11002 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11004 $as_echo "not found" >&6; }
11005 DBUS_CFLAGS=""
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
11008 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
11010 cat >>confdefs.h <<_ACEOF
11011 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
11012 _ACEOF
11016 else
11017 DBUS_CFLAGS=""
11021 CPPFLAGS=$ac_save_CPPFLAGS
11022 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11023 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11026 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
11027 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11028 case "x$with_dbus" in
11029 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
11030 xno) ;;
11031 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
11032 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
11033 esac
11036 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
11037 then
11038 if test -n "$HAL_CFLAGS"; then :
11040 elif test -n "$PKG_CONFIG"; then :
11041 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11044 if test -n "$HAL_LIBS"; then :
11046 elif test -n "$PKG_CONFIG"; then :
11047 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11050 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11051 ac_save_CPPFLAGS=$CPPFLAGS
11052 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11053 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11054 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11056 $as_echo_n "checking for -lhal... " >&6; }
11057 if ${ac_cv_lib_soname_hal+:} false; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 ac_check_soname_save_LIBS=$LIBS
11061 LIBS="-lhal $HAL_LIBS $LIBS"
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11068 #ifdef __cplusplus
11069 extern "C"
11070 #endif
11071 char libhal_ctx_new ();
11073 main ()
11075 return libhal_ctx_new ();
11077 return 0;
11079 _ACEOF
11080 if ac_fn_c_try_link "$LINENO"; then :
11081 case "$LIBEXT" in
11082 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11083 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'` ;;
11084 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11085 if test "x$ac_cv_lib_soname_hal" = x; then :
11086 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11087 fi ;;
11088 esac
11090 rm -f core conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11092 LIBS=$ac_check_soname_save_LIBS
11094 if test "x$ac_cv_lib_soname_hal" = "x"; then :
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11096 $as_echo "not found" >&6; }
11097 HAL_CFLAGS=""
11098 else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11100 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11102 cat >>confdefs.h <<_ACEOF
11103 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11104 _ACEOF
11108 else
11109 HAL_CFLAGS=""
11113 CPPFLAGS=$ac_save_CPPFLAGS
11114 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11115 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11117 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11118 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11119 case "x$with_hal" in
11120 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11121 xno) ;;
11122 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11123 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11124 esac
11128 if test "x$with_gnutls" != "xno"
11129 then
11130 if test -n "$GNUTLS_CFLAGS"; then :
11132 elif test -n "$PKG_CONFIG"; then :
11133 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11136 if test -n "$GNUTLS_LIBS"; then :
11138 elif test -n "$PKG_CONFIG"; then :
11139 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11143 ac_save_CPPFLAGS=$CPPFLAGS
11144 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11145 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11146 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11149 #include <gnutls/gnutls.h>
11150 #include <gnutls/crypto.h>
11152 main ()
11154 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11156 return 0;
11158 _ACEOF
11159 if ac_fn_c_try_compile "$LINENO"; then :
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11161 $as_echo_n "checking for -lgnutls... " >&6; }
11162 if ${ac_cv_lib_soname_gnutls+:} false; then :
11163 $as_echo_n "(cached) " >&6
11164 else
11165 ac_check_soname_save_LIBS=$LIBS
11166 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11170 /* Override any GCC internal prototype to avoid an error.
11171 Use char because int might match the return type of a GCC
11172 builtin and then its argument prototype would still apply. */
11173 #ifdef __cplusplus
11174 extern "C"
11175 #endif
11176 char gnutls_global_init ();
11178 main ()
11180 return gnutls_global_init ();
11182 return 0;
11184 _ACEOF
11185 if ac_fn_c_try_link "$LINENO"; then :
11186 case "$LIBEXT" in
11187 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11188 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'` ;;
11189 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11190 if test "x$ac_cv_lib_soname_gnutls" = x; then :
11191 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11192 fi ;;
11193 esac
11195 rm -f core conftest.err conftest.$ac_objext \
11196 conftest$ac_exeext conftest.$ac_ext
11197 LIBS=$ac_check_soname_save_LIBS
11199 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11201 $as_echo "not found" >&6; }
11202 GNUTLS_CFLAGS=""
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11205 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11207 cat >>confdefs.h <<_ACEOF
11208 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11209 _ACEOF
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 else
11216 GNUTLS_CFLAGS=""
11220 CPPFLAGS=$ac_save_CPPFLAGS
11221 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11222 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11225 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11226 case "x$with_gnutls" in
11227 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11228 xno) ;;
11229 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11230 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11231 esac
11234 CURSESLIBS=""
11235 if test "$ac_cv_header_ncurses_h" = "yes"
11236 then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11238 $as_echo_n "checking for -lncurses... " >&6; }
11239 if ${ac_cv_lib_soname_ncurses+:} false; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 ac_check_soname_save_LIBS=$LIBS
11243 LIBS="-lncurses $LIBS"
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11247 /* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11250 #ifdef __cplusplus
11251 extern "C"
11252 #endif
11253 char waddch ();
11255 main ()
11257 return waddch ();
11259 return 0;
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"; then :
11263 case "$LIBEXT" in
11264 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11265 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'` ;;
11266 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11267 if test "x$ac_cv_lib_soname_ncurses" = x; then :
11268 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11269 fi ;;
11270 esac
11272 rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274 LIBS=$ac_check_soname_save_LIBS
11276 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11278 $as_echo "not found" >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11282 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11284 cat >>confdefs.h <<_ACEOF
11285 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11286 _ACEOF
11288 CURSESLIBS="-lncurses"
11290 elif test "$ac_cv_header_curses_h" = "yes"
11291 then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11293 $as_echo_n "checking for -lcurses... " >&6; }
11294 if ${ac_cv_lib_soname_curses+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 ac_check_soname_save_LIBS=$LIBS
11298 LIBS="-lcurses $LIBS"
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11302 /* Override any GCC internal prototype to avoid an error.
11303 Use char because int might match the return type of a GCC
11304 builtin and then its argument prototype would still apply. */
11305 #ifdef __cplusplus
11306 extern "C"
11307 #endif
11308 char waddch ();
11310 main ()
11312 return waddch ();
11314 return 0;
11316 _ACEOF
11317 if ac_fn_c_try_link "$LINENO"; then :
11318 case "$LIBEXT" in
11319 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11320 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'` ;;
11321 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11322 if test "x$ac_cv_lib_soname_curses" = x; then :
11323 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11324 fi ;;
11325 esac
11327 rm -f core conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329 LIBS=$ac_check_soname_save_LIBS
11331 if test "x$ac_cv_lib_soname_curses" = "x"; then :
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11333 $as_echo "not found" >&6; }
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11337 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11339 cat >>confdefs.h <<_ACEOF
11340 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11341 _ACEOF
11343 CURSESLIBS="-lcurses"
11346 ac_save_LIBS="$LIBS"
11347 LIBS="$LIBS $CURSESLIBS"
11348 for ac_func in mousemask
11349 do :
11350 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11351 if test "x$ac_cv_func_mousemask" = xyes; then :
11352 cat >>confdefs.h <<_ACEOF
11353 #define HAVE_MOUSEMASK 1
11354 _ACEOF
11357 done
11359 LIBS="$ac_save_LIBS"
11360 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11361 case "x$with_curses" in
11362 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11363 xno) ;;
11364 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11365 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11366 esac
11369 if test "x$with_sane" != "xno"
11370 then
11371 if test -n "$SANE_CFLAGS"; then :
11373 elif test -n "$PKG_CONFIG"; then :
11374 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11376 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11377 if test -n "$SANE_LIBS"; then :
11379 elif test -n "$PKG_CONFIG"; then :
11380 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11382 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11384 ac_save_CPPFLAGS=$CPPFLAGS
11385 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11386 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11387 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11389 $as_echo_n "checking for -lsane... " >&6; }
11390 if ${ac_cv_lib_soname_sane+:} false; then :
11391 $as_echo_n "(cached) " >&6
11392 else
11393 ac_check_soname_save_LIBS=$LIBS
11394 LIBS="-lsane $SANE_LIBS $LIBS"
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11398 /* Override any GCC internal prototype to avoid an error.
11399 Use char because int might match the return type of a GCC
11400 builtin and then its argument prototype would still apply. */
11401 #ifdef __cplusplus
11402 extern "C"
11403 #endif
11404 char sane_init ();
11406 main ()
11408 return sane_init ();
11410 return 0;
11412 _ACEOF
11413 if ac_fn_c_try_link "$LINENO"; then :
11414 case "$LIBEXT" in
11415 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11416 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'` ;;
11417 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11418 if test "x$ac_cv_lib_soname_sane" = x; then :
11419 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11420 fi ;;
11421 esac
11423 rm -f core conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425 LIBS=$ac_check_soname_save_LIBS
11427 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11429 $as_echo "not found" >&6; }
11430 SANE_CFLAGS=""
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11433 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11435 cat >>confdefs.h <<_ACEOF
11436 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11437 _ACEOF
11441 else
11442 SANE_CFLAGS=""
11446 CPPFLAGS=$ac_save_CPPFLAGS
11447 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11448 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11451 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11452 case "x$with_sane" in
11453 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11454 xno) ;;
11455 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11456 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11457 esac
11460 if test "x$with_v4l" != "xno"
11461 then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11463 $as_echo_n "checking for -lv4l1... " >&6; }
11464 if ${ac_cv_lib_soname_v4l1+:} false; then :
11465 $as_echo_n "(cached) " >&6
11466 else
11467 ac_check_soname_save_LIBS=$LIBS
11468 LIBS="-lv4l1 $LIBS"
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11472 /* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
11478 char v4l1_open ();
11480 main ()
11482 return v4l1_open ();
11484 return 0;
11486 _ACEOF
11487 if ac_fn_c_try_link "$LINENO"; then :
11488 case "$LIBEXT" in
11489 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11490 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'` ;;
11491 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11492 if test "x$ac_cv_lib_soname_v4l1" = x; then :
11493 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11494 fi ;;
11495 esac
11497 rm -f core conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext conftest.$ac_ext
11499 LIBS=$ac_check_soname_save_LIBS
11501 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11503 $as_echo "not found" >&6; }
11505 else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11507 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11509 cat >>confdefs.h <<_ACEOF
11510 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11511 _ACEOF
11516 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11517 case "x$with_v4l" in
11518 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11519 xno) ;;
11520 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11521 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11522 esac
11525 if test "x$with_gphoto" != "xno"
11526 then
11527 if test -n "$GPHOTO2_CFLAGS"; then :
11529 elif test -n "$PKG_CONFIG"; then :
11530 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11532 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11533 if test -n "$GPHOTO2_LIBS"; then :
11535 elif test -n "$PKG_CONFIG"; then :
11536 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11538 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11539 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11540 ac_save_CPPFLAGS=$CPPFLAGS
11541 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11542 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11543 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11545 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11546 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11547 $as_echo_n "(cached) " >&6
11548 else
11549 ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11554 /* Override any GCC internal prototype to avoid an error.
11555 Use char because int might match the return type of a GCC
11556 builtin and then its argument prototype would still apply. */
11557 #ifdef __cplusplus
11558 extern "C"
11559 #endif
11560 char gp_camera_new ();
11562 main ()
11564 return gp_camera_new ();
11566 return 0;
11568 _ACEOF
11569 if ac_fn_c_try_link "$LINENO"; then :
11570 ac_cv_lib_gphoto2_gp_camera_new=yes
11571 else
11572 ac_cv_lib_gphoto2_gp_camera_new=no
11574 rm -f core conftest.err conftest.$ac_objext \
11575 conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11579 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11580 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11582 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11584 else
11585 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11588 else
11589 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11593 CPPFLAGS=$ac_save_CPPFLAGS
11594 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11595 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11597 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
11599 elif test -n "$PKG_CONFIG"; then :
11600 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11602 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11603 if test -n "$GPHOTO2_PORT_LIBS"; then :
11605 elif test -n "$PKG_CONFIG"; then :
11606 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11608 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11609 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11610 ac_save_CPPFLAGS=$CPPFLAGS
11611 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11612 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11613 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11615 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11616 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 ac_check_lib_save_LIBS=$LIBS
11620 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11624 /* Override any GCC internal prototype to avoid an error.
11625 Use char because int might match the return type of a GCC
11626 builtin and then its argument prototype would still apply. */
11627 #ifdef __cplusplus
11628 extern "C"
11629 #endif
11630 char gp_port_info_list_new ();
11632 main ()
11634 return gp_port_info_list_new ();
11636 return 0;
11638 _ACEOF
11639 if ac_fn_c_try_link "$LINENO"; then :
11640 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11641 else
11642 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11644 rm -f core conftest.err conftest.$ac_objext \
11645 conftest$ac_exeext conftest.$ac_ext
11646 LIBS=$ac_check_lib_save_LIBS
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11649 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11650 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11652 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11654 else
11655 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11658 else
11659 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11663 CPPFLAGS=$ac_save_CPPFLAGS
11664 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11665 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11668 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11669 case "x$with_gphoto" in
11670 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11671 xno) ;;
11672 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11673 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11674 esac
11676 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11677 case "x$with_gphoto" in
11678 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11679 xno) ;;
11680 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11681 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11682 esac
11686 if test "$ac_cv_header_resolv_h" = "yes"
11687 then
11688 ac_save_LIBS="$LIBS"
11689 for lib in '' -lresolv
11691 LIBS="$lib $ac_save_LIBS"
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11694 #ifdef HAVE_NETINET_IN_H
11695 #include <netinet/in.h>
11696 #endif
11697 #include <resolv.h>
11699 main ()
11701 res_query("foo",ns_c_in,0,0,0);
11703 return 0;
11705 _ACEOF
11706 if ac_fn_c_try_link "$LINENO"; then :
11708 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11710 RESOLVLIBS="$lib"
11713 rm -f core conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11715 if test "${RESOLVLIBS+set}" = set; then
11716 break
11718 done
11719 LIBS="$ac_save_LIBS"
11722 if test "x$with_lcms2" != "xno"
11723 then
11724 if test -n "$LCMS2_CFLAGS"; then :
11726 elif test -n "$PKG_CONFIG"; then :
11727 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11730 if test -n "$LCMS2_LIBS"; then :
11732 elif test -n "$PKG_CONFIG"; then :
11733 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
11736 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
11737 ac_save_CPPFLAGS=$CPPFLAGS
11738 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
11739 for ac_header in lcms2.h
11740 do :
11741 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
11742 if test "x$ac_cv_header_lcms2_h" = xyes; then :
11743 cat >>confdefs.h <<_ACEOF
11744 #define HAVE_LCMS2_H 1
11745 _ACEOF
11749 done
11751 if test "$ac_cv_header_lcms2_h" = "yes"
11752 then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
11754 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
11755 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 ac_check_lib_save_LIBS=$LIBS
11759 LIBS="-llcms2 $LIBS"
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11763 /* Override any GCC internal prototype to avoid an error.
11764 Use char because int might match the return type of a GCC
11765 builtin and then its argument prototype would still apply. */
11766 #ifdef __cplusplus
11767 extern "C"
11768 #endif
11769 char cmsOpenProfileFromFile ();
11771 main ()
11773 return cmsOpenProfileFromFile ();
11775 return 0;
11777 _ACEOF
11778 if ac_fn_c_try_link "$LINENO"; then :
11779 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
11780 else
11781 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
11783 rm -f core conftest.err conftest.$ac_objext \
11784 conftest$ac_exeext conftest.$ac_ext
11785 LIBS=$ac_check_lib_save_LIBS
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
11788 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
11789 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
11791 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
11793 else
11794 LCMS2_LIBS=""
11797 else
11798 LCMS2_CFLAGS=""
11799 LCMS2_LIBS=""
11801 CPPFLAGS=$ac_save_CPPFLAGS
11802 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11803 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11806 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
11807 case "x$with_cms" in
11808 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
11809 xno) ;;
11810 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
11811 This is an error since --with-cms was requested." "$LINENO" 5 ;;
11812 esac
11815 if test "x$with_freetype" != "xno"
11816 then
11817 if test -n "$FREETYPE_CFLAGS"; then :
11819 elif test -n "$PKG_CONFIG"; then :
11820 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
11822 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
11823 if test -n "$FREETYPE_LIBS"; then :
11825 elif test -n "$PKG_CONFIG"; then :
11826 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
11828 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
11829 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
11830 ac_save_CPPFLAGS=$CPPFLAGS
11831 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
11832 for ac_header in ft2build.h
11833 do :
11834 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
11835 if test "x$ac_cv_header_ft2build_h" = xyes; then :
11836 cat >>confdefs.h <<_ACEOF
11837 #define HAVE_FT2BUILD_H 1
11838 _ACEOF
11842 done
11844 if test "$ac_cv_header_ft2build_h" = "yes"
11845 then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
11847 $as_echo_n "checking for -lfreetype... " >&6; }
11848 if ${ac_cv_lib_soname_freetype+:} false; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851 ac_check_soname_save_LIBS=$LIBS
11852 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854 /* end confdefs.h. */
11856 /* Override any GCC internal prototype to avoid an error.
11857 Use char because int might match the return type of a GCC
11858 builtin and then its argument prototype would still apply. */
11859 #ifdef __cplusplus
11860 extern "C"
11861 #endif
11862 char FT_Init_FreeType ();
11864 main ()
11866 return FT_Init_FreeType ();
11868 return 0;
11870 _ACEOF
11871 if ac_fn_c_try_link "$LINENO"; then :
11872 case "$LIBEXT" in
11873 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11874 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'` ;;
11875 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11876 if test "x$ac_cv_lib_soname_freetype" = x; then :
11877 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11878 fi ;;
11879 esac
11881 rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11883 LIBS=$ac_check_soname_save_LIBS
11885 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11887 $as_echo "not found" >&6; }
11888 FREETYPE_LIBS=""
11889 else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11891 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11893 cat >>confdefs.h <<_ACEOF
11894 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11895 _ACEOF
11898 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11900 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
11901 #include FT_MODULE_H
11903 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11905 cat >>confdefs.h <<_ACEOF
11906 #define HAVE_FT_TRUETYPEENGINETYPE 1
11907 _ACEOF
11913 else
11914 FREETYPE_CFLAGS=""
11915 FREETYPE_LIBS=""
11917 CPPFLAGS=$ac_save_CPPFLAGS
11918 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11919 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11922 if test "x$ac_cv_lib_soname_freetype" = x; then :
11923 case "x$with_freetype" in
11924 xno) ;;
11925 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11926 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11927 esac
11929 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11932 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11933 if ${ac_cv_c_ppdev+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11938 #ifdef HAVE_SYS_IOCTL_H
11939 # include <sys/ioctl.h>
11940 #endif
11941 #include <linux/ppdev.h>
11943 main ()
11945 ioctl (1,PPCLAIM,0)
11947 return 0;
11949 _ACEOF
11950 if ac_fn_c_try_compile "$LINENO"; then :
11951 ac_cv_c_ppdev="yes"
11952 else
11953 ac_cv_c_ppdev="no"
11955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11958 $as_echo "$ac_cv_c_ppdev" >&6; }
11959 if test "$ac_cv_c_ppdev" = "yes"
11960 then
11962 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11966 ac_wine_check_funcs_save_LIBS="$LIBS"
11967 LIBS="$LIBS $LIBPTHREAD"
11968 for ac_func in \
11969 pthread_attr_get_np \
11970 pthread_getattr_np \
11971 pthread_getthreadid_np \
11972 pthread_get_stackaddr_np \
11973 pthread_get_stacksize_np
11974 do :
11975 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11976 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11977 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11978 cat >>confdefs.h <<_ACEOF
11979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11980 _ACEOF
11983 done
11985 LIBS="$ac_wine_check_funcs_save_LIBS"
11987 if test "$ac_cv_header_zlib_h" = "yes"
11988 then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11990 $as_echo_n "checking for inflate in -lz... " >&6; }
11991 if ${ac_cv_lib_z_inflate+:} false; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 ac_check_lib_save_LIBS=$LIBS
11995 LIBS="-lz $LIBS"
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11999 /* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 char inflate ();
12007 main ()
12009 return inflate ();
12011 return 0;
12013 _ACEOF
12014 if ac_fn_c_try_link "$LINENO"; then :
12015 ac_cv_lib_z_inflate=yes
12016 else
12017 ac_cv_lib_z_inflate=no
12019 rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12024 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12025 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12027 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12029 ZLIB="-lz"
12034 if test "x$ZLIB" = "x"; then :
12035 case "x$with_zlib" in
12036 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12037 xno) ;;
12038 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12039 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12040 esac
12043 if test "x$enable_tools" != xno
12044 then
12045 if test "$ac_cv_header_gettext_po_h" = "yes"
12046 then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12048 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12049 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 ac_check_lib_save_LIBS=$LIBS
12053 LIBS="-lgettextpo $LIBS"
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h. */
12057 /* Override any GCC internal prototype to avoid an error.
12058 Use char because int might match the return type of a GCC
12059 builtin and then its argument prototype would still apply. */
12060 #ifdef __cplusplus
12061 extern "C"
12062 #endif
12063 char po_message_msgctxt ();
12065 main ()
12067 return po_message_msgctxt ();
12069 return 0;
12071 _ACEOF
12072 if ac_fn_c_try_link "$LINENO"; then :
12073 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12074 else
12075 ac_cv_lib_gettextpo_po_message_msgctxt=no
12077 rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
12079 LIBS=$ac_check_lib_save_LIBS
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12082 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12083 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12085 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12087 LIBGETTEXTPO="-lgettextpo"
12092 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
12093 case "x$with_gettextpo" in
12094 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12095 xno) ;;
12096 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12097 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12098 esac
12102 if test "x$with_gstreamer" != "xno"
12103 then
12104 if test -n "$GSTREAMER_CFLAGS"; then :
12106 elif test -n "$PKG_CONFIG"; then :
12107 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12110 if test -n "$GSTREAMER_LIBS"; then :
12112 elif test -n "$PKG_CONFIG"; then :
12113 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12117 ac_save_CPPFLAGS=$CPPFLAGS
12118 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12119 ac_gst_incl=""
12120 for i in $GSTREAMER_CFLAGS
12122 case "$i" in
12123 -I*) ac_gst_incl="$ac_gst_incl $i";;
12124 esac
12125 done
12126 GSTREAMER_CFLAGS=$ac_gst_incl
12127 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12128 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12129 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12130 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12131 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12133 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #include <gst/app/gstappsink.h>
12138 main ()
12140 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12142 return 0;
12144 _ACEOF
12145 if ac_fn_c_try_compile "$LINENO"; then :
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12147 $as_echo "yes" >&6; }
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12149 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12150 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 ac_check_lib_save_LIBS=$LIBS
12154 LIBS="-lgstreamer-0.10 $LIBS"
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12158 /* Override any GCC internal prototype to avoid an error.
12159 Use char because int might match the return type of a GCC
12160 builtin and then its argument prototype would still apply. */
12161 #ifdef __cplusplus
12162 extern "C"
12163 #endif
12164 char gst_pad_get_caps_reffed ();
12166 main ()
12168 return gst_pad_get_caps_reffed ();
12170 return 0;
12172 _ACEOF
12173 if ac_fn_c_try_link "$LINENO"; then :
12174 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12175 else
12176 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12178 rm -f core conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext conftest.$ac_ext
12180 LIBS=$ac_check_lib_save_LIBS
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12183 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12184 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12186 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12187 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12195 /* Override any GCC internal prototype to avoid an error.
12196 Use char because int might match the return type of a GCC
12197 builtin and then its argument prototype would still apply. */
12198 #ifdef __cplusplus
12199 extern "C"
12200 #endif
12201 char gst_app_buffer_new ();
12203 main ()
12205 return gst_app_buffer_new ();
12207 return 0;
12209 _ACEOF
12210 if ac_fn_c_try_link "$LINENO"; then :
12211 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12212 else
12213 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12215 rm -f core conftest.err conftest.$ac_objext \
12216 conftest$ac_exeext conftest.$ac_ext
12217 LIBS=$ac_check_lib_save_LIBS
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12220 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12221 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12227 else
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 else
12236 GSTREAMER_CFLAGS=""
12240 CPPFLAGS=$ac_save_CPPFLAGS
12241 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12242 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12245 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12246 case "x$with_gstreamer" in
12247 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12248 xno) ;;
12249 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12250 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12251 esac
12253 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12255 ALSALIBS=""
12257 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12258 then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12260 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12261 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264 ac_check_lib_save_LIBS=$LIBS
12265 LIBS="-lasound $LIBS"
12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267 /* end confdefs.h. */
12269 /* Override any GCC internal prototype to avoid an error.
12270 Use char because int might match the return type of a GCC
12271 builtin and then its argument prototype would still apply. */
12272 #ifdef __cplusplus
12273 extern "C"
12274 #endif
12275 char snd_pcm_hw_params_get_access_mask ();
12277 main ()
12279 return snd_pcm_hw_params_get_access_mask ();
12281 return 0;
12283 _ACEOF
12284 if ac_fn_c_try_link "$LINENO"; then :
12285 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12286 else
12287 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12289 rm -f core conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12294 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12295 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12298 #ifdef HAVE_ALSA_ASOUNDLIB_H
12299 #include <alsa/asoundlib.h>
12300 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12301 #include <sys/asoundlib.h>
12302 #endif
12304 main ()
12306 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12308 return 0;
12310 _ACEOF
12311 if ac_fn_c_try_compile "$LINENO"; then :
12312 ALSALIBS="-lasound"
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 if test "x$with_oss" != xno
12320 then
12321 ac_save_CPPFLAGS="$CPPFLAGS"
12322 if test -f /etc/oss.conf
12323 then
12324 . /etc/oss.conf
12326 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12327 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12328 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12329 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12330 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12332 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12334 cat >>confdefs.h <<_ACEOF
12335 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12336 _ACEOF
12338 OSS4INCL="$ac_oss_incl"
12345 CPPFLAGS="$ac_save_CPPFLAGS"
12346 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12347 then
12348 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12352 if test "x$with_capi" != "xno"
12353 then
12354 if test -n "$CAPI20_CFLAGS"; then :
12356 elif test -n "$PKG_CONFIG"; then :
12357 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12360 if test -n "$CAPI20_LIBS"; then :
12362 elif test -n "$PKG_CONFIG"; then :
12363 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12367 ac_save_CPPFLAGS=$CPPFLAGS
12368 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12369 for ac_header in capi20.h linux/capi.h
12370 do :
12371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12372 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12375 cat >>confdefs.h <<_ACEOF
12376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12377 _ACEOF
12381 done
12383 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12384 then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12386 $as_echo_n "checking for -lcapi20... " >&6; }
12387 if ${ac_cv_lib_soname_capi20+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 ac_check_soname_save_LIBS=$LIBS
12391 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12395 /* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12398 #ifdef __cplusplus
12399 extern "C"
12400 #endif
12401 char capi20_register ();
12403 main ()
12405 return capi20_register ();
12407 return 0;
12409 _ACEOF
12410 if ac_fn_c_try_link "$LINENO"; then :
12411 case "$LIBEXT" in
12412 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12413 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'` ;;
12414 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12415 if test "x$ac_cv_lib_soname_capi20" = x; then :
12416 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12417 fi ;;
12418 esac
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_soname_save_LIBS
12424 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12426 $as_echo "not found" >&6; }
12428 else
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12430 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12432 cat >>confdefs.h <<_ACEOF
12433 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12434 _ACEOF
12439 CPPFLAGS=$ac_save_CPPFLAGS
12440 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12441 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12444 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12445 case "x$with_capi" in
12446 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12447 xno) ;;
12448 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12449 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12450 esac
12453 CUPSINCL=""
12455 if test "x$with_cups" != "xno"
12456 then
12457 ac_save_CPPFLAGS="$CPPFLAGS"
12458 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12459 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12460 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12461 for ac_header in cups/cups.h
12462 do :
12463 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12464 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12465 cat >>confdefs.h <<_ACEOF
12466 #define HAVE_CUPS_CUPS_H 1
12467 _ACEOF
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12469 $as_echo_n "checking for -lcups... " >&6; }
12470 if ${ac_cv_lib_soname_cups+:} false; then :
12471 $as_echo_n "(cached) " >&6
12472 else
12473 ac_check_soname_save_LIBS=$LIBS
12474 LIBS="-lcups $ac_cups_libs $LIBS"
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12478 /* Override any GCC internal prototype to avoid an error.
12479 Use char because int might match the return type of a GCC
12480 builtin and then its argument prototype would still apply. */
12481 #ifdef __cplusplus
12482 extern "C"
12483 #endif
12484 char cupsGetDefault ();
12486 main ()
12488 return cupsGetDefault ();
12490 return 0;
12492 _ACEOF
12493 if ac_fn_c_try_link "$LINENO"; then :
12494 case "$LIBEXT" in
12495 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12496 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'` ;;
12497 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12498 if test "x$ac_cv_lib_soname_cups" = x; then :
12499 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12500 fi ;;
12501 esac
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_soname_save_LIBS
12507 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12509 $as_echo "not found" >&6; }
12511 else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12513 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12515 cat >>confdefs.h <<_ACEOF
12516 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12517 _ACEOF
12519 CUPSINCL="$ac_cups_cflags"
12523 done
12525 CPPFLAGS="$ac_save_CPPFLAGS"
12527 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12528 case "x$with_cups" in
12529 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12530 xno) ;;
12531 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12532 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12533 esac
12536 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12537 then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12539 $as_echo_n "checking for -lfontconfig... " >&6; }
12540 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12541 $as_echo_n "(cached) " >&6
12542 else
12543 ac_check_soname_save_LIBS=$LIBS
12544 LIBS="-lfontconfig $LIBS"
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12548 /* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12551 #ifdef __cplusplus
12552 extern "C"
12553 #endif
12554 char FcInit ();
12556 main ()
12558 return FcInit ();
12560 return 0;
12562 _ACEOF
12563 if ac_fn_c_try_link "$LINENO"; then :
12564 case "$LIBEXT" in
12565 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12566 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'` ;;
12567 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12568 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12569 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12570 fi ;;
12571 esac
12573 rm -f core conftest.err conftest.$ac_objext \
12574 conftest$ac_exeext conftest.$ac_ext
12575 LIBS=$ac_check_soname_save_LIBS
12577 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12579 $as_echo "not found" >&6; }
12581 else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12583 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12585 cat >>confdefs.h <<_ACEOF
12586 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12587 _ACEOF
12591 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
12592 then
12593 ac_save_CPPFLAGS="$CPPFLAGS"
12594 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12595 $as_unset ac_cv_header_fontconfig_fontconfig_h
12596 for ac_header in fontconfig/fontconfig.h
12597 do :
12598 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12599 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12600 cat >>confdefs.h <<_ACEOF
12601 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12602 _ACEOF
12606 done
12608 CPPFLAGS="$ac_save_CPPFLAGS"
12609 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12610 then
12611 FONTCONFIGINCL="$X_CFLAGS"
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12614 $as_echo_n "checking for -lfontconfig... " >&6; }
12615 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 ac_check_soname_save_LIBS=$LIBS
12619 LIBS="-lfontconfig $X_LIBS $LIBS"
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12623 /* Override any GCC internal prototype to avoid an error.
12624 Use char because int might match the return type of a GCC
12625 builtin and then its argument prototype would still apply. */
12626 #ifdef __cplusplus
12627 extern "C"
12628 #endif
12629 char FcInit ();
12631 main ()
12633 return FcInit ();
12635 return 0;
12637 _ACEOF
12638 if ac_fn_c_try_link "$LINENO"; then :
12639 case "$LIBEXT" in
12640 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12641 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'` ;;
12642 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12643 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12644 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12645 fi ;;
12646 esac
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650 LIBS=$ac_check_soname_save_LIBS
12652 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12654 $as_echo "not found" >&6; }
12656 else
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12658 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12660 cat >>confdefs.h <<_ACEOF
12661 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12662 _ACEOF
12668 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12669 case "x$with_fontconfig" in
12670 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12671 xno) ;;
12672 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12673 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12674 esac
12677 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12678 then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12680 $as_echo_n "checking for -lgsm... " >&6; }
12681 if ${ac_cv_lib_soname_gsm+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 ac_check_soname_save_LIBS=$LIBS
12685 LIBS="-lgsm $LIBS"
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12689 /* Override any GCC internal prototype to avoid an error.
12690 Use char because int might match the return type of a GCC
12691 builtin and then its argument prototype would still apply. */
12692 #ifdef __cplusplus
12693 extern "C"
12694 #endif
12695 char gsm_create ();
12697 main ()
12699 return gsm_create ();
12701 return 0;
12703 _ACEOF
12704 if ac_fn_c_try_link "$LINENO"; then :
12705 case "$LIBEXT" in
12706 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12707 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'` ;;
12708 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12709 if test "x$ac_cv_lib_soname_gsm" = x; then :
12710 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12711 fi ;;
12712 esac
12714 rm -f core conftest.err conftest.$ac_objext \
12715 conftest$ac_exeext conftest.$ac_ext
12716 LIBS=$ac_check_soname_save_LIBS
12718 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12720 $as_echo "not found" >&6; }
12722 else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12724 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12726 cat >>confdefs.h <<_ACEOF
12727 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12728 _ACEOF
12733 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12734 case "x$with_gsm" in
12735 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12736 xno) ;;
12737 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12738 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12739 esac
12742 if test "x$with_jpeg" != "xno"
12743 then
12744 if test -n "$JPEG_CFLAGS"; then :
12746 elif test -n "$PKG_CONFIG"; then :
12747 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12750 if test -n "$JPEG_LIBS"; then :
12752 elif test -n "$PKG_CONFIG"; then :
12753 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12757 ac_save_CPPFLAGS=$CPPFLAGS
12758 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
12759 for ac_header in jpeglib.h
12760 do :
12761 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12762 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12763 cat >>confdefs.h <<_ACEOF
12764 #define HAVE_JPEGLIB_H 1
12765 _ACEOF
12769 done
12771 if test "$ac_cv_header_jpeglib_h" = "yes"
12772 then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
12774 $as_echo_n "checking for -ljpeg... " >&6; }
12775 if ${ac_cv_lib_soname_jpeg+:} false; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 ac_check_soname_save_LIBS=$LIBS
12779 LIBS="-ljpeg $JPEG_LIBS $LIBS"
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12783 /* Override any GCC internal prototype to avoid an error.
12784 Use char because int might match the return type of a GCC
12785 builtin and then its argument prototype would still apply. */
12786 #ifdef __cplusplus
12787 extern "C"
12788 #endif
12789 char jpeg_start_decompress ();
12791 main ()
12793 return jpeg_start_decompress ();
12795 return 0;
12797 _ACEOF
12798 if ac_fn_c_try_link "$LINENO"; then :
12799 case "$LIBEXT" in
12800 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12801 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'` ;;
12802 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12803 if test "x$ac_cv_lib_soname_jpeg" = x; then :
12804 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12805 fi ;;
12806 esac
12808 rm -f core conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12810 LIBS=$ac_check_soname_save_LIBS
12812 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12814 $as_echo "not found" >&6; }
12815 JPEG_CFLAGS=""
12816 else
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
12818 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
12820 cat >>confdefs.h <<_ACEOF
12821 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
12822 _ACEOF
12826 else
12827 JPEG_CFLAGS=""
12829 CPPFLAGS=$ac_save_CPPFLAGS
12830 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12831 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12834 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12835 case "x$with_jpeg" in
12836 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
12837 xno) ;;
12838 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
12839 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
12840 esac
12843 if test "x$with_png" != "xno"
12844 then
12845 if test -n "$PNG_CFLAGS"; then :
12847 elif test -n "$PKG_CONFIG"; then :
12848 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
12850 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
12851 if test -n "$PNG_LIBS"; then :
12853 elif test -n "$PKG_CONFIG"; then :
12854 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
12856 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
12858 ac_save_CPPFLAGS=$CPPFLAGS
12859 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
12860 for ac_header in png.h
12861 do :
12862 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12863 if test "x$ac_cv_header_png_h" = xyes; then :
12864 cat >>confdefs.h <<_ACEOF
12865 #define HAVE_PNG_H 1
12866 _ACEOF
12870 done
12872 if test "$ac_cv_header_png_h" = "yes"
12873 then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12875 $as_echo_n "checking for -lpng... " >&6; }
12876 if ${ac_cv_lib_soname_png+:} false; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 ac_check_soname_save_LIBS=$LIBS
12880 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h. */
12884 /* Override any GCC internal prototype to avoid an error.
12885 Use char because int might match the return type of a GCC
12886 builtin and then its argument prototype would still apply. */
12887 #ifdef __cplusplus
12888 extern "C"
12889 #endif
12890 char png_create_read_struct ();
12892 main ()
12894 return png_create_read_struct ();
12896 return 0;
12898 _ACEOF
12899 if ac_fn_c_try_link "$LINENO"; then :
12900 case "$LIBEXT" in
12901 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12902 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'` ;;
12903 *) 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'`
12904 if test "x$ac_cv_lib_soname_png" = x; then :
12905 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12906 fi ;;
12907 esac
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12911 LIBS=$ac_check_soname_save_LIBS
12913 if test "x$ac_cv_lib_soname_png" = "x"; then :
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12915 $as_echo "not found" >&6; }
12916 PNG_CFLAGS=""
12917 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12919 $as_echo "$ac_cv_lib_soname_png" >&6; }
12921 cat >>confdefs.h <<_ACEOF
12922 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12923 _ACEOF
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12927 #include <png.h>
12929 main ()
12931 typeof(png_set_expand_gray_1_2_4_to_8) *p
12933 return 0;
12935 _ACEOF
12936 if ac_fn_c_try_compile "$LINENO"; then :
12938 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12943 else
12944 PNG_CFLAGS=""
12946 CPPFLAGS=$ac_save_CPPFLAGS
12947 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12948 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12951 if test "x$ac_cv_lib_soname_png" = "x"; then :
12952 case "x$with_png" in
12953 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12954 xno) ;;
12955 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12956 This is an error since --with-png was requested." "$LINENO" 5 ;;
12957 esac
12960 if test "x$with_tiff" != "xno"
12961 then
12962 if test -n "$TIFF_CFLAGS"; then :
12964 elif test -n "$PKG_CONFIG"; then :
12965 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
12968 if test -n "$TIFF_LIBS"; then :
12970 elif test -n "$PKG_CONFIG"; then :
12971 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
12975 ac_save_CPPFLAGS=$CPPFLAGS
12976 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
12977 for ac_header in tiffio.h
12978 do :
12979 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12980 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12981 cat >>confdefs.h <<_ACEOF
12982 #define HAVE_TIFFIO_H 1
12983 _ACEOF
12987 done
12989 if test "$ac_cv_header_tiffio_h" = "yes"
12990 then
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12992 $as_echo_n "checking for -ltiff... " >&6; }
12993 if ${ac_cv_lib_soname_tiff+:} false; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996 ac_check_soname_save_LIBS=$LIBS
12997 LIBS="-ltiff $TIFF_LIBS $LIBS"
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13004 #ifdef __cplusplus
13005 extern "C"
13006 #endif
13007 char TIFFClientOpen ();
13009 main ()
13011 return TIFFClientOpen ();
13013 return 0;
13015 _ACEOF
13016 if ac_fn_c_try_link "$LINENO"; then :
13017 case "$LIBEXT" in
13018 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13019 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'` ;;
13020 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13021 if test "x$ac_cv_lib_soname_tiff" = x; then :
13022 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13023 fi ;;
13024 esac
13026 rm -f core conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13028 LIBS=$ac_check_soname_save_LIBS
13030 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13032 $as_echo "not found" >&6; }
13034 else
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
13036 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
13038 cat >>confdefs.h <<_ACEOF
13039 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
13040 _ACEOF
13045 CPPFLAGS=$ac_save_CPPFLAGS
13046 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13047 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13050 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13051 case "x$with_tiff" in
13052 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
13053 xno) ;;
13054 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13055 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13056 esac
13059 if test "x$with_mpg123" != "xno"
13060 then
13061 if test -n "$MPG123_CFLAGS"; then :
13063 elif test -n "$PKG_CONFIG"; then :
13064 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13067 if test -n "$MPG123_LIBS"; then :
13069 elif test -n "$PKG_CONFIG"; then :
13070 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13073 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13074 ac_save_CPPFLAGS=$CPPFLAGS
13075 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13076 for ac_header in mpg123.h
13077 do :
13078 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13079 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13080 cat >>confdefs.h <<_ACEOF
13081 #define HAVE_MPG123_H 1
13082 _ACEOF
13086 done
13088 if test "$ac_cv_header_mpg123_h" = "yes"
13089 then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13091 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13092 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 ac_check_lib_save_LIBS=$LIBS
13096 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13100 /* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13103 #ifdef __cplusplus
13104 extern "C"
13105 #endif
13106 char mpg123_feed ();
13108 main ()
13110 return mpg123_feed ();
13112 return 0;
13114 _ACEOF
13115 if ac_fn_c_try_link "$LINENO"; then :
13116 ac_cv_lib_mpg123_mpg123_feed=yes
13117 else
13118 ac_cv_lib_mpg123_mpg123_feed=no
13120 rm -f core conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
13122 LIBS=$ac_check_lib_save_LIBS
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13125 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13126 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13128 else
13129 MPG123_LIBS=""
13132 else
13133 MPG123_CFLAGS=""
13134 MPG123_LIBS=""
13136 CPPFLAGS=$ac_save_CPPFLAGS
13137 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13138 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13141 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13142 case "x$with_mpg123" in
13143 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13144 xno) ;;
13145 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13146 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13147 esac
13149 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}
13151 if test "$ac_cv_header_AL_al_h" = "yes"
13152 then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13154 $as_echo_n "checking for -lopenal... " >&6; }
13155 if ${ac_cv_lib_soname_openal+:} false; then :
13156 $as_echo_n "(cached) " >&6
13157 else
13158 ac_check_soname_save_LIBS=$LIBS
13159 LIBS="-lopenal $LIBS"
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13163 /* Override any GCC internal prototype to avoid an error.
13164 Use char because int might match the return type of a GCC
13165 builtin and then its argument prototype would still apply. */
13166 #ifdef __cplusplus
13167 extern "C"
13168 #endif
13169 char alGetSource3i ();
13171 main ()
13173 return alGetSource3i ();
13175 return 0;
13177 _ACEOF
13178 if ac_fn_c_try_link "$LINENO"; then :
13179 case "$LIBEXT" in
13180 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13181 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'` ;;
13182 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13183 if test "x$ac_cv_lib_soname_openal" = x; then :
13184 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13185 fi ;;
13186 esac
13188 rm -f core conftest.err conftest.$ac_objext \
13189 conftest$ac_exeext conftest.$ac_ext
13190 LIBS=$ac_check_soname_save_LIBS
13192 if test "x$ac_cv_lib_soname_openal" = "x"; then :
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13194 $as_echo "not found" >&6; }
13196 else
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13198 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13200 cat >>confdefs.h <<_ACEOF
13201 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13202 _ACEOF
13204 LIBOPENAL="-lopenal"
13206 ac_cv_lib_openal=yes
13208 cat >>confdefs.h <<_ACEOF
13209 #define HAVE_OPENAL 1
13210 _ACEOF
13214 if test "x$ac_cv_lib_openal" != xyes; then :
13215 case "x$with_openal" in
13216 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13217 xno) ;;
13218 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13219 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13220 esac
13222 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13224 if test "$ac_cv_header_kstat_h" = "yes"
13225 then
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13227 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13228 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 ac_check_lib_save_LIBS=$LIBS
13232 LIBS="-lkstat $LIBS"
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13239 #ifdef __cplusplus
13240 extern "C"
13241 #endif
13242 char kstat_open ();
13244 main ()
13246 return kstat_open ();
13248 return 0;
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"; then :
13252 ac_cv_lib_kstat_kstat_open=yes
13253 else
13254 ac_cv_lib_kstat_kstat_open=no
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258 LIBS=$ac_check_lib_save_LIBS
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13261 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13262 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13264 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13266 LIBKSTAT="-lkstat"
13272 if test "$ac_cv_header_libprocstat_h" = "yes"
13273 then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13275 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13276 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279 ac_check_lib_save_LIBS=$LIBS
13280 LIBS="-lprocstat $LIBS"
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h. */
13284 /* Override any GCC internal prototype to avoid an error.
13285 Use char because int might match the return type of a GCC
13286 builtin and then its argument prototype would still apply. */
13287 #ifdef __cplusplus
13288 extern "C"
13289 #endif
13290 char procstat_open_sysctl ();
13292 main ()
13294 return procstat_open_sysctl ();
13296 return 0;
13298 _ACEOF
13299 if ac_fn_c_try_link "$LINENO"; then :
13300 ac_cv_lib_procstat_procstat_open_sysctl=yes
13301 else
13302 ac_cv_lib_procstat_procstat_open_sysctl=no
13304 rm -f core conftest.err conftest.$ac_objext \
13305 conftest$ac_exeext conftest.$ac_ext
13306 LIBS=$ac_check_lib_save_LIBS
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13309 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13310 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13312 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13314 LIBPROCSTAT="-lprocstat"
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13321 $as_echo_n "checking for -lodbc... " >&6; }
13322 if ${ac_cv_lib_soname_odbc+:} false; then :
13323 $as_echo_n "(cached) " >&6
13324 else
13325 ac_check_soname_save_LIBS=$LIBS
13326 LIBS="-lodbc $LIBS"
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13330 /* Override any GCC internal prototype to avoid an error.
13331 Use char because int might match the return type of a GCC
13332 builtin and then its argument prototype would still apply. */
13333 #ifdef __cplusplus
13334 extern "C"
13335 #endif
13336 char SQLConnect ();
13338 main ()
13340 return SQLConnect ();
13342 return 0;
13344 _ACEOF
13345 if ac_fn_c_try_link "$LINENO"; then :
13346 case "$LIBEXT" in
13347 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13348 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'` ;;
13349 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13350 if test "x$ac_cv_lib_soname_odbc" = x; then :
13351 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13352 fi ;;
13353 esac
13355 rm -f core conftest.err conftest.$ac_objext \
13356 conftest$ac_exeext conftest.$ac_ext
13357 LIBS=$ac_check_soname_save_LIBS
13359 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13361 $as_echo "not found" >&6; }
13362 cat >>confdefs.h <<_ACEOF
13363 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13364 _ACEOF
13366 else
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13368 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13370 cat >>confdefs.h <<_ACEOF
13371 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13372 _ACEOF
13377 if test "x$with_netapi" != "xno"
13378 then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13380 $as_echo_n "checking for -lnetapi... " >&6; }
13381 if ${ac_cv_lib_soname_netapi+:} false; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 ac_check_soname_save_LIBS=$LIBS
13385 LIBS="-lnetapi $LIBS"
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13389 /* Override any GCC internal prototype to avoid an error.
13390 Use char because int might match the return type of a GCC
13391 builtin and then its argument prototype would still apply. */
13392 #ifdef __cplusplus
13393 extern "C"
13394 #endif
13395 char libnetapi_init ();
13397 main ()
13399 return libnetapi_init ();
13401 return 0;
13403 _ACEOF
13404 if ac_fn_c_try_link "$LINENO"; then :
13405 case "$LIBEXT" in
13406 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13407 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'` ;;
13408 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13409 if test "x$ac_cv_lib_soname_netapi" = x; then :
13410 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13411 fi ;;
13412 esac
13414 rm -f core conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13416 LIBS=$ac_check_soname_save_LIBS
13418 if test "x$ac_cv_lib_soname_netapi" = "x"; then :
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13420 $as_echo "not found" >&6; }
13421 cat >>confdefs.h <<_ACEOF
13422 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13423 _ACEOF
13425 else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13427 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13429 cat >>confdefs.h <<_ACEOF
13430 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13431 _ACEOF
13437 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13438 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13439 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13440 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13442 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
13443 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13444 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13445 then
13446 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13450 EXTRACFLAGS=""
13452 if test "x${GCC}" = "xyes"
13453 then
13454 EXTRACFLAGS="-Wall -pipe"
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13457 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13458 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 if test "$cross_compiling" = yes; then :
13462 ac_cv_c_gcc_strength_bug="yes"
13463 else
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13466 int L[4] = {0,1,2,3};
13468 main ()
13470 static int Array[3];
13471 unsigned int B = 3;
13472 int i;
13473 for(i=0; i<B; i++) Array[i] = i - 3;
13474 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13475 L[i] = 4;
13476 return (Array[1] != -2 || L[2] != 3)
13478 return 0;
13480 _ACEOF
13481 if ac_fn_c_try_run "$LINENO"; then :
13482 ac_cv_c_gcc_strength_bug="no"
13483 else
13484 ac_cv_c_gcc_strength_bug="yes"
13486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13487 conftest.$ac_objext conftest.beam conftest.$ac_ext
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13492 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13493 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13494 then
13495 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13499 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13500 if ${ac_cv_cflags__fno_builtin+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 ac_wine_try_cflags_saved=$CFLAGS
13504 CFLAGS="$CFLAGS -fno-builtin"
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13507 int main(int argc, char **argv) { return 0; }
13508 _ACEOF
13509 if ac_fn_c_try_link "$LINENO"; then :
13510 ac_cv_cflags__fno_builtin=yes
13511 else
13512 ac_cv_cflags__fno_builtin=no
13514 rm -f core conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
13516 CFLAGS=$ac_wine_try_cflags_saved
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13519 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13520 if test $ac_cv_cflags__fno_builtin = yes; then :
13521 BUILTINFLAG="-fno-builtin"
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13525 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13526 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 ac_wine_try_cflags_saved=$CFLAGS
13530 CFLAGS="$CFLAGS -fno-strict-aliasing"
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533 int main(int argc, char **argv) { return 0; }
13534 _ACEOF
13535 if ac_fn_c_try_link "$LINENO"; then :
13536 ac_cv_cflags__fno_strict_aliasing=yes
13537 else
13538 ac_cv_cflags__fno_strict_aliasing=no
13540 rm -f core conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
13542 CFLAGS=$ac_wine_try_cflags_saved
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13545 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13546 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
13547 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13549 saved_CFLAGS=$CFLAGS
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13551 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13552 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 ac_wine_try_cflags_saved=$CFLAGS
13556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 int main(int argc, char **argv) { return 0; }
13560 _ACEOF
13561 if ac_fn_c_try_link "$LINENO"; then :
13562 ac_cv_cflags__Werror_unknown_warning_option=yes
13563 else
13564 ac_cv_cflags__Werror_unknown_warning_option=no
13566 rm -f core conftest.err conftest.$ac_objext \
13567 conftest$ac_exeext conftest.$ac_ext
13568 CFLAGS=$ac_wine_try_cflags_saved
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13571 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13572 if test $ac_cv_cflags__Werror_unknown_warning_option = yes; then :
13573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13576 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13577 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 ac_wine_try_cflags_saved=$CFLAGS
13581 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584 int main(int argc, char **argv) { return 0; }
13585 _ACEOF
13586 if ac_fn_c_try_link "$LINENO"; then :
13587 ac_cv_cflags__Wdeclaration_after_statement=yes
13588 else
13589 ac_cv_cflags__Wdeclaration_after_statement=no
13591 rm -f core conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13593 CFLAGS=$ac_wine_try_cflags_saved
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13596 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13597 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
13598 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13601 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13602 if ${ac_cv_cflags__Wempty_body+:} false; then :
13603 $as_echo_n "(cached) " >&6
13604 else
13605 ac_wine_try_cflags_saved=$CFLAGS
13606 CFLAGS="$CFLAGS -Wempty-body"
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 int main(int argc, char **argv) { return 0; }
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"; then :
13612 ac_cv_cflags__Wempty_body=yes
13613 else
13614 ac_cv_cflags__Wempty_body=no
13616 rm -f core conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
13618 CFLAGS=$ac_wine_try_cflags_saved
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13621 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13622 if test $ac_cv_cflags__Wempty_body = yes; then :
13623 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13626 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13627 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13628 $as_echo_n "(cached) " >&6
13629 else
13630 ac_wine_try_cflags_saved=$CFLAGS
13631 CFLAGS="$CFLAGS -Wignored-qualifiers"
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13634 int main(int argc, char **argv) { return 0; }
13635 _ACEOF
13636 if ac_fn_c_try_link "$LINENO"; then :
13637 ac_cv_cflags__Wignored_qualifiers=yes
13638 else
13639 ac_cv_cflags__Wignored_qualifiers=no
13641 rm -f core conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext conftest.$ac_ext
13643 CFLAGS=$ac_wine_try_cflags_saved
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13646 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13647 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
13648 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13651 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13652 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 ac_wine_try_cflags_saved=$CFLAGS
13656 CFLAGS="$CFLAGS -Wstrict-prototypes"
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 int main(int argc, char **argv) { return 0; }
13660 _ACEOF
13661 if ac_fn_c_try_link "$LINENO"; then :
13662 ac_cv_cflags__Wstrict_prototypes=yes
13663 else
13664 ac_cv_cflags__Wstrict_prototypes=no
13666 rm -f core conftest.err conftest.$ac_objext \
13667 conftest$ac_exeext conftest.$ac_ext
13668 CFLAGS=$ac_wine_try_cflags_saved
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13671 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13672 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
13673 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13676 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13677 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 ac_wine_try_cflags_saved=$CFLAGS
13681 CFLAGS="$CFLAGS -Wtype-limits"
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13684 int main(int argc, char **argv) { return 0; }
13685 _ACEOF
13686 if ac_fn_c_try_link "$LINENO"; then :
13687 ac_cv_cflags__Wtype_limits=yes
13688 else
13689 ac_cv_cflags__Wtype_limits=no
13691 rm -f core conftest.err conftest.$ac_objext \
13692 conftest$ac_exeext conftest.$ac_ext
13693 CFLAGS=$ac_wine_try_cflags_saved
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13696 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13697 if test $ac_cv_cflags__Wtype_limits = yes; then :
13698 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13701 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13702 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13703 $as_echo_n "(cached) " >&6
13704 else
13705 ac_wine_try_cflags_saved=$CFLAGS
13706 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13709 int main(int argc, char **argv) { return 0; }
13710 _ACEOF
13711 if ac_fn_c_try_link "$LINENO"; then :
13712 ac_cv_cflags__Wunused_but_set_parameter=yes
13713 else
13714 ac_cv_cflags__Wunused_but_set_parameter=no
13716 rm -f core conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext conftest.$ac_ext
13718 CFLAGS=$ac_wine_try_cflags_saved
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13721 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13722 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
13723 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13726 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13727 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 ac_wine_try_cflags_saved=$CFLAGS
13731 CFLAGS="$CFLAGS -Wwrite-strings"
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 int main(int argc, char **argv) { return 0; }
13735 _ACEOF
13736 if ac_fn_c_try_link "$LINENO"; then :
13737 ac_cv_cflags__Wwrite_strings=yes
13738 else
13739 ac_cv_cflags__Wwrite_strings=no
13741 rm -f core conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext conftest.$ac_ext
13743 CFLAGS=$ac_wine_try_cflags_saved
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
13746 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
13747 if test $ac_cv_cflags__Wwrite_strings = yes; then :
13748 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
13752 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
13753 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 ac_wine_try_cflags_saved=$CFLAGS
13757 CFLAGS="$CFLAGS -Wpointer-arith"
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13760 int main(int argc, char **argv) { return 0; }
13761 _ACEOF
13762 if ac_fn_c_try_link "$LINENO"; then :
13763 ac_cv_cflags__Wpointer_arith=yes
13764 else
13765 ac_cv_cflags__Wpointer_arith=no
13767 rm -f core conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext conftest.$ac_ext
13769 CFLAGS=$ac_wine_try_cflags_saved
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
13772 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
13773 if test $ac_cv_cflags__Wpointer_arith = yes; then :
13774 saved_string_h_CFLAGS=$CFLAGS
13775 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
13777 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
13778 if ${ac_cv_c_string_h_warnings+:} false; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783 #include <string.h>
13785 main ()
13789 return 0;
13791 _ACEOF
13792 if ac_fn_c_try_compile "$LINENO"; then :
13793 ac_cv_c_string_h_warnings=no
13794 else
13795 ac_cv_c_string_h_warnings=yes
13797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
13800 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
13801 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13802 CFLAGS=$saved_string_h_CFLAGS
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
13806 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
13807 if ${ac_cv_cflags__Wlogical_op+:} false; then :
13808 $as_echo_n "(cached) " >&6
13809 else
13810 ac_wine_try_cflags_saved=$CFLAGS
13811 CFLAGS="$CFLAGS -Wlogical-op"
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 int main(int argc, char **argv) { return 0; }
13815 _ACEOF
13816 if ac_fn_c_try_link "$LINENO"; then :
13817 ac_cv_cflags__Wlogical_op=yes
13818 else
13819 ac_cv_cflags__Wlogical_op=no
13821 rm -f core conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
13823 CFLAGS=$ac_wine_try_cflags_saved
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
13826 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
13827 if test $ac_cv_cflags__Wlogical_op = yes; then :
13828 saved_string_h_CFLAGS=$CFLAGS
13829 CFLAGS="$CFLAGS -Wlogical-op -Werror"
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
13831 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
13832 if ${ac_cv_c_logicalop_noisy+:} false; then :
13833 $as_echo_n "(cached) " >&6
13834 else
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 #include <string.h>
13838 char*f(const char *h,char n) {return strchr(h,n);}
13840 main ()
13844 return 0;
13846 _ACEOF
13847 if ac_fn_c_try_compile "$LINENO"; then :
13848 ac_cv_c_logicalop_noisy=no
13849 else
13850 ac_cv_c_logicalop_noisy=yes
13852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
13855 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
13856 CFLAGS=$saved_string_h_CFLAGS
13857 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
13860 CFLAGS=$saved_CFLAGS
13862 for ac_flag in $CFLAGS; do
13863 case $ac_flag in
13864 -g) case $host_os in
13865 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
13866 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
13867 if ${ac_cv_cflags__gstabsp+:} false; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 ac_wine_try_cflags_saved=$CFLAGS
13871 CFLAGS="$CFLAGS -gstabs+"
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874 int main(int argc, char **argv) { return 0; }
13875 _ACEOF
13876 if ac_fn_c_try_link "$LINENO"; then :
13877 ac_cv_cflags__gstabsp=yes
13878 else
13879 ac_cv_cflags__gstabsp=no
13881 rm -f core conftest.err conftest.$ac_objext \
13882 conftest$ac_exeext conftest.$ac_ext
13883 CFLAGS=$ac_wine_try_cflags_saved
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
13886 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
13887 if test $ac_cv_cflags__gstabsp = yes; then :
13888 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13889 fi ;;
13890 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
13891 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
13892 if ${ac_cv_cflags__gdwarf_2+:} false; then :
13893 $as_echo_n "(cached) " >&6
13894 else
13895 ac_wine_try_cflags_saved=$CFLAGS
13896 CFLAGS="$CFLAGS -gdwarf-2"
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 int main(int argc, char **argv) { return 0; }
13900 _ACEOF
13901 if ac_fn_c_try_link "$LINENO"; then :
13902 ac_cv_cflags__gdwarf_2=yes
13903 else
13904 ac_cv_cflags__gdwarf_2=no
13906 rm -f core conftest.err conftest.$ac_objext \
13907 conftest$ac_exeext conftest.$ac_ext
13908 CFLAGS=$ac_wine_try_cflags_saved
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
13911 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
13912 if test $ac_cv_cflags__gdwarf_2 = yes; then :
13913 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
13916 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
13917 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 ac_wine_try_cflags_saved=$CFLAGS
13921 CFLAGS="$CFLAGS -gstrict-dwarf"
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13924 int main(int argc, char **argv) { return 0; }
13925 _ACEOF
13926 if ac_fn_c_try_link "$LINENO"; then :
13927 ac_cv_cflags__gstrict_dwarf=yes
13928 else
13929 ac_cv_cflags__gstrict_dwarf=no
13931 rm -f core conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
13933 CFLAGS=$ac_wine_try_cflags_saved
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
13936 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
13937 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
13938 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
13939 fi ;;
13940 esac ;;
13941 esac
13942 done
13944 case $host_cpu in
13945 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
13946 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
13947 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 ac_wine_try_cflags_saved=$CFLAGS
13951 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13954 int main(int argc, char **argv) { return 0; }
13955 _ACEOF
13956 if ac_fn_c_try_link "$LINENO"; then :
13957 ac_cv_cflags__fno_omit_frame_pointer=yes
13958 else
13959 ac_cv_cflags__fno_omit_frame_pointer=no
13961 rm -f core conftest.err conftest.$ac_objext \
13962 conftest$ac_exeext conftest.$ac_ext
13963 CFLAGS=$ac_wine_try_cflags_saved
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
13966 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
13967 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
13968 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
13969 fi ;;
13970 esac
13972 case $host in
13973 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
13974 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
13975 if ${ac_cv_cflags__Wno_format+:} false; then :
13976 $as_echo_n "(cached) " >&6
13977 else
13978 ac_wine_try_cflags_saved=$CFLAGS
13979 CFLAGS="$CFLAGS -Wno-format"
13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h. */
13982 int main(int argc, char **argv) { return 0; }
13983 _ACEOF
13984 if ac_fn_c_try_link "$LINENO"; then :
13985 ac_cv_cflags__Wno_format=yes
13986 else
13987 ac_cv_cflags__Wno_format=no
13989 rm -f core conftest.err conftest.$ac_objext \
13990 conftest$ac_exeext conftest.$ac_ext
13991 CFLAGS=$ac_wine_try_cflags_saved
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
13994 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
13995 if test $ac_cv_cflags__Wno_format = yes; then :
13996 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
13997 fi ;;
13998 esac
14000 if test "x$enable_maintainer_mode" = "xyes"
14001 then
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
14003 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
14004 if ${ac_cv_cflags__Werror+:} false; then :
14005 $as_echo_n "(cached) " >&6
14006 else
14007 ac_wine_try_cflags_saved=$CFLAGS
14008 CFLAGS="$CFLAGS -Werror"
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011 int main(int argc, char **argv) { return 0; }
14012 _ACEOF
14013 if ac_fn_c_try_link "$LINENO"; then :
14014 ac_cv_cflags__Werror=yes
14015 else
14016 ac_cv_cflags__Werror=no
14018 rm -f core conftest.err conftest.$ac_objext \
14019 conftest$ac_exeext conftest.$ac_ext
14020 CFLAGS=$ac_wine_try_cflags_saved
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
14023 $as_echo "$ac_cv_cflags__Werror" >&6; }
14024 if test $ac_cv_cflags__Werror = yes; then :
14025 EXTRACFLAGS="$EXTRACFLAGS -Werror"
14029 saved_CFLAGS="$CFLAGS"
14030 CFLAGS="$CFLAGS -Werror"
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
14032 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
14033 if ${ac_cv_have_ms_hook_prologue+:} false; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
14040 main ()
14044 return 0;
14046 _ACEOF
14047 if ac_fn_c_try_compile "$LINENO"; then :
14048 ac_cv_have_ms_hook_prologue="yes"
14049 else
14050 ac_cv_have_ms_hook_prologue="no"
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14055 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14056 CFLAGS="$saved_CFLAGS"
14057 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14058 then
14060 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14062 else
14063 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14070 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14071 if ${ac_cv_c_fortify_enabled+:} false; then :
14072 $as_echo_n "(cached) " >&6
14073 else
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14076 #include <string.h>
14078 main ()
14080 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14081 #error Fortify enabled
14082 #endif
14084 return 0;
14086 _ACEOF
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088 ac_cv_c_fortify_enabled=no
14089 else
14090 ac_cv_c_fortify_enabled=yes
14092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14095 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14096 if test "$ac_cv_c_fortify_enabled" = yes
14097 then
14098 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14103 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14104 if ${ac_cv_c_extern_prefix+:} false; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109 extern int ac_test;
14111 main ()
14113 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14115 return 0;
14117 _ACEOF
14118 if ac_fn_c_try_link "$LINENO"; then :
14119 ac_cv_c_extern_prefix="yes"
14120 else
14121 ac_cv_c_extern_prefix="no"
14123 rm -f core conftest.err conftest.$ac_objext \
14124 conftest$ac_exeext conftest.$ac_ext
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14127 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14129 case $host_cpu in
14130 *i[3456789]86*)
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14132 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14133 if ${ac_cv_c_stdcall_suffix+:} false; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14138 #ifndef _MSC_VER
14139 #define __stdcall __attribute__((__stdcall__))
14140 #endif
14141 int __stdcall ac_test(int i) { return i; }
14143 main ()
14145 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14147 return 0;
14149 _ACEOF
14150 if ac_fn_c_try_link "$LINENO"; then :
14151 ac_cv_c_stdcall_suffix="yes"
14152 else
14153 ac_cv_c_stdcall_suffix="no"
14155 rm -f core conftest.err conftest.$ac_objext \
14156 conftest$ac_exeext conftest.$ac_ext
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14159 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14160 *) ac_cv_c_stdcall_suffix="no" ;;
14161 esac
14164 if test "$ac_cv_c_extern_prefix" = "yes"
14165 then
14166 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14168 asm_name_prefix="_"
14169 else
14170 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14172 asm_name_prefix=""
14176 if test "$ac_cv_c_stdcall_suffix" = "yes"
14177 then
14178 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14180 else
14181 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14187 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14188 if ${ac_cv_asm_func_def+:} false; then :
14189 $as_echo_n "(cached) " >&6
14190 else
14191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h. */
14195 main ()
14197 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14199 return 0;
14201 _ACEOF
14202 if ac_fn_c_try_link "$LINENO"; then :
14203 ac_cv_asm_func_def=".def"
14204 else
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14209 main ()
14211 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14213 return 0;
14215 _ACEOF
14216 if ac_fn_c_try_link "$LINENO"; then :
14217 ac_cv_asm_func_def=".type @function"
14218 else
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14223 main ()
14225 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14227 return 0;
14229 _ACEOF
14230 if ac_fn_c_try_link "$LINENO"; then :
14231 ac_cv_asm_func_def=".type 2"
14232 else
14233 ac_cv_asm_func_def="unknown"
14235 rm -f core conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
14238 rm -f core conftest.err conftest.$ac_objext \
14239 conftest$ac_exeext conftest.$ac_ext
14241 rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext conftest.$ac_ext
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14245 $as_echo "$ac_cv_asm_func_def" >&6; }
14248 case "$ac_cv_asm_func_def" in
14249 ".def")
14250 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14252 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14253 ".type @function")
14254 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14256 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14257 ".type 2")
14258 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14260 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14262 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14264 asm_func_header="" ;;
14265 esac
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14268 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14269 if ${ac_cv_c_asm_outside_funcs+:} 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\n\t.long 0");
14276 main ()
14280 return 0;
14282 _ACEOF
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284 ac_cv_c_asm_outside_funcs="yes"
14285 else
14286 ac_cv_c_asm_outside_funcs="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_asm_outside_funcs" >&5
14291 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14294 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14295 if ${ac_cv_c_dot_previous+:} false; then :
14296 $as_echo_n "(cached) " >&6
14297 else
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14302 main ()
14304 asm(".text\nac_test:\t.long 0\n\t.previous");
14306 return 0;
14308 _ACEOF
14309 if ac_fn_c_try_link "$LINENO"; then :
14310 ac_cv_c_dot_previous="yes"
14311 else
14312 ac_cv_c_dot_previous="no"
14314 rm -f core conftest.err conftest.$ac_objext \
14315 conftest$ac_exeext conftest.$ac_ext
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14318 $as_echo "$ac_cv_c_dot_previous" >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14321 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14322 if ${ac_cv_c_cfi_support+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14329 main ()
14333 return 0;
14335 _ACEOF
14336 if ac_fn_c_try_compile "$LINENO"; then :
14337 ac_cv_c_cfi_support="yes"
14338 else
14339 ac_cv_c_cfi_support="no"
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14344 $as_echo "$ac_cv_c_cfi_support" >&6; }
14346 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14347 asm_func_trailer=""
14348 if test "$ac_cv_c_dot_previous" = "yes"
14349 then
14350 asm_func_trailer="\\n\\t.previous"
14352 if test "$ac_cv_c_cfi_support" = "yes"
14353 then
14354 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14355 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14357 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14359 UNWINDFLAGS=-fasynchronous-unwind-tables
14361 else
14362 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14366 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14369 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14370 then
14371 cat >>confdefs.h <<_ACEOF
14372 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14373 _ACEOF
14375 else
14376 cat >>confdefs.h <<_ACEOF
14377 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14378 _ACEOF
14382 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14385 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14389 case $build_os in
14390 cygwin*|mingw32*) TOOLSEXT=".exe"
14392 esac
14394 case $host_os in
14395 linux*)
14396 case $host_cpu in
14397 *i[3456789]86*|x86_64*)
14398 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14399 loader_programs="$loader_programs $wine_binary-preloader"
14400 as_fn_append LOADER_RULES "
14401 $wine_binary-preloader: preloader.o
14402 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14404 install install-lib:: $wine_binary-preloader
14405 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14407 uninstall::
14408 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14409 " ;;
14410 esac
14412 esac
14413 as_fn_append LOADER_RULES "
14414 PROGRAMS = $loader_programs
14418 ac_save_CFLAGS="$CFLAGS"
14419 CFLAGS="$CFLAGS $BUILTINFLAG"
14420 for ac_func in \
14421 __res_get_state \
14422 __res_getservers \
14423 _finite \
14424 _isnan \
14425 _pclose \
14426 _popen \
14427 _snprintf \
14428 _spawnvp \
14429 _strdup \
14430 _stricmp \
14431 _strnicmp \
14432 _strtoi64 \
14433 _strtoui64 \
14434 _vsnprintf \
14435 asctime_r \
14436 chsize \
14437 dlopen \
14438 epoll_create \
14439 ffs \
14440 fnmatch \
14441 fork \
14442 fpclass \
14443 fstatfs \
14444 fstatvfs \
14445 ftruncate \
14446 futimens \
14447 futimes \
14448 futimesat \
14449 getattrlist \
14450 getdirentries \
14451 getopt_long_only \
14452 getpwuid \
14453 gettimeofday \
14454 getuid \
14455 if_nameindex \
14456 kqueue \
14457 lstat \
14458 memmove \
14459 mmap \
14460 pclose \
14461 pipe2 \
14462 poll \
14463 popen \
14464 port_create \
14465 prctl \
14466 pread \
14467 proc_pidinfo \
14468 pwrite \
14469 readdir \
14470 readlink \
14471 sched_yield \
14472 select \
14473 setproctitle \
14474 setrlimit \
14475 settimeofday \
14476 sigaltstack \
14477 sigprocmask \
14478 snprintf \
14479 statfs \
14480 statvfs \
14481 strcasecmp \
14482 strdup \
14483 strerror \
14484 strncasecmp \
14485 strtold \
14486 strtoll \
14487 strtoull \
14488 symlink \
14489 tcdrain \
14490 thr_kill2 \
14491 timegm \
14492 usleep \
14493 vsnprintf
14495 do :
14496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14497 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14498 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14499 cat >>confdefs.h <<_ACEOF
14500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14501 _ACEOF
14504 done
14506 CFLAGS="$ac_save_CFLAGS"
14508 if test "$ac_cv_func_dlopen" = no
14509 then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14511 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14512 if ${ac_cv_lib_dl_dlopen+:} false; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 ac_check_lib_save_LIBS=$LIBS
14516 LIBS="-ldl $LIBS"
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14520 /* Override any GCC internal prototype to avoid an error.
14521 Use char because int might match the return type of a GCC
14522 builtin and then its argument prototype would still apply. */
14523 #ifdef __cplusplus
14524 extern "C"
14525 #endif
14526 char dlopen ();
14528 main ()
14530 return dlopen ();
14532 return 0;
14534 _ACEOF
14535 if ac_fn_c_try_link "$LINENO"; then :
14536 ac_cv_lib_dl_dlopen=yes
14537 else
14538 ac_cv_lib_dl_dlopen=no
14540 rm -f core conftest.err conftest.$ac_objext \
14541 conftest$ac_exeext conftest.$ac_ext
14542 LIBS=$ac_check_lib_save_LIBS
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14545 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14546 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14547 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14548 LIBDL="-ldl"
14553 ac_wine_check_funcs_save_LIBS="$LIBS"
14554 LIBS="$LIBS $LIBDL"
14555 for ac_func in dladdr
14556 do :
14557 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14558 if test "x$ac_cv_func_dladdr" = xyes; then :
14559 cat >>confdefs.h <<_ACEOF
14560 #define HAVE_DLADDR 1
14561 _ACEOF
14564 done
14566 LIBS="$ac_wine_check_funcs_save_LIBS"
14568 if test "$ac_cv_func_poll" = no
14569 then
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14571 $as_echo_n "checking for poll in -lpoll... " >&6; }
14572 if ${ac_cv_lib_poll_poll+:} false; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 ac_check_lib_save_LIBS=$LIBS
14576 LIBS="-lpoll $LIBS"
14577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14578 /* end confdefs.h. */
14580 /* Override any GCC internal prototype to avoid an error.
14581 Use char because int might match the return type of a GCC
14582 builtin and then its argument prototype would still apply. */
14583 #ifdef __cplusplus
14584 extern "C"
14585 #endif
14586 char poll ();
14588 main ()
14590 return poll ();
14592 return 0;
14594 _ACEOF
14595 if ac_fn_c_try_link "$LINENO"; then :
14596 ac_cv_lib_poll_poll=yes
14597 else
14598 ac_cv_lib_poll_poll=no
14600 rm -f core conftest.err conftest.$ac_objext \
14601 conftest$ac_exeext conftest.$ac_ext
14602 LIBS=$ac_check_lib_save_LIBS
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14605 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14606 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14607 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14608 LIBPOLL="-lpoll"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14615 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14616 if ${ac_cv_search_gethostbyname+:} false; then :
14617 $as_echo_n "(cached) " >&6
14618 else
14619 ac_func_search_save_LIBS=$LIBS
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14623 /* Override any GCC internal prototype to avoid an error.
14624 Use char because int might match the return type of a GCC
14625 builtin and then its argument prototype would still apply. */
14626 #ifdef __cplusplus
14627 extern "C"
14628 #endif
14629 char gethostbyname ();
14631 main ()
14633 return gethostbyname ();
14635 return 0;
14637 _ACEOF
14638 for ac_lib in '' nsl; do
14639 if test -z "$ac_lib"; then
14640 ac_res="none required"
14641 else
14642 ac_res=-l$ac_lib
14643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14645 if ac_fn_c_try_link "$LINENO"; then :
14646 ac_cv_search_gethostbyname=$ac_res
14648 rm -f core conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext
14650 if ${ac_cv_search_gethostbyname+:} false; then :
14651 break
14653 done
14654 if ${ac_cv_search_gethostbyname+:} false; then :
14656 else
14657 ac_cv_search_gethostbyname=no
14659 rm conftest.$ac_ext
14660 LIBS=$ac_func_search_save_LIBS
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14663 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14664 ac_res=$ac_cv_search_gethostbyname
14665 if test "$ac_res" != no; then :
14666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14672 $as_echo_n "checking for library containing connect... " >&6; }
14673 if ${ac_cv_search_connect+:} false; then :
14674 $as_echo_n "(cached) " >&6
14675 else
14676 ac_func_search_save_LIBS=$LIBS
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14680 /* Override any GCC internal prototype to avoid an error.
14681 Use char because int might match the return type of a GCC
14682 builtin and then its argument prototype would still apply. */
14683 #ifdef __cplusplus
14684 extern "C"
14685 #endif
14686 char connect ();
14688 main ()
14690 return connect ();
14692 return 0;
14694 _ACEOF
14695 for ac_lib in '' socket; do
14696 if test -z "$ac_lib"; then
14697 ac_res="none required"
14698 else
14699 ac_res=-l$ac_lib
14700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14702 if ac_fn_c_try_link "$LINENO"; then :
14703 ac_cv_search_connect=$ac_res
14705 rm -f core conftest.err conftest.$ac_objext \
14706 conftest$ac_exeext
14707 if ${ac_cv_search_connect+:} false; then :
14708 break
14710 done
14711 if ${ac_cv_search_connect+:} false; then :
14713 else
14714 ac_cv_search_connect=no
14716 rm conftest.$ac_ext
14717 LIBS=$ac_func_search_save_LIBS
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14720 $as_echo "$ac_cv_search_connect" >&6; }
14721 ac_res=$ac_cv_search_connect
14722 if test "$ac_res" != no; then :
14723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14729 $as_echo_n "checking for library containing inet_aton... " >&6; }
14730 if ${ac_cv_search_inet_aton+:} false; then :
14731 $as_echo_n "(cached) " >&6
14732 else
14733 ac_func_search_save_LIBS=$LIBS
14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h. */
14737 /* Override any GCC internal prototype to avoid an error.
14738 Use char because int might match the return type of a GCC
14739 builtin and then its argument prototype would still apply. */
14740 #ifdef __cplusplus
14741 extern "C"
14742 #endif
14743 char inet_aton ();
14745 main ()
14747 return inet_aton ();
14749 return 0;
14751 _ACEOF
14752 for ac_lib in '' resolv; do
14753 if test -z "$ac_lib"; then
14754 ac_res="none required"
14755 else
14756 ac_res=-l$ac_lib
14757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14759 if ac_fn_c_try_link "$LINENO"; then :
14760 ac_cv_search_inet_aton=$ac_res
14762 rm -f core conftest.err conftest.$ac_objext \
14763 conftest$ac_exeext
14764 if ${ac_cv_search_inet_aton+:} false; then :
14765 break
14767 done
14768 if ${ac_cv_search_inet_aton+:} false; then :
14770 else
14771 ac_cv_search_inet_aton=no
14773 rm conftest.$ac_ext
14774 LIBS=$ac_func_search_save_LIBS
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14777 $as_echo "$ac_cv_search_inet_aton" >&6; }
14778 ac_res=$ac_cv_search_inet_aton
14779 if test "$ac_res" != no; then :
14780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14785 for ac_func in \
14786 getaddrinfo \
14787 getnameinfo \
14788 getnetbyname \
14789 getprotobyname \
14790 getprotobynumber \
14791 getservbyport \
14792 inet_addr \
14793 inet_network \
14794 inet_ntop \
14795 inet_pton \
14796 sendmsg \
14797 socketpair \
14799 do :
14800 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14801 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14802 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14803 cat >>confdefs.h <<_ACEOF
14804 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14805 _ACEOF
14808 done
14811 ac_save_LIBS=$LIBS
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14813 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14814 if ${ac_cv_search_clock_gettime+:} false; then :
14815 $as_echo_n "(cached) " >&6
14816 else
14817 ac_func_search_save_LIBS=$LIBS
14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14821 /* Override any GCC internal prototype to avoid an error.
14822 Use char because int might match the return type of a GCC
14823 builtin and then its argument prototype would still apply. */
14824 #ifdef __cplusplus
14825 extern "C"
14826 #endif
14827 char clock_gettime ();
14829 main ()
14831 return clock_gettime ();
14833 return 0;
14835 _ACEOF
14836 for ac_lib in '' rt; do
14837 if test -z "$ac_lib"; then
14838 ac_res="none required"
14839 else
14840 ac_res=-l$ac_lib
14841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14843 if ac_fn_c_try_link "$LINENO"; then :
14844 ac_cv_search_clock_gettime=$ac_res
14846 rm -f core conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext
14848 if ${ac_cv_search_clock_gettime+:} false; then :
14849 break
14851 done
14852 if ${ac_cv_search_clock_gettime+:} false; then :
14854 else
14855 ac_cv_search_clock_gettime=no
14857 rm conftest.$ac_ext
14858 LIBS=$ac_func_search_save_LIBS
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14861 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14862 ac_res=$ac_cv_search_clock_gettime
14863 if test "$ac_res" != no; then :
14864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14866 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14868 test "$ac_res" = "none required" || LIBRT="$ac_res"
14872 LIBS=$ac_save_LIBS
14874 LDAPLIBS=""
14876 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
14877 then
14878 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
14880 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
14882 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
14883 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
14884 $as_echo_n "(cached) " >&6
14885 else
14886 ac_check_lib_save_LIBS=$LIBS
14887 LIBS="-lldap_r $LIBPTHREAD $LIBS"
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply. */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 char ldap_initialize ();
14899 main ()
14901 return ldap_initialize ();
14903 return 0;
14905 _ACEOF
14906 if ac_fn_c_try_link "$LINENO"; then :
14907 ac_cv_lib_ldap_r_ldap_initialize=yes
14908 else
14909 ac_cv_lib_ldap_r_ldap_initialize=no
14911 rm -f core conftest.err conftest.$ac_objext \
14912 conftest$ac_exeext conftest.$ac_ext
14913 LIBS=$ac_check_lib_save_LIBS
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
14916 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
14917 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14919 $as_echo_n "checking for ber_init in -llber... " >&6; }
14920 if ${ac_cv_lib_lber_ber_init+:} false; then :
14921 $as_echo_n "(cached) " >&6
14922 else
14923 ac_check_lib_save_LIBS=$LIBS
14924 LIBS="-llber $LIBPTHREAD $LIBS"
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14928 /* Override any GCC internal prototype to avoid an error.
14929 Use char because int might match the return type of a GCC
14930 builtin and then its argument prototype would still apply. */
14931 #ifdef __cplusplus
14932 extern "C"
14933 #endif
14934 char ber_init ();
14936 main ()
14938 return ber_init ();
14940 return 0;
14942 _ACEOF
14943 if ac_fn_c_try_link "$LINENO"; then :
14944 ac_cv_lib_lber_ber_init=yes
14945 else
14946 ac_cv_lib_lber_ber_init=no
14948 rm -f core conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
14950 LIBS=$ac_check_lib_save_LIBS
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14953 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
14954 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
14956 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
14958 LDAPLIBS="-lldap_r -llber"
14965 ac_wine_check_funcs_save_LIBS="$LIBS"
14966 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
14967 for ac_func in \
14968 ldap_count_references \
14969 ldap_first_reference \
14970 ldap_next_reference \
14971 ldap_parse_reference \
14972 ldap_parse_sort_control \
14973 ldap_parse_sortresponse_control \
14974 ldap_parse_vlv_control \
14975 ldap_parse_vlvresponse_control
14976 do :
14977 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14978 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14979 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14980 cat >>confdefs.h <<_ACEOF
14981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14982 _ACEOF
14985 done
14987 LIBS="$ac_wine_check_funcs_save_LIBS"
14989 if test "x$LDAPLIBS" = "x"; then :
14990 case "x$with_ldap" in
14991 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
14992 xno) ;;
14993 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
14994 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
14995 esac
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
14999 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
15000 if ${wine_cv_one_arg_mkdir+:} false; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15005 #include <sys/stat.h>
15007 main ()
15009 mkdir("foo");
15011 return 0;
15013 _ACEOF
15014 if ac_fn_c_try_compile "$LINENO"; then :
15015 wine_cv_one_arg_mkdir=yes
15016 else
15017 wine_cv_one_arg_mkdir=no
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
15022 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
15023 if test "$wine_cv_one_arg_mkdir" = "yes"
15024 then
15026 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
15031 $as_echo_n "checking for sched_setaffinity... " >&6; }
15032 if ${wine_cv_have_sched_setaffinity+:} false; then :
15033 $as_echo_n "(cached) " >&6
15034 else
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037 #define _GNU_SOURCE
15038 #include <sched.h>
15040 main ()
15042 sched_setaffinity(0, 0, 0);
15044 return 0;
15046 _ACEOF
15047 if ac_fn_c_try_link "$LINENO"; then :
15048 wine_cv_have_sched_setaffinity=yes
15049 else
15050 wine_cv_have_sched_setaffinity=no
15052 rm -f core conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext conftest.$ac_ext
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
15056 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15057 if test "$wine_cv_have_sched_setaffinity" = "yes"
15058 then
15060 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15065 $as_echo_n "checking for fallocate... " >&6; }
15066 if ${wine_cv_have_fallocate+:} false; then :
15067 $as_echo_n "(cached) " >&6
15068 else
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15071 #define _GNU_SOURCE
15072 #include <fcntl.h>
15074 main ()
15076 fallocate(-1, 0, 0, 0);
15078 return 0;
15080 _ACEOF
15081 if ac_fn_c_try_link "$LINENO"; then :
15082 wine_cv_have_fallocate=yes
15083 else
15084 wine_cv_have_fallocate=no
15086 rm -f core conftest.err conftest.$ac_objext \
15087 conftest$ac_exeext conftest.$ac_ext
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15090 $as_echo "$wine_cv_have_fallocate" >&6; }
15091 if test "$wine_cv_have_fallocate" = "yes"
15092 then
15094 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15100 $as_echo_n "checking for inline... " >&6; }
15101 if ${ac_cv_c_inline+:} false; then :
15102 $as_echo_n "(cached) " >&6
15103 else
15104 ac_cv_c_inline=no
15105 for ac_kw in inline __inline__ __inline; do
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15108 #ifndef __cplusplus
15109 typedef int foo_t;
15110 static $ac_kw foo_t static_foo () {return 0; }
15111 $ac_kw foo_t foo () {return 0; }
15112 #endif
15114 _ACEOF
15115 if ac_fn_c_try_compile "$LINENO"; then :
15116 ac_cv_c_inline=$ac_kw
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 test "$ac_cv_c_inline" != no && break
15120 done
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15124 $as_echo "$ac_cv_c_inline" >&6; }
15126 case $ac_cv_c_inline in
15127 inline | yes) ;;
15129 case $ac_cv_c_inline in
15130 no) ac_val=;;
15131 *) ac_val=$ac_cv_c_inline;;
15132 esac
15133 cat >>confdefs.h <<_ACEOF
15134 #ifndef __cplusplus
15135 #define inline $ac_val
15136 #endif
15137 _ACEOF
15139 esac
15141 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15142 if test "x$ac_cv_type_mode_t" = xyes; then :
15144 cat >>confdefs.h <<_ACEOF
15145 #define HAVE_MODE_T 1
15146 _ACEOF
15150 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15151 if test "x$ac_cv_type_off_t" = xyes; then :
15153 cat >>confdefs.h <<_ACEOF
15154 #define HAVE_OFF_T 1
15155 _ACEOF
15159 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15160 if test "x$ac_cv_type_pid_t" = xyes; then :
15162 cat >>confdefs.h <<_ACEOF
15163 #define HAVE_PID_T 1
15164 _ACEOF
15168 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15169 if test "x$ac_cv_type_size_t" = xyes; then :
15171 cat >>confdefs.h <<_ACEOF
15172 #define HAVE_SIZE_T 1
15173 _ACEOF
15177 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15178 if test "x$ac_cv_type_ssize_t" = xyes; then :
15180 cat >>confdefs.h <<_ACEOF
15181 #define HAVE_SSIZE_T 1
15182 _ACEOF
15186 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15187 if test "x$ac_cv_type_long_long" = xyes; then :
15189 cat >>confdefs.h <<_ACEOF
15190 #define HAVE_LONG_LONG 1
15191 _ACEOF
15195 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15196 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15198 cat >>confdefs.h <<_ACEOF
15199 #define HAVE_FSBLKCNT_T 1
15200 _ACEOF
15204 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15205 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15207 cat >>confdefs.h <<_ACEOF
15208 #define HAVE_FSFILCNT_T 1
15209 _ACEOF
15214 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15215 #include <signal.h>
15217 if test "x$ac_cv_type_sigset_t" = xyes; then :
15219 cat >>confdefs.h <<_ACEOF
15220 #define HAVE_SIGSET_T 1
15221 _ACEOF
15226 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15228 if test "x$ac_cv_type_request_sense" = xyes; then :
15230 cat >>confdefs.h <<_ACEOF
15231 #define HAVE_REQUEST_SENSE 1
15232 _ACEOF
15238 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15239 #ifdef HAVE_SYS_SOCKET_H
15240 #include <sys/socket.h>
15241 #endif
15242 #ifdef HAVE_SYS_SOCKETVAR_H
15243 #include <sys/socketvar.h>
15244 #endif
15245 #ifdef HAVE_NET_ROUTE_H
15246 #include <net/route.h>
15247 #endif
15248 #ifdef HAVE_NETINET_IN_H
15249 #include <netinet/in.h>
15250 #endif
15251 #ifdef HAVE_NETINET_IN_SYSTM_H
15252 #include <netinet/in_systm.h>
15253 #endif
15254 #ifdef HAVE_NETINET_IP_H
15255 #include <netinet/ip.h>
15256 #endif
15257 #ifdef HAVE_NETINET_IN_PCB_H
15258 #include <netinet/in_pcb.h>
15259 #endif
15261 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15263 cat >>confdefs.h <<_ACEOF
15264 #define HAVE_STRUCT_XINPGEN 1
15265 _ACEOF
15271 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15272 #include <link.h>
15273 #endif
15274 #ifdef HAVE_SYS_LINK_H
15275 #include <sys/link.h>
15276 #endif
15278 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15280 cat >>confdefs.h <<_ACEOF
15281 #define HAVE_STRUCT_R_DEBUG 1
15282 _ACEOF
15286 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15287 #include <link.h>
15288 #endif
15289 #ifdef HAVE_SYS_LINK_H
15290 #include <sys/link.h>
15291 #endif
15293 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15295 cat >>confdefs.h <<_ACEOF
15296 #define HAVE_STRUCT_LINK_MAP 1
15297 _ACEOF
15303 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15304 #include <linux/input.h>
15305 #endif
15307 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15309 cat >>confdefs.h <<_ACEOF
15310 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15311 _ACEOF
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15318 $as_echo_n "checking for sigaddset... " >&6; }
15319 if ${wine_cv_have_sigaddset+:} false; then :
15320 $as_echo_n "(cached) " >&6
15321 else
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h. */
15324 #include <signal.h>
15326 main ()
15328 sigset_t set; sigaddset(&set,SIGTERM);
15330 return 0;
15332 _ACEOF
15333 if ac_fn_c_try_link "$LINENO"; then :
15334 wine_cv_have_sigaddset=yes
15335 else
15336 wine_cv_have_sigaddset=no
15338 rm -f core conftest.err conftest.$ac_objext \
15339 conftest$ac_exeext conftest.$ac_ext
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15342 $as_echo "$wine_cv_have_sigaddset" >&6; }
15343 if test "$wine_cv_have_sigaddset" = "yes"
15344 then
15346 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15352 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15353 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 #include <netdb.h>
15360 main ()
15363 char *name=0;
15364 struct hostent he;
15365 struct hostent *result;
15366 char *buf=0;
15367 int bufsize=0;
15368 int errnr;
15369 char *addr=0;
15370 int addrlen=0;
15371 int addrtype=0;
15372 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15373 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15376 return 0;
15378 _ACEOF
15379 if ac_fn_c_try_link "$LINENO"; then :
15380 wine_cv_linux_gethostbyname_r_6=yes
15381 else
15382 wine_cv_linux_gethostbyname_r_6=no
15385 rm -f core conftest.err conftest.$ac_objext \
15386 conftest$ac_exeext conftest.$ac_ext
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15390 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15391 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15392 then
15394 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15398 if test "$ac_cv_header_linux_joystick_h" = "yes"
15399 then
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15401 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15402 if ${wine_cv_linux_joystick_22_api+:} false; then :
15403 $as_echo_n "(cached) " >&6
15404 else
15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15408 #include <sys/ioctl.h>
15409 #include <sys/types.h>
15410 #include <linux/joystick.h>
15412 struct js_event blub;
15413 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15414 #error "no 2.2 header"
15415 #endif
15418 main ()
15420 /*empty*/
15422 return 0;
15424 _ACEOF
15425 if ac_fn_c_try_compile "$LINENO"; then :
15426 wine_cv_linux_joystick_22_api=yes
15427 else
15428 wine_cv_linux_joystick_22_api=no
15430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15434 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15435 if test "$wine_cv_linux_joystick_22_api" = "yes"
15436 then
15438 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15444 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15445 #ifdef HAVE_SYS_PARAM_H
15446 # include <sys/param.h>
15447 #endif
15448 #ifdef HAVE_SYS_MOUNT_H
15449 # include <sys/mount.h>
15450 #endif
15451 #ifdef HAVE_SYS_VFS_H
15452 # include <sys/vfs.h>
15453 #endif
15454 #ifdef HAVE_SYS_STATFS_H
15455 # include <sys/statfs.h>
15456 #endif
15458 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15460 cat >>confdefs.h <<_ACEOF
15461 #define HAVE_STRUCT_STATFS_F_BFREE 1
15462 _ACEOF
15466 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15467 #ifdef HAVE_SYS_PARAM_H
15468 # include <sys/param.h>
15469 #endif
15470 #ifdef HAVE_SYS_MOUNT_H
15471 # include <sys/mount.h>
15472 #endif
15473 #ifdef HAVE_SYS_VFS_H
15474 # include <sys/vfs.h>
15475 #endif
15476 #ifdef HAVE_SYS_STATFS_H
15477 # include <sys/statfs.h>
15478 #endif
15480 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15482 cat >>confdefs.h <<_ACEOF
15483 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15484 _ACEOF
15488 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15489 #ifdef HAVE_SYS_PARAM_H
15490 # include <sys/param.h>
15491 #endif
15492 #ifdef HAVE_SYS_MOUNT_H
15493 # include <sys/mount.h>
15494 #endif
15495 #ifdef HAVE_SYS_VFS_H
15496 # include <sys/vfs.h>
15497 #endif
15498 #ifdef HAVE_SYS_STATFS_H
15499 # include <sys/statfs.h>
15500 #endif
15502 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15504 cat >>confdefs.h <<_ACEOF
15505 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15506 _ACEOF
15510 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15511 #ifdef HAVE_SYS_PARAM_H
15512 # include <sys/param.h>
15513 #endif
15514 #ifdef HAVE_SYS_MOUNT_H
15515 # include <sys/mount.h>
15516 #endif
15517 #ifdef HAVE_SYS_VFS_H
15518 # include <sys/vfs.h>
15519 #endif
15520 #ifdef HAVE_SYS_STATFS_H
15521 # include <sys/statfs.h>
15522 #endif
15524 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15526 cat >>confdefs.h <<_ACEOF
15527 #define HAVE_STRUCT_STATFS_F_FFREE 1
15528 _ACEOF
15532 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15533 #ifdef HAVE_SYS_PARAM_H
15534 # include <sys/param.h>
15535 #endif
15536 #ifdef HAVE_SYS_MOUNT_H
15537 # include <sys/mount.h>
15538 #endif
15539 #ifdef HAVE_SYS_VFS_H
15540 # include <sys/vfs.h>
15541 #endif
15542 #ifdef HAVE_SYS_STATFS_H
15543 # include <sys/statfs.h>
15544 #endif
15546 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15548 cat >>confdefs.h <<_ACEOF
15549 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15550 _ACEOF
15554 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15555 #ifdef HAVE_SYS_PARAM_H
15556 # include <sys/param.h>
15557 #endif
15558 #ifdef HAVE_SYS_MOUNT_H
15559 # include <sys/mount.h>
15560 #endif
15561 #ifdef HAVE_SYS_VFS_H
15562 # include <sys/vfs.h>
15563 #endif
15564 #ifdef HAVE_SYS_STATFS_H
15565 # include <sys/statfs.h>
15566 #endif
15568 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15570 cat >>confdefs.h <<_ACEOF
15571 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15572 _ACEOF
15578 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15579 #include <sys/statvfs.h>
15580 #endif
15582 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15584 cat >>confdefs.h <<_ACEOF
15585 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15586 _ACEOF
15592 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15593 #include <dirent.h>
15594 #endif
15596 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15598 cat >>confdefs.h <<_ACEOF
15599 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15600 _ACEOF
15606 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15607 #ifdef HAVE_SYS_SOCKET_H
15608 # include <sys/socket.h>
15609 #endif
15610 #ifdef HAVE_SYS_UN_H
15611 # include <sys/un.h>
15612 #endif
15614 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15616 cat >>confdefs.h <<_ACEOF
15617 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15618 _ACEOF
15622 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15623 #ifdef HAVE_SYS_SOCKET_H
15624 # include <sys/socket.h>
15625 #endif
15626 #ifdef HAVE_SYS_UN_H
15627 # include <sys/un.h>
15628 #endif
15630 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15632 cat >>confdefs.h <<_ACEOF
15633 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15634 _ACEOF
15638 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15639 #ifdef HAVE_SYS_SOCKET_H
15640 # include <sys/socket.h>
15641 #endif
15642 #ifdef HAVE_SYS_UN_H
15643 # include <sys/un.h>
15644 #endif
15646 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15648 cat >>confdefs.h <<_ACEOF
15649 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15650 _ACEOF
15656 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15657 #ifdef HAVE_SCSI_SG_H
15658 #include <scsi/sg.h>
15659 #endif
15661 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15663 cat >>confdefs.h <<_ACEOF
15664 #define HAVE_SCSIREQ_T_CMD 1
15665 _ACEOF
15669 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>
15670 #ifdef HAVE_SCSI_SG_H
15671 #include <scsi/sg.h>
15672 #endif
15674 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15676 cat >>confdefs.h <<_ACEOF
15677 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15678 _ACEOF
15684 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15686 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15688 cat >>confdefs.h <<_ACEOF
15689 #define HAVE_SIGINFO_T_SI_FD 1
15690 _ACEOF
15696 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15697 #ifdef HAVE_SYS_MTIO_H
15698 #include <sys/mtio.h>
15699 #endif
15701 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15703 cat >>confdefs.h <<_ACEOF
15704 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15705 _ACEOF
15709 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15710 #ifdef HAVE_SYS_MTIO_H
15711 #include <sys/mtio.h>
15712 #endif
15714 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15716 cat >>confdefs.h <<_ACEOF
15717 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15718 _ACEOF
15722 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15723 #ifdef HAVE_SYS_MTIO_H
15724 #include <sys/mtio.h>
15725 #endif
15727 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
15729 cat >>confdefs.h <<_ACEOF
15730 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
15731 _ACEOF
15737 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
15738 #include <getopt.h>
15739 #endif
15741 if test "x$ac_cv_member_struct_option_name" = xyes; then :
15743 cat >>confdefs.h <<_ACEOF
15744 #define HAVE_STRUCT_OPTION_NAME 1
15745 _ACEOF
15751 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15752 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15754 cat >>confdefs.h <<_ACEOF
15755 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15756 _ACEOF
15760 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15761 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
15763 cat >>confdefs.h <<_ACEOF
15764 #define HAVE_STRUCT_STAT_ST_MTIM 1
15765 _ACEOF
15769 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15770 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
15772 cat >>confdefs.h <<_ACEOF
15773 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
15774 _ACEOF
15778 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
15779 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
15781 cat >>confdefs.h <<_ACEOF
15782 #define HAVE_STRUCT_STAT_ST_CTIM 1
15783 _ACEOF
15787 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
15788 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
15790 cat >>confdefs.h <<_ACEOF
15791 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
15792 _ACEOF
15796 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
15797 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
15799 cat >>confdefs.h <<_ACEOF
15800 #define HAVE_STRUCT_STAT_ST_ATIM 1
15801 _ACEOF
15805 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
15806 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
15808 cat >>confdefs.h <<_ACEOF
15809 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
15810 _ACEOF
15814 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15815 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15817 cat >>confdefs.h <<_ACEOF
15818 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15819 _ACEOF
15823 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
15824 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
15826 cat >>confdefs.h <<_ACEOF
15827 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
15828 _ACEOF
15832 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
15833 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
15835 cat >>confdefs.h <<_ACEOF
15836 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
15837 _ACEOF
15841 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
15842 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
15844 cat >>confdefs.h <<_ACEOF
15845 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
15846 _ACEOF
15850 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
15851 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
15853 cat >>confdefs.h <<_ACEOF
15854 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
15855 _ACEOF
15861 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
15862 #include <sys/types.h>
15863 #endif
15864 #ifdef HAVE_NETINET_IN_H
15865 #include <netinet/in.h>
15866 #endif
15868 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15870 cat >>confdefs.h <<_ACEOF
15871 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15872 _ACEOF
15878 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
15879 #include <resolv.h>
15880 #endif
15882 if test "x$ac_cv_type_struct___res_state" = xyes; then :
15884 cat >>confdefs.h <<_ACEOF
15885 #define HAVE_STRUCT___RES_STATE 1
15886 _ACEOF
15892 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
15893 #include <resolv.h>
15894 #endif
15896 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
15898 cat >>confdefs.h <<_ACEOF
15899 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
15900 _ACEOF
15906 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
15907 #include <sys/types.h>
15908 #endif
15909 #ifdef HAVE_NETINET_IN_H
15910 # include <netinet/in.h>
15911 #endif
15912 #ifdef HAVE_ARPA_NAMESER_H
15913 # include <arpa/nameser.h>
15914 #endif
15916 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
15918 cat >>confdefs.h <<_ACEOF
15919 #define HAVE_NS_MSG__MSG_PTR 1
15920 _ACEOF
15926 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
15927 #include <sys/types.h>
15928 #endif
15929 #ifdef HAVE_NETINET_IP_H
15930 #include <netinet/ip.h>
15931 #endif
15932 #ifdef HAVE_NETINET_IP_ICMP_H
15933 #include <netinet/ip_icmp.h>
15934 #endif
15935 #ifdef HAVE_NETINET_ICMP_VAR_H
15936 #include <netinet/icmp_var.h>
15937 #endif
15939 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
15941 cat >>confdefs.h <<_ACEOF
15942 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
15943 _ACEOF
15949 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
15950 #include <sys/types.h>
15951 #endif
15952 #ifdef HAVE_ALIAS_H
15953 #include <alias.h>
15954 #endif
15955 #ifdef HAVE_SYS_SOCKET_H
15956 #include <sys/socket.h>
15957 #endif
15958 #ifdef HAVE_SYS_SOCKETVAR_H
15959 #include <sys/socketvar.h>
15960 #endif
15961 #ifdef HAVE_SYS_TIMEOUT_H
15962 #include <sys/timeout.h>
15963 #endif
15964 #ifdef HAVE_NETINET_IN_H
15965 #include <netinet/in.h>
15966 #endif
15967 #ifdef HAVE_NETINET_IN_SYSTM_H
15968 #include <netinet/in_systm.h>
15969 #endif
15970 #ifdef HAVE_NETINET_IP_H
15971 #include <netinet/ip.h>
15972 #endif
15973 #ifdef HAVE_NETINET_IP_VAR_H
15974 #include <netinet/ip_var.h>
15975 #endif
15976 #ifdef HAVE_NETINET_IP_ICMP_H
15977 #include <netinet/ip_icmp.h>
15978 #endif
15979 #ifdef HAVE_NETINET_ICMP_VAR_H
15980 #include <netinet/icmp_var.h>
15981 #endif
15983 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
15985 cat >>confdefs.h <<_ACEOF
15986 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
15987 _ACEOF
15993 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
15994 #include <sys/types.h>
15995 #endif
15996 #ifdef HAVE_SYS_SOCKETVAR_H
15997 #include <sys/socketvar.h>
15998 #endif
15999 #ifdef HAVE_NETINET_IN_H
16000 #include <netinet/in.h>
16001 #endif
16002 #ifdef HAVE_NETINET_IP_VAR_H
16003 #include <netinet/ip_var.h>
16004 #endif
16006 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
16008 cat >>confdefs.h <<_ACEOF
16009 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
16010 _ACEOF
16016 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
16017 #include <netinet/ip_var.h>
16018 #endif
16020 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
16022 cat >>confdefs.h <<_ACEOF
16023 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
16024 _ACEOF
16030 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
16031 #include <sys/types.h>
16032 #endif
16033 #ifdef HAVE_SYS_SOCKETVAR_H
16034 #include <sys/socketvar.h>
16035 #endif
16036 #ifdef HAVE_NETINET_IN_H
16037 #include <netinet/in.h>
16038 #endif
16039 #ifdef HAVE_NETINET_TCP_H
16040 #include <netinet/tcp.h>
16041 #endif
16042 #ifdef HAVE_NETINET_TCP_VAR_H
16043 #include <netinet/tcp_var.h>
16044 #endif
16046 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
16048 cat >>confdefs.h <<_ACEOF
16049 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
16050 _ACEOF
16056 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
16057 #include <netinet/tcp_var.h>
16058 #endif
16060 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16062 cat >>confdefs.h <<_ACEOF
16063 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16064 _ACEOF
16070 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16071 #include <sys/types.h>
16072 #endif
16073 #ifdef HAVE_NETINET_IN_H
16074 #include <netinet/in.h>
16075 #endif
16076 #ifdef HAVE_NETINET_IP_VAR_H
16077 #include <netinet/ip_var.h>
16078 #endif
16079 #ifdef HAVE_NETINET_UDP_H
16080 #include <netinet/udp.h>
16081 #endif
16082 #ifdef HAVE_NETINET_UDP_VAR_H
16083 #include <netinet/udp_var.h>
16084 #endif
16086 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16088 cat >>confdefs.h <<_ACEOF
16089 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16090 _ACEOF
16096 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16097 #include <sys/types.h>
16098 #endif
16099 #ifdef HAVE_NET_IF_H
16100 # include <net/if.h>
16101 #endif
16103 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16105 cat >>confdefs.h <<_ACEOF
16106 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16107 _ACEOF
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16114 $as_echo_n "checking for timezone variable... " >&6; }
16115 if ${ac_cv_have_timezone+:} false; then :
16116 $as_echo_n "(cached) " >&6
16117 else
16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h. */
16120 #include <time.h>
16122 main ()
16124 timezone = 1
16126 return 0;
16128 _ACEOF
16129 if ac_fn_c_try_link "$LINENO"; then :
16130 ac_cv_have_timezone="yes"
16131 else
16132 ac_cv_have_timezone="no"
16134 rm -f core conftest.err conftest.$ac_objext \
16135 conftest$ac_exeext conftest.$ac_ext
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16138 $as_echo "$ac_cv_have_timezone" >&6; }
16139 if test "$ac_cv_have_timezone" = "yes"
16140 then
16142 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16146 $as_echo_n "checking for daylight variable... " >&6; }
16147 if ${ac_cv_have_daylight+:} false; then :
16148 $as_echo_n "(cached) " >&6
16149 else
16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151 /* end confdefs.h. */
16152 #include <time.h>
16154 main ()
16156 daylight = 1
16158 return 0;
16160 _ACEOF
16161 if ac_fn_c_try_link "$LINENO"; then :
16162 ac_cv_have_daylight="yes"
16163 else
16164 ac_cv_have_daylight="no"
16166 rm -f core conftest.err conftest.$ac_objext \
16167 conftest$ac_exeext conftest.$ac_ext
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16170 $as_echo "$ac_cv_have_daylight" >&6; }
16171 if test "$ac_cv_have_daylight" = "yes"
16172 then
16174 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16178 ac_save_LIBS="$LIBS"
16179 LIBS="$LIBS -lm"
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16181 $as_echo_n "checking for isfinite... " >&6; }
16182 if ${ac_cv_have_isfinite+:} false; then :
16183 $as_echo_n "(cached) " >&6
16184 else
16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16187 #define _GNU_SOURCE
16188 #include <math.h>
16190 main ()
16192 float f = 0.0; return isfinite(f)
16194 return 0;
16196 _ACEOF
16197 if ac_fn_c_try_link "$LINENO"; then :
16198 ac_cv_have_isfinite="yes"
16199 else
16200 ac_cv_have_isfinite="no"
16202 rm -f core conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16206 $as_echo "$ac_cv_have_isfinite" >&6; }
16207 if test "$ac_cv_have_isfinite" = "yes"
16208 then
16210 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16214 ac_save_LIBS="$LIBS"
16215 LIBS="$LIBS -lm"
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16217 $as_echo_n "checking for isinf... " >&6; }
16218 if ${ac_cv_have_isinf+:} false; then :
16219 $as_echo_n "(cached) " >&6
16220 else
16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h. */
16223 #include <math.h>
16225 main ()
16227 float f = 0.0; return isinf(f)
16229 return 0;
16231 _ACEOF
16232 if ac_fn_c_try_link "$LINENO"; then :
16233 ac_cv_have_isinf="yes"
16234 else
16235 ac_cv_have_isinf="no"
16237 rm -f core conftest.err conftest.$ac_objext \
16238 conftest$ac_exeext conftest.$ac_ext
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16241 $as_echo "$ac_cv_have_isinf" >&6; }
16242 if test "$ac_cv_have_isinf" = "yes"
16243 then
16245 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16250 $as_echo_n "checking for isnan... " >&6; }
16251 if ${ac_cv_have_isnan+:} false; then :
16252 $as_echo_n "(cached) " >&6
16253 else
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16256 #include <math.h>
16258 main ()
16260 float f = 0.0; return isnan(f)
16262 return 0;
16264 _ACEOF
16265 if ac_fn_c_try_link "$LINENO"; then :
16266 ac_cv_have_isnan="yes"
16267 else
16268 ac_cv_have_isnan="no"
16270 rm -f core conftest.err conftest.$ac_objext \
16271 conftest$ac_exeext conftest.$ac_ext
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16274 $as_echo "$ac_cv_have_isnan" >&6; }
16275 if test "$ac_cv_have_isnan" = "yes"
16276 then
16278 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16281 LIBS="$ac_save_LIBS"
16284 case $host_cpu in
16285 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16286 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16287 if ${ac_cv_cpp_def___i386__+:} false; then :
16288 $as_echo_n "(cached) " >&6
16289 else
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 #ifndef __i386__
16294 #endif
16295 _ACEOF
16296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16297 $EGREP "yes" >/dev/null 2>&1; then :
16298 ac_cv_cpp_def___i386__=yes
16299 else
16300 ac_cv_cpp_def___i386__=no
16302 rm -f conftest*
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16306 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16307 if test $ac_cv_cpp_def___i386__ = yes; then :
16308 CFLAGS="$CFLAGS -D__i386__"
16309 LINTFLAGS="$LINTFLAGS -D__i386__"
16310 fi ;;
16311 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16312 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16313 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16314 $as_echo_n "(cached) " >&6
16315 else
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h. */
16318 #ifndef __x86_64__
16320 #endif
16321 _ACEOF
16322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16323 $EGREP "yes" >/dev/null 2>&1; then :
16324 ac_cv_cpp_def___x86_64__=yes
16325 else
16326 ac_cv_cpp_def___x86_64__=no
16328 rm -f conftest*
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16332 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16333 if test $ac_cv_cpp_def___x86_64__ = yes; then :
16334 CFLAGS="$CFLAGS -D__x86_64__"
16335 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16336 fi ;;
16337 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16338 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16339 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16340 $as_echo_n "(cached) " >&6
16341 else
16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h. */
16344 #ifndef __sparc64__
16346 #endif
16347 _ACEOF
16348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16349 $EGREP "yes" >/dev/null 2>&1; then :
16350 ac_cv_cpp_def___sparc64__=yes
16351 else
16352 ac_cv_cpp_def___sparc64__=no
16354 rm -f conftest*
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16358 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16359 if test $ac_cv_cpp_def___sparc64__ = yes; then :
16360 CFLAGS="$CFLAGS -D__sparc64__"
16361 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16362 fi ;;
16363 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16364 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16365 if ${ac_cv_cpp_def___sparc__+:} false; then :
16366 $as_echo_n "(cached) " >&6
16367 else
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16370 #ifndef __sparc__
16372 #endif
16373 _ACEOF
16374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16375 $EGREP "yes" >/dev/null 2>&1; then :
16376 ac_cv_cpp_def___sparc__=yes
16377 else
16378 ac_cv_cpp_def___sparc__=no
16380 rm -f conftest*
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16384 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16385 if test $ac_cv_cpp_def___sparc__ = yes; then :
16386 CFLAGS="$CFLAGS -D__sparc__"
16387 LINTFLAGS="$LINTFLAGS -D__sparc__"
16388 fi ;;
16389 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16390 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16391 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16392 $as_echo_n "(cached) " >&6
16393 else
16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16396 #ifndef __powerpc64__
16398 #endif
16399 _ACEOF
16400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16401 $EGREP "yes" >/dev/null 2>&1; then :
16402 ac_cv_cpp_def___powerpc64__=yes
16403 else
16404 ac_cv_cpp_def___powerpc64__=no
16406 rm -f conftest*
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16410 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16411 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
16412 CFLAGS="$CFLAGS -D__powerpc64__"
16413 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16414 fi ;;
16415 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16416 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16417 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16418 $as_echo_n "(cached) " >&6
16419 else
16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16422 #ifndef __powerpc__
16424 #endif
16425 _ACEOF
16426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16427 $EGREP "yes" >/dev/null 2>&1; then :
16428 ac_cv_cpp_def___powerpc__=yes
16429 else
16430 ac_cv_cpp_def___powerpc__=no
16432 rm -f conftest*
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16436 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16437 if test $ac_cv_cpp_def___powerpc__ = yes; then :
16438 CFLAGS="$CFLAGS -D__powerpc__"
16439 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16440 fi ;;
16441 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16442 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16443 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16444 $as_echo_n "(cached) " >&6
16445 else
16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16448 #ifndef __aarch64__
16450 #endif
16451 _ACEOF
16452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16453 $EGREP "yes" >/dev/null 2>&1; then :
16454 ac_cv_cpp_def___aarch64__=yes
16455 else
16456 ac_cv_cpp_def___aarch64__=no
16458 rm -f conftest*
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16462 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16463 if test $ac_cv_cpp_def___aarch64__ = yes; then :
16464 CFLAGS="$CFLAGS -D__aarch64__"
16465 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16466 fi ;;
16467 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16468 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16469 if ${ac_cv_cpp_def___arm__+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16474 #ifndef __arm__
16476 #endif
16477 _ACEOF
16478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16479 $EGREP "yes" >/dev/null 2>&1; then :
16480 ac_cv_cpp_def___arm__=yes
16481 else
16482 ac_cv_cpp_def___arm__=no
16484 rm -f conftest*
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16488 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16489 if test $ac_cv_cpp_def___arm__ = yes; then :
16490 CFLAGS="$CFLAGS -D__arm__"
16491 LINTFLAGS="$LINTFLAGS -D__arm__"
16492 fi ;;
16493 esac
16495 case $host_vendor in
16496 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16497 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16498 if ${ac_cv_cpp_def___sun__+:} false; then :
16499 $as_echo_n "(cached) " >&6
16500 else
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16503 #ifndef __sun__
16505 #endif
16506 _ACEOF
16507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16508 $EGREP "yes" >/dev/null 2>&1; then :
16509 ac_cv_cpp_def___sun__=yes
16510 else
16511 ac_cv_cpp_def___sun__=no
16513 rm -f conftest*
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16517 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16518 if test $ac_cv_cpp_def___sun__ = yes; then :
16519 CFLAGS="$CFLAGS -D__sun__"
16520 LINTFLAGS="$LINTFLAGS -D__sun__"
16521 fi ;;
16522 esac
16528 ac_config_commands="$ac_config_commands include/stamp-h"
16530 $as_echo_n "creating Makefile rules..." >&6
16533 MAKE_IMPLIB_RULES="DLLFLAGS = $DLLFLAGS
16536 if test -n "$CROSSTARGET"
16537 then
16538 as_fn_append MAKE_IMPLIB_RULES "MAKEDEPFLAGS = -xo -xcross.o
16543 MAKE_DLL_RULES="
16544 DLLFLAGS = $DLLFLAGS
16548 MAKE_PROG_RULES="
16549 DLLFLAGS = $DLLFLAGS
16554 MAKE_TEST_RULES="
16555 DLLFLAGS = $DLLFLAGS
16556 RUNTESTFLAGS = -q -P wine
16559 if test -n "$CROSSTARGET"
16560 then
16561 as_fn_append MAKE_TEST_RULES "
16562 MAKEDEPFLAGS = -xo -xcross.o
16567 wine_fn_append_rule "
16568 # Rules automatically generated by configure
16570 .INIT: Makefile
16571 .MAKEFILEDEPS:
16572 all: Makefile
16573 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status
16574 @./config.status Make.tmp Makefile"
16576 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16577 .gitignore: config.status
16578 @./config.status .gitignore"
16580 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16581 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16583 if test "x$enable_fonts" != xno; then
16584 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16585 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16586 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16587 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16588 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16590 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16591 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16592 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16593 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16594 ac_config_links="$ac_config_links wine:tools/winewrapper"
16595 wine_fn_config_symlink wine
16596 if test "x$enable_win64" != xno; then
16597 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16598 wine_fn_config_symlink wine64
16601 wine_fn_config_makerules Make.rules
16602 MAKE_RULES=Make.rules
16603 ac_config_files="$ac_config_files Make.rules"
16606 wine_fn_config_dll acledit enable_acledit
16607 wine_fn_config_dll aclui enable_aclui implib
16608 wine_fn_config_dll activeds enable_activeds implib
16609 wine_fn_config_dll actxprxy enable_actxprxy clean
16610 wine_fn_config_lib adsiid
16611 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16612 wine_fn_config_test dlls/advapi32/tests advapi32_test
16613 wine_fn_config_dll advpack enable_advpack implib
16614 wine_fn_config_test dlls/advpack/tests advpack_test
16615 wine_fn_config_dll amstream enable_amstream clean
16616 wine_fn_config_test dlls/amstream/tests amstream_test
16617 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16618 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16619 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16620 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16621 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16622 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16623 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16624 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16625 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16626 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16627 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16628 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16629 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16630 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16631 wine_fn_config_dll apphelp enable_apphelp
16632 wine_fn_config_test dlls/apphelp/tests apphelp_test
16633 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16634 wine_fn_config_dll atl enable_atl clean,implib
16635 wine_fn_config_test dlls/atl/tests atl_test
16636 wine_fn_config_dll atl100 enable_atl100 implib
16637 wine_fn_config_test dlls/atl100/tests atl100_test
16638 wine_fn_config_dll atl110 enable_atl110
16639 wine_fn_config_dll atl80 enable_atl80 implib
16640 wine_fn_config_test dlls/atl80/tests atl80_test
16641 wine_fn_config_dll atl90 enable_atl90
16642 wine_fn_config_dll authz enable_authz
16643 wine_fn_config_dll avicap32 enable_avicap32 implib
16644 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
16645 wine_fn_config_test dlls/avifil32/tests avifil32_test
16646 wine_fn_config_dll avifile.dll16 enable_win16
16647 wine_fn_config_dll avrt enable_avrt implib
16648 wine_fn_config_dll bcrypt enable_bcrypt
16649 wine_fn_config_dll browseui enable_browseui clean,po
16650 wine_fn_config_test dlls/browseui/tests browseui_test
16651 wine_fn_config_dll cabinet enable_cabinet implib
16652 wine_fn_config_test dlls/cabinet/tests cabinet_test
16653 wine_fn_config_dll capi2032 enable_capi2032 implib
16654 wine_fn_config_dll cards enable_cards implib
16655 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16656 wine_fn_config_dll clusapi enable_clusapi implib
16657 wine_fn_config_dll comcat enable_comcat
16658 wine_fn_config_test dlls/comcat/tests comcat_test
16659 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16660 wine_fn_config_test dlls/comctl32/tests comctl32_test
16661 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
16662 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16663 wine_fn_config_dll comm.drv16 enable_win16
16664 wine_fn_config_dll commdlg.dll16 enable_win16
16665 wine_fn_config_dll compobj.dll16 enable_win16
16666 wine_fn_config_dll compstui enable_compstui implib
16667 wine_fn_config_dll comsvcs enable_comsvcs implib
16668 wine_fn_config_dll credui enable_credui implib,po
16669 wine_fn_config_test dlls/credui/tests credui_test
16670 wine_fn_config_dll crtdll enable_crtdll implib
16671 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16672 wine_fn_config_test dlls/crypt32/tests crypt32_test
16673 wine_fn_config_dll cryptdlg enable_cryptdlg po
16674 wine_fn_config_dll cryptdll enable_cryptdll implib
16675 wine_fn_config_dll cryptnet enable_cryptnet implib
16676 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16677 wine_fn_config_dll cryptui enable_cryptui implib,po
16678 wine_fn_config_test dlls/cryptui/tests cryptui_test
16679 wine_fn_config_dll ctapi32 enable_ctapi32
16680 wine_fn_config_dll ctl3d.dll16 enable_win16
16681 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16682 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16683 wine_fn_config_dll d3d10 enable_d3d10 implib
16684 wine_fn_config_test dlls/d3d10/tests d3d10_test
16685 wine_fn_config_dll d3d10core enable_d3d10core implib
16686 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16687 wine_fn_config_dll d3d11 enable_d3d11
16688 wine_fn_config_dll d3d8 enable_d3d8 implib
16689 wine_fn_config_test dlls/d3d8/tests d3d8_test
16690 wine_fn_config_dll d3d9 enable_d3d9 implib
16691 wine_fn_config_test dlls/d3d9/tests d3d9_test
16692 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16693 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16694 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16695 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16696 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16697 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16698 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16699 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16700 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16701 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16702 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16703 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16704 wine_fn_config_dll d3dim enable_d3dim implib
16705 wine_fn_config_dll d3drm enable_d3drm implib
16706 wine_fn_config_test dlls/d3drm/tests d3drm_test
16707 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16708 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16709 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16710 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16711 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16712 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16713 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16714 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16715 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16716 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16717 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16718 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
16719 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
16720 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16721 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16722 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16723 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16724 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16725 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16726 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16727 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16728 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16729 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16730 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16731 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16732 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16733 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16734 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16735 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16736 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16737 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16738 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16739 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16740 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16741 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
16742 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16743 wine_fn_config_dll dbgeng enable_dbgeng implib
16744 wine_fn_config_dll dbghelp enable_dbghelp implib
16745 wine_fn_config_dll dciman32 enable_dciman32 implib
16746 wine_fn_config_dll ddeml.dll16 enable_win16
16747 wine_fn_config_dll ddraw enable_ddraw clean,implib
16748 wine_fn_config_test dlls/ddraw/tests ddraw_test
16749 wine_fn_config_dll ddrawex enable_ddrawex clean
16750 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16751 wine_fn_config_dll devenum enable_devenum clean,po
16752 wine_fn_config_test dlls/devenum/tests devenum_test
16753 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16754 wine_fn_config_dll difxapi enable_difxapi
16755 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
16756 wine_fn_config_test dlls/dinput/tests dinput_test
16757 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
16758 wine_fn_config_test dlls/dinput8/tests dinput8_test
16759 wine_fn_config_dll dispdib.dll16 enable_win16
16760 wine_fn_config_dll dispex enable_dispex clean
16761 wine_fn_config_test dlls/dispex/tests dispex_test
16762 wine_fn_config_dll display.drv16 enable_win16
16763 wine_fn_config_dll dmband enable_dmband clean
16764 wine_fn_config_test dlls/dmband/tests dmband_test
16765 wine_fn_config_dll dmcompos enable_dmcompos clean
16766 wine_fn_config_dll dmime enable_dmime clean
16767 wine_fn_config_test dlls/dmime/tests dmime_test
16768 wine_fn_config_dll dmloader enable_dmloader clean
16769 wine_fn_config_test dlls/dmloader/tests dmloader_test
16770 wine_fn_config_dll dmscript enable_dmscript clean
16771 wine_fn_config_dll dmstyle enable_dmstyle clean
16772 wine_fn_config_dll dmsynth enable_dmsynth clean
16773 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16774 wine_fn_config_dll dmusic enable_dmusic clean
16775 wine_fn_config_test dlls/dmusic/tests dmusic_test
16776 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16777 wine_fn_config_dll dnsapi enable_dnsapi implib
16778 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16779 wine_fn_config_dll dplay enable_dplay implib
16780 wine_fn_config_dll dplayx enable_dplayx clean,implib
16781 wine_fn_config_test dlls/dplayx/tests dplayx_test
16782 wine_fn_config_dll dpnaddr enable_dpnaddr
16783 wine_fn_config_dll dpnet enable_dpnet clean,implib
16784 wine_fn_config_test dlls/dpnet/tests dpnet_test
16785 wine_fn_config_dll dpnhpast enable_dpnhpast
16786 wine_fn_config_dll dpnlobby enable_dpnlobby
16787 wine_fn_config_dll dpwsockx enable_dpwsockx
16788 wine_fn_config_dll drmclien enable_drmclien
16789 wine_fn_config_dll dsound enable_dsound clean,implib
16790 wine_fn_config_test dlls/dsound/tests dsound_test
16791 wine_fn_config_dll dssenh enable_dssenh
16792 wine_fn_config_test dlls/dssenh/tests dssenh_test
16793 wine_fn_config_dll dswave enable_dswave clean
16794 wine_fn_config_dll dwmapi enable_dwmapi implib
16795 wine_fn_config_dll dwrite enable_dwrite implib
16796 wine_fn_config_test dlls/dwrite/tests dwrite_test
16797 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
16798 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16799 wine_fn_config_lib dxerr8
16800 wine_fn_config_lib dxerr9
16801 wine_fn_config_dll dxgi enable_dxgi implib
16802 wine_fn_config_test dlls/dxgi/tests dxgi_test
16803 wine_fn_config_lib dxguid
16804 wine_fn_config_dll explorerframe enable_explorerframe clean
16805 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16806 wine_fn_config_dll faultrep enable_faultrep implib
16807 wine_fn_config_test dlls/faultrep/tests faultrep_test
16808 wine_fn_config_dll fltlib enable_fltlib
16809 wine_fn_config_dll fusion enable_fusion
16810 wine_fn_config_test dlls/fusion/tests fusion_test
16811 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16812 wine_fn_config_dll gameux enable_gameux clean
16813 wine_fn_config_test dlls/gameux/tests gameux_test
16814 wine_fn_config_dll gdi.exe16 enable_win16
16815 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
16816 wine_fn_config_test dlls/gdi32/tests gdi32_test
16817 wine_fn_config_dll gdiplus enable_gdiplus implib
16818 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16819 wine_fn_config_dll glu32 enable_glu32 implib
16820 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16821 wine_fn_config_dll gpkcsp enable_gpkcsp
16822 wine_fn_config_dll hal enable_hal
16823 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
16824 wine_fn_config_dll hid enable_hid implib
16825 wine_fn_config_dll hlink enable_hlink clean,implib
16826 wine_fn_config_test dlls/hlink/tests hlink_test
16827 wine_fn_config_dll hnetcfg enable_hnetcfg clean
16828 wine_fn_config_dll httpapi enable_httpapi
16829 wine_fn_config_dll iccvid enable_iccvid po
16830 wine_fn_config_dll icmp enable_icmp
16831 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
16832 wine_fn_config_test dlls/ieframe/tests ieframe_test
16833 wine_fn_config_dll ifsmgr.vxd enable_win16
16834 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16835 wine_fn_config_dll imagehlp enable_imagehlp implib
16836 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16837 wine_fn_config_dll imm.dll16 enable_win16
16838 wine_fn_config_dll imm32 enable_imm32 implib
16839 wine_fn_config_test dlls/imm32/tests imm32_test
16840 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
16841 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16842 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16843 wine_fn_config_dll inetmib1 enable_inetmib1
16844 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16845 wine_fn_config_dll infosoft enable_infosoft clean
16846 wine_fn_config_test dlls/infosoft/tests infosoft_test
16847 wine_fn_config_dll initpki enable_initpki
16848 wine_fn_config_dll inkobj enable_inkobj
16849 wine_fn_config_dll inseng enable_inseng clean
16850 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16851 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16852 wine_fn_config_dll itircl enable_itircl
16853 wine_fn_config_dll itss enable_itss clean
16854 wine_fn_config_test dlls/itss/tests itss_test
16855 wine_fn_config_dll joy.cpl enable_joy_cpl po
16856 wine_fn_config_dll jscript enable_jscript clean,po
16857 wine_fn_config_test dlls/jscript/tests jscript_test
16858 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
16859 wine_fn_config_test dlls/kernel32/tests kernel32_test
16860 wine_fn_config_dll keyboard.drv16 enable_win16
16861 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16862 wine_fn_config_dll ktmw32 enable_ktmw32
16863 wine_fn_config_dll loadperf enable_loadperf implib
16864 wine_fn_config_dll localspl enable_localspl po
16865 wine_fn_config_test dlls/localspl/tests localspl_test
16866 wine_fn_config_dll localui enable_localui po
16867 wine_fn_config_test dlls/localui/tests localui_test
16868 wine_fn_config_dll lz32 enable_lz32 implib
16869 wine_fn_config_test dlls/lz32/tests lz32_test
16870 wine_fn_config_dll lzexpand.dll16 enable_win16
16871 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16872 wine_fn_config_test dlls/mapi32/tests mapi32_test
16873 wine_fn_config_dll mapistub enable_mapistub
16874 wine_fn_config_dll mciavi32 enable_mciavi32
16875 wine_fn_config_dll mcicda enable_mcicda
16876 wine_fn_config_dll mciqtz32 enable_mciqtz32
16877 wine_fn_config_dll mciseq enable_mciseq
16878 wine_fn_config_dll mciwave enable_mciwave
16879 wine_fn_config_dll mgmtapi enable_mgmtapi
16880 wine_fn_config_dll midimap enable_midimap
16881 wine_fn_config_dll mlang enable_mlang clean,implib
16882 wine_fn_config_test dlls/mlang/tests mlang_test
16883 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
16884 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16885 wine_fn_config_dll mmdevapi enable_mmdevapi clean
16886 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16887 wine_fn_config_dll mmdevldr.vxd enable_win16
16888 wine_fn_config_dll mmsystem.dll16 enable_win16
16889 wine_fn_config_dll monodebg.vxd enable_win16
16890 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16891 wine_fn_config_dll mouse.drv16 enable_win16
16892 wine_fn_config_dll mpr enable_mpr implib,po
16893 wine_fn_config_test dlls/mpr/tests mpr_test
16894 wine_fn_config_dll mprapi enable_mprapi implib
16895 wine_fn_config_dll msacm.dll16 enable_win16
16896 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16897 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16898 wine_fn_config_test dlls/msacm32/tests msacm32_test
16899 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16900 wine_fn_config_dll mscat32 enable_mscat32
16901 wine_fn_config_dll mscms enable_mscms implib
16902 wine_fn_config_test dlls/mscms/tests mscms_test
16903 wine_fn_config_dll mscoree enable_mscoree clean
16904 wine_fn_config_test dlls/mscoree/tests mscoree_test
16905 wine_fn_config_dll msctf enable_msctf clean
16906 wine_fn_config_test dlls/msctf/tests msctf_test
16907 wine_fn_config_dll msdaps enable_msdaps clean
16908 wine_fn_config_dll msdmo enable_msdmo implib
16909 wine_fn_config_dll msftedit enable_msftedit
16910 wine_fn_config_dll msg711.acm enable_msg711_acm
16911 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16912 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
16913 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
16914 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
16915 wine_fn_config_dll msi enable_msi clean,implib,po
16916 wine_fn_config_test dlls/msi/tests msi_test
16917 wine_fn_config_dll msident enable_msident clean
16918 wine_fn_config_dll msimg32 enable_msimg32 implib
16919 wine_fn_config_dll msimsg enable_msimsg
16920 wine_fn_config_dll msimtf enable_msimtf clean
16921 wine_fn_config_dll msisip enable_msisip
16922 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16923 wine_fn_config_dll msls31 enable_msls31
16924 wine_fn_config_dll msnet32 enable_msnet32
16925 wine_fn_config_dll mspatcha enable_mspatcha
16926 wine_fn_config_dll msrle32 enable_msrle32 po
16927 wine_fn_config_test dlls/msrle32/tests msrle32_test
16928 wine_fn_config_dll mssign32 enable_mssign32
16929 wine_fn_config_dll mssip32 enable_mssip32
16930 wine_fn_config_dll mstask enable_mstask clean
16931 wine_fn_config_test dlls/mstask/tests mstask_test
16932 wine_fn_config_dll msvcirt enable_msvcirt
16933 wine_fn_config_dll msvcm80 enable_msvcm80
16934 wine_fn_config_dll msvcm90 enable_msvcm90
16935 wine_fn_config_dll msvcp100 enable_msvcp100
16936 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16937 wine_fn_config_dll msvcp110 enable_msvcp110
16938 wine_fn_config_dll msvcp60 enable_msvcp60
16939 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16940 wine_fn_config_dll msvcp70 enable_msvcp70
16941 wine_fn_config_dll msvcp71 enable_msvcp71
16942 wine_fn_config_dll msvcp80 enable_msvcp80
16943 wine_fn_config_dll msvcp90 enable_msvcp90
16944 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16945 wine_fn_config_dll msvcr100 enable_msvcr100 implib
16946 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16947 wine_fn_config_dll msvcr110 enable_msvcr110 implib
16948 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16949 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16950 wine_fn_config_dll msvcr80 enable_msvcr80 implib
16951 wine_fn_config_dll msvcr90 enable_msvcr90 implib
16952 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16953 wine_fn_config_dll msvcrt enable_msvcrt implib
16954 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16955 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16956 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16957 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16958 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16959 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16960 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16961 wine_fn_config_dll msvidc32 enable_msvidc32 po
16962 wine_fn_config_dll msvideo.dll16 enable_win16
16963 wine_fn_config_dll mswsock enable_mswsock implib
16964 wine_fn_config_dll msxml enable_msxml clean
16965 wine_fn_config_dll msxml2 enable_msxml2 clean
16966 wine_fn_config_dll msxml3 enable_msxml3 clean
16967 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
16968 wine_fn_config_dll msxml4 enable_msxml4 clean
16969 wine_fn_config_dll msxml6 enable_msxml6 clean
16970 wine_fn_config_dll nddeapi enable_nddeapi implib
16971 wine_fn_config_dll netapi32 enable_netapi32 implib
16972 wine_fn_config_test dlls/netapi32/tests netapi32_test
16973 wine_fn_config_dll netcfgx enable_netcfgx
16974 wine_fn_config_dll newdev enable_newdev implib
16975 wine_fn_config_dll normaliz enable_normaliz implib
16976 wine_fn_config_dll npmshtml enable_npmshtml
16977 wine_fn_config_dll ntdll enable_ntdll implib
16978 wine_fn_config_test dlls/ntdll/tests ntdll_test
16979 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16980 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16981 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16982 wine_fn_config_dll ntprint enable_ntprint
16983 wine_fn_config_test dlls/ntprint/tests ntprint_test
16984 wine_fn_config_dll objsel enable_objsel clean
16985 wine_fn_config_dll odbc32 enable_odbc32 implib
16986 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16987 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16988 wine_fn_config_dll odbccu32 enable_odbccu32
16989 wine_fn_config_dll ole2.dll16 enable_win16
16990 wine_fn_config_dll ole2conv.dll16 enable_win16
16991 wine_fn_config_dll ole2disp.dll16 enable_win16
16992 wine_fn_config_dll ole2nls.dll16 enable_win16
16993 wine_fn_config_dll ole2prox.dll16 enable_win16
16994 wine_fn_config_dll ole2thk.dll16 enable_win16
16995 wine_fn_config_dll ole32 enable_ole32 clean,implib
16996 wine_fn_config_test dlls/ole32/tests ole32_test
16997 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
16998 wine_fn_config_test dlls/oleacc/tests oleacc_test
16999 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
17000 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
17001 wine_fn_config_dll olecli.dll16 enable_win16
17002 wine_fn_config_dll olecli32 enable_olecli32 implib
17003 wine_fn_config_dll oledb32 enable_oledb32 clean
17004 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
17005 wine_fn_config_dll oledlg enable_oledlg implib,po
17006 wine_fn_config_dll olepro32 enable_olepro32 implib
17007 wine_fn_config_dll olesvr.dll16 enable_win16
17008 wine_fn_config_dll olesvr32 enable_olesvr32 implib
17009 wine_fn_config_dll olethk32 enable_olethk32
17010 wine_fn_config_dll openal32 enable_openal32
17011 wine_fn_config_dll opencl enable_opencl
17012 wine_fn_config_dll opengl32 enable_opengl32 implib
17013 wine_fn_config_test dlls/opengl32/tests opengl32_test
17014 wine_fn_config_dll pdh enable_pdh implib
17015 wine_fn_config_test dlls/pdh/tests pdh_test
17016 wine_fn_config_dll photometadatahandler enable_photometadatahandler
17017 wine_fn_config_dll pidgen enable_pidgen
17018 wine_fn_config_dll powrprof enable_powrprof implib
17019 wine_fn_config_dll printui enable_printui
17020 wine_fn_config_dll propsys enable_propsys clean,implib
17021 wine_fn_config_test dlls/propsys/tests propsys_test
17022 wine_fn_config_dll psapi enable_psapi implib
17023 wine_fn_config_test dlls/psapi/tests psapi_test
17024 wine_fn_config_dll pstorec enable_pstorec clean
17025 wine_fn_config_dll qcap enable_qcap
17026 wine_fn_config_test dlls/qcap/tests qcap_test
17027 wine_fn_config_dll qedit enable_qedit clean
17028 wine_fn_config_test dlls/qedit/tests qedit_test
17029 wine_fn_config_dll qmgr enable_qmgr clean
17030 wine_fn_config_test dlls/qmgr/tests qmgr_test
17031 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
17032 wine_fn_config_dll quartz enable_quartz clean,implib
17033 wine_fn_config_test dlls/quartz/tests quartz_test clean
17034 wine_fn_config_dll query enable_query
17035 wine_fn_config_dll rasapi16.dll16 enable_win16
17036 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17037 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17038 wine_fn_config_dll rasdlg enable_rasdlg implib
17039 wine_fn_config_dll regapi enable_regapi
17040 wine_fn_config_dll resutils enable_resutils implib
17041 wine_fn_config_dll riched20 enable_riched20 implib
17042 wine_fn_config_test dlls/riched20/tests riched20_test
17043 wine_fn_config_dll riched32 enable_riched32
17044 wine_fn_config_test dlls/riched32/tests riched32_test
17045 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17046 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17047 wine_fn_config_dll rsabase enable_rsabase
17048 wine_fn_config_dll rsaenh enable_rsaenh implib
17049 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17050 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17051 wine_fn_config_dll rtutils enable_rtutils implib
17052 wine_fn_config_dll samlib enable_samlib
17053 wine_fn_config_dll sane.ds enable_sane_ds po
17054 wine_fn_config_dll scarddlg enable_scarddlg
17055 wine_fn_config_dll sccbase enable_sccbase
17056 wine_fn_config_dll schannel enable_schannel
17057 wine_fn_config_test dlls/schannel/tests schannel_test
17058 wine_fn_config_dll scrrun enable_scrrun clean
17059 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17060 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17061 wine_fn_config_dll secur32 enable_secur32 implib
17062 wine_fn_config_test dlls/secur32/tests secur32_test
17063 wine_fn_config_dll security enable_security
17064 wine_fn_config_dll sensapi enable_sensapi implib
17065 wine_fn_config_dll serialui enable_serialui implib,po
17066 wine_fn_config_test dlls/serialui/tests serialui_test
17067 wine_fn_config_dll setupapi enable_setupapi implib,po
17068 wine_fn_config_test dlls/setupapi/tests setupapi_test
17069 wine_fn_config_dll setupx.dll16 enable_win16
17070 wine_fn_config_dll sfc enable_sfc implib
17071 wine_fn_config_dll sfc_os enable_sfc_os implib
17072 wine_fn_config_dll shdoclc enable_shdoclc po
17073 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17074 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17075 wine_fn_config_dll shell.dll16 enable_win16
17076 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17077 wine_fn_config_test dlls/shell32/tests shell32_test
17078 wine_fn_config_dll shfolder enable_shfolder implib
17079 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17080 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17081 wine_fn_config_dll slbcsp enable_slbcsp
17082 wine_fn_config_dll slc enable_slc implib
17083 wine_fn_config_dll snmpapi enable_snmpapi implib
17084 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17085 wine_fn_config_dll softpub enable_softpub
17086 wine_fn_config_dll sound.drv16 enable_win16
17087 wine_fn_config_dll spoolss enable_spoolss implib
17088 wine_fn_config_test dlls/spoolss/tests spoolss_test
17089 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17090 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17091 wine_fn_config_dll sti enable_sti clean,implib
17092 wine_fn_config_test dlls/sti/tests sti_test
17093 wine_fn_config_dll storage.dll16 enable_win16
17094 wine_fn_config_dll stress.dll16 enable_win16
17095 wine_fn_config_lib strmbase
17096 wine_fn_config_lib strmiids
17097 wine_fn_config_dll svrapi enable_svrapi
17098 wine_fn_config_dll sxs enable_sxs implib
17099 wine_fn_config_test dlls/sxs/tests sxs_test
17100 wine_fn_config_dll system.drv16 enable_win16
17101 wine_fn_config_dll t2embed enable_t2embed
17102 wine_fn_config_dll tapi32 enable_tapi32 implib
17103 wine_fn_config_dll taskschd enable_taskschd clean
17104 wine_fn_config_dll toolhelp.dll16 enable_win16
17105 wine_fn_config_dll traffic enable_traffic
17106 wine_fn_config_dll twain.dll16 enable_win16
17107 wine_fn_config_dll twain_32 enable_twain_32
17108 wine_fn_config_test dlls/twain_32/tests twain_32_test
17109 wine_fn_config_dll typelib.dll16 enable_win16
17110 wine_fn_config_dll unicows enable_unicows implib
17111 wine_fn_config_dll updspapi enable_updspapi
17112 wine_fn_config_dll url enable_url implib
17113 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17114 wine_fn_config_test dlls/urlmon/tests urlmon_test
17115 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17116 wine_fn_config_dll user.exe16 enable_win16
17117 wine_fn_config_dll user32 enable_user32 clean,implib,po
17118 wine_fn_config_test dlls/user32/tests user32_test
17119 wine_fn_config_dll userenv enable_userenv implib
17120 wine_fn_config_test dlls/userenv/tests userenv_test
17121 wine_fn_config_dll usp10 enable_usp10 implib
17122 wine_fn_config_test dlls/usp10/tests usp10_test
17123 wine_fn_config_lib uuid
17124 wine_fn_config_dll uxtheme enable_uxtheme implib
17125 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17126 wine_fn_config_dll vbscript enable_vbscript clean
17127 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17128 wine_fn_config_dll vcomp enable_vcomp
17129 wine_fn_config_dll vcomp100 enable_vcomp100
17130 wine_fn_config_dll vcomp90 enable_vcomp90
17131 wine_fn_config_dll vdhcp.vxd enable_win16
17132 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17133 wine_fn_config_dll ver.dll16 enable_win16
17134 wine_fn_config_dll version enable_version implib
17135 wine_fn_config_test dlls/version/tests version_test
17136 wine_fn_config_dll vmm.vxd enable_win16
17137 wine_fn_config_dll vnbt.vxd enable_win16
17138 wine_fn_config_dll vnetbios.vxd enable_win16
17139 wine_fn_config_dll vtdapi.vxd enable_win16
17140 wine_fn_config_dll vwin32.vxd enable_win16
17141 wine_fn_config_dll w32skrnl enable_win16
17142 wine_fn_config_dll w32sys.dll16 enable_win16
17143 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17144 wine_fn_config_dll wbemprox enable_wbemprox clean
17145 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17146 wine_fn_config_dll webservices enable_webservices implib
17147 wine_fn_config_dll wer enable_wer implib
17148 wine_fn_config_test dlls/wer/tests wer_test
17149 wine_fn_config_dll wevtapi enable_wevtapi
17150 wine_fn_config_dll wiaservc enable_wiaservc clean
17151 wine_fn_config_dll win32s16.dll16 enable_win16
17152 wine_fn_config_dll win87em.dll16 enable_win16
17153 wine_fn_config_dll winaspi.dll16 enable_win16
17154 wine_fn_config_dll windebug.dll16 enable_win16
17155 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17156 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17157 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17158 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17159 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17160 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17161 wine_fn_config_lib winecrt0
17162 wine_fn_config_dll wined3d enable_wined3d implib
17163 wine_fn_config_dll winegstreamer enable_winegstreamer
17164 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17165 wine_fn_config_dll winemac.drv enable_winemac_drv
17166 wine_fn_config_dll winemapi enable_winemapi
17167 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17168 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17169 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17170 wine_fn_config_dll wineps16.drv16 enable_win16
17171 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17172 wine_fn_config_dll winex11.drv enable_winex11_drv
17173 wine_fn_config_dll wing.dll16 enable_win16
17174 wine_fn_config_dll wing32 enable_wing32
17175 wine_fn_config_dll winhttp enable_winhttp clean,implib
17176 wine_fn_config_test dlls/winhttp/tests winhttp_test
17177 wine_fn_config_dll wininet enable_wininet implib,po
17178 wine_fn_config_test dlls/wininet/tests wininet_test
17179 wine_fn_config_dll winmm enable_winmm implib,po
17180 wine_fn_config_test dlls/winmm/tests winmm_test
17181 wine_fn_config_dll winnls.dll16 enable_win16
17182 wine_fn_config_dll winnls32 enable_winnls32 implib
17183 wine_fn_config_dll winscard enable_winscard implib
17184 wine_fn_config_dll winsock.dll16 enable_win16
17185 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17186 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17187 wine_fn_config_dll winsta enable_winsta
17188 wine_fn_config_dll wintab.dll16 enable_win16
17189 wine_fn_config_dll wintab32 enable_wintab32 implib
17190 wine_fn_config_test dlls/wintab32/tests wintab32_test
17191 wine_fn_config_dll wintrust enable_wintrust implib
17192 wine_fn_config_test dlls/wintrust/tests wintrust_test
17193 wine_fn_config_dll wlanapi enable_wlanapi
17194 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17195 wine_fn_config_test dlls/wldap32/tests wldap32_test
17196 wine_fn_config_dll wmi enable_wmi
17197 wine_fn_config_dll wmiutils enable_wmiutils clean
17198 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17199 wine_fn_config_dll wmvcore enable_wmvcore
17200 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17201 wine_fn_config_dll wow32 enable_win16 implib
17202 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17203 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17204 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17205 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17206 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17207 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17208 wine_fn_config_dll wsock32 enable_wsock32 implib
17209 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17210 wine_fn_config_dll wuapi enable_wuapi clean
17211 wine_fn_config_dll wuaueng enable_wuaueng
17212 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17213 wine_fn_config_dll xinput1_1 enable_xinput1_1
17214 wine_fn_config_dll xinput1_2 enable_xinput1_2
17215 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17216 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17217 wine_fn_config_dll xinput1_4 enable_xinput1_4
17218 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17219 wine_fn_config_dll xmllite enable_xmllite
17220 wine_fn_config_test dlls/xmllite/tests xmllite_test
17221 wine_fn_config_dll xolehlp enable_xolehlp
17222 wine_fn_config_dll xpsprint enable_xpsprint
17223 wine_fn_config_dll xpssvcs enable_xpssvcs
17224 wine_fn_config_makefile documentation enable_documentation clean
17225 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17226 wine_fn_config_makefile include enable_include clean,install-dev
17227 wine_fn_config_makefile libs/port enable_libs_port
17228 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17229 wine_fn_config_makefile libs/wpp enable_libs_wpp
17230 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17231 wine_fn_config_program arp enable_arp install
17232 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17233 wine_fn_config_program attrib enable_attrib install,po
17234 wine_fn_config_program cabarc enable_cabarc install
17235 wine_fn_config_program cacls enable_cacls install
17236 wine_fn_config_program clock enable_clock install,po
17237 wine_fn_config_program cmd enable_cmd install,po
17238 wine_fn_config_test programs/cmd/tests cmd.exe_test
17239 wine_fn_config_program conhost enable_conhost install
17240 wine_fn_config_program control enable_control install
17241 wine_fn_config_program cscript enable_cscript install
17242 wine_fn_config_program dxdiag enable_dxdiag install,po
17243 wine_fn_config_program eject enable_eject install
17244 wine_fn_config_program expand enable_expand install
17245 wine_fn_config_program explorer enable_explorer install,po
17246 wine_fn_config_program extrac32 enable_extrac32 install
17247 wine_fn_config_program findstr enable_findstr install
17248 wine_fn_config_program hh enable_hh install
17249 wine_fn_config_program hostname enable_hostname install,po
17250 wine_fn_config_program icinfo enable_icinfo install
17251 wine_fn_config_program iexplore enable_iexplore install
17252 wine_fn_config_program ipconfig enable_ipconfig install,po
17253 wine_fn_config_program lodctr enable_lodctr install
17254 wine_fn_config_program mofcomp enable_mofcomp install
17255 wine_fn_config_program mshta enable_mshta install
17256 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17257 wine_fn_config_program net enable_net install,po
17258 wine_fn_config_program netsh enable_netsh install
17259 wine_fn_config_program netstat enable_netstat install,po
17260 wine_fn_config_program ngen enable_ngen install
17261 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17262 wine_fn_config_program oleview enable_oleview install,po
17263 wine_fn_config_program ping enable_ping install
17264 wine_fn_config_program plugplay enable_plugplay install
17265 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17266 wine_fn_config_program progman enable_progman install,po
17267 wine_fn_config_program reg enable_reg install,po
17268 wine_fn_config_program regasm enable_regasm install
17269 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17270 wine_fn_config_test programs/regedit/tests regedit.exe_test
17271 wine_fn_config_program regsvcs enable_regsvcs install
17272 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
17273 wine_fn_config_program rpcss enable_rpcss clean,install
17274 wine_fn_config_program rundll.exe16 enable_win16 install
17275 wine_fn_config_program rundll32 enable_rundll32 install
17276 wine_fn_config_program sc enable_sc install
17277 wine_fn_config_program schtasks enable_schtasks install
17278 wine_fn_config_program secedit enable_secedit install
17279 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17280 wine_fn_config_program services enable_services clean,install
17281 wine_fn_config_test programs/services/tests services.exe_test
17282 wine_fn_config_program spoolsv enable_spoolsv install
17283 wine_fn_config_program start enable_start install,po
17284 wine_fn_config_program svchost enable_svchost install
17285 wine_fn_config_program taskkill enable_taskkill install,po
17286 wine_fn_config_program tasklist enable_tasklist install
17287 wine_fn_config_program taskmgr enable_taskmgr install,po
17288 wine_fn_config_program termsv enable_termsv install
17289 wine_fn_config_program uninstaller enable_uninstaller install,po
17290 wine_fn_config_program unlodctr enable_unlodctr install
17291 wine_fn_config_program view enable_view install,po
17292 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17293 wine_fn_config_program winebrowser enable_winebrowser install
17294 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17295 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17296 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17297 wine_fn_config_program winedevice enable_winedevice install
17298 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17299 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17300 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17301 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17302 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17303 wine_fn_config_program winetest enable_winetest clean
17304 wine_fn_config_program winevdm enable_win16 install
17305 wine_fn_config_program winhelp.exe16 enable_win16 install
17306 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17307 wine_fn_config_program winoldap.mod16 enable_win16 install
17308 wine_fn_config_program winver enable_winver install
17309 wine_fn_config_program wmic enable_wmic install,po
17310 wine_fn_config_program wordpad enable_wordpad install,po
17311 wine_fn_config_program write enable_write install,po
17312 wine_fn_config_program wscript enable_wscript clean,install
17313 wine_fn_config_test programs/wscript/tests wscript.exe_test
17314 wine_fn_config_program wusa enable_wusa install
17315 wine_fn_config_program xcopy enable_xcopy install,po
17316 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17317 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17318 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17319 wine_fn_config_tool tools/widl clean,install-dev,manpage
17320 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17321 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17322 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17323 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17324 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17326 LINGUAS="\
17327 ar \
17328 bg \
17329 ca \
17330 cs \
17331 da \
17332 de \
17333 el \
17334 en \
17335 en_US \
17336 eo \
17337 es \
17338 fa \
17339 fi \
17340 fr \
17341 he \
17342 hi \
17343 hr \
17344 hu \
17345 it \
17346 ja \
17347 ko \
17348 lt \
17349 ml \
17350 nb_NO \
17351 nl \
17352 or \
17353 pa \
17354 pl \
17355 pt_BR \
17356 pt_PT \
17357 rm \
17358 ro \
17359 ru \
17360 sk \
17361 sl \
17362 sr_RS@cyrillic \
17363 sr_RS@latin \
17364 sv \
17365 te \
17366 th \
17367 tr \
17368 uk \
17369 wa \
17370 zh_CN \
17371 zh_TW"
17376 wine_fn_ignore_file ".gitignore"
17377 wine_fn_ignore_file "Makefile"
17378 wine_fn_ignore_file "TAGS"
17379 wine_fn_ignore_file "tags"
17380 wine_fn_ignore_file "autom4te.cache"
17381 wine_fn_ignore_file "config.cache"
17382 wine_fn_ignore_file "config.log"
17383 wine_fn_ignore_file "config.status"
17384 wine_fn_ignore_file "configure.lineno"
17385 wine_fn_ignore_file "include/config.h"
17386 wine_fn_ignore_file "include/stamp-h"
17387 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17389 ac_config_commands="$ac_config_commands Makefile"
17392 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17396 if test "x$enable_maintainer_mode" = xyes
17397 then
17398 wine_fn_append_rule "configure: configure.ac aclocal.m4
17399 autoconf --warnings=all
17400 include/config.h.in: include/stamp-h.in
17401 include/stamp-h.in: configure.ac aclocal.m4
17402 autoheader --warnings=all
17403 @echo timestamp > \$@"
17406 if test "x$with_gettextpo" = xyes
17407 then
17408 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17409 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17410 \$(LINGUAS:%=po/%.po): po/wine.pot
17411 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17412 po/wine.pot: \$(ALL_POT_FILES)
17413 msgcat -o \$@ \$(ALL_POT_FILES)"
17416 if test "$MSGFMT" != false
17417 then
17418 PORCFLAGS="--po-dir=\$(top_builddir)/po"
17420 wine_fn_append_rule "__builddeps__: \$(ALL_MO_FILES)
17421 clean::
17422 \$(RM) \$(ALL_MO_FILES)"
17424 posrc="po"
17425 test "$srcdir" = . || posrc="$srcdir/po"
17426 for i in $LINGUAS
17428 wine_fn_ignore_file "po/$i.mo"
17429 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17430 \$(MSGFMT) -o \$@ $posrc/$i.po"
17431 done
17432 else
17433 LINGUAS=
17436 if test "x$enable_tools" != xno
17437 then
17438 ac_config_commands="$ac_config_commands tools"
17440 wine_fn_ignore_file "tools/makedep$ac_exeext"
17441 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h
17442 \$(CC) -Iinclude -I$srcdir/include -D__WINESRC__ \$(EXTRACFLAGS) \$(CPPFLAGS) \$(CFLAGS) -o \$@ $srcdir/tools/makedep.c \$(LDFLAGS)
17443 clean:: __clean__
17444 \$(RM) tools/makedep$ac_exeext"
17445 else
17446 wine_fn_append_rule "\$(MAKEDEP):
17447 @echo \"You need to run make in $TOOLSDIR first\" && false"
17450 if test -n "$with_wine64"
17451 then
17452 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17453 fonts server tools:
17454 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17455 $with_wine64/loader/wine:
17456 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17457 $with_wine64/loader/wine-preloader:
17458 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17459 clean::
17460 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17461 else
17462 as_fn_append LOADER_RULES "
17463 all: wine.inf
17465 install install-lib:: wine.inf install-man-pages
17466 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17467 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17469 uninstall::
17470 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17474 if test "$srcdir" = .
17475 then
17476 ac_config_commands="$ac_config_commands .gitignore"
17480 $as_echo " done" >&6
17481 cat >confcache <<\_ACEOF
17482 # This file is a shell script that caches the results of configure
17483 # tests run on this system so they can be shared between configure
17484 # scripts and configure runs, see configure's option --config-cache.
17485 # It is not useful on other systems. If it contains results you don't
17486 # want to keep, you may remove or edit it.
17488 # config.status only pays attention to the cache file if you give it
17489 # the --recheck option to rerun configure.
17491 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17493 # following values.
17495 _ACEOF
17497 # The following way of writing the cache mishandles newlines in values,
17498 # but we know of no workaround that is simple, portable, and efficient.
17499 # So, we kill variables containing newlines.
17500 # Ultrix sh set writes to stderr and can't be redirected directly,
17501 # and sets the high bit in the cache file unless we assign to the vars.
17503 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17504 eval ac_val=\$$ac_var
17505 case $ac_val in #(
17506 *${as_nl}*)
17507 case $ac_var in #(
17508 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17509 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17510 esac
17511 case $ac_var in #(
17512 _ | IFS | as_nl) ;; #(
17513 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17514 *) { eval $ac_var=; unset $ac_var;} ;;
17515 esac ;;
17516 esac
17517 done
17519 (set) 2>&1 |
17520 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17521 *${as_nl}ac_space=\ *)
17522 # `set' does not quote correctly, so add quotes: double-quote
17523 # substitution turns \\\\ into \\, and sed turns \\ into \.
17524 sed -n \
17525 "s/'/'\\\\''/g;
17526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17527 ;; #(
17529 # `set' quotes correctly as required by POSIX, so do not add quotes.
17530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17532 esac |
17533 sort
17535 sed '
17536 /^ac_cv_env_/b end
17537 t clear
17538 :clear
17539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17540 t end
17541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17542 :end' >>confcache
17543 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17544 if test -w "$cache_file"; then
17545 if test "x$cache_file" != "x/dev/null"; then
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17547 $as_echo "$as_me: updating cache $cache_file" >&6;}
17548 if test ! -f "$cache_file" || test -h "$cache_file"; then
17549 cat confcache >"$cache_file"
17550 else
17551 case $cache_file in #(
17552 */* | ?:*)
17553 mv -f confcache "$cache_file"$$ &&
17554 mv -f "$cache_file"$$ "$cache_file" ;; #(
17556 mv -f confcache "$cache_file" ;;
17557 esac
17560 else
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17562 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17565 rm -f confcache
17567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17568 # Let make expand exec_prefix.
17569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17571 DEFS=-DHAVE_CONFIG_H
17573 ac_libobjs=
17574 ac_ltlibobjs=
17576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17577 # 1. Remove the extension, and $U if already installed.
17578 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17579 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17580 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17581 # will be set to the directory where LIBOBJS objects are built.
17582 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17583 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17584 done
17585 LIBOBJS=$ac_libobjs
17587 LTLIBOBJS=$ac_ltlibobjs
17591 : "${CONFIG_STATUS=./config.status}"
17592 ac_write_fail=0
17593 ac_clean_files_save=$ac_clean_files
17594 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17596 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17597 as_write_fail=0
17598 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17599 #! $SHELL
17600 # Generated by $as_me.
17601 # Run this file to recreate the current configuration.
17602 # Compiler output produced by configure, useful for debugging
17603 # configure, is in config.log if it exists.
17605 debug=false
17606 ac_cs_recheck=false
17607 ac_cs_silent=false
17609 SHELL=\${CONFIG_SHELL-$SHELL}
17610 export SHELL
17611 _ASEOF
17612 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17613 ## -------------------- ##
17614 ## M4sh Initialization. ##
17615 ## -------------------- ##
17617 # Be more Bourne compatible
17618 DUALCASE=1; export DUALCASE # for MKS sh
17619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17620 emulate sh
17621 NULLCMD=:
17622 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17623 # is contrary to our usage. Disable this feature.
17624 alias -g '${1+"$@"}'='"$@"'
17625 setopt NO_GLOB_SUBST
17626 else
17627 case `(set -o) 2>/dev/null` in #(
17628 *posix*) :
17629 set -o posix ;; #(
17630 *) :
17632 esac
17636 as_nl='
17638 export as_nl
17639 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17640 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17641 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17642 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17643 # Prefer a ksh shell builtin over an external printf program on Solaris,
17644 # but without wasting forks for bash or zsh.
17645 if test -z "$BASH_VERSION$ZSH_VERSION" \
17646 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17647 as_echo='print -r --'
17648 as_echo_n='print -rn --'
17649 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17650 as_echo='printf %s\n'
17651 as_echo_n='printf %s'
17652 else
17653 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17654 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17655 as_echo_n='/usr/ucb/echo -n'
17656 else
17657 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17658 as_echo_n_body='eval
17659 arg=$1;
17660 case $arg in #(
17661 *"$as_nl"*)
17662 expr "X$arg" : "X\\(.*\\)$as_nl";
17663 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17664 esac;
17665 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17667 export as_echo_n_body
17668 as_echo_n='sh -c $as_echo_n_body as_echo'
17670 export as_echo_body
17671 as_echo='sh -c $as_echo_body as_echo'
17674 # The user is always right.
17675 if test "${PATH_SEPARATOR+set}" != set; then
17676 PATH_SEPARATOR=:
17677 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17678 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17679 PATH_SEPARATOR=';'
17684 # IFS
17685 # We need space, tab and new line, in precisely that order. Quoting is
17686 # there to prevent editors from complaining about space-tab.
17687 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17688 # splitting by setting IFS to empty value.)
17689 IFS=" "" $as_nl"
17691 # Find who we are. Look in the path if we contain no directory separator.
17692 as_myself=
17693 case $0 in #((
17694 *[\\/]* ) as_myself=$0 ;;
17695 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17696 for as_dir in $PATH
17698 IFS=$as_save_IFS
17699 test -z "$as_dir" && as_dir=.
17700 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17701 done
17702 IFS=$as_save_IFS
17705 esac
17706 # We did not find ourselves, most probably we were run as `sh COMMAND'
17707 # in which case we are not to be found in the path.
17708 if test "x$as_myself" = x; then
17709 as_myself=$0
17711 if test ! -f "$as_myself"; then
17712 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17713 exit 1
17716 # Unset variables that we do not need and which cause bugs (e.g. in
17717 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17718 # suppresses any "Segmentation fault" message there. '((' could
17719 # trigger a bug in pdksh 5.2.14.
17720 for as_var in BASH_ENV ENV MAIL MAILPATH
17721 do eval test x\${$as_var+set} = xset \
17722 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17723 done
17724 PS1='$ '
17725 PS2='> '
17726 PS4='+ '
17728 # NLS nuisances.
17729 LC_ALL=C
17730 export LC_ALL
17731 LANGUAGE=C
17732 export LANGUAGE
17734 # CDPATH.
17735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17738 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17739 # ----------------------------------------
17740 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17741 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17742 # script with STATUS, using 1 if that was 0.
17743 as_fn_error ()
17745 as_status=$1; test $as_status -eq 0 && as_status=1
17746 if test "$4"; then
17747 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17748 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17750 $as_echo "$as_me: error: $2" >&2
17751 as_fn_exit $as_status
17752 } # as_fn_error
17755 # as_fn_set_status STATUS
17756 # -----------------------
17757 # Set $? to STATUS, without forking.
17758 as_fn_set_status ()
17760 return $1
17761 } # as_fn_set_status
17763 # as_fn_exit STATUS
17764 # -----------------
17765 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17766 as_fn_exit ()
17768 set +e
17769 as_fn_set_status $1
17770 exit $1
17771 } # as_fn_exit
17773 # as_fn_unset VAR
17774 # ---------------
17775 # Portably unset VAR.
17776 as_fn_unset ()
17778 { eval $1=; unset $1;}
17780 as_unset=as_fn_unset
17781 # as_fn_append VAR VALUE
17782 # ----------------------
17783 # Append the text in VALUE to the end of the definition contained in VAR. Take
17784 # advantage of any shell optimizations that allow amortized linear growth over
17785 # repeated appends, instead of the typical quadratic growth present in naive
17786 # implementations.
17787 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17788 eval 'as_fn_append ()
17790 eval $1+=\$2
17792 else
17793 as_fn_append ()
17795 eval $1=\$$1\$2
17797 fi # as_fn_append
17799 # as_fn_arith ARG...
17800 # ------------------
17801 # Perform arithmetic evaluation on the ARGs, and store the result in the
17802 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17803 # must be portable across $(()) and expr.
17804 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17805 eval 'as_fn_arith ()
17807 as_val=$(( $* ))
17809 else
17810 as_fn_arith ()
17812 as_val=`expr "$@" || test $? -eq 1`
17814 fi # as_fn_arith
17817 if expr a : '\(a\)' >/dev/null 2>&1 &&
17818 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17819 as_expr=expr
17820 else
17821 as_expr=false
17824 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17825 as_basename=basename
17826 else
17827 as_basename=false
17830 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17831 as_dirname=dirname
17832 else
17833 as_dirname=false
17836 as_me=`$as_basename -- "$0" ||
17837 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17838 X"$0" : 'X\(//\)$' \| \
17839 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17840 $as_echo X/"$0" |
17841 sed '/^.*\/\([^/][^/]*\)\/*$/{
17842 s//\1/
17845 /^X\/\(\/\/\)$/{
17846 s//\1/
17849 /^X\/\(\/\).*/{
17850 s//\1/
17853 s/.*/./; q'`
17855 # Avoid depending upon Character Ranges.
17856 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17857 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17858 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17859 as_cr_digits='0123456789'
17860 as_cr_alnum=$as_cr_Letters$as_cr_digits
17862 ECHO_C= ECHO_N= ECHO_T=
17863 case `echo -n x` in #(((((
17864 -n*)
17865 case `echo 'xy\c'` in
17866 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17867 xy) ECHO_C='\c';;
17868 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17869 ECHO_T=' ';;
17870 esac;;
17872 ECHO_N='-n';;
17873 esac
17875 rm -f conf$$ conf$$.exe conf$$.file
17876 if test -d conf$$.dir; then
17877 rm -f conf$$.dir/conf$$.file
17878 else
17879 rm -f conf$$.dir
17880 mkdir conf$$.dir 2>/dev/null
17882 if (echo >conf$$.file) 2>/dev/null; then
17883 if ln -s conf$$.file conf$$ 2>/dev/null; then
17884 as_ln_s='ln -s'
17885 # ... but there are two gotchas:
17886 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17887 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17888 # In both cases, we have to default to `cp -pR'.
17889 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17890 as_ln_s='cp -pR'
17891 elif ln conf$$.file conf$$ 2>/dev/null; then
17892 as_ln_s=ln
17893 else
17894 as_ln_s='cp -pR'
17896 else
17897 as_ln_s='cp -pR'
17899 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17900 rmdir conf$$.dir 2>/dev/null
17903 # as_fn_mkdir_p
17904 # -------------
17905 # Create "$as_dir" as a directory, including parents if necessary.
17906 as_fn_mkdir_p ()
17909 case $as_dir in #(
17910 -*) as_dir=./$as_dir;;
17911 esac
17912 test -d "$as_dir" || eval $as_mkdir_p || {
17913 as_dirs=
17914 while :; do
17915 case $as_dir in #(
17916 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17917 *) as_qdir=$as_dir;;
17918 esac
17919 as_dirs="'$as_qdir' $as_dirs"
17920 as_dir=`$as_dirname -- "$as_dir" ||
17921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17922 X"$as_dir" : 'X\(//\)[^/]' \| \
17923 X"$as_dir" : 'X\(//\)$' \| \
17924 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17925 $as_echo X"$as_dir" |
17926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17927 s//\1/
17930 /^X\(\/\/\)[^/].*/{
17931 s//\1/
17934 /^X\(\/\/\)$/{
17935 s//\1/
17938 /^X\(\/\).*/{
17939 s//\1/
17942 s/.*/./; q'`
17943 test -d "$as_dir" && break
17944 done
17945 test -z "$as_dirs" || eval "mkdir $as_dirs"
17946 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17949 } # as_fn_mkdir_p
17950 if mkdir -p . 2>/dev/null; then
17951 as_mkdir_p='mkdir -p "$as_dir"'
17952 else
17953 test -d ./-p && rmdir ./-p
17954 as_mkdir_p=false
17958 # as_fn_executable_p FILE
17959 # -----------------------
17960 # Test if FILE is an executable regular file.
17961 as_fn_executable_p ()
17963 test -f "$1" && test -x "$1"
17964 } # as_fn_executable_p
17965 as_test_x='test -x'
17966 as_executable_p=as_fn_executable_p
17968 # Sed expression to map a string onto a valid CPP name.
17969 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17971 # Sed expression to map a string onto a valid variable name.
17972 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17975 exec 6>&1
17976 ## ----------------------------------- ##
17977 ## Main body of $CONFIG_STATUS script. ##
17978 ## ----------------------------------- ##
17979 _ASEOF
17980 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17983 # Save the log message, to keep $0 and so on meaningful, and to
17984 # report actual input values of CONFIG_FILES etc. instead of their
17985 # values after options handling.
17986 ac_log="
17987 This file was extended by Wine $as_me 1.7.9, which was
17988 generated by GNU Autoconf 2.69. Invocation command line was
17990 CONFIG_FILES = $CONFIG_FILES
17991 CONFIG_HEADERS = $CONFIG_HEADERS
17992 CONFIG_LINKS = $CONFIG_LINKS
17993 CONFIG_COMMANDS = $CONFIG_COMMANDS
17994 $ $0 $@
17996 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17999 _ACEOF
18001 case $ac_config_files in *"
18002 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18003 esac
18005 case $ac_config_headers in *"
18006 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18007 esac
18010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18011 # Files that config.status was made for.
18012 config_files="$ac_config_files"
18013 config_headers="$ac_config_headers"
18014 config_links="$ac_config_links"
18015 config_commands="$ac_config_commands"
18017 _ACEOF
18019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18020 ac_cs_usage="\
18021 \`$as_me' instantiates files and other configuration actions
18022 from templates according to the current configuration. Unless the files
18023 and actions are specified as TAGs, all are instantiated by default.
18025 Usage: $0 [OPTION]... [TAG]...
18027 -h, --help print this help, then exit
18028 -V, --version print version number and configuration settings, then exit
18029 --config print configuration, then exit
18030 -q, --quiet, --silent
18031 do not print progress messages
18032 -d, --debug don't remove temporary files
18033 --recheck update $as_me by reconfiguring in the same conditions
18034 --file=FILE[:TEMPLATE]
18035 instantiate the configuration file FILE
18036 --header=FILE[:TEMPLATE]
18037 instantiate the configuration header FILE
18039 Configuration files:
18040 $config_files
18042 Configuration headers:
18043 $config_headers
18045 Configuration links:
18046 $config_links
18048 Configuration commands:
18049 $config_commands
18051 Report bugs to <wine-devel@winehq.org>.
18052 Wine home page: <http://www.winehq.org>."
18054 _ACEOF
18055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18056 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18057 ac_cs_version="\\
18058 Wine config.status 1.7.9
18059 configured by $0, generated by GNU Autoconf 2.69,
18060 with options \\"\$ac_cs_config\\"
18062 Copyright (C) 2012 Free Software Foundation, Inc.
18063 This config.status script is free software; the Free Software Foundation
18064 gives unlimited permission to copy, distribute and modify it."
18066 ac_pwd='$ac_pwd'
18067 srcdir='$srcdir'
18068 MKDIR_P='$MKDIR_P'
18069 test -n "\$AWK" || AWK=awk
18070 _ACEOF
18072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18073 # The default lists apply if the user does not specify any file.
18074 ac_need_defaults=:
18075 while test $# != 0
18077 case $1 in
18078 --*=?*)
18079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18081 ac_shift=:
18083 --*=)
18084 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18085 ac_optarg=
18086 ac_shift=:
18089 ac_option=$1
18090 ac_optarg=$2
18091 ac_shift=shift
18093 esac
18095 case $ac_option in
18096 # Handling of the options.
18097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18098 ac_cs_recheck=: ;;
18099 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18100 $as_echo "$ac_cs_version"; exit ;;
18101 --config | --confi | --conf | --con | --co | --c )
18102 $as_echo "$ac_cs_config"; exit ;;
18103 --debug | --debu | --deb | --de | --d | -d )
18104 debug=: ;;
18105 --file | --fil | --fi | --f )
18106 $ac_shift
18107 case $ac_optarg in
18108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18109 '') as_fn_error $? "missing file argument" ;;
18110 esac
18111 as_fn_append CONFIG_FILES " '$ac_optarg'"
18112 ac_need_defaults=false;;
18113 --header | --heade | --head | --hea )
18114 $ac_shift
18115 case $ac_optarg in
18116 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18117 esac
18118 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18119 ac_need_defaults=false;;
18120 --he | --h)
18121 # Conflict between --help and --header
18122 as_fn_error $? "ambiguous option: \`$1'
18123 Try \`$0 --help' for more information.";;
18124 --help | --hel | -h )
18125 $as_echo "$ac_cs_usage"; exit ;;
18126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18128 ac_cs_silent=: ;;
18130 # This is an error.
18131 -*) as_fn_error $? "unrecognized option: \`$1'
18132 Try \`$0 --help' for more information." ;;
18134 *) as_fn_append ac_config_targets " $1"
18135 ac_need_defaults=false ;;
18137 esac
18138 shift
18139 done
18141 ac_configure_extra_args=
18143 if $ac_cs_silent; then
18144 exec 6>/dev/null
18145 ac_configure_extra_args="$ac_configure_extra_args --silent"
18148 _ACEOF
18149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18150 if \$ac_cs_recheck; then
18151 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18152 shift
18153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18154 CONFIG_SHELL='$SHELL'
18155 export CONFIG_SHELL
18156 exec "\$@"
18159 _ACEOF
18160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18161 exec 5>>config.log
18163 echo
18164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18165 ## Running $as_me. ##
18166 _ASBOX
18167 $as_echo "$ac_log"
18168 } >&5
18170 _ACEOF
18171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18173 # INIT-COMMANDS
18175 wine_fn_output_makefile ()
18177 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
18178 `cat $wine_rules_file`
18179 _WINE_EOF
18180 as_fn_error $? "could not create Makefile" "$LINENO" 5
18182 wine_fn_output_gitignore ()
18184 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18185 $GITIGNORE
18186 _WINE_EOF
18187 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18190 _ACEOF
18192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18194 # Handling of arguments.
18195 for ac_config_target in $ac_config_targets
18197 case $ac_config_target in
18198 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18199 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18200 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18201 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18202 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18203 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18204 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18205 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18206 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18207 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18208 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
18209 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18210 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18211 "tools") CONFIG_COMMANDS="$CONFIG_COMMANDS tools" ;;
18212 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18214 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18215 esac
18216 done
18219 # If the user did not use the arguments to specify the items to instantiate,
18220 # then the envvar interface is used. Set only those that are not.
18221 # We use the long form for the default assignment because of an extremely
18222 # bizarre bug on SunOS 4.1.3.
18223 if $ac_need_defaults; then
18224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18226 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18230 # Have a temporary directory for convenience. Make it in the build tree
18231 # simply because there is no reason against having it here, and in addition,
18232 # creating and moving files from /tmp can sometimes cause problems.
18233 # Hook for its removal unless debugging.
18234 # Note that there is a small window in which the directory will not be cleaned:
18235 # after its creation but before its name has been assigned to `$tmp'.
18236 $debug ||
18238 tmp= ac_tmp=
18239 trap 'exit_status=$?
18240 : "${ac_tmp:=$tmp}"
18241 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18243 trap 'as_fn_exit 1' 1 2 13 15
18245 # Create a (secure) tmp directory for tmp files.
18248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18249 test -d "$tmp"
18250 } ||
18252 tmp=./conf$$-$RANDOM
18253 (umask 077 && mkdir "$tmp")
18254 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18255 ac_tmp=$tmp
18257 # Set up the scripts for CONFIG_FILES section.
18258 # No need to generate them if there are no CONFIG_FILES.
18259 # This happens for instance with `./config.status config.h'.
18260 if test -n "$CONFIG_FILES"; then
18262 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18263 ac_cs_awk_getline=:
18264 ac_cs_awk_pipe_init=
18265 ac_cs_awk_read_file='
18266 while ((getline aline < (F[key])) > 0)
18267 print(aline)
18268 close(F[key])'
18269 ac_cs_awk_pipe_fini=
18270 else
18271 ac_cs_awk_getline=false
18272 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18273 ac_cs_awk_read_file='
18274 print "|#_!!_#|"
18275 print "cat " F[key] " &&"
18276 '$ac_cs_awk_pipe_init
18277 # The final `:' finishes the AND list.
18278 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18280 ac_cr=`echo X | tr X '\015'`
18281 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18282 # But we know of no other shell where ac_cr would be empty at this
18283 # point, so we can use a bashism as a fallback.
18284 if test "x$ac_cr" = x; then
18285 eval ac_cr=\$\'\\r\'
18287 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18288 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18289 ac_cs_awk_cr='\\r'
18290 else
18291 ac_cs_awk_cr=$ac_cr
18294 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18295 _ACEOF
18297 # Create commands to substitute file output variables.
18299 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18300 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18301 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18302 echo "_ACAWK" &&
18303 echo "_ACEOF"
18304 } >conf$$files.sh &&
18305 . ./conf$$files.sh ||
18306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18307 rm -f conf$$files.sh
18310 echo "cat >conf$$subs.awk <<_ACEOF" &&
18311 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18312 echo "_ACEOF"
18313 } >conf$$subs.sh ||
18314 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18315 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18316 ac_delim='%!_!# '
18317 for ac_last_try in false false false false false :; do
18318 . ./conf$$subs.sh ||
18319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18321 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18322 if test $ac_delim_n = $ac_delim_num; then
18323 break
18324 elif $ac_last_try; then
18325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18326 else
18327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18329 done
18330 rm -f conf$$subs.sh
18332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18333 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18334 _ACEOF
18335 sed -n '
18337 s/^/S["/; s/!.*/"]=/
18340 s/^[^!]*!//
18341 :repl
18342 t repl
18343 s/'"$ac_delim"'$//
18344 t delim
18347 s/\(.\{148\}\)..*/\1/
18348 t more1
18349 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18352 b repl
18353 :more1
18354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18357 s/.\{148\}//
18358 t nl
18359 :delim
18361 s/\(.\{148\}\)..*/\1/
18362 t more2
18363 s/["\\]/\\&/g; s/^/"/; s/$/"/
18366 :more2
18367 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18370 s/.\{148\}//
18371 t delim
18372 ' <conf$$subs.awk | sed '
18373 /^[^""]/{
18375 s/\n//
18377 ' >>$CONFIG_STATUS || ac_write_fail=1
18378 rm -f conf$$subs.awk
18379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18380 _ACAWK
18381 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18382 for (key in S) S_is_set[key] = 1
18383 FS = "\a"
18384 \$ac_cs_awk_pipe_init
18387 line = $ 0
18388 nfields = split(line, field, "@")
18389 substed = 0
18390 len = length(field[1])
18391 for (i = 2; i < nfields; i++) {
18392 key = field[i]
18393 keylen = length(key)
18394 if (S_is_set[key]) {
18395 value = S[key]
18396 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18397 len += length(value) + length(field[++i])
18398 substed = 1
18399 } else
18400 len += 1 + keylen
18402 if (nfields == 3 && !substed) {
18403 key = field[2]
18404 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18405 \$ac_cs_awk_read_file
18406 next
18409 print line
18411 \$ac_cs_awk_pipe_fini
18412 _ACAWK
18413 _ACEOF
18414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18415 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18416 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18417 else
18419 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18420 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18421 _ACEOF
18423 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18424 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18425 # trailing colons and then remove the whole line if VPATH becomes empty
18426 # (actually we leave an empty line to preserve line numbers).
18427 if test "x$srcdir" = x.; then
18428 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18430 s///
18431 s/^/:/
18432 s/[ ]*$/:/
18433 s/:\$(srcdir):/:/g
18434 s/:\${srcdir}:/:/g
18435 s/:@srcdir@:/:/g
18436 s/^:*//
18437 s/:*$//
18439 s/\(=[ ]*\).*/\1/
18441 s/\n//
18442 s/^[^=]*=[ ]*$//
18446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18447 fi # test -n "$CONFIG_FILES"
18449 # Set up the scripts for CONFIG_HEADERS section.
18450 # No need to generate them if there are no CONFIG_HEADERS.
18451 # This happens for instance with `./config.status Makefile'.
18452 if test -n "$CONFIG_HEADERS"; then
18453 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18454 BEGIN {
18455 _ACEOF
18457 # Transform confdefs.h into an awk script `defines.awk', embedded as
18458 # here-document in config.status, that substitutes the proper values into
18459 # config.h.in to produce config.h.
18461 # Create a delimiter string that does not exist in confdefs.h, to ease
18462 # handling of long lines.
18463 ac_delim='%!_!# '
18464 for ac_last_try in false false :; do
18465 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18466 if test -z "$ac_tt"; then
18467 break
18468 elif $ac_last_try; then
18469 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18470 else
18471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18473 done
18475 # For the awk script, D is an array of macro values keyed by name,
18476 # likewise P contains macro parameters if any. Preserve backslash
18477 # newline sequences.
18479 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18480 sed -n '
18481 s/.\{148\}/&'"$ac_delim"'/g
18482 t rset
18483 :rset
18484 s/^[ ]*#[ ]*define[ ][ ]*/ /
18485 t def
18487 :def
18488 s/\\$//
18489 t bsnl
18490 s/["\\]/\\&/g
18491 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18492 D["\1"]=" \3"/p
18493 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18495 :bsnl
18496 s/["\\]/\\&/g
18497 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18498 D["\1"]=" \3\\\\\\n"\\/p
18499 t cont
18500 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18501 t cont
18503 :cont
18505 s/.\{148\}/&'"$ac_delim"'/g
18506 t clear
18507 :clear
18508 s/\\$//
18509 t bsnlc
18510 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18512 :bsnlc
18513 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18514 b cont
18515 ' <confdefs.h | sed '
18516 s/'"$ac_delim"'/"\\\
18517 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18520 for (key in D) D_is_set[key] = 1
18521 FS = "\a"
18523 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18524 line = \$ 0
18525 split(line, arg, " ")
18526 if (arg[1] == "#") {
18527 defundef = arg[2]
18528 mac1 = arg[3]
18529 } else {
18530 defundef = substr(arg[1], 2)
18531 mac1 = arg[2]
18533 split(mac1, mac2, "(") #)
18534 macro = mac2[1]
18535 prefix = substr(line, 1, index(line, defundef) - 1)
18536 if (D_is_set[macro]) {
18537 # Preserve the white space surrounding the "#".
18538 print prefix "define", macro P[macro] D[macro]
18539 next
18540 } else {
18541 # Replace #undef with comments. This is necessary, for example,
18542 # in the case of _POSIX_SOURCE, which is predefined and required
18543 # on some systems where configure will not decide to define it.
18544 if (defundef == "undef") {
18545 print "/*", prefix defundef, macro, "*/"
18546 next
18550 { print }
18551 _ACAWK
18552 _ACEOF
18553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18554 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18555 fi # test -n "$CONFIG_HEADERS"
18558 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18559 shift
18560 for ac_tag
18562 case $ac_tag in
18563 :[FHLC]) ac_mode=$ac_tag; continue;;
18564 esac
18565 case $ac_mode$ac_tag in
18566 :[FHL]*:*);;
18567 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18568 :[FH]-) ac_tag=-:-;;
18569 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18570 esac
18571 ac_save_IFS=$IFS
18572 IFS=:
18573 set x $ac_tag
18574 IFS=$ac_save_IFS
18575 shift
18576 ac_file=$1
18577 shift
18579 case $ac_mode in
18580 :L) ac_source=$1;;
18581 :[FH])
18582 ac_file_inputs=
18583 for ac_f
18585 case $ac_f in
18586 -) ac_f="$ac_tmp/stdin";;
18587 *) # Look for the file first in the build tree, then in the source tree
18588 # (if the path is not absolute). The absolute path cannot be DOS-style,
18589 # because $ac_f cannot contain `:'.
18590 test -f "$ac_f" ||
18591 case $ac_f in
18592 [\\/$]*) false;;
18593 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18594 esac ||
18595 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18596 esac
18597 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18598 as_fn_append ac_file_inputs " '$ac_f'"
18599 done
18601 # Let's still pretend it is `configure' which instantiates (i.e., don't
18602 # use $as_me), people would be surprised to read:
18603 # /* config.h. Generated by config.status. */
18604 configure_input='Generated from '`
18605 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18606 `' by configure.'
18607 if test x"$ac_file" != x-; then
18608 configure_input="$ac_file. $configure_input"
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18610 $as_echo "$as_me: creating $ac_file" >&6;}
18612 # Neutralize special characters interpreted by sed in replacement strings.
18613 case $configure_input in #(
18614 *\&* | *\|* | *\\* )
18615 ac_sed_conf_input=`$as_echo "$configure_input" |
18616 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18617 *) ac_sed_conf_input=$configure_input;;
18618 esac
18620 case $ac_tag in
18621 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18623 esac
18625 esac
18627 ac_dir=`$as_dirname -- "$ac_file" ||
18628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18629 X"$ac_file" : 'X\(//\)[^/]' \| \
18630 X"$ac_file" : 'X\(//\)$' \| \
18631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18632 $as_echo X"$ac_file" |
18633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18634 s//\1/
18637 /^X\(\/\/\)[^/].*/{
18638 s//\1/
18641 /^X\(\/\/\)$/{
18642 s//\1/
18645 /^X\(\/\).*/{
18646 s//\1/
18649 s/.*/./; q'`
18650 as_dir="$ac_dir"; as_fn_mkdir_p
18651 ac_builddir=.
18653 case "$ac_dir" in
18654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18657 # A ".." for each directory in $ac_dir_suffix.
18658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18659 case $ac_top_builddir_sub in
18660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18662 esac ;;
18663 esac
18664 ac_abs_top_builddir=$ac_pwd
18665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18666 # for backward compatibility:
18667 ac_top_builddir=$ac_top_build_prefix
18669 case $srcdir in
18670 .) # We are building in place.
18671 ac_srcdir=.
18672 ac_top_srcdir=$ac_top_builddir_sub
18673 ac_abs_top_srcdir=$ac_pwd ;;
18674 [\\/]* | ?:[\\/]* ) # Absolute name.
18675 ac_srcdir=$srcdir$ac_dir_suffix;
18676 ac_top_srcdir=$srcdir
18677 ac_abs_top_srcdir=$srcdir ;;
18678 *) # Relative name.
18679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18680 ac_top_srcdir=$ac_top_build_prefix$srcdir
18681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18682 esac
18683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18686 case $ac_mode in
18689 # CONFIG_FILE
18692 ac_MKDIR_P=$MKDIR_P
18693 case $MKDIR_P in
18694 [\\/$]* | ?:[\\/]* ) ;;
18695 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18696 esac
18697 _ACEOF
18699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18700 # If the template does not know about datarootdir, expand it.
18701 # FIXME: This hack should be removed a few years after 2.60.
18702 ac_datarootdir_hack=; ac_datarootdir_seen=
18703 ac_sed_dataroot='
18704 /datarootdir/ {
18708 /@datadir@/p
18709 /@docdir@/p
18710 /@infodir@/p
18711 /@localedir@/p
18712 /@mandir@/p'
18713 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18714 *datarootdir*) ac_datarootdir_seen=yes;;
18715 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18717 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18718 _ACEOF
18719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18720 ac_datarootdir_hack='
18721 s&@datadir@&$datadir&g
18722 s&@docdir@&$docdir&g
18723 s&@infodir@&$infodir&g
18724 s&@localedir@&$localedir&g
18725 s&@mandir@&$mandir&g
18726 s&\\\${datarootdir}&$datarootdir&g' ;;
18727 esac
18728 _ACEOF
18730 # Neutralize VPATH when `$srcdir' = `.'.
18731 # Shell code in configure.ac might set extrasub.
18732 # FIXME: do we really want to maintain this feature?
18733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18734 ac_sed_extra="$ac_vpsub
18735 $extrasub
18736 _ACEOF
18737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18740 s|@configure_input@|$ac_sed_conf_input|;t t
18741 s&@top_builddir@&$ac_top_builddir_sub&;t t
18742 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18743 s&@srcdir@&$ac_srcdir&;t t
18744 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18745 s&@top_srcdir@&$ac_top_srcdir&;t t
18746 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18747 s&@builddir@&$ac_builddir&;t t
18748 s&@abs_builddir@&$ac_abs_builddir&;t t
18749 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18750 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18751 $ac_datarootdir_hack
18753 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18754 if $ac_cs_awk_getline; then
18755 $AWK -f "$ac_tmp/subs.awk"
18756 else
18757 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18758 fi \
18759 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18761 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18762 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18763 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18764 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18766 which seems to be undefined. Please make sure it is defined" >&5
18767 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18768 which seems to be undefined. Please make sure it is defined" >&2;}
18770 rm -f "$ac_tmp/stdin"
18771 case $ac_file in
18772 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18773 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18774 esac \
18775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18779 # CONFIG_HEADER
18781 if test x"$ac_file" != x-; then
18783 $as_echo "/* $configure_input */" \
18784 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18785 } >"$ac_tmp/config.h" \
18786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18787 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18789 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18790 else
18791 rm -f "$ac_file"
18792 mv "$ac_tmp/config.h" "$ac_file" \
18793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18795 else
18796 $as_echo "/* $configure_input */" \
18797 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18798 || as_fn_error $? "could not create -" "$LINENO" 5
18803 # CONFIG_LINK
18806 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18808 else
18809 # Prefer the file from the source tree if names are identical.
18810 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18811 ac_source=$srcdir/$ac_source
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18815 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18817 if test ! -r "$ac_source"; then
18818 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18820 rm -f "$ac_file"
18822 # Try a relative symlink, then a hard link, then a copy.
18823 case $ac_source in
18824 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18825 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18826 esac
18827 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18828 ln "$ac_source" "$ac_file" 2>/dev/null ||
18829 cp -p "$ac_source" "$ac_file" ||
18830 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18833 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18834 $as_echo "$as_me: executing $ac_file commands" >&6;}
18836 esac
18839 case $ac_file$ac_mode in
18840 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18841 "Makefile":C) wine_fn_output_makefile Makefile ;;
18842 "tools":C) as_dir=tools; as_fn_mkdir_p ;;
18843 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
18845 esac
18846 done # for ac_tag
18849 as_fn_exit 0
18850 _ACEOF
18851 ac_clean_files=$ac_clean_files_save
18853 test $ac_write_fail = 0 ||
18854 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18857 # configure is writing to config.log, and then calls config.status.
18858 # config.status does its own redirection, appending to config.log.
18859 # Unfortunately, on DOS this fails, as config.log is still kept open
18860 # by configure, so config.status won't be able to write to it; its
18861 # output is simply discarded. So we exec the FD to /dev/null,
18862 # effectively closing config.log, so it can be properly (re)opened and
18863 # appended to by config.status. When coming back to configure, we
18864 # need to make the FD available again.
18865 if test "$no_create" != yes; then
18866 ac_cs_success=:
18867 ac_config_status_args=
18868 test "$silent" = yes &&
18869 ac_config_status_args="$ac_config_status_args --quiet"
18870 exec 5>/dev/null
18871 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18872 exec 5>>config.log
18873 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18874 # would make configure fail if this is the last instruction.
18875 $ac_cs_success || as_fn_exit 1
18877 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18879 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18883 if test "$no_create" = "yes"
18884 then
18885 exit 0
18888 ac_save_IFS="$IFS"
18889 if test "x$wine_notices != "x; then
18890 echo >&6
18891 IFS="|"
18892 for msg in $wine_notices; do
18893 IFS="$ac_save_IFS"
18894 if test -n "$msg"; then
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18896 $as_echo "$as_me: $msg" >&6;}
18898 done
18900 IFS="|"
18901 for msg in $wine_warnings; do
18902 IFS="$ac_save_IFS"
18903 if test -n "$msg"; then
18904 echo >&2
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18906 $as_echo "$as_me: WARNING: $msg" >&2;}
18908 done
18909 IFS="$ac_save_IFS"
18911 $as_echo "
18912 $as_me: Finished. Do '${ac_make}' to compile Wine.
18913 " >&6