Release 1.7.11.
[wine.git] / configure
blobc2d0dd087e275794ec0f29ed03ffb6e8c3cae09b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.11.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.7.11'
584 PACKAGE_STRING='Wine 1.7.11'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 LINGUAS
628 LDAPLIBS
629 LIBRT
630 LIBPOLL
631 LIBDL
632 TOOLSEXT
633 UNWINDFLAGS
634 BUILTINFLAG
635 EXTRACFLAGS
636 LIBPROCSTAT
637 LIBKSTAT
638 LIBOPENAL
639 MPG123_LIBS
640 MPG123_CFLAGS
641 TIFF_LIBS
642 TIFF_CFLAGS
643 PNG_LIBS
644 PNG_CFLAGS
645 JPEG_LIBS
646 JPEG_CFLAGS
647 FONTCONFIGINCL
648 CUPSINCL
649 CAPI20_LIBS
650 CAPI20_CFLAGS
651 OSS4INCL
652 ALSALIBS
653 GSTREAMER_LIBS
654 GSTREAMER_CFLAGS
655 LIBGETTEXTPO
656 ZLIB
657 FREETYPE_LIBS
658 FREETYPE_CFLAGS
659 LCMS2_LIBS
660 LCMS2_CFLAGS
661 RESOLVLIBS
662 GPHOTO2_PORT_LIBS
663 GPHOTO2_PORT_CFLAGS
664 GPHOTO2_LIBS
665 GPHOTO2_CFLAGS
666 SANE_LIBS
667 SANE_CFLAGS
668 GNUTLS_LIBS
669 GNUTLS_CFLAGS
670 HAL_LIBS
671 HAL_CFLAGS
672 DBUS_LIBS
673 DBUS_CFLAGS
674 XSLT_LIBS
675 XSLT_CFLAGS
676 XML2_LIBS
677 XML2_CFLAGS
678 X_EXTRA_LIBS
679 X_LIBS
680 X_PRE_LIBS
681 X_CFLAGS
682 XMKMF
683 LIBPTHREAD
684 CROSSCC
685 CROSSTARGET
686 PRELINK
687 CARBONLIB
688 QUICKTIMELIB
689 LIBOPENCL
690 FRAMEWORK_OPENAL
691 COREAUDIO
692 SECURITYLIB
693 DISKARBITRATIONLIB
694 APPKITLIB
695 CORESERVICESLIB
696 APPLICATIONSERVICESLIB
697 FORCEFEEDBACKLIB
698 IOKITLIB
699 COREFOUNDATIONLIB
700 LIBWINE_RULES
701 SOCKETLIBS
702 DLLTOOL
703 LOADER_RULES
704 ALL_TEST_RESOURCES
705 READELF
707 LDRPATH_LOCAL
708 LDRPATH_INSTALL
709 DLLFLAGS
710 DLLPREFIX
711 dlldir
713 OPENGL_LIBS
714 XLIB
715 ICOTOOL
716 CONVERT
717 RSVG
718 FONTFORGE
719 PKG_CONFIG
720 MSGFMT
721 LDCONFIG
722 EGREP
723 GREP
724 LN_S
725 RANLIB
726 ARFLAGS
727 STRIP
728 ac_ct_AR
730 BISON
731 FLEX
732 TOOLSDIR
733 TARGETFLAGS
734 CPPBIN
735 ac_ct_CXX
736 CXXFLAGS
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
745 SET_MAKE
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_win16
796 enable_win64
797 enable_tests
798 enable_maintainer_mode
799 with_alsa
800 with_capi
801 with_cms
802 with_coreaudio
803 with_cups
804 with_curses
805 with_dbus
806 with_fontconfig
807 with_freetype
808 with_gettext
809 with_gettextpo
810 with_gphoto
811 with_glu
812 with_gnutls
813 with_gsm
814 with_gstreamer
815 with_hal
816 with_jpeg
817 with_ldap
818 with_mpg123
819 with_netapi
820 with_openal
821 with_opencl
822 with_opengl
823 with_osmesa
824 with_oss
825 with_png
826 with_pthread
827 with_sane
828 with_tiff
829 with_v4l
830 with_xcomposite
831 with_xcursor
832 with_xinerama
833 with_xinput
834 with_xinput2
835 with_xml
836 with_xrandr
837 with_xrender
838 with_xshape
839 with_xshm
840 with_xslt
841 with_xxf86vm
842 with_zlib
843 with_wine_tools
844 with_wine64
845 enable_largefile
846 with_x
847 enable_acledit
848 enable_aclui
849 enable_activeds
850 enable_actxprxy
851 enable_advapi32
852 enable_advpack
853 enable_amstream
854 enable_api_ms_win_core_debug_l1_1_1
855 enable_api_ms_win_core_errorhandling_l1_1_1
856 enable_api_ms_win_core_interlocked_l1_2_0
857 enable_api_ms_win_core_localregistry_l1_1_0
858 enable_api_ms_win_core_processthreads_l1_1_0
859 enable_api_ms_win_core_processthreads_l1_1_1
860 enable_api_ms_win_core_profile_l1_1_0
861 enable_api_ms_win_core_string_l1_1_0
862 enable_api_ms_win_core_sysinfo_l1_2_0
863 enable_api_ms_win_core_util_l1_1_0
864 enable_api_ms_win_core_winrt_error_l1_1_0
865 enable_api_ms_win_core_winrt_string_l1_1_0
866 enable_api_ms_win_downlevel_advapi32_l1_1_0
867 enable_api_ms_win_downlevel_advapi32_l2_1_0
868 enable_api_ms_win_downlevel_normaliz_l1_1_0
869 enable_api_ms_win_downlevel_ole32_l1_1_0
870 enable_api_ms_win_downlevel_shell32_l1_1_0
871 enable_api_ms_win_downlevel_shlwapi_l1_1_0
872 enable_api_ms_win_downlevel_shlwapi_l2_1_0
873 enable_api_ms_win_downlevel_user32_l1_1_0
874 enable_api_ms_win_downlevel_version_l1_1_0
875 enable_api_ms_win_security_base_l1_1_0
876 enable_apphelp
877 enable_appwiz_cpl
878 enable_atl
879 enable_atl100
880 enable_atl110
881 enable_atl80
882 enable_atl90
883 enable_authz
884 enable_avicap32
885 enable_avifil32
886 enable_avrt
887 enable_bcrypt
888 enable_browseui
889 enable_cabinet
890 enable_capi2032
891 enable_cards
892 enable_cfgmgr32
893 enable_clusapi
894 enable_comcat
895 enable_comctl32
896 enable_comdlg32
897 enable_compstui
898 enable_comsvcs
899 enable_credui
900 enable_crtdll
901 enable_crypt32
902 enable_cryptdlg
903 enable_cryptdll
904 enable_cryptnet
905 enable_cryptui
906 enable_ctapi32
907 enable_ctl3d32
908 enable_d3d10
909 enable_d3d10core
910 enable_d3d11
911 enable_d3d8
912 enable_d3d9
913 enable_d3dcompiler_33
914 enable_d3dcompiler_34
915 enable_d3dcompiler_35
916 enable_d3dcompiler_36
917 enable_d3dcompiler_37
918 enable_d3dcompiler_38
919 enable_d3dcompiler_39
920 enable_d3dcompiler_40
921 enable_d3dcompiler_41
922 enable_d3dcompiler_42
923 enable_d3dcompiler_43
924 enable_d3dim
925 enable_d3drm
926 enable_d3dx10_33
927 enable_d3dx10_34
928 enable_d3dx10_35
929 enable_d3dx10_36
930 enable_d3dx10_37
931 enable_d3dx10_38
932 enable_d3dx10_39
933 enable_d3dx10_40
934 enable_d3dx10_41
935 enable_d3dx10_42
936 enable_d3dx10_43
937 enable_d3dx11_42
938 enable_d3dx11_43
939 enable_d3dx9_24
940 enable_d3dx9_25
941 enable_d3dx9_26
942 enable_d3dx9_27
943 enable_d3dx9_28
944 enable_d3dx9_29
945 enable_d3dx9_30
946 enable_d3dx9_31
947 enable_d3dx9_32
948 enable_d3dx9_33
949 enable_d3dx9_34
950 enable_d3dx9_35
951 enable_d3dx9_36
952 enable_d3dx9_37
953 enable_d3dx9_38
954 enable_d3dx9_39
955 enable_d3dx9_40
956 enable_d3dx9_41
957 enable_d3dx9_42
958 enable_d3dx9_43
959 enable_d3dxof
960 enable_dbgeng
961 enable_dbghelp
962 enable_dciman32
963 enable_ddraw
964 enable_ddrawex
965 enable_devenum
966 enable_dhcpcsvc
967 enable_difxapi
968 enable_dinput
969 enable_dinput8
970 enable_dispex
971 enable_dmband
972 enable_dmcompos
973 enable_dmime
974 enable_dmloader
975 enable_dmscript
976 enable_dmstyle
977 enable_dmsynth
978 enable_dmusic
979 enable_dmusic32
980 enable_dnsapi
981 enable_dplay
982 enable_dplayx
983 enable_dpnaddr
984 enable_dpnet
985 enable_dpnhpast
986 enable_dpnlobby
987 enable_dpwsockx
988 enable_drmclien
989 enable_dsound
990 enable_dssenh
991 enable_dswave
992 enable_dwmapi
993 enable_dwrite
994 enable_dxdiagn
995 enable_dxgi
996 enable_explorerframe
997 enable_faultrep
998 enable_fltlib
999 enable_fusion
1000 enable_fwpuclnt
1001 enable_gameux
1002 enable_gdi32
1003 enable_gdiplus
1004 enable_glu32
1005 enable_gphoto2_ds
1006 enable_gpkcsp
1007 enable_hal
1008 enable_hhctrl_ocx
1009 enable_hid
1010 enable_hlink
1011 enable_hnetcfg
1012 enable_httpapi
1013 enable_iccvid
1014 enable_icmp
1015 enable_ieframe
1016 enable_imaadp32_acm
1017 enable_imagehlp
1018 enable_imm32
1019 enable_inetcomm
1020 enable_inetcpl_cpl
1021 enable_inetmib1
1022 enable_infosoft
1023 enable_initpki
1024 enable_inkobj
1025 enable_inseng
1026 enable_iphlpapi
1027 enable_itircl
1028 enable_itss
1029 enable_joy_cpl
1030 enable_jscript
1031 enable_kernel32
1032 enable_ktmw32
1033 enable_loadperf
1034 enable_localspl
1035 enable_localui
1036 enable_lz32
1037 enable_mapi32
1038 enable_mapistub
1039 enable_mciavi32
1040 enable_mcicda
1041 enable_mciqtz32
1042 enable_mciseq
1043 enable_mciwave
1044 enable_mgmtapi
1045 enable_midimap
1046 enable_mlang
1047 enable_mmcndmgr
1048 enable_mmdevapi
1049 enable_mountmgr_sys
1050 enable_mpr
1051 enable_mprapi
1052 enable_msacm32_drv
1053 enable_msacm32
1054 enable_msadp32_acm
1055 enable_mscat32
1056 enable_mscms
1057 enable_mscoree
1058 enable_msctf
1059 enable_msdaps
1060 enable_msdmo
1061 enable_msftedit
1062 enable_msg711_acm
1063 enable_msgsm32_acm
1064 enable_mshtml_tlb
1065 enable_mshtml
1066 enable_msi
1067 enable_msident
1068 enable_msimg32
1069 enable_msimsg
1070 enable_msimtf
1071 enable_msisip
1072 enable_msisys_ocx
1073 enable_msls31
1074 enable_msnet32
1075 enable_mspatcha
1076 enable_msrle32
1077 enable_mssign32
1078 enable_mssip32
1079 enable_mstask
1080 enable_msvcirt
1081 enable_msvcm80
1082 enable_msvcm90
1083 enable_msvcp100
1084 enable_msvcp110
1085 enable_msvcp60
1086 enable_msvcp70
1087 enable_msvcp71
1088 enable_msvcp80
1089 enable_msvcp90
1090 enable_msvcr100
1091 enable_msvcr110
1092 enable_msvcr70
1093 enable_msvcr71
1094 enable_msvcr80
1095 enable_msvcr90
1096 enable_msvcrt
1097 enable_msvcrt20
1098 enable_msvcrt40
1099 enable_msvcrtd
1100 enable_msvfw32
1101 enable_msvidc32
1102 enable_mswsock
1103 enable_msxml
1104 enable_msxml2
1105 enable_msxml3
1106 enable_msxml4
1107 enable_msxml6
1108 enable_nddeapi
1109 enable_netapi32
1110 enable_netcfgx
1111 enable_newdev
1112 enable_normaliz
1113 enable_npmshtml
1114 enable_ntdll
1115 enable_ntdsapi
1116 enable_ntoskrnl_exe
1117 enable_ntprint
1118 enable_objsel
1119 enable_odbc32
1120 enable_odbccp32
1121 enable_odbccu32
1122 enable_ole32
1123 enable_oleacc
1124 enable_oleaut32
1125 enable_olecli32
1126 enable_oledb32
1127 enable_oledlg
1128 enable_olepro32
1129 enable_olesvr32
1130 enable_olethk32
1131 enable_openal32
1132 enable_opencl
1133 enable_opengl32
1134 enable_pdh
1135 enable_photometadatahandler
1136 enable_pidgen
1137 enable_powrprof
1138 enable_printui
1139 enable_propsys
1140 enable_psapi
1141 enable_pstorec
1142 enable_qcap
1143 enable_qedit
1144 enable_qmgr
1145 enable_qmgrprxy
1146 enable_quartz
1147 enable_query
1148 enable_rasapi32
1149 enable_rasdlg
1150 enable_regapi
1151 enable_resutils
1152 enable_riched20
1153 enable_riched32
1154 enable_rpcrt4
1155 enable_rsabase
1156 enable_rsaenh
1157 enable_rstrtmgr
1158 enable_rtutils
1159 enable_samlib
1160 enable_sane_ds
1161 enable_scarddlg
1162 enable_sccbase
1163 enable_schannel
1164 enable_scrrun
1165 enable_scsiport_sys
1166 enable_secur32
1167 enable_security
1168 enable_sensapi
1169 enable_serialui
1170 enable_setupapi
1171 enable_sfc
1172 enable_sfc_os
1173 enable_shdoclc
1174 enable_shdocvw
1175 enable_shell32
1176 enable_shfolder
1177 enable_shlwapi
1178 enable_slbcsp
1179 enable_slc
1180 enable_snmpapi
1181 enable_softpub
1182 enable_spoolss
1183 enable_stdole2_tlb
1184 enable_stdole32_tlb
1185 enable_sti
1186 enable_svrapi
1187 enable_sxs
1188 enable_t2embed
1189 enable_tapi32
1190 enable_taskschd
1191 enable_traffic
1192 enable_twain_32
1193 enable_unicows
1194 enable_updspapi
1195 enable_url
1196 enable_urlmon
1197 enable_usbd_sys
1198 enable_user32
1199 enable_userenv
1200 enable_usp10
1201 enable_uxtheme
1202 enable_vbscript
1203 enable_vcomp
1204 enable_vcomp100
1205 enable_vcomp90
1206 enable_vdmdbg
1207 enable_version
1208 enable_wbemdisp
1209 enable_wbemprox
1210 enable_webservices
1211 enable_wer
1212 enable_wevtapi
1213 enable_wiaservc
1214 enable_windowscodecs
1215 enable_windowscodecsext
1216 enable_winealsa_drv
1217 enable_winecoreaudio_drv
1218 enable_wined3d
1219 enable_winegstreamer
1220 enable_winejoystick_drv
1221 enable_winemac_drv
1222 enable_winemapi
1223 enable_winemp3_acm
1224 enable_wineoss_drv
1225 enable_wineps_drv
1226 enable_wineqtdecoder
1227 enable_winex11_drv
1228 enable_wing32
1229 enable_winhttp
1230 enable_wininet
1231 enable_winmm
1232 enable_winnls32
1233 enable_winscard
1234 enable_winspool_drv
1235 enable_winsta
1236 enable_wintab32
1237 enable_wintrust
1238 enable_wlanapi
1239 enable_wldap32
1240 enable_wmi
1241 enable_wmiutils
1242 enable_wmvcore
1243 enable_wnaspi32
1244 enable_ws2_32
1245 enable_wshom_ocx
1246 enable_wsnmp32
1247 enable_wsock32
1248 enable_wtsapi32
1249 enable_wuapi
1250 enable_wuaueng
1251 enable_xapofx1_1
1252 enable_xinput1_1
1253 enable_xinput1_2
1254 enable_xinput1_3
1255 enable_xinput1_4
1256 enable_xinput9_1_0
1257 enable_xmllite
1258 enable_xolehlp
1259 enable_xpsprint
1260 enable_xpssvcs
1261 enable_documentation
1262 enable_fonts
1263 enable_include
1264 enable_libs_port
1265 enable_libs_wine
1266 enable_libs_wpp
1267 enable_loader
1268 enable_arp
1269 enable_aspnet_regiis
1270 enable_attrib
1271 enable_cabarc
1272 enable_cacls
1273 enable_clock
1274 enable_cmd
1275 enable_conhost
1276 enable_control
1277 enable_cscript
1278 enable_dxdiag
1279 enable_eject
1280 enable_expand
1281 enable_explorer
1282 enable_extrac32
1283 enable_findstr
1284 enable_hh
1285 enable_hostname
1286 enable_icinfo
1287 enable_iexplore
1288 enable_ipconfig
1289 enable_lodctr
1290 enable_mofcomp
1291 enable_mshta
1292 enable_msiexec
1293 enable_net
1294 enable_netsh
1295 enable_netstat
1296 enable_ngen
1297 enable_notepad
1298 enable_oleview
1299 enable_ping
1300 enable_plugplay
1301 enable_presentationfontcache
1302 enable_progman
1303 enable_reg
1304 enable_regasm
1305 enable_regedit
1306 enable_regsvcs
1307 enable_regsvr32
1308 enable_rpcss
1309 enable_rundll32
1310 enable_sc
1311 enable_schtasks
1312 enable_secedit
1313 enable_servicemodelreg
1314 enable_services
1315 enable_spoolsv
1316 enable_start
1317 enable_svchost
1318 enable_taskkill
1319 enable_tasklist
1320 enable_taskmgr
1321 enable_termsv
1322 enable_uninstaller
1323 enable_unlodctr
1324 enable_view
1325 enable_wineboot
1326 enable_winebrowser
1327 enable_winecfg
1328 enable_wineconsole
1329 enable_winedbg
1330 enable_winedevice
1331 enable_winefile
1332 enable_winemenubuilder
1333 enable_winemine
1334 enable_winemsibuilder
1335 enable_winepath
1336 enable_winetest
1337 enable_winhlp32
1338 enable_winver
1339 enable_wmic
1340 enable_wordpad
1341 enable_write
1342 enable_wscript
1343 enable_wusa
1344 enable_xcopy
1345 enable_server
1346 enable_tools
1348 ac_precious_vars='build_alias
1349 host_alias
1350 target_alias
1352 CFLAGS
1353 LDFLAGS
1354 LIBS
1355 CPPFLAGS
1357 CXXFLAGS
1360 XMKMF
1361 XML2_CFLAGS
1362 XML2_LIBS
1363 XSLT_CFLAGS
1364 XSLT_LIBS
1365 DBUS_CFLAGS
1366 DBUS_LIBS
1367 HAL_CFLAGS
1368 HAL_LIBS
1369 GNUTLS_CFLAGS
1370 GNUTLS_LIBS
1371 SANE_CFLAGS
1372 SANE_LIBS
1373 GPHOTO2_CFLAGS
1374 GPHOTO2_LIBS
1375 GPHOTO2_PORT_CFLAGS
1376 GPHOTO2_PORT_LIBS
1377 LCMS2_CFLAGS
1378 LCMS2_LIBS
1379 FREETYPE_CFLAGS
1380 FREETYPE_LIBS
1381 GSTREAMER_CFLAGS
1382 GSTREAMER_LIBS
1383 CAPI20_CFLAGS
1384 CAPI20_LIBS
1385 JPEG_CFLAGS
1386 JPEG_LIBS
1387 PNG_CFLAGS
1388 PNG_LIBS
1389 TIFF_CFLAGS
1390 TIFF_LIBS
1391 MPG123_CFLAGS
1392 MPG123_LIBS'
1395 # Initialize some variables set by options.
1396 ac_init_help=
1397 ac_init_version=false
1398 ac_unrecognized_opts=
1399 ac_unrecognized_sep=
1400 # The variables have the same names as the options, with
1401 # dashes changed to underlines.
1402 cache_file=/dev/null
1403 exec_prefix=NONE
1404 no_create=
1405 no_recursion=
1406 prefix=NONE
1407 program_prefix=NONE
1408 program_suffix=NONE
1409 program_transform_name=s,x,x,
1410 silent=
1411 site=
1412 srcdir=
1413 verbose=
1414 x_includes=NONE
1415 x_libraries=NONE
1417 # Installation directory options.
1418 # These are left unexpanded so users can "make install exec_prefix=/foo"
1419 # and all the variables that are supposed to be based on exec_prefix
1420 # by default will actually change.
1421 # Use braces instead of parens because sh, perl, etc. also accept them.
1422 # (The list follows the same order as the GNU Coding Standards.)
1423 bindir='${exec_prefix}/bin'
1424 sbindir='${exec_prefix}/sbin'
1425 libexecdir='${exec_prefix}/libexec'
1426 datarootdir='${prefix}/share'
1427 datadir='${datarootdir}'
1428 sysconfdir='${prefix}/etc'
1429 sharedstatedir='${prefix}/com'
1430 localstatedir='${prefix}/var'
1431 includedir='${prefix}/include'
1432 oldincludedir='/usr/include'
1433 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1434 infodir='${datarootdir}/info'
1435 htmldir='${docdir}'
1436 dvidir='${docdir}'
1437 pdfdir='${docdir}'
1438 psdir='${docdir}'
1439 libdir='${exec_prefix}/lib'
1440 localedir='${datarootdir}/locale'
1441 mandir='${datarootdir}/man'
1443 ac_prev=
1444 ac_dashdash=
1445 for ac_option
1447 # If the previous option needs an argument, assign it.
1448 if test -n "$ac_prev"; then
1449 eval $ac_prev=\$ac_option
1450 ac_prev=
1451 continue
1454 case $ac_option in
1455 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1456 *=) ac_optarg= ;;
1457 *) ac_optarg=yes ;;
1458 esac
1460 # Accept the important Cygnus configure options, so we can diagnose typos.
1462 case $ac_dashdash$ac_option in
1464 ac_dashdash=yes ;;
1466 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1467 ac_prev=bindir ;;
1468 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1469 bindir=$ac_optarg ;;
1471 -build | --build | --buil | --bui | --bu)
1472 ac_prev=build_alias ;;
1473 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1474 build_alias=$ac_optarg ;;
1476 -cache-file | --cache-file | --cache-fil | --cache-fi \
1477 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1478 ac_prev=cache_file ;;
1479 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1480 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1481 cache_file=$ac_optarg ;;
1483 --config-cache | -C)
1484 cache_file=config.cache ;;
1486 -datadir | --datadir | --datadi | --datad)
1487 ac_prev=datadir ;;
1488 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1489 datadir=$ac_optarg ;;
1491 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1492 | --dataroo | --dataro | --datar)
1493 ac_prev=datarootdir ;;
1494 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1495 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1496 datarootdir=$ac_optarg ;;
1498 -disable-* | --disable-*)
1499 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1500 # Reject names that are not valid shell variable names.
1501 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1502 as_fn_error $? "invalid feature name: $ac_useropt"
1503 ac_useropt_orig=$ac_useropt
1504 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1505 case $ac_user_opts in
1507 "enable_$ac_useropt"
1508 "*) ;;
1509 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1510 ac_unrecognized_sep=', ';;
1511 esac
1512 eval enable_$ac_useropt=no ;;
1514 -docdir | --docdir | --docdi | --doc | --do)
1515 ac_prev=docdir ;;
1516 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1517 docdir=$ac_optarg ;;
1519 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1520 ac_prev=dvidir ;;
1521 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1522 dvidir=$ac_optarg ;;
1524 -enable-* | --enable-*)
1525 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1526 # Reject names that are not valid shell variable names.
1527 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1528 as_fn_error $? "invalid feature name: $ac_useropt"
1529 ac_useropt_orig=$ac_useropt
1530 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1531 case $ac_user_opts in
1533 "enable_$ac_useropt"
1534 "*) ;;
1535 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1536 ac_unrecognized_sep=', ';;
1537 esac
1538 eval enable_$ac_useropt=\$ac_optarg ;;
1540 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1541 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1542 | --exec | --exe | --ex)
1543 ac_prev=exec_prefix ;;
1544 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1545 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1546 | --exec=* | --exe=* | --ex=*)
1547 exec_prefix=$ac_optarg ;;
1549 -gas | --gas | --ga | --g)
1550 # Obsolete; use --with-gas.
1551 with_gas=yes ;;
1553 -help | --help | --hel | --he | -h)
1554 ac_init_help=long ;;
1555 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1556 ac_init_help=recursive ;;
1557 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1558 ac_init_help=short ;;
1560 -host | --host | --hos | --ho)
1561 ac_prev=host_alias ;;
1562 -host=* | --host=* | --hos=* | --ho=*)
1563 host_alias=$ac_optarg ;;
1565 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1566 ac_prev=htmldir ;;
1567 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1568 | --ht=*)
1569 htmldir=$ac_optarg ;;
1571 -includedir | --includedir | --includedi | --included | --include \
1572 | --includ | --inclu | --incl | --inc)
1573 ac_prev=includedir ;;
1574 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1575 | --includ=* | --inclu=* | --incl=* | --inc=*)
1576 includedir=$ac_optarg ;;
1578 -infodir | --infodir | --infodi | --infod | --info | --inf)
1579 ac_prev=infodir ;;
1580 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1581 infodir=$ac_optarg ;;
1583 -libdir | --libdir | --libdi | --libd)
1584 ac_prev=libdir ;;
1585 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1586 libdir=$ac_optarg ;;
1588 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1589 | --libexe | --libex | --libe)
1590 ac_prev=libexecdir ;;
1591 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1592 | --libexe=* | --libex=* | --libe=*)
1593 libexecdir=$ac_optarg ;;
1595 -localedir | --localedir | --localedi | --localed | --locale)
1596 ac_prev=localedir ;;
1597 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1598 localedir=$ac_optarg ;;
1600 -localstatedir | --localstatedir | --localstatedi | --localstated \
1601 | --localstate | --localstat | --localsta | --localst | --locals)
1602 ac_prev=localstatedir ;;
1603 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1604 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1605 localstatedir=$ac_optarg ;;
1607 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1608 ac_prev=mandir ;;
1609 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1610 mandir=$ac_optarg ;;
1612 -nfp | --nfp | --nf)
1613 # Obsolete; use --without-fp.
1614 with_fp=no ;;
1616 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1617 | --no-cr | --no-c | -n)
1618 no_create=yes ;;
1620 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1621 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1622 no_recursion=yes ;;
1624 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1625 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1626 | --oldin | --oldi | --old | --ol | --o)
1627 ac_prev=oldincludedir ;;
1628 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1629 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1630 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1631 oldincludedir=$ac_optarg ;;
1633 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1634 ac_prev=prefix ;;
1635 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1636 prefix=$ac_optarg ;;
1638 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1639 | --program-pre | --program-pr | --program-p)
1640 ac_prev=program_prefix ;;
1641 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1642 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1643 program_prefix=$ac_optarg ;;
1645 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1646 | --program-suf | --program-su | --program-s)
1647 ac_prev=program_suffix ;;
1648 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1649 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1650 program_suffix=$ac_optarg ;;
1652 -program-transform-name | --program-transform-name \
1653 | --program-transform-nam | --program-transform-na \
1654 | --program-transform-n | --program-transform- \
1655 | --program-transform | --program-transfor \
1656 | --program-transfo | --program-transf \
1657 | --program-trans | --program-tran \
1658 | --progr-tra | --program-tr | --program-t)
1659 ac_prev=program_transform_name ;;
1660 -program-transform-name=* | --program-transform-name=* \
1661 | --program-transform-nam=* | --program-transform-na=* \
1662 | --program-transform-n=* | --program-transform-=* \
1663 | --program-transform=* | --program-transfor=* \
1664 | --program-transfo=* | --program-transf=* \
1665 | --program-trans=* | --program-tran=* \
1666 | --progr-tra=* | --program-tr=* | --program-t=*)
1667 program_transform_name=$ac_optarg ;;
1669 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1670 ac_prev=pdfdir ;;
1671 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1672 pdfdir=$ac_optarg ;;
1674 -psdir | --psdir | --psdi | --psd | --ps)
1675 ac_prev=psdir ;;
1676 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1677 psdir=$ac_optarg ;;
1679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1680 | -silent | --silent | --silen | --sile | --sil)
1681 silent=yes ;;
1683 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1684 ac_prev=sbindir ;;
1685 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1686 | --sbi=* | --sb=*)
1687 sbindir=$ac_optarg ;;
1689 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1690 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1691 | --sharedst | --shareds | --shared | --share | --shar \
1692 | --sha | --sh)
1693 ac_prev=sharedstatedir ;;
1694 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1695 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1696 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1697 | --sha=* | --sh=*)
1698 sharedstatedir=$ac_optarg ;;
1700 -site | --site | --sit)
1701 ac_prev=site ;;
1702 -site=* | --site=* | --sit=*)
1703 site=$ac_optarg ;;
1705 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1706 ac_prev=srcdir ;;
1707 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1708 srcdir=$ac_optarg ;;
1710 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1711 | --syscon | --sysco | --sysc | --sys | --sy)
1712 ac_prev=sysconfdir ;;
1713 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1714 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1715 sysconfdir=$ac_optarg ;;
1717 -target | --target | --targe | --targ | --tar | --ta | --t)
1718 ac_prev=target_alias ;;
1719 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1720 target_alias=$ac_optarg ;;
1722 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1723 verbose=yes ;;
1725 -version | --version | --versio | --versi | --vers | -V)
1726 ac_init_version=: ;;
1728 -with-* | --with-*)
1729 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1730 # Reject names that are not valid shell variable names.
1731 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1732 as_fn_error $? "invalid package name: $ac_useropt"
1733 ac_useropt_orig=$ac_useropt
1734 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1735 case $ac_user_opts in
1737 "with_$ac_useropt"
1738 "*) ;;
1739 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1740 ac_unrecognized_sep=', ';;
1741 esac
1742 eval with_$ac_useropt=\$ac_optarg ;;
1744 -without-* | --without-*)
1745 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1746 # Reject names that are not valid shell variable names.
1747 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1748 as_fn_error $? "invalid package name: $ac_useropt"
1749 ac_useropt_orig=$ac_useropt
1750 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1751 case $ac_user_opts in
1753 "with_$ac_useropt"
1754 "*) ;;
1755 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1756 ac_unrecognized_sep=', ';;
1757 esac
1758 eval with_$ac_useropt=no ;;
1760 --x)
1761 # Obsolete; use --with-x.
1762 with_x=yes ;;
1764 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1765 | --x-incl | --x-inc | --x-in | --x-i)
1766 ac_prev=x_includes ;;
1767 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1768 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1769 x_includes=$ac_optarg ;;
1771 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1772 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1773 ac_prev=x_libraries ;;
1774 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1775 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1776 x_libraries=$ac_optarg ;;
1778 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1779 Try \`$0 --help' for more information"
1782 *=*)
1783 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1784 # Reject names that are not valid shell variable names.
1785 case $ac_envvar in #(
1786 '' | [0-9]* | *[!_$as_cr_alnum]* )
1787 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1788 esac
1789 eval $ac_envvar=\$ac_optarg
1790 export $ac_envvar ;;
1793 # FIXME: should be removed in autoconf 3.0.
1794 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1795 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1796 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1797 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1800 esac
1801 done
1803 if test -n "$ac_prev"; then
1804 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1805 as_fn_error $? "missing argument to $ac_option"
1808 if test -n "$ac_unrecognized_opts"; then
1809 case $enable_option_checking in
1810 no) ;;
1811 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1812 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1813 esac
1816 # Check all directory arguments for consistency.
1817 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1818 datadir sysconfdir sharedstatedir localstatedir includedir \
1819 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1820 libdir localedir mandir
1822 eval ac_val=\$$ac_var
1823 # Remove trailing slashes.
1824 case $ac_val in
1825 */ )
1826 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1827 eval $ac_var=\$ac_val;;
1828 esac
1829 # Be sure to have absolute directory names.
1830 case $ac_val in
1831 [\\/$]* | ?:[\\/]* ) continue;;
1832 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1833 esac
1834 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1835 done
1837 # There might be people who depend on the old broken behavior: `$host'
1838 # used to hold the argument of --host etc.
1839 # FIXME: To remove some day.
1840 build=$build_alias
1841 host=$host_alias
1842 target=$target_alias
1844 # FIXME: To remove some day.
1845 if test "x$host_alias" != x; then
1846 if test "x$build_alias" = x; then
1847 cross_compiling=maybe
1848 elif test "x$build_alias" != "x$host_alias"; then
1849 cross_compiling=yes
1853 ac_tool_prefix=
1854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1856 test "$silent" = yes && exec 6>/dev/null
1859 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1860 ac_ls_di=`ls -di .` &&
1861 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1862 as_fn_error $? "working directory cannot be determined"
1863 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1864 as_fn_error $? "pwd does not report name of working directory"
1867 # Find the source files, if location was not specified.
1868 if test -z "$srcdir"; then
1869 ac_srcdir_defaulted=yes
1870 # Try the directory containing this script, then the parent directory.
1871 ac_confdir=`$as_dirname -- "$as_myself" ||
1872 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1873 X"$as_myself" : 'X\(//\)[^/]' \| \
1874 X"$as_myself" : 'X\(//\)$' \| \
1875 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1876 $as_echo X"$as_myself" |
1877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1878 s//\1/
1881 /^X\(\/\/\)[^/].*/{
1882 s//\1/
1885 /^X\(\/\/\)$/{
1886 s//\1/
1889 /^X\(\/\).*/{
1890 s//\1/
1893 s/.*/./; q'`
1894 srcdir=$ac_confdir
1895 if test ! -r "$srcdir/$ac_unique_file"; then
1896 srcdir=..
1898 else
1899 ac_srcdir_defaulted=no
1901 if test ! -r "$srcdir/$ac_unique_file"; then
1902 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1903 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1905 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1906 ac_abs_confdir=`(
1907 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1908 pwd)`
1909 # When building in place, set srcdir=.
1910 if test "$ac_abs_confdir" = "$ac_pwd"; then
1911 srcdir=.
1913 # Remove unnecessary trailing slashes from srcdir.
1914 # Double slashes in file names in object file debugging info
1915 # mess up M-x gdb in Emacs.
1916 case $srcdir in
1917 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1918 esac
1919 for ac_var in $ac_precious_vars; do
1920 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1921 eval ac_env_${ac_var}_value=\$${ac_var}
1922 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1923 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1924 done
1927 # Report the --help message.
1929 if test "$ac_init_help" = "long"; then
1930 # Omit some internal or obsolete options to make the list less imposing.
1931 # This message is too long to be a string in the A/UX 3.1 sh.
1932 cat <<_ACEOF
1933 \`configure' configures Wine 1.7.11 to adapt to many kinds of systems.
1935 Usage: $0 [OPTION]... [VAR=VALUE]...
1937 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1938 VAR=VALUE. See below for descriptions of some of the useful variables.
1940 Defaults for the options are specified in brackets.
1942 Configuration:
1943 -h, --help display this help and exit
1944 --help=short display options specific to this package
1945 --help=recursive display the short help of all the included packages
1946 -V, --version display version information and exit
1947 -q, --quiet, --silent do not print \`checking ...' messages
1948 --cache-file=FILE cache test results in FILE [disabled]
1949 -C, --config-cache alias for \`--cache-file=config.cache'
1950 -n, --no-create do not create output files
1951 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1953 Installation directories:
1954 --prefix=PREFIX install architecture-independent files in PREFIX
1955 [$ac_default_prefix]
1956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1957 [PREFIX]
1959 By default, \`make install' will install all the files in
1960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1962 for instance \`--prefix=\$HOME'.
1964 For better control, use the options below.
1966 Fine tuning of the installation directories:
1967 --bindir=DIR user executables [EPREFIX/bin]
1968 --sbindir=DIR system admin executables [EPREFIX/sbin]
1969 --libexecdir=DIR program executables [EPREFIX/libexec]
1970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1973 --libdir=DIR object code libraries [EPREFIX/lib]
1974 --includedir=DIR C header files [PREFIX/include]
1975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1976 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1977 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1978 --infodir=DIR info documentation [DATAROOTDIR/info]
1979 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1980 --mandir=DIR man documentation [DATAROOTDIR/man]
1981 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1982 --htmldir=DIR html documentation [DOCDIR]
1983 --dvidir=DIR dvi documentation [DOCDIR]
1984 --pdfdir=DIR pdf documentation [DOCDIR]
1985 --psdir=DIR ps documentation [DOCDIR]
1986 _ACEOF
1988 cat <<\_ACEOF
1990 X features:
1991 --x-includes=DIR X include files are in DIR
1992 --x-libraries=DIR X library files are in DIR
1994 System types:
1995 --build=BUILD configure for building on BUILD [guessed]
1996 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1997 _ACEOF
2000 if test -n "$ac_init_help"; then
2001 case $ac_init_help in
2002 short | recursive ) echo "Configuration of Wine 1.7.11:";;
2003 esac
2004 cat <<\_ACEOF
2006 Optional Features:
2007 --disable-option-checking ignore unrecognized --enable/--with options
2008 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2009 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2010 --disable-win16 do not include Win16 support
2011 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2012 binaries)
2013 --disable-tests do not build the regression tests
2014 --enable-maintainer-mode
2015 enable maintainer-specific build rules
2016 --disable-largefile omit support for large files
2018 Optional Packages:
2019 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2020 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2021 --without-alsa do not use the Alsa sound support
2022 --without-capi do not use CAPI (ISDN support)
2023 --without-cms do not use CMS (color management support)
2024 --without-coreaudio do not use the CoreAudio sound support
2025 --without-cups do not use CUPS
2026 --without-curses do not use (n)curses
2027 --without-dbus do not use DBus (dynamic device support)
2028 --without-fontconfig do not use fontconfig
2029 --without-freetype do not use the FreeType library
2030 --without-gettext do not use gettext
2031 --with-gettextpo use the GetTextPO library to rebuild po files
2032 --without-gphoto do not use gphoto (Digital Camera support)
2033 --without-glu do not use the GLU library
2034 --without-gnutls do not use GnuTLS (schannel support)
2035 --without-gsm do not use libgsm (GSM 06.10 codec support)
2036 --without-gstreamer do not use GStreamer (codecs support)
2037 --without-hal do not use HAL (dynamic device support)
2038 --without-jpeg do not use JPEG
2039 --without-ldap do not use LDAP
2040 --without-mpg123 do not use the mpg123 library
2041 --without-netapi do not use the Samba NetAPI library
2042 --without-openal do not use OpenAL
2043 --without-opencl do not use OpenCL
2044 --without-opengl do not use OpenGL
2045 --without-osmesa do not use the OSMesa library
2046 --without-oss do not use the OSS sound support
2047 --without-png do not use PNG
2048 --without-pthread do not use the pthread library
2049 --without-sane do not use SANE (scanner support)
2050 --without-tiff do not use TIFF
2051 --without-v4l do not use v4l1 (v4l support)
2052 --without-xcomposite do not use the Xcomposite extension
2053 --without-xcursor do not use the Xcursor extension
2054 --without-xinerama do not use Xinerama (multi-monitor support)
2055 --without-xinput do not use the Xinput extension
2056 --without-xinput2 do not use the Xinput 2 extension
2057 --without-xml do not use XML
2058 --without-xrandr do not use Xrandr (resolution changes)
2059 --without-xrender do not use the Xrender extension
2060 --without-xshape do not use the Xshape extension
2061 --without-xshm do not use XShm (shared memory extension)
2062 --without-xslt do not use XSLT
2063 --without-xxf86vm do not use XFree video mode extension
2064 --without-zlib do not use Zlib (data compression)
2065 --with-wine-tools=DIR use Wine tools from directory DIR
2066 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2067 --with-x use the X Window System
2069 Some influential environment variables:
2070 CC C compiler command
2071 CFLAGS C compiler flags
2072 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2073 nonstandard directory <lib dir>
2074 LIBS libraries to pass to the linker, e.g. -l<library>
2075 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2076 you have headers in a nonstandard directory <include dir>
2077 CXX C++ compiler command
2078 CXXFLAGS C++ compiler flags
2079 CPP C preprocessor
2080 XMKMF Path to xmkmf, Makefile generator for X Window System
2081 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2082 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2083 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2084 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2085 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2086 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2087 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2088 HAL_LIBS Linker flags for hal, overriding pkg-config
2089 GNUTLS_CFLAGS
2090 C compiler flags for gnutls, overriding pkg-config
2091 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2092 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2093 SANE_LIBS Linker flags for libsane, overriding pkg-config
2094 GPHOTO2_CFLAGS
2095 C compiler flags for libgphoto2, overriding pkg-config
2096 GPHOTO2_LIBS
2097 Linker flags for libgphoto2, overriding pkg-config
2098 GPHOTO2_PORT_CFLAGS
2099 C compiler flags for libgphoto2_port, overriding pkg-config
2100 GPHOTO2_PORT_LIBS
2101 Linker flags for libgphoto2_port, overriding pkg-config
2102 LCMS2_CFLAGS
2103 C compiler flags for lcms2, overriding pkg-config
2104 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2105 FREETYPE_CFLAGS
2106 C compiler flags for freetype2, overriding pkg-config
2107 FREETYPE_LIBS
2108 Linker flags for freetype2, overriding pkg-config
2109 GSTREAMER_CFLAGS
2110 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2111 GSTREAMER_LIBS
2112 Linker flags for gstreamer-app-0.10, overriding pkg-config
2113 CAPI20_CFLAGS
2114 C compiler flags for capi20, overriding pkg-config
2115 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2116 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2117 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2118 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2119 PNG_LIBS Linker flags for libpng, overriding pkg-config
2120 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2121 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2122 MPG123_CFLAGS
2123 C compiler flags for libmpg123, overriding pkg-config
2124 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2126 Use these variables to override the choices made by `configure' or to help
2127 it to find libraries and programs with nonstandard names/locations.
2129 Report bugs to <wine-devel@winehq.org>.
2130 Wine home page: <http://www.winehq.org>.
2131 _ACEOF
2132 ac_status=$?
2135 if test "$ac_init_help" = "recursive"; then
2136 # If there are subdirs, report their specific --help.
2137 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2138 test -d "$ac_dir" ||
2139 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2140 continue
2141 ac_builddir=.
2143 case "$ac_dir" in
2144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2146 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2147 # A ".." for each directory in $ac_dir_suffix.
2148 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2149 case $ac_top_builddir_sub in
2150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2152 esac ;;
2153 esac
2154 ac_abs_top_builddir=$ac_pwd
2155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2156 # for backward compatibility:
2157 ac_top_builddir=$ac_top_build_prefix
2159 case $srcdir in
2160 .) # We are building in place.
2161 ac_srcdir=.
2162 ac_top_srcdir=$ac_top_builddir_sub
2163 ac_abs_top_srcdir=$ac_pwd ;;
2164 [\\/]* | ?:[\\/]* ) # Absolute name.
2165 ac_srcdir=$srcdir$ac_dir_suffix;
2166 ac_top_srcdir=$srcdir
2167 ac_abs_top_srcdir=$srcdir ;;
2168 *) # Relative name.
2169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2170 ac_top_srcdir=$ac_top_build_prefix$srcdir
2171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2172 esac
2173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2175 cd "$ac_dir" || { ac_status=$?; continue; }
2176 # Check for guested configure.
2177 if test -f "$ac_srcdir/configure.gnu"; then
2178 echo &&
2179 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2180 elif test -f "$ac_srcdir/configure"; then
2181 echo &&
2182 $SHELL "$ac_srcdir/configure" --help=recursive
2183 else
2184 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2185 fi || ac_status=$?
2186 cd "$ac_pwd" || { ac_status=$?; break; }
2187 done
2190 test -n "$ac_init_help" && exit $ac_status
2191 if $ac_init_version; then
2192 cat <<\_ACEOF
2193 Wine configure 1.7.11
2194 generated by GNU Autoconf 2.69
2196 Copyright (C) 2012 Free Software Foundation, Inc.
2197 This configure script is free software; the Free Software Foundation
2198 gives unlimited permission to copy, distribute and modify it.
2199 _ACEOF
2200 exit
2203 ## ------------------------ ##
2204 ## Autoconf initialization. ##
2205 ## ------------------------ ##
2207 # ac_fn_c_try_compile LINENO
2208 # --------------------------
2209 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2210 ac_fn_c_try_compile ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 rm -f conftest.$ac_objext
2214 if { { ac_try="$ac_compile"
2215 case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2218 esac
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221 (eval "$ac_compile") 2>conftest.err
2222 ac_status=$?
2223 if test -s conftest.err; then
2224 grep -v '^ *+' conftest.err >conftest.er1
2225 cat conftest.er1 >&5
2226 mv -f conftest.er1 conftest.err
2228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2229 test $ac_status = 0; } && {
2230 test -z "$ac_c_werror_flag" ||
2231 test ! -s conftest.err
2232 } && test -s conftest.$ac_objext; then :
2233 ac_retval=0
2234 else
2235 $as_echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2238 ac_retval=1
2240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241 as_fn_set_status $ac_retval
2243 } # ac_fn_c_try_compile
2245 # ac_fn_cxx_try_compile LINENO
2246 # ----------------------------
2247 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2248 ac_fn_cxx_try_compile ()
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 rm -f conftest.$ac_objext
2252 if { { ac_try="$ac_compile"
2253 case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256 esac
2257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258 $as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_compile") 2>conftest.err
2260 ac_status=$?
2261 if test -s conftest.err; then
2262 grep -v '^ *+' conftest.err >conftest.er1
2263 cat conftest.er1 >&5
2264 mv -f conftest.er1 conftest.err
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; } && {
2268 test -z "$ac_cxx_werror_flag" ||
2269 test ! -s conftest.err
2270 } && test -s conftest.$ac_objext; then :
2271 ac_retval=0
2272 else
2273 $as_echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2276 ac_retval=1
2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279 as_fn_set_status $ac_retval
2281 } # ac_fn_cxx_try_compile
2283 # ac_fn_c_try_link LINENO
2284 # -----------------------
2285 # Try to link conftest.$ac_ext, and return whether this succeeded.
2286 ac_fn_c_try_link ()
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 rm -f conftest.$ac_objext conftest$ac_exeext
2290 if { { ac_try="$ac_link"
2291 case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294 esac
2295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296 $as_echo "$ac_try_echo"; } >&5
2297 (eval "$ac_link") 2>conftest.err
2298 ac_status=$?
2299 if test -s conftest.err; then
2300 grep -v '^ *+' conftest.err >conftest.er1
2301 cat conftest.er1 >&5
2302 mv -f conftest.er1 conftest.err
2304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2305 test $ac_status = 0; } && {
2306 test -z "$ac_c_werror_flag" ||
2307 test ! -s conftest.err
2308 } && test -s conftest$ac_exeext && {
2309 test "$cross_compiling" = yes ||
2310 test -x conftest$ac_exeext
2311 }; then :
2312 ac_retval=0
2313 else
2314 $as_echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2317 ac_retval=1
2319 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2320 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2321 # interfere with the next link command; also delete a directory that is
2322 # left behind by Apple's compiler. We do this before executing the actions.
2323 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2324 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2325 as_fn_set_status $ac_retval
2327 } # ac_fn_c_try_link
2329 # ac_fn_c_try_cpp LINENO
2330 # ----------------------
2331 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2332 ac_fn_c_try_cpp ()
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 if { { ac_try="$ac_cpp conftest.$ac_ext"
2336 case "(($ac_try" in
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2339 esac
2340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2341 $as_echo "$ac_try_echo"; } >&5
2342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2343 ac_status=$?
2344 if test -s conftest.err; then
2345 grep -v '^ *+' conftest.err >conftest.er1
2346 cat conftest.er1 >&5
2347 mv -f conftest.er1 conftest.err
2349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2350 test $ac_status = 0; } > conftest.i && {
2351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2352 test ! -s conftest.err
2353 }; then :
2354 ac_retval=0
2355 else
2356 $as_echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 ac_retval=1
2361 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362 as_fn_set_status $ac_retval
2364 } # ac_fn_c_try_cpp
2366 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2367 # -------------------------------------------------------
2368 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2369 # the include files in INCLUDES and setting the cache variable VAR
2370 # accordingly.
2371 ac_fn_c_check_header_mongrel ()
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 if eval \${$3+:} false; then :
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2376 $as_echo_n "checking for $2... " >&6; }
2377 if eval \${$3+:} false; then :
2378 $as_echo_n "(cached) " >&6
2380 eval ac_res=\$$3
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 else
2384 # Is the header compilable?
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2386 $as_echo_n "checking $2 usability... " >&6; }
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2390 #include <$2>
2391 _ACEOF
2392 if ac_fn_c_try_compile "$LINENO"; then :
2393 ac_header_compiler=yes
2394 else
2395 ac_header_compiler=no
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2399 $as_echo "$ac_header_compiler" >&6; }
2401 # Is the header present?
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2403 $as_echo_n "checking $2 presence... " >&6; }
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2406 #include <$2>
2407 _ACEOF
2408 if ac_fn_c_try_cpp "$LINENO"; then :
2409 ac_header_preproc=yes
2410 else
2411 ac_header_preproc=no
2413 rm -f conftest.err conftest.i conftest.$ac_ext
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2415 $as_echo "$ac_header_preproc" >&6; }
2417 # So? What about this header?
2418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2419 yes:no: )
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2421 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2423 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2425 no:yes:* )
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2427 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2429 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2431 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2433 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2435 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2436 ( $as_echo "## ------------------------------------ ##
2437 ## Report this to wine-devel@winehq.org ##
2438 ## ------------------------------------ ##"
2439 ) | sed "s/^/$as_me: WARNING: /" >&2
2441 esac
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if eval \${$3+:} false; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 eval "$3=\$ac_header_compiler"
2449 eval ac_res=\$$3
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455 } # ac_fn_c_check_header_mongrel
2457 # ac_fn_c_try_run LINENO
2458 # ----------------------
2459 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2460 # that executables *can* be run.
2461 ac_fn_c_try_run ()
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 if { { ac_try="$ac_link"
2465 case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2468 esac
2469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470 $as_echo "$ac_try_echo"; } >&5
2471 (eval "$ac_link") 2>&5
2472 ac_status=$?
2473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2475 { { case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478 esac
2479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2480 $as_echo "$ac_try_echo"; } >&5
2481 (eval "$ac_try") 2>&5
2482 ac_status=$?
2483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484 test $ac_status = 0; }; }; then :
2485 ac_retval=0
2486 else
2487 $as_echo "$as_me: program exited with status $ac_status" >&5
2488 $as_echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2491 ac_retval=$ac_status
2493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2495 as_fn_set_status $ac_retval
2497 } # ac_fn_c_try_run
2499 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2500 # -------------------------------------------------------
2501 # Tests whether HEADER exists and can be compiled using the include files in
2502 # INCLUDES, setting the cache variable VAR accordingly.
2503 ac_fn_c_check_header_compile ()
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2507 $as_echo_n "checking for $2... " >&6; }
2508 if eval \${$3+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2514 #include <$2>
2515 _ACEOF
2516 if ac_fn_c_try_compile "$LINENO"; then :
2517 eval "$3=yes"
2518 else
2519 eval "$3=no"
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 eval ac_res=\$$3
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525 $as_echo "$ac_res" >&6; }
2526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2528 } # ac_fn_c_check_header_compile
2530 # ac_fn_c_check_func LINENO FUNC VAR
2531 # ----------------------------------
2532 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2533 ac_fn_c_check_func ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537 $as_echo_n "checking for $2... " >&6; }
2538 if eval \${$3+:} false; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2543 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2545 #define $2 innocuous_$2
2547 /* System header to define __stub macros and hopefully few prototypes,
2548 which can conflict with char $2 (); below.
2549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2550 <limits.h> exists even on freestanding compilers. */
2552 #ifdef __STDC__
2553 # include <limits.h>
2554 #else
2555 # include <assert.h>
2556 #endif
2558 #undef $2
2560 /* Override any GCC internal prototype to avoid an error.
2561 Use char because int might match the return type of a GCC
2562 builtin and then its argument prototype would still apply. */
2563 #ifdef __cplusplus
2564 extern "C"
2565 #endif
2566 char $2 ();
2567 /* The GNU C library defines this for functions which it implements
2568 to always fail with ENOSYS. Some functions are actually named
2569 something starting with __ and the normal name is an alias. */
2570 #if defined __stub_$2 || defined __stub___$2
2571 choke me
2572 #endif
2575 main ()
2577 return $2 ();
2579 return 0;
2581 _ACEOF
2582 if ac_fn_c_try_link "$LINENO"; then :
2583 eval "$3=yes"
2584 else
2585 eval "$3=no"
2587 rm -f core conftest.err conftest.$ac_objext \
2588 conftest$ac_exeext conftest.$ac_ext
2590 eval ac_res=\$$3
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595 } # ac_fn_c_check_func
2597 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2598 # ----------------------------------------------------
2599 # Tries to find if the field MEMBER exists in type AGGR, after including
2600 # INCLUDES, setting cache variable VAR accordingly.
2601 ac_fn_c_check_member ()
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2605 $as_echo_n "checking for $2.$3... " >&6; }
2606 if eval \${$4+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2613 main ()
2615 static $2 ac_aggr;
2616 if (ac_aggr.$3)
2617 return 0;
2619 return 0;
2621 _ACEOF
2622 if ac_fn_c_try_compile "$LINENO"; then :
2623 eval "$4=yes"
2624 else
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h. */
2629 main ()
2631 static $2 ac_aggr;
2632 if (sizeof ac_aggr.$3)
2633 return 0;
2635 return 0;
2637 _ACEOF
2638 if ac_fn_c_try_compile "$LINENO"; then :
2639 eval "$4=yes"
2640 else
2641 eval "$4=no"
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 eval ac_res=\$$4
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2649 $as_echo "$ac_res" >&6; }
2650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2652 } # ac_fn_c_check_member
2654 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2655 # -------------------------------------------
2656 # Tests whether TYPE exists after having included INCLUDES, setting cache
2657 # variable VAR accordingly.
2658 ac_fn_c_check_type ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2662 $as_echo_n "checking for $2... " >&6; }
2663 if eval \${$3+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 eval "$3=no"
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2671 main ()
2673 if (sizeof ($2))
2674 return 0;
2676 return 0;
2678 _ACEOF
2679 if ac_fn_c_try_compile "$LINENO"; then :
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2684 main ()
2686 if (sizeof (($2)))
2687 return 0;
2689 return 0;
2691 _ACEOF
2692 if ac_fn_c_try_compile "$LINENO"; then :
2694 else
2695 eval "$3=yes"
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 eval ac_res=\$$3
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2703 $as_echo "$ac_res" >&6; }
2704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2706 } # ac_fn_c_check_type
2707 cat >config.log <<_ACEOF
2708 This file contains any messages produced by compilers while
2709 running configure, to aid debugging if configure makes a mistake.
2711 It was created by Wine $as_me 1.7.11, which was
2712 generated by GNU Autoconf 2.69. Invocation command line was
2714 $ $0 $@
2716 _ACEOF
2717 exec 5>>config.log
2719 cat <<_ASUNAME
2720 ## --------- ##
2721 ## Platform. ##
2722 ## --------- ##
2724 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2725 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2726 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2727 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2728 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2730 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2731 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2733 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2734 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2735 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2736 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2737 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2738 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2739 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2741 _ASUNAME
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 $as_echo "PATH: $as_dir"
2749 done
2750 IFS=$as_save_IFS
2752 } >&5
2754 cat >&5 <<_ACEOF
2757 ## ----------- ##
2758 ## Core tests. ##
2759 ## ----------- ##
2761 _ACEOF
2764 # Keep a trace of the command line.
2765 # Strip out --no-create and --no-recursion so they do not pile up.
2766 # Strip out --silent because we don't want to record it for future runs.
2767 # Also quote any args containing shell meta-characters.
2768 # Make two passes to allow for proper duplicate-argument suppression.
2769 ac_configure_args=
2770 ac_configure_args0=
2771 ac_configure_args1=
2772 ac_must_keep_next=false
2773 for ac_pass in 1 2
2775 for ac_arg
2777 case $ac_arg in
2778 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2780 | -silent | --silent | --silen | --sile | --sil)
2781 continue ;;
2782 *\'*)
2783 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2784 esac
2785 case $ac_pass in
2786 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2788 as_fn_append ac_configure_args1 " '$ac_arg'"
2789 if test $ac_must_keep_next = true; then
2790 ac_must_keep_next=false # Got value, back to normal.
2791 else
2792 case $ac_arg in
2793 *=* | --config-cache | -C | -disable-* | --disable-* \
2794 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2795 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2796 | -with-* | --with-* | -without-* | --without-* | --x)
2797 case "$ac_configure_args0 " in
2798 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2799 esac
2801 -* ) ac_must_keep_next=true ;;
2802 esac
2804 as_fn_append ac_configure_args " '$ac_arg'"
2806 esac
2807 done
2808 done
2809 { ac_configure_args0=; unset ac_configure_args0;}
2810 { ac_configure_args1=; unset ac_configure_args1;}
2812 # When interrupted or exit'd, cleanup temporary files, and complete
2813 # config.log. We remove comments because anyway the quotes in there
2814 # would cause problems or look ugly.
2815 # WARNING: Use '\'' to represent an apostrophe within the trap.
2816 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2817 trap 'exit_status=$?
2818 # Save into config.log some information that might help in debugging.
2820 echo
2822 $as_echo "## ---------------- ##
2823 ## Cache variables. ##
2824 ## ---------------- ##"
2825 echo
2826 # The following way of writing the cache mishandles newlines in values,
2828 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2829 eval ac_val=\$$ac_var
2830 case $ac_val in #(
2831 *${as_nl}*)
2832 case $ac_var in #(
2833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2835 esac
2836 case $ac_var in #(
2837 _ | IFS | as_nl) ;; #(
2838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2839 *) { eval $ac_var=; unset $ac_var;} ;;
2840 esac ;;
2841 esac
2842 done
2843 (set) 2>&1 |
2844 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2845 *${as_nl}ac_space=\ *)
2846 sed -n \
2847 "s/'\''/'\''\\\\'\'''\''/g;
2848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2849 ;; #(
2851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2853 esac |
2854 sort
2856 echo
2858 $as_echo "## ----------------- ##
2859 ## Output variables. ##
2860 ## ----------------- ##"
2861 echo
2862 for ac_var in $ac_subst_vars
2864 eval ac_val=\$$ac_var
2865 case $ac_val in
2866 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2867 esac
2868 $as_echo "$ac_var='\''$ac_val'\''"
2869 done | sort
2870 echo
2872 if test -n "$ac_subst_files"; then
2873 $as_echo "## ------------------- ##
2874 ## File substitutions. ##
2875 ## ------------------- ##"
2876 echo
2877 for ac_var in $ac_subst_files
2879 eval ac_val=\$$ac_var
2880 case $ac_val in
2881 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2882 esac
2883 $as_echo "$ac_var='\''$ac_val'\''"
2884 done | sort
2885 echo
2888 if test -s confdefs.h; then
2889 $as_echo "## ----------- ##
2890 ## confdefs.h. ##
2891 ## ----------- ##"
2892 echo
2893 cat confdefs.h
2894 echo
2896 test "$ac_signal" != 0 &&
2897 $as_echo "$as_me: caught signal $ac_signal"
2898 $as_echo "$as_me: exit $exit_status"
2899 } >&5
2900 rm -f core *.core core.conftest.* &&
2901 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2902 exit $exit_status
2904 for ac_signal in 1 2 13 15; do
2905 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2906 done
2907 ac_signal=0
2909 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2910 rm -f -r conftest* confdefs.h
2912 $as_echo "/* confdefs.h */" > confdefs.h
2914 # Predefined preprocessor variables.
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_NAME "$PACKAGE_NAME"
2918 _ACEOF
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2922 _ACEOF
2924 cat >>confdefs.h <<_ACEOF
2925 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2926 _ACEOF
2928 cat >>confdefs.h <<_ACEOF
2929 #define PACKAGE_STRING "$PACKAGE_STRING"
2930 _ACEOF
2932 cat >>confdefs.h <<_ACEOF
2933 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2934 _ACEOF
2936 cat >>confdefs.h <<_ACEOF
2937 #define PACKAGE_URL "$PACKAGE_URL"
2938 _ACEOF
2941 # Let the site file select an alternate cache file if it wants to.
2942 # Prefer an explicitly selected file to automatically selected ones.
2943 ac_site_file1=NONE
2944 ac_site_file2=NONE
2945 if test -n "$CONFIG_SITE"; then
2946 # We do not want a PATH search for config.site.
2947 case $CONFIG_SITE in #((
2948 -*) ac_site_file1=./$CONFIG_SITE;;
2949 */*) ac_site_file1=$CONFIG_SITE;;
2950 *) ac_site_file1=./$CONFIG_SITE;;
2951 esac
2952 elif test "x$prefix" != xNONE; then
2953 ac_site_file1=$prefix/share/config.site
2954 ac_site_file2=$prefix/etc/config.site
2955 else
2956 ac_site_file1=$ac_default_prefix/share/config.site
2957 ac_site_file2=$ac_default_prefix/etc/config.site
2959 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2961 test "x$ac_site_file" = xNONE && continue
2962 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2964 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2965 sed 's/^/| /' "$ac_site_file" >&5
2966 . "$ac_site_file" \
2967 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 as_fn_error $? "failed to load site script $ac_site_file
2970 See \`config.log' for more details" "$LINENO" 5; }
2972 done
2974 if test -r "$cache_file"; then
2975 # Some versions of bash will fail to source /dev/null (special files
2976 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2977 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2979 $as_echo "$as_me: loading cache $cache_file" >&6;}
2980 case $cache_file in
2981 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2982 *) . "./$cache_file";;
2983 esac
2985 else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2987 $as_echo "$as_me: creating cache $cache_file" >&6;}
2988 >$cache_file
2991 # Check that the precious variables saved in the cache have kept the same
2992 # value.
2993 ac_cache_corrupted=false
2994 for ac_var in $ac_precious_vars; do
2995 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2996 eval ac_new_set=\$ac_env_${ac_var}_set
2997 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2998 eval ac_new_val=\$ac_env_${ac_var}_value
2999 case $ac_old_set,$ac_new_set in
3000 set,)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3002 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3003 ac_cache_corrupted=: ;;
3004 ,set)
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3006 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3007 ac_cache_corrupted=: ;;
3008 ,);;
3010 if test "x$ac_old_val" != "x$ac_new_val"; then
3011 # differences in whitespace do not lead to failure.
3012 ac_old_val_w=`echo x $ac_old_val`
3013 ac_new_val_w=`echo x $ac_new_val`
3014 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3016 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3017 ac_cache_corrupted=:
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3020 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3021 eval $ac_var=\$ac_old_val
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3024 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3026 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3027 fi;;
3028 esac
3029 # Pass precious variables to config.status.
3030 if test "$ac_new_set" = set; then
3031 case $ac_new_val in
3032 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3033 *) ac_arg=$ac_var=$ac_new_val ;;
3034 esac
3035 case " $ac_configure_args " in
3036 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3037 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3038 esac
3040 done
3041 if $ac_cache_corrupted; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3045 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3046 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3048 ## -------------------- ##
3049 ## Main body of script. ##
3050 ## -------------------- ##
3052 ac_ext=c
3053 ac_cpp='$CPP $CPPFLAGS'
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 ac_config_headers="$ac_config_headers include/config.h"
3062 ac_aux_dir=
3063 for ac_dir in tools "$srcdir"/tools; do
3064 if test -f "$ac_dir/install-sh"; then
3065 ac_aux_dir=$ac_dir
3066 ac_install_sh="$ac_aux_dir/install-sh -c"
3067 break
3068 elif test -f "$ac_dir/install.sh"; then
3069 ac_aux_dir=$ac_dir
3070 ac_install_sh="$ac_aux_dir/install.sh -c"
3071 break
3072 elif test -f "$ac_dir/shtool"; then
3073 ac_aux_dir=$ac_dir
3074 ac_install_sh="$ac_aux_dir/shtool install -c"
3075 break
3077 done
3078 if test -z "$ac_aux_dir"; then
3079 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3082 # These three variables are undocumented and unsupported,
3083 # and are intended to be withdrawn in a future Autoconf release.
3084 # They can cause serious problems if a builder's source tree is in a directory
3085 # whose full name contains unusual characters.
3086 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3087 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3088 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3092 libwine_version="1.0"
3096 # Check whether --enable-win16 was given.
3097 if test "${enable_win16+set}" = set; then :
3098 enableval=$enable_win16;
3101 # Check whether --enable-win64 was given.
3102 if test "${enable_win64+set}" = set; then :
3103 enableval=$enable_win64;
3106 # Check whether --enable-tests was given.
3107 if test "${enable_tests+set}" = set; then :
3108 enableval=$enable_tests;
3111 # Check whether --enable-maintainer-mode was given.
3112 if test "${enable_maintainer_mode+set}" = set; then :
3113 enableval=$enable_maintainer_mode;
3118 # Check whether --with-alsa was given.
3119 if test "${with_alsa+set}" = set; then :
3120 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3124 # Check whether --with-capi was given.
3125 if test "${with_capi+set}" = set; then :
3126 withval=$with_capi;
3130 # Check whether --with-cms was given.
3131 if test "${with_cms+set}" = set; then :
3132 withval=$with_cms;
3136 # Check whether --with-coreaudio was given.
3137 if test "${with_coreaudio+set}" = set; then :
3138 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3142 # Check whether --with-cups was given.
3143 if test "${with_cups+set}" = set; then :
3144 withval=$with_cups;
3148 # Check whether --with-curses was given.
3149 if test "${with_curses+set}" = set; then :
3150 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3154 # Check whether --with-dbus was given.
3155 if test "${with_dbus+set}" = set; then :
3156 withval=$with_dbus;
3160 # Check whether --with-fontconfig was given.
3161 if test "${with_fontconfig+set}" = set; then :
3162 withval=$with_fontconfig;
3166 # Check whether --with-freetype was given.
3167 if test "${with_freetype+set}" = set; then :
3168 withval=$with_freetype;
3172 # Check whether --with-gettext was given.
3173 if test "${with_gettext+set}" = set; then :
3174 withval=$with_gettext;
3178 # Check whether --with-gettextpo was given.
3179 if test "${with_gettextpo+set}" = set; then :
3180 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3184 # Check whether --with-gphoto was given.
3185 if test "${with_gphoto+set}" = set; then :
3186 withval=$with_gphoto;
3190 # Check whether --with-glu was given.
3191 if test "${with_glu+set}" = set; then :
3192 withval=$with_glu;
3196 # Check whether --with-gnutls was given.
3197 if test "${with_gnutls+set}" = set; then :
3198 withval=$with_gnutls;
3202 # Check whether --with-gsm was given.
3203 if test "${with_gsm+set}" = set; then :
3204 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3208 # Check whether --with-gstreamer was given.
3209 if test "${with_gstreamer+set}" = set; then :
3210 withval=$with_gstreamer;
3214 # Check whether --with-hal was given.
3215 if test "${with_hal+set}" = set; then :
3216 withval=$with_hal;
3220 # Check whether --with-jpeg was given.
3221 if test "${with_jpeg+set}" = set; then :
3222 withval=$with_jpeg;
3226 # Check whether --with-ldap was given.
3227 if test "${with_ldap+set}" = set; then :
3228 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3232 # Check whether --with-mpg123 was given.
3233 if test "${with_mpg123+set}" = set; then :
3234 withval=$with_mpg123;
3238 # Check whether --with-netapi was given.
3239 if test "${with_netapi+set}" = set; then :
3240 withval=$with_netapi;
3244 # Check whether --with-openal was given.
3245 if test "${with_openal+set}" = set; then :
3246 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3250 # Check whether --with-opencl was given.
3251 if test "${with_opencl+set}" = set; then :
3252 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3256 # Check whether --with-opengl was given.
3257 if test "${with_opengl+set}" = set; then :
3258 withval=$with_opengl;
3262 # Check whether --with-osmesa was given.
3263 if test "${with_osmesa+set}" = set; then :
3264 withval=$with_osmesa;
3268 # Check whether --with-oss was given.
3269 if test "${with_oss+set}" = set; then :
3270 withval=$with_oss;
3274 # Check whether --with-png was given.
3275 if test "${with_png+set}" = set; then :
3276 withval=$with_png;
3280 # Check whether --with-pthread was given.
3281 if test "${with_pthread+set}" = set; then :
3282 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3286 # Check whether --with-sane was given.
3287 if test "${with_sane+set}" = set; then :
3288 withval=$with_sane;
3292 # Check whether --with-tiff was given.
3293 if test "${with_tiff+set}" = set; then :
3294 withval=$with_tiff;
3298 # Check whether --with-v4l was given.
3299 if test "${with_v4l+set}" = set; then :
3300 withval=$with_v4l;
3304 # Check whether --with-xcomposite was given.
3305 if test "${with_xcomposite+set}" = set; then :
3306 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3310 # Check whether --with-xcursor was given.
3311 if test "${with_xcursor+set}" = set; then :
3312 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3316 # Check whether --with-xinerama was given.
3317 if test "${with_xinerama+set}" = set; then :
3318 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3322 # Check whether --with-xinput was given.
3323 if test "${with_xinput+set}" = set; then :
3324 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3328 # Check whether --with-xinput2 was given.
3329 if test "${with_xinput2+set}" = set; then :
3330 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3334 # Check whether --with-xml was given.
3335 if test "${with_xml+set}" = set; then :
3336 withval=$with_xml;
3340 # Check whether --with-xrandr was given.
3341 if test "${with_xrandr+set}" = set; then :
3342 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3346 # Check whether --with-xrender was given.
3347 if test "${with_xrender+set}" = set; then :
3348 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3352 # Check whether --with-xshape was given.
3353 if test "${with_xshape+set}" = set; then :
3354 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3358 # Check whether --with-xshm was given.
3359 if test "${with_xshm+set}" = set; then :
3360 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3364 # Check whether --with-xslt was given.
3365 if test "${with_xslt+set}" = set; then :
3366 withval=$with_xslt;
3370 # Check whether --with-xxf86vm was given.
3371 if test "${with_xxf86vm+set}" = set; then :
3372 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
3376 # Check whether --with-zlib was given.
3377 if test "${with_zlib+set}" = set; then :
3378 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3383 # Check whether --with-wine-tools was given.
3384 if test "${with_wine_tools+set}" = set; then :
3385 withval=$with_wine_tools;
3389 # Check whether --with-wine64 was given.
3390 if test "${with_wine64+set}" = set; then :
3391 withval=$with_wine64;
3395 # Make sure we can run config.sub.
3396 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3397 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3400 $as_echo_n "checking build system type... " >&6; }
3401 if ${ac_cv_build+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 ac_build_alias=$build_alias
3405 test "x$ac_build_alias" = x &&
3406 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3407 test "x$ac_build_alias" = x &&
3408 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3409 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3414 $as_echo "$ac_cv_build" >&6; }
3415 case $ac_cv_build in
3416 *-*-*) ;;
3417 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3418 esac
3419 build=$ac_cv_build
3420 ac_save_IFS=$IFS; IFS='-'
3421 set x $ac_cv_build
3422 shift
3423 build_cpu=$1
3424 build_vendor=$2
3425 shift; shift
3426 # Remember, the first character of IFS is used to create $*,
3427 # except with old shells:
3428 build_os=$*
3429 IFS=$ac_save_IFS
3430 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3434 $as_echo_n "checking host system type... " >&6; }
3435 if ${ac_cv_host+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test "x$host_alias" = x; then
3439 ac_cv_host=$ac_cv_build
3440 else
3441 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3442 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3447 $as_echo "$ac_cv_host" >&6; }
3448 case $ac_cv_host in
3449 *-*-*) ;;
3450 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3451 esac
3452 host=$ac_cv_host
3453 ac_save_IFS=$IFS; IFS='-'
3454 set x $ac_cv_host
3455 shift
3456 host_cpu=$1
3457 host_vendor=$2
3458 shift; shift
3459 # Remember, the first character of IFS is used to create $*,
3460 # except with old shells:
3461 host_os=$*
3462 IFS=$ac_save_IFS
3463 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3467 case "$srcdir" in
3468 .) ;;
3469 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3470 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3471 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3472 fi ;;
3473 esac
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3477 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3478 set x ${MAKE-make}
3479 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3480 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 cat >conftest.make <<\_ACEOF
3484 SHELL = /bin/sh
3485 all:
3486 @echo '@@@%%%=$(MAKE)=@@@%%%'
3487 _ACEOF
3488 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3489 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3490 *@@@%%%=?*=@@@%%%*)
3491 eval ac_cv_prog_make_${ac_make}_set=yes;;
3493 eval ac_cv_prog_make_${ac_make}_set=no;;
3494 esac
3495 rm -f conftest.make
3497 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3499 $as_echo "yes" >&6; }
3500 SET_MAKE=
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 SET_MAKE="MAKE=${MAKE-make}"
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 if test -n "$ac_tool_prefix"; then
3513 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_CC+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3534 done
3535 done
3536 IFS=$as_save_IFS
3540 CC=$ac_cv_prog_CC
3541 if test -n "$CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543 $as_echo "$CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3551 if test -z "$ac_cv_prog_CC"; then
3552 ac_ct_CC=$CC
3553 # Extract the first word of "gcc", so it can be a program name with args.
3554 set dummy gcc; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$ac_ct_CC"; then
3561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_ac_ct_CC="gcc"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3574 done
3575 done
3576 IFS=$as_save_IFS
3580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3581 if test -n "$ac_ct_CC"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3583 $as_echo "$ac_ct_CC" >&6; }
3584 else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3589 if test "x$ac_ct_CC" = x; then
3590 CC=""
3591 else
3592 case $cross_compiling:$ac_tool_warned in
3593 yes:)
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596 ac_tool_warned=yes ;;
3597 esac
3598 CC=$ac_ct_CC
3600 else
3601 CC="$ac_cv_prog_CC"
3604 if test -z "$CC"; then
3605 if test -n "$ac_tool_prefix"; then
3606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3607 set dummy ${ac_tool_prefix}cc; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if ${ac_cv_prog_CC+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_CC="${ac_tool_prefix}cc"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2
3627 done
3628 done
3629 IFS=$as_save_IFS
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 $as_echo "$CC" >&6; }
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3645 if test -z "$CC"; then
3646 # Extract the first word of "cc", so it can be a program name with args.
3647 set dummy cc; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_CC+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 ac_prog_rejected=no
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3665 ac_prog_rejected=yes
3666 continue
3668 ac_cv_prog_CC="cc"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3674 IFS=$as_save_IFS
3676 if test $ac_prog_rejected = yes; then
3677 # We found a bogon in the path, so make sure we never use it.
3678 set dummy $ac_cv_prog_CC
3679 shift
3680 if test $# != 0; then
3681 # We chose a different compiler from the bogus one.
3682 # However, it has the same basename, so the bogon will be chosen
3683 # first if we set CC to just the basename; use the full file name.
3684 shift
3685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3690 CC=$ac_cv_prog_CC
3691 if test -n "$CC"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3693 $as_echo "$CC" >&6; }
3694 else
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3701 if test -z "$CC"; then
3702 if test -n "$ac_tool_prefix"; then
3703 for ac_prog in cl.exe
3705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if ${ac_cv_prog_CC+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -n "$CC"; then
3713 ac_cv_prog_CC="$CC" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3726 done
3727 done
3728 IFS=$as_save_IFS
3732 CC=$ac_cv_prog_CC
3733 if test -n "$CC"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3735 $as_echo "$CC" >&6; }
3736 else
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3742 test -n "$CC" && break
3743 done
3745 if test -z "$CC"; then
3746 ac_ct_CC=$CC
3747 for ac_prog in cl.exe
3749 # Extract the first word of "$ac_prog", so it can be a program name with args.
3750 set dummy $ac_prog; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if test -n "$ac_ct_CC"; then
3757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_ac_ct_CC="$ac_prog"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3770 done
3771 done
3772 IFS=$as_save_IFS
3776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3777 if test -n "$ac_ct_CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3779 $as_echo "$ac_ct_CC" >&6; }
3780 else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3786 test -n "$ac_ct_CC" && break
3787 done
3789 if test "x$ac_ct_CC" = x; then
3790 CC=""
3791 else
3792 case $cross_compiling:$ac_tool_warned in
3793 yes:)
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796 ac_tool_warned=yes ;;
3797 esac
3798 CC=$ac_ct_CC
3805 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 as_fn_error $? "no acceptable C compiler found in \$PATH
3808 See \`config.log' for more details" "$LINENO" 5; }
3810 # Provide some information about the compiler.
3811 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3812 set X $ac_compile
3813 ac_compiler=$2
3814 for ac_option in --version -v -V -qversion; do
3815 { { ac_try="$ac_compiler $ac_option >&5"
3816 case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3823 ac_status=$?
3824 if test -s conftest.err; then
3825 sed '10a\
3826 ... rest of stderr output deleted ...
3827 10q' conftest.err >conftest.er1
3828 cat conftest.er1 >&5
3830 rm -f conftest.er1 conftest.err
3831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832 test $ac_status = 0; }
3833 done
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3839 main ()
3843 return 0;
3845 _ACEOF
3846 ac_clean_files_save=$ac_clean_files
3847 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3848 # Try to create an executable without -o first, disregard a.out.
3849 # It will help us diagnose broken compilers, and finding out an intuition
3850 # of exeext.
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3852 $as_echo_n "checking whether the C compiler works... " >&6; }
3853 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3855 # The possible output files:
3856 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3858 ac_rmfiles=
3859 for ac_file in $ac_files
3861 case $ac_file in
3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3863 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3864 esac
3865 done
3866 rm -f $ac_rmfiles
3868 if { { ac_try="$ac_link_default"
3869 case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872 esac
3873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874 $as_echo "$ac_try_echo"; } >&5
3875 (eval "$ac_link_default") 2>&5
3876 ac_status=$?
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }; then :
3879 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3880 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3881 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3882 # so that the user can short-circuit this test for compilers unknown to
3883 # Autoconf.
3884 for ac_file in $ac_files ''
3886 test -f "$ac_file" || continue
3887 case $ac_file in
3888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3890 [ab].out )
3891 # We found the default executable, but exeext='' is most
3892 # certainly right.
3893 break;;
3894 *.* )
3895 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3896 then :; else
3897 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3899 # We set ac_cv_exeext here because the later test for it is not
3900 # safe: cross compilers may not add the suffix if given an `-o'
3901 # argument, so we may need to know it at that point already.
3902 # Even if this section looks crufty: it has the advantage of
3903 # actually working.
3904 break;;
3906 break;;
3907 esac
3908 done
3909 test "$ac_cv_exeext" = no && ac_cv_exeext=
3911 else
3912 ac_file=''
3914 if test -z "$ac_file"; then :
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 $as_echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error 77 "C compiler cannot create executables
3923 See \`config.log' for more details" "$LINENO" 5; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3926 $as_echo "yes" >&6; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3929 $as_echo_n "checking for C compiler default output file name... " >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3931 $as_echo "$ac_file" >&6; }
3932 ac_exeext=$ac_cv_exeext
3934 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3935 ac_clean_files=$ac_clean_files_save
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3937 $as_echo_n "checking for suffix of executables... " >&6; }
3938 if { { ac_try="$ac_link"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_link") 2>&5
3946 ac_status=$?
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; then :
3949 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3950 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3951 # work properly (i.e., refer to `conftest.exe'), while it won't with
3952 # `rm'.
3953 for ac_file in conftest.exe conftest conftest.*; do
3954 test -f "$ac_file" || continue
3955 case $ac_file in
3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3957 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3958 break;;
3959 * ) break;;
3960 esac
3961 done
3962 else
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3966 See \`config.log' for more details" "$LINENO" 5; }
3968 rm -f conftest conftest$ac_cv_exeext
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3970 $as_echo "$ac_cv_exeext" >&6; }
3972 rm -f conftest.$ac_ext
3973 EXEEXT=$ac_cv_exeext
3974 ac_exeext=$EXEEXT
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 #include <stdio.h>
3979 main ()
3981 FILE *f = fopen ("conftest.out", "w");
3982 return ferror (f) || fclose (f) != 0;
3985 return 0;
3987 _ACEOF
3988 ac_clean_files="$ac_clean_files conftest.out"
3989 # Check that the compiler produces executables we can run. If not, either
3990 # the compiler is broken, or we cross compile.
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3992 $as_echo_n "checking whether we are cross compiling... " >&6; }
3993 if test "$cross_compiling" != yes; then
3994 { { ac_try="$ac_link"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4002 ac_status=$?
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }
4005 if { ac_try='./conftest$ac_cv_exeext'
4006 { { case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_try") 2>&5
4013 ac_status=$?
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }; }; then
4016 cross_compiling=no
4017 else
4018 if test "$cross_compiling" = maybe; then
4019 cross_compiling=yes
4020 else
4021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error $? "cannot run C compiled programs.
4024 If you meant to cross compile, use \`--host'.
4025 See \`config.log' for more details" "$LINENO" 5; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4030 $as_echo "$cross_compiling" >&6; }
4032 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4033 ac_clean_files=$ac_clean_files_save
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4035 $as_echo_n "checking for suffix of object files... " >&6; }
4036 if ${ac_cv_objext+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4043 main ()
4047 return 0;
4049 _ACEOF
4050 rm -f conftest.o conftest.obj
4051 if { { ac_try="$ac_compile"
4052 case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055 esac
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 $as_echo "$ac_try_echo"; } >&5
4058 (eval "$ac_compile") 2>&5
4059 ac_status=$?
4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }; then :
4062 for ac_file in conftest.o conftest.obj conftest.*; do
4063 test -f "$ac_file" || continue;
4064 case $ac_file in
4065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4067 break;;
4068 esac
4069 done
4070 else
4071 $as_echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076 as_fn_error $? "cannot compute suffix of object files: cannot compile
4077 See \`config.log' for more details" "$LINENO" 5; }
4079 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4082 $as_echo "$ac_cv_objext" >&6; }
4083 OBJEXT=$ac_cv_objext
4084 ac_objext=$OBJEXT
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4086 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4087 if ${ac_cv_c_compiler_gnu+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4094 main ()
4096 #ifndef __GNUC__
4097 choke me
4098 #endif
4101 return 0;
4103 _ACEOF
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_compiler_gnu=yes
4106 else
4107 ac_compiler_gnu=no
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4114 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4115 if test $ac_compiler_gnu = yes; then
4116 GCC=yes
4117 else
4118 GCC=
4120 ac_test_CFLAGS=${CFLAGS+set}
4121 ac_save_CFLAGS=$CFLAGS
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4123 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4124 if ${ac_cv_prog_cc_g+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 ac_save_c_werror_flag=$ac_c_werror_flag
4128 ac_c_werror_flag=yes
4129 ac_cv_prog_cc_g=no
4130 CFLAGS="-g"
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4135 main ()
4139 return 0;
4141 _ACEOF
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_cv_prog_cc_g=yes
4144 else
4145 CFLAGS=""
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4150 main ()
4154 return 0;
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"; then :
4159 else
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4161 CFLAGS="-g"
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4166 main ()
4170 return 0;
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174 ac_cv_prog_cc_g=yes
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 ac_c_werror_flag=$ac_save_c_werror_flag
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4184 $as_echo "$ac_cv_prog_cc_g" >&6; }
4185 if test "$ac_test_CFLAGS" = set; then
4186 CFLAGS=$ac_save_CFLAGS
4187 elif test $ac_cv_prog_cc_g = yes; then
4188 if test "$GCC" = yes; then
4189 CFLAGS="-g -O2"
4190 else
4191 CFLAGS="-g"
4193 else
4194 if test "$GCC" = yes; then
4195 CFLAGS="-O2"
4196 else
4197 CFLAGS=
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4201 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4202 if ${ac_cv_prog_cc_c89+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 ac_cv_prog_cc_c89=no
4206 ac_save_CC=$CC
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <stdarg.h>
4210 #include <stdio.h>
4211 struct stat;
4212 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4213 struct buf { int x; };
4214 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4215 static char *e (p, i)
4216 char **p;
4217 int i;
4219 return p[i];
4221 static char *f (char * (*g) (char **, int), char **p, ...)
4223 char *s;
4224 va_list v;
4225 va_start (v,p);
4226 s = g (p, va_arg (v,int));
4227 va_end (v);
4228 return s;
4231 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4232 function prototypes and stuff, but not '\xHH' hex character constants.
4233 These don't provoke an error unfortunately, instead are silently treated
4234 as 'x'. The following induces an error, until -std is added to get
4235 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4236 array size at least. It's necessary to write '\x00'==0 to get something
4237 that's true only with -std. */
4238 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4240 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4241 inside strings and character constants. */
4242 #define FOO(x) 'x'
4243 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4245 int test (int i, double x);
4246 struct s1 {int (*f) (int a);};
4247 struct s2 {int (*f) (double a);};
4248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4249 int argc;
4250 char **argv;
4252 main ()
4254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4256 return 0;
4258 _ACEOF
4259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4262 CC="$ac_save_CC $ac_arg"
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_prog_cc_c89=$ac_arg
4266 rm -f core conftest.err conftest.$ac_objext
4267 test "x$ac_cv_prog_cc_c89" != "xno" && break
4268 done
4269 rm -f conftest.$ac_ext
4270 CC=$ac_save_CC
4273 # AC_CACHE_VAL
4274 case "x$ac_cv_prog_cc_c89" in
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277 $as_echo "none needed" >&6; } ;;
4278 xno)
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280 $as_echo "unsupported" >&6; } ;;
4282 CC="$CC $ac_cv_prog_cc_c89"
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4284 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4285 esac
4286 if test "x$ac_cv_prog_cc_c89" != xno; then :
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296 ac_ext=cpp
4297 ac_cpp='$CXXCPP $CPPFLAGS'
4298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4301 if test -z "$CXX"; then
4302 if test -n "$CCC"; then
4303 CXX=$CCC
4304 else
4305 if test -n "$ac_tool_prefix"; then
4306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_prog_CXX+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$CXX"; then
4316 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4331 IFS=$as_save_IFS
4335 CXX=$ac_cv_prog_CXX
4336 if test -n "$CXX"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4338 $as_echo "$CXX" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4345 test -n "$CXX" && break
4346 done
4348 if test -z "$CXX"; then
4349 ac_ct_CXX=$CXX
4350 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4352 # Extract the first word of "$ac_prog", so it can be a program name with args.
4353 set dummy $ac_prog; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 if test -n "$ac_ct_CXX"; then
4360 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369 ac_cv_prog_ac_ct_CXX="$ac_prog"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4373 done
4374 done
4375 IFS=$as_save_IFS
4379 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4380 if test -n "$ac_ct_CXX"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4382 $as_echo "$ac_ct_CXX" >&6; }
4383 else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4389 test -n "$ac_ct_CXX" && break
4390 done
4392 if test "x$ac_ct_CXX" = x; then
4393 CXX="g++"
4394 else
4395 case $cross_compiling:$ac_tool_warned in
4396 yes:)
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4399 ac_tool_warned=yes ;;
4400 esac
4401 CXX=$ac_ct_CXX
4407 # Provide some information about the compiler.
4408 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4409 set X $ac_compile
4410 ac_compiler=$2
4411 for ac_option in --version -v -V -qversion; do
4412 { { ac_try="$ac_compiler $ac_option >&5"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4420 ac_status=$?
4421 if test -s conftest.err; then
4422 sed '10a\
4423 ... rest of stderr output deleted ...
4424 10q' conftest.err >conftest.er1
4425 cat conftest.er1 >&5
4427 rm -f conftest.er1 conftest.err
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }
4430 done
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4433 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4434 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4441 main ()
4443 #ifndef __GNUC__
4444 choke me
4445 #endif
4448 return 0;
4450 _ACEOF
4451 if ac_fn_cxx_try_compile "$LINENO"; then :
4452 ac_compiler_gnu=yes
4453 else
4454 ac_compiler_gnu=no
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4461 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4462 if test $ac_compiler_gnu = yes; then
4463 GXX=yes
4464 else
4465 GXX=
4467 ac_test_CXXFLAGS=${CXXFLAGS+set}
4468 ac_save_CXXFLAGS=$CXXFLAGS
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4470 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4471 if ${ac_cv_prog_cxx_g+:} false; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4475 ac_cxx_werror_flag=yes
4476 ac_cv_prog_cxx_g=no
4477 CXXFLAGS="-g"
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4482 main ()
4486 return 0;
4488 _ACEOF
4489 if ac_fn_cxx_try_compile "$LINENO"; then :
4490 ac_cv_prog_cxx_g=yes
4491 else
4492 CXXFLAGS=""
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4497 main ()
4501 return 0;
4503 _ACEOF
4504 if ac_fn_cxx_try_compile "$LINENO"; then :
4506 else
4507 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4508 CXXFLAGS="-g"
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4513 main ()
4517 return 0;
4519 _ACEOF
4520 if ac_fn_cxx_try_compile "$LINENO"; then :
4521 ac_cv_prog_cxx_g=yes
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4531 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4532 if test "$ac_test_CXXFLAGS" = set; then
4533 CXXFLAGS=$ac_save_CXXFLAGS
4534 elif test $ac_cv_prog_cxx_g = yes; then
4535 if test "$GXX" = yes; then
4536 CXXFLAGS="-g -O2"
4537 else
4538 CXXFLAGS="-g"
4540 else
4541 if test "$GXX" = yes; then
4542 CXXFLAGS="-O2"
4543 else
4544 CXXFLAGS=
4547 ac_ext=c
4548 ac_cpp='$CPP $CPPFLAGS'
4549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553 if test -n "$ac_tool_prefix"; then
4554 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4555 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_CPPBIN+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$CPPBIN"; then
4562 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4575 done
4576 done
4577 IFS=$as_save_IFS
4581 CPPBIN=$ac_cv_prog_CPPBIN
4582 if test -n "$CPPBIN"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4584 $as_echo "$CPPBIN" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4592 if test -z "$ac_cv_prog_CPPBIN"; then
4593 ac_ct_CPPBIN=$CPPBIN
4594 # Extract the first word of "cpp", so it can be a program name with args.
4595 set dummy cpp; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -n "$ac_ct_CPPBIN"; then
4602 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_ac_ct_CPPBIN="cpp"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4617 IFS=$as_save_IFS
4621 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4622 if test -n "$ac_ct_CPPBIN"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4624 $as_echo "$ac_ct_CPPBIN" >&6; }
4625 else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4630 if test "x$ac_ct_CPPBIN" = x; then
4631 CPPBIN="cpp"
4632 else
4633 case $cross_compiling:$ac_tool_warned in
4634 yes:)
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4637 ac_tool_warned=yes ;;
4638 esac
4639 CPPBIN=$ac_ct_CPPBIN
4641 else
4642 CPPBIN="$ac_cv_prog_CPPBIN"
4646 cat >>confdefs.h <<_ACEOF
4647 #define EXEEXT "$ac_exeext"
4648 _ACEOF
4651 case $host in
4652 *-darwin*)
4653 if test "x$enable_win64" = "xyes"
4654 then
4655 CC="$CC -m64"
4656 CXX="$CXX -m64"
4657 host_cpu="x86_64"
4658 notice_platform="64-bit "
4659 TARGETFLAGS="-m64"
4661 else
4662 CC="$CC -m32"
4663 CXX="$CXX -m32"
4664 host_cpu="i386"
4665 notice_platform="32-bit "
4666 TARGETFLAGS="-m32"
4668 enable_win16=${enable_win16:-yes}
4670 with_fontconfig=${with_fontconfig:-no}
4672 x86_64*)
4673 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4674 then
4675 CC="$CC -m32"
4676 CXX="$CXX -m32"
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4678 $as_echo_n "checking whether $CC works... " >&6; }
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4684 main ()
4688 return 0;
4690 _ACEOF
4691 if ac_fn_c_try_link "$LINENO"; then :
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4693 $as_echo "yes" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4697 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4699 rm -f core conftest.err conftest.$ac_objext \
4700 conftest$ac_exeext conftest.$ac_ext
4701 host_cpu="i386"
4702 notice_platform="32-bit "
4703 TARGETFLAGS="-m32"
4705 enable_win16=${enable_win16:-yes}
4706 else
4707 if test "x${GCC}" = "xyes"
4708 then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4710 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 #include <stdarg.h>
4715 main ()
4717 void func(__builtin_ms_va_list *args);
4719 return 0;
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"; then :
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4724 $as_echo "yes" >&6; }
4725 else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4728 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 TARGETFLAGS="-m64"
4736 arm*)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4738 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 int ac_test(int i) { return i; }
4743 main ()
4745 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4747 return 0;
4749 _ACEOF
4750 if ac_fn_c_try_link "$LINENO"; then :
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4752 $as_echo "yes" >&6; }
4753 else
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4756 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4758 rm -f core conftest.err conftest.$ac_objext \
4759 conftest$ac_exeext conftest.$ac_ext
4760 CFLAGS="$CFLAGS -marm"
4762 *-mingw32*|*-cygwin*)
4763 enable_win16=${enable_win16:-no}
4764 CFLAGS="$CFLAGS -D_WIN32"
4766 i[3456789]86*)
4767 enable_win16=${enable_win16:-yes}
4769 esac
4771 enable_win16=${enable_win16:-no}
4772 enable_win64=${enable_win64:-no}
4774 enable_winetest=${enable_winetest:-$enable_tests}
4776 if test -n "$with_wine64"
4777 then
4778 if test "x$enable_win64" = "xyes"
4779 then
4780 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4781 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4783 enable_fonts=${enable_fonts:-no}
4784 enable_server=${enable_server:-no}
4785 elif test "x$enable_win64" = "xyes"
4786 then
4787 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4791 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4792 if ${wine_cv_toolsdir+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 wine_cv_toolsdir="$with_wine_tools"
4796 if test -z "$with_wine_tools"; then
4797 if test "$cross_compiling" = "yes"; then
4798 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4799 elif test -n "$with_wine64"; then
4800 wine_cv_toolsdir="$with_wine64"
4803 if test -z "$wine_cv_toolsdir"; then
4804 wine_cv_toolsdir="\$(top_builddir)"
4805 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4806 case "$wine_cv_toolsdir" in
4807 /*) ;;
4808 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4809 esac
4810 enable_tools=${enable_tools:-no}
4811 else
4812 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4816 $as_echo "$wine_cv_toolsdir" >&6; }
4817 TOOLSDIR=$wine_cv_toolsdir
4819 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4820 then
4821 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4825 for ac_prog in flex
4827 # Extract the first word of "$ac_prog", so it can be a program name with args.
4828 set dummy $ac_prog; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if ${ac_cv_prog_FLEX+:} false; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -n "$FLEX"; then
4835 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4844 ac_cv_prog_FLEX="$ac_prog"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4848 done
4849 done
4850 IFS=$as_save_IFS
4854 FLEX=$ac_cv_prog_FLEX
4855 if test -n "$FLEX"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4857 $as_echo "$FLEX" >&6; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4864 test -n "$FLEX" && break
4865 done
4866 test -n "$FLEX" || FLEX="none"
4868 if test "$FLEX" = "none"
4869 then
4870 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4873 $as_echo_n "checking whether flex is recent enough... " >&6; }
4874 cat >conftest.l <<EOF
4875 %top{
4876 #include "prediluvian.h"
4880 if $FLEX -t conftest.l >/dev/null 2>&5
4881 then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4883 $as_echo "yes" >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4890 for ac_prog in bison
4892 # Extract the first word of "$ac_prog", so it can be a program name with args.
4893 set dummy $ac_prog; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_BISON+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$BISON"; then
4900 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_BISON="$ac_prog"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4919 BISON=$ac_cv_prog_BISON
4920 if test -n "$BISON"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4922 $as_echo "$BISON" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4929 test -n "$BISON" && break
4930 done
4931 test -n "$BISON" || BISON="none"
4933 if test "$BISON" = "none"
4934 then
4935 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4938 if test -n "$ac_tool_prefix"; then
4939 for ac_prog in ar gar
4941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_AR+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -n "$AR"; then
4949 ac_cv_prog_AR="$AR" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4962 done
4963 done
4964 IFS=$as_save_IFS
4968 AR=$ac_cv_prog_AR
4969 if test -n "$AR"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4971 $as_echo "$AR" >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4978 test -n "$AR" && break
4979 done
4981 if test -z "$AR"; then
4982 ac_ct_AR=$AR
4983 for ac_prog in ar gar
4985 # Extract the first word of "$ac_prog", so it can be a program name with args.
4986 set dummy $ac_prog; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -n "$ac_ct_AR"; then
4993 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_prog_ac_ct_AR="$ac_prog"
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5006 done
5007 done
5008 IFS=$as_save_IFS
5012 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5013 if test -n "$ac_ct_AR"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5015 $as_echo "$ac_ct_AR" >&6; }
5016 else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5022 test -n "$ac_ct_AR" && break
5023 done
5025 if test "x$ac_ct_AR" = x; then
5026 AR="ar"
5027 else
5028 case $cross_compiling:$ac_tool_warned in
5029 yes:)
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5032 ac_tool_warned=yes ;;
5033 esac
5034 AR=$ac_ct_AR
5038 if test -n "$ac_tool_prefix"; then
5039 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5040 set dummy ${ac_tool_prefix}strip; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_prog_STRIP+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$STRIP"; then
5047 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5062 IFS=$as_save_IFS
5066 STRIP=$ac_cv_prog_STRIP
5067 if test -n "$STRIP"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5069 $as_echo "$STRIP" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5077 if test -z "$ac_cv_prog_STRIP"; then
5078 ac_ct_STRIP=$STRIP
5079 # Extract the first word of "strip", so it can be a program name with args.
5080 set dummy strip; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if test -n "$ac_ct_STRIP"; then
5087 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096 ac_cv_prog_ac_ct_STRIP="strip"
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5100 done
5101 done
5102 IFS=$as_save_IFS
5106 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5107 if test -n "$ac_ct_STRIP"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5109 $as_echo "$ac_ct_STRIP" >&6; }
5110 else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5115 if test "x$ac_ct_STRIP" = x; then
5116 STRIP="strip"
5117 else
5118 case $cross_compiling:$ac_tool_warned in
5119 yes:)
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122 ac_tool_warned=yes ;;
5123 esac
5124 STRIP=$ac_ct_STRIP
5126 else
5127 STRIP="$ac_cv_prog_STRIP"
5130 ARFLAGS=rc
5132 if test -n "$ac_tool_prefix"; then
5133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_RANLIB+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$RANLIB"; then
5141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5154 done
5155 done
5156 IFS=$as_save_IFS
5160 RANLIB=$ac_cv_prog_RANLIB
5161 if test -n "$RANLIB"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5163 $as_echo "$RANLIB" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5171 if test -z "$ac_cv_prog_RANLIB"; then
5172 ac_ct_RANLIB=$RANLIB
5173 # Extract the first word of "ranlib", so it can be a program name with args.
5174 set dummy ranlib; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 if test -n "$ac_ct_RANLIB"; then
5181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_ac_ct_RANLIB="ranlib"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5194 done
5195 done
5196 IFS=$as_save_IFS
5200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5201 if test -n "$ac_ct_RANLIB"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5203 $as_echo "$ac_ct_RANLIB" >&6; }
5204 else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5209 if test "x$ac_ct_RANLIB" = x; then
5210 RANLIB=":"
5211 else
5212 case $cross_compiling:$ac_tool_warned in
5213 yes:)
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216 ac_tool_warned=yes ;;
5217 esac
5218 RANLIB=$ac_ct_RANLIB
5220 else
5221 RANLIB="$ac_cv_prog_RANLIB"
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5225 $as_echo_n "checking whether ln -s works... " >&6; }
5226 LN_S=$as_ln_s
5227 if test "$LN_S" = "ln -s"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229 $as_echo "yes" >&6; }
5230 else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5232 $as_echo "no, using $LN_S" >&6; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5236 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5237 if ${ac_cv_path_GREP+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if test -z "$GREP"; then
5241 ac_path_GREP_found=false
5242 # Loop through the user's path and test for each of PROGNAME-LIST
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_prog in grep ggrep; do
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5251 as_fn_executable_p "$ac_path_GREP" || continue
5252 # Check for GNU ac_path_GREP and select it if it is found.
5253 # Check for GNU $ac_path_GREP
5254 case `"$ac_path_GREP" --version 2>&1` in
5255 *GNU*)
5256 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5258 ac_count=0
5259 $as_echo_n 0123456789 >"conftest.in"
5260 while :
5262 cat "conftest.in" "conftest.in" >"conftest.tmp"
5263 mv "conftest.tmp" "conftest.in"
5264 cp "conftest.in" "conftest.nl"
5265 $as_echo 'GREP' >> "conftest.nl"
5266 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5268 as_fn_arith $ac_count + 1 && ac_count=$as_val
5269 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5270 # Best one so far, save it but keep looking for a better one
5271 ac_cv_path_GREP="$ac_path_GREP"
5272 ac_path_GREP_max=$ac_count
5274 # 10*(2^10) chars as input seems more than enough
5275 test $ac_count -gt 10 && break
5276 done
5277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5278 esac
5280 $ac_path_GREP_found && break 3
5281 done
5282 done
5283 done
5284 IFS=$as_save_IFS
5285 if test -z "$ac_cv_path_GREP"; then
5286 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5288 else
5289 ac_cv_path_GREP=$GREP
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5294 $as_echo "$ac_cv_path_GREP" >&6; }
5295 GREP="$ac_cv_path_GREP"
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5299 $as_echo_n "checking for egrep... " >&6; }
5300 if ${ac_cv_path_EGREP+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5304 then ac_cv_path_EGREP="$GREP -E"
5305 else
5306 if test -z "$EGREP"; then
5307 ac_path_EGREP_found=false
5308 # Loop through the user's path and test for each of PROGNAME-LIST
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_prog in egrep; do
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5317 as_fn_executable_p "$ac_path_EGREP" || continue
5318 # Check for GNU ac_path_EGREP and select it if it is found.
5319 # Check for GNU $ac_path_EGREP
5320 case `"$ac_path_EGREP" --version 2>&1` in
5321 *GNU*)
5322 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5324 ac_count=0
5325 $as_echo_n 0123456789 >"conftest.in"
5326 while :
5328 cat "conftest.in" "conftest.in" >"conftest.tmp"
5329 mv "conftest.tmp" "conftest.in"
5330 cp "conftest.in" "conftest.nl"
5331 $as_echo 'EGREP' >> "conftest.nl"
5332 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5334 as_fn_arith $ac_count + 1 && ac_count=$as_val
5335 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5336 # Best one so far, save it but keep looking for a better one
5337 ac_cv_path_EGREP="$ac_path_EGREP"
5338 ac_path_EGREP_max=$ac_count
5340 # 10*(2^10) chars as input seems more than enough
5341 test $ac_count -gt 10 && break
5342 done
5343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5344 esac
5346 $ac_path_EGREP_found && break 3
5347 done
5348 done
5349 done
5350 IFS=$as_save_IFS
5351 if test -z "$ac_cv_path_EGREP"; then
5352 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5354 else
5355 ac_cv_path_EGREP=$EGREP
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5361 $as_echo "$ac_cv_path_EGREP" >&6; }
5362 EGREP="$ac_cv_path_EGREP"
5365 # Extract the first word of "ldconfig", so it can be a program name with args.
5366 set dummy ldconfig; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_path_LDCONFIG+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 case $LDCONFIG in
5373 [\\/]* | ?:[\\/]*)
5374 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in /sbin /usr/sbin $PATH
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5388 done
5389 done
5390 IFS=$as_save_IFS
5392 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5394 esac
5396 LDCONFIG=$ac_cv_path_LDCONFIG
5397 if test -n "$LDCONFIG"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5399 $as_echo "$LDCONFIG" >&6; }
5400 else
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5406 for ac_prog in msgfmt
5408 # Extract the first word of "$ac_prog", so it can be a program name with args.
5409 set dummy $ac_prog; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_MSGFMT+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 if test -n "$MSGFMT"; then
5416 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_MSGFMT="$ac_prog"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5429 done
5430 done
5431 IFS=$as_save_IFS
5435 MSGFMT=$ac_cv_prog_MSGFMT
5436 if test -n "$MSGFMT"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5438 $as_echo "$MSGFMT" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5445 test -n "$MSGFMT" && break
5446 done
5447 test -n "$MSGFMT" || MSGFMT="false"
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$PKG_CONFIG"; then
5458 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5471 done
5472 done
5473 IFS=$as_save_IFS
5477 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5478 if test -n "$PKG_CONFIG"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5480 $as_echo "$PKG_CONFIG" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5488 if test -n "$ac_cv_prog_PKG_CONFIG"; then
5489 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
5490 elif test "$cross_compiling" != yes; then
5491 unset ac_cv_prog_PKG_CONFIG
5492 # Extract the first word of "pkg-config", so it can be a program name with args.
5493 set dummy pkg-config; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$PKG_CONFIG"; then
5500 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_PKG_CONFIG="pkg-config"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5513 done
5514 done
5515 IFS=$as_save_IFS
5519 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5520 if test -n "$PKG_CONFIG"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5522 $as_echo "$PKG_CONFIG" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5531 if test "x$enable_maintainer_mode" != "xyes"
5532 then
5533 FONTFORGE=""
5534 RSVG=""
5535 CONVERT=""
5536 ICOTOOL=""
5537 else
5538 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5539 for ac_prog in fontforge
5541 # Extract the first word of "$ac_prog", so it can be a program name with args.
5542 set dummy $ac_prog; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_FONTFORGE+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 if test -n "$FONTFORGE"; then
5549 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_FONTFORGE="$ac_prog"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5562 done
5563 done
5564 IFS=$as_save_IFS
5568 FONTFORGE=$ac_cv_prog_FONTFORGE
5569 if test -n "$FONTFORGE"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5571 $as_echo "$FONTFORGE" >&6; }
5572 else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5578 test -n "$FONTFORGE" && break
5579 done
5580 test -n "$FONTFORGE" || FONTFORGE="false"
5582 for ac_prog in rsvg
5584 # Extract the first word of "$ac_prog", so it can be a program name with args.
5585 set dummy $ac_prog; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_RSVG+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 if test -n "$RSVG"; then
5592 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_RSVG="$ac_prog"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 break 2
5605 done
5606 done
5607 IFS=$as_save_IFS
5611 RSVG=$ac_cv_prog_RSVG
5612 if test -n "$RSVG"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5614 $as_echo "$RSVG" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5621 test -n "$RSVG" && break
5622 done
5623 test -n "$RSVG" || RSVG="false"
5625 for ac_prog in convert
5627 # Extract the first word of "$ac_prog", so it can be a program name with args.
5628 set dummy $ac_prog; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if ${ac_cv_prog_CONVERT+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 if test -n "$CONVERT"; then
5635 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5644 ac_cv_prog_CONVERT="$ac_prog"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 break 2
5648 done
5649 done
5650 IFS=$as_save_IFS
5654 CONVERT=$ac_cv_prog_CONVERT
5655 if test -n "$CONVERT"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5657 $as_echo "$CONVERT" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5664 test -n "$CONVERT" && break
5665 done
5666 test -n "$CONVERT" || CONVERT="false"
5668 for ac_prog in icotool
5670 # Extract the first word of "$ac_prog", so it can be a program name with args.
5671 set dummy $ac_prog; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if ${ac_cv_prog_ICOTOOL+:} false; then :
5675 $as_echo_n "(cached) " >&6
5676 else
5677 if test -n "$ICOTOOL"; then
5678 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5679 else
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687 ac_cv_prog_ICOTOOL="$ac_prog"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 break 2
5691 done
5692 done
5693 IFS=$as_save_IFS
5697 ICOTOOL=$ac_cv_prog_ICOTOOL
5698 if test -n "$ICOTOOL"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5700 $as_echo "$ICOTOOL" >&6; }
5701 else
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5707 test -n "$ICOTOOL" && break
5708 done
5709 test -n "$ICOTOOL" || ICOTOOL="false"
5711 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5712 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5714 if test "$CONVERT" = false
5715 then
5716 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5719 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5720 convert_version=`convert --version | head -n1`
5721 if test "x$convert_version" != "x"
5722 then
5723 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5724 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5725 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5726 then
5727 CONVERT=false
5730 if test "$CONVERT" = false
5731 then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5733 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5734 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5737 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5741 if test "$ICOTOOL" = false
5742 then
5743 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5744 else
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5746 $as_echo_n "checking for recent enough icotool... " >&6; }
5747 icotool_version=`icotool --version | head -n1`
5748 if test "x$icotool_version" != "x"
5749 then
5750 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5751 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5752 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5753 then
5754 ICOTOOL=false
5755 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5758 if test "$ICOTOOL" = false
5759 then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5761 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5762 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5763 else
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5765 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5769 with_gettext=yes
5770 with_gettextpo=yes
5771 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5774 test "x$with_gettext" != xno || MSGFMT=false
5775 if test "$MSGFMT" != "false"
5776 then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5778 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5779 cat >conftest.po <<EOF
5780 # comment
5781 msgctxt "ctxt"
5782 msgid "id"
5783 msgstr "str"
5785 if $MSGFMT -o /dev/null conftest.po 2>&5
5786 then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5788 $as_echo "yes" >&6; }
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5792 MSGFMT=false
5795 if test "$MSGFMT" = false; then :
5796 case "x$with_gettext" in
5797 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5798 xno) ;;
5799 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5800 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5801 esac
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5806 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5807 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 ac_check_lib_save_LIBS=$LIBS
5811 LIBS="-li386 $LIBS"
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5815 /* Override any GCC internal prototype to avoid an error.
5816 Use char because int might match the return type of a GCC
5817 builtin and then its argument prototype would still apply. */
5818 #ifdef __cplusplus
5819 extern "C"
5820 #endif
5821 char i386_set_ldt ();
5823 main ()
5825 return i386_set_ldt ();
5827 return 0;
5829 _ACEOF
5830 if ac_fn_c_try_link "$LINENO"; then :
5831 ac_cv_lib_i386_i386_set_ldt=yes
5832 else
5833 ac_cv_lib_i386_i386_set_ldt=no
5835 rm -f core conftest.err conftest.$ac_objext \
5836 conftest$ac_exeext conftest.$ac_ext
5837 LIBS=$ac_check_lib_save_LIBS
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5840 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5841 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5842 cat >>confdefs.h <<_ACEOF
5843 #define HAVE_LIBI386 1
5844 _ACEOF
5846 LIBS="-li386 $LIBS"
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5851 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5852 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 ac_check_lib_save_LIBS=$LIBS
5856 LIBS="-lossaudio $LIBS"
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5860 /* Override any GCC internal prototype to avoid an error.
5861 Use char because int might match the return type of a GCC
5862 builtin and then its argument prototype would still apply. */
5863 #ifdef __cplusplus
5864 extern "C"
5865 #endif
5866 char _oss_ioctl ();
5868 main ()
5870 return _oss_ioctl ();
5872 return 0;
5874 _ACEOF
5875 if ac_fn_c_try_link "$LINENO"; then :
5876 ac_cv_lib_ossaudio__oss_ioctl=yes
5877 else
5878 ac_cv_lib_ossaudio__oss_ioctl=no
5880 rm -f core conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5882 LIBS=$ac_check_lib_save_LIBS
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5885 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5886 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5887 cat >>confdefs.h <<_ACEOF
5888 #define HAVE_LIBOSSAUDIO 1
5889 _ACEOF
5891 LIBS="-lossaudio $LIBS"
5896 XLIB=""
5898 OPENGL_LIBS=""
5902 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5904 # Check whether --enable-largefile was given.
5905 if test "${enable_largefile+set}" = set; then :
5906 enableval=$enable_largefile;
5909 if test "$enable_largefile" != no; then
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5912 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5913 if ${ac_cv_sys_largefile_CC+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 ac_cv_sys_largefile_CC=no
5917 if test "$GCC" != yes; then
5918 ac_save_CC=$CC
5919 while :; do
5920 # IRIX 6.2 and later do not support large files by default,
5921 # so use the C compiler's -n32 option if that helps.
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 #include <sys/types.h>
5925 /* Check that off_t can represent 2**63 - 1 correctly.
5926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5927 since some C++ compilers masquerading as C compilers
5928 incorrectly reject 9223372036854775807. */
5929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5931 && LARGE_OFF_T % 2147483647 == 1)
5932 ? 1 : -1];
5934 main ()
5938 return 0;
5940 _ACEOF
5941 if ac_fn_c_try_compile "$LINENO"; then :
5942 break
5944 rm -f core conftest.err conftest.$ac_objext
5945 CC="$CC -n32"
5946 if ac_fn_c_try_compile "$LINENO"; then :
5947 ac_cv_sys_largefile_CC=' -n32'; break
5949 rm -f core conftest.err conftest.$ac_objext
5950 break
5951 done
5952 CC=$ac_save_CC
5953 rm -f conftest.$ac_ext
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5957 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5958 if test "$ac_cv_sys_largefile_CC" != no; then
5959 CC=$CC$ac_cv_sys_largefile_CC
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5963 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5964 if ${ac_cv_sys_file_offset_bits+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 while :; do
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 #include <sys/types.h>
5971 /* Check that off_t can represent 2**63 - 1 correctly.
5972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5973 since some C++ compilers masquerading as C compilers
5974 incorrectly reject 9223372036854775807. */
5975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5977 && LARGE_OFF_T % 2147483647 == 1)
5978 ? 1 : -1];
5980 main ()
5984 return 0;
5986 _ACEOF
5987 if ac_fn_c_try_compile "$LINENO"; then :
5988 ac_cv_sys_file_offset_bits=no; break
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 #define _FILE_OFFSET_BITS 64
5994 #include <sys/types.h>
5995 /* Check that off_t can represent 2**63 - 1 correctly.
5996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5997 since some C++ compilers masquerading as C compilers
5998 incorrectly reject 9223372036854775807. */
5999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6001 && LARGE_OFF_T % 2147483647 == 1)
6002 ? 1 : -1];
6004 main ()
6008 return 0;
6010 _ACEOF
6011 if ac_fn_c_try_compile "$LINENO"; then :
6012 ac_cv_sys_file_offset_bits=64; break
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 ac_cv_sys_file_offset_bits=unknown
6016 break
6017 done
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6020 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6021 case $ac_cv_sys_file_offset_bits in #(
6022 no | unknown) ;;
6024 cat >>confdefs.h <<_ACEOF
6025 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6026 _ACEOF
6028 esac
6029 rm -rf conftest*
6030 if test $ac_cv_sys_file_offset_bits = unknown; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6032 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6033 if ${ac_cv_sys_large_files+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 while :; do
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 #include <sys/types.h>
6040 /* Check that off_t can represent 2**63 - 1 correctly.
6041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6042 since some C++ compilers masquerading as C compilers
6043 incorrectly reject 9223372036854775807. */
6044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6046 && LARGE_OFF_T % 2147483647 == 1)
6047 ? 1 : -1];
6049 main ()
6053 return 0;
6055 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"; then :
6057 ac_cv_sys_large_files=no; break
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 #define _LARGE_FILES 1
6063 #include <sys/types.h>
6064 /* Check that off_t can represent 2**63 - 1 correctly.
6065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6066 since some C++ compilers masquerading as C compilers
6067 incorrectly reject 9223372036854775807. */
6068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6070 && LARGE_OFF_T % 2147483647 == 1)
6071 ? 1 : -1];
6073 main ()
6077 return 0;
6079 _ACEOF
6080 if ac_fn_c_try_compile "$LINENO"; then :
6081 ac_cv_sys_large_files=1; break
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_cv_sys_large_files=unknown
6085 break
6086 done
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6089 $as_echo "$ac_cv_sys_large_files" >&6; }
6090 case $ac_cv_sys_large_files in #(
6091 no | unknown) ;;
6093 cat >>confdefs.h <<_ACEOF
6094 #define _LARGE_FILES $ac_cv_sys_large_files
6095 _ACEOF
6097 esac
6098 rm -rf conftest*
6105 ac_ext=c
6106 ac_cpp='$CPP $CPPFLAGS'
6107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6111 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6112 # On Suns, sometimes $CPP names a directory.
6113 if test -n "$CPP" && test -d "$CPP"; then
6114 CPP=
6116 if test -z "$CPP"; then
6117 if ${ac_cv_prog_CPP+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 # Double quotes because CPP needs to be expanded
6121 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6123 ac_preproc_ok=false
6124 for ac_c_preproc_warn_flag in '' yes
6126 # Use a header file that comes with gcc, so configuring glibc
6127 # with a fresh cross-compiler works.
6128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6129 # <limits.h> exists even on freestanding compilers.
6130 # On the NeXT, cc -E runs the code through the compiler's parser,
6131 # not just through cpp. "Syntax error" is here to catch this case.
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 #ifdef __STDC__
6135 # include <limits.h>
6136 #else
6137 # include <assert.h>
6138 #endif
6139 Syntax error
6140 _ACEOF
6141 if ac_fn_c_try_cpp "$LINENO"; then :
6143 else
6144 # Broken: fails on valid input.
6145 continue
6147 rm -f conftest.err conftest.i conftest.$ac_ext
6149 # OK, works on sane cases. Now check whether nonexistent headers
6150 # can be detected and how.
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 #include <ac_nonexistent.h>
6154 _ACEOF
6155 if ac_fn_c_try_cpp "$LINENO"; then :
6156 # Broken: success on invalid input.
6157 continue
6158 else
6159 # Passes both tests.
6160 ac_preproc_ok=:
6161 break
6163 rm -f conftest.err conftest.i conftest.$ac_ext
6165 done
6166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6167 rm -f conftest.i conftest.err conftest.$ac_ext
6168 if $ac_preproc_ok; then :
6169 break
6172 done
6173 ac_cv_prog_CPP=$CPP
6176 CPP=$ac_cv_prog_CPP
6177 else
6178 ac_cv_prog_CPP=$CPP
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6181 $as_echo "$CPP" >&6; }
6182 ac_preproc_ok=false
6183 for ac_c_preproc_warn_flag in '' yes
6185 # Use a header file that comes with gcc, so configuring glibc
6186 # with a fresh cross-compiler works.
6187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6188 # <limits.h> exists even on freestanding compilers.
6189 # On the NeXT, cc -E runs the code through the compiler's parser,
6190 # not just through cpp. "Syntax error" is here to catch this case.
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #ifdef __STDC__
6194 # include <limits.h>
6195 #else
6196 # include <assert.h>
6197 #endif
6198 Syntax error
6199 _ACEOF
6200 if ac_fn_c_try_cpp "$LINENO"; then :
6202 else
6203 # Broken: fails on valid input.
6204 continue
6206 rm -f conftest.err conftest.i conftest.$ac_ext
6208 # OK, works on sane cases. Now check whether nonexistent headers
6209 # can be detected and how.
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 #include <ac_nonexistent.h>
6213 _ACEOF
6214 if ac_fn_c_try_cpp "$LINENO"; then :
6215 # Broken: success on invalid input.
6216 continue
6217 else
6218 # Passes both tests.
6219 ac_preproc_ok=:
6220 break
6222 rm -f conftest.err conftest.i conftest.$ac_ext
6224 done
6225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6226 rm -f conftest.i conftest.err conftest.$ac_ext
6227 if $ac_preproc_ok; then :
6229 else
6230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6232 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6233 See \`config.log' for more details" "$LINENO" 5; }
6236 ac_ext=c
6237 ac_cpp='$CPP $CPPFLAGS'
6238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6244 $as_echo_n "checking for ANSI C header files... " >&6; }
6245 if ${ac_cv_header_stdc+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 #include <stdlib.h>
6251 #include <stdarg.h>
6252 #include <string.h>
6253 #include <float.h>
6256 main ()
6260 return 0;
6262 _ACEOF
6263 if ac_fn_c_try_compile "$LINENO"; then :
6264 ac_cv_header_stdc=yes
6265 else
6266 ac_cv_header_stdc=no
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 if test $ac_cv_header_stdc = yes; then
6271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 #include <string.h>
6276 _ACEOF
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278 $EGREP "memchr" >/dev/null 2>&1; then :
6280 else
6281 ac_cv_header_stdc=no
6283 rm -f conftest*
6287 if test $ac_cv_header_stdc = yes; then
6288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 #include <stdlib.h>
6293 _ACEOF
6294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6295 $EGREP "free" >/dev/null 2>&1; then :
6297 else
6298 ac_cv_header_stdc=no
6300 rm -f conftest*
6304 if test $ac_cv_header_stdc = yes; then
6305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6306 if test "$cross_compiling" = yes; then :
6308 else
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311 #include <ctype.h>
6312 #include <stdlib.h>
6313 #if ((' ' & 0x0FF) == 0x020)
6314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6316 #else
6317 # define ISLOWER(c) \
6318 (('a' <= (c) && (c) <= 'i') \
6319 || ('j' <= (c) && (c) <= 'r') \
6320 || ('s' <= (c) && (c) <= 'z'))
6321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6322 #endif
6324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6326 main ()
6328 int i;
6329 for (i = 0; i < 256; i++)
6330 if (XOR (islower (i), ISLOWER (i))
6331 || toupper (i) != TOUPPER (i))
6332 return 2;
6333 return 0;
6335 _ACEOF
6336 if ac_fn_c_try_run "$LINENO"; then :
6338 else
6339 ac_cv_header_stdc=no
6341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6342 conftest.$ac_objext conftest.beam conftest.$ac_ext
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6348 $as_echo "$ac_cv_header_stdc" >&6; }
6349 if test $ac_cv_header_stdc = yes; then
6351 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6355 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6357 inttypes.h stdint.h unistd.h
6358 do :
6359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6360 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6362 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6363 cat >>confdefs.h <<_ACEOF
6364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6365 _ACEOF
6369 done
6372 for ac_header in \
6373 AL/al.h \
6374 ApplicationServices/ApplicationServices.h \
6375 AudioToolbox/AudioConverter.h \
6376 AudioUnit/AudioUnit.h \
6377 AudioUnit/AudioComponent.h \
6378 CL/cl.h \
6379 Carbon/Carbon.h \
6380 CoreAudio/CoreAudio.h \
6381 CoreServices/CoreServices.h \
6382 DiskArbitration/DiskArbitration.h \
6383 IOKit/IOKitLib.h \
6384 IOKit/hid/IOHIDLib.h \
6385 OpenAL/al.h \
6386 OpenCL/opencl.h \
6387 QuickTime/ImageCompression.h \
6388 Security/Security.h \
6389 alias.h \
6390 alsa/asoundlib.h \
6391 arpa/inet.h \
6392 arpa/nameser.h \
6393 asm/types.h \
6394 asm/user.h \
6395 curses.h \
6396 direct.h \
6397 dirent.h \
6398 dlfcn.h \
6399 elf.h \
6400 float.h \
6401 fnmatch.h \
6402 fontconfig/fontconfig.h \
6403 getopt.h \
6404 gettext-po.h \
6405 grp.h \
6406 gsm.h \
6407 gsm/gsm.h \
6408 ieeefp.h \
6409 inet/mib2.h \
6410 io.h \
6411 kstat.h \
6412 lber.h \
6413 ldap.h \
6414 libproc.h \
6415 link.h \
6416 linux/cdrom.h \
6417 linux/compiler.h \
6418 linux/filter.h \
6419 linux/hdreg.h \
6420 linux/input.h \
6421 linux/ioctl.h \
6422 linux/joystick.h \
6423 linux/major.h \
6424 linux/param.h \
6425 linux/serial.h \
6426 linux/types.h \
6427 linux/ucdrom.h \
6428 lwp.h \
6429 mach-o/nlist.h \
6430 mach-o/loader.h \
6431 mach/mach.h \
6432 mach/machine.h \
6433 machine/cpu.h \
6434 machine/limits.h \
6435 machine/sysarch.h \
6436 mntent.h \
6437 ncurses.h \
6438 netdb.h \
6439 netinet/in.h \
6440 netinet/in_systm.h \
6441 netinet/tcp.h \
6442 netinet/tcp_fsm.h \
6443 poll.h \
6444 port.h \
6445 process.h \
6446 pthread.h \
6447 pwd.h \
6448 sched.h \
6449 scsi/scsi.h \
6450 scsi/scsi_ioctl.h \
6451 scsi/sg.h \
6452 stdbool.h \
6453 stdint.h \
6454 stropts.h \
6455 sys/asoundlib.h \
6456 sys/attr.h \
6457 sys/cdio.h \
6458 sys/elf32.h \
6459 sys/epoll.h \
6460 sys/event.h \
6461 sys/exec_elf.h \
6462 sys/filio.h \
6463 sys/inotify.h \
6464 sys/ioctl.h \
6465 sys/ipc.h \
6466 sys/limits.h \
6467 sys/link.h \
6468 sys/mman.h \
6469 sys/modem.h \
6470 sys/msg.h \
6471 sys/mtio.h \
6472 sys/param.h \
6473 sys/poll.h \
6474 sys/prctl.h \
6475 sys/protosw.h \
6476 sys/ptrace.h \
6477 sys/queue.h \
6478 sys/resource.h \
6479 sys/scsiio.h \
6480 sys/shm.h \
6481 sys/signal.h \
6482 sys/socket.h \
6483 sys/socketvar.h \
6484 sys/sockio.h \
6485 sys/statvfs.h \
6486 sys/strtio.h \
6487 sys/syscall.h \
6488 sys/tihdr.h \
6489 sys/time.h \
6490 sys/timeout.h \
6491 sys/times.h \
6492 sys/uio.h \
6493 sys/user.h \
6494 sys/utsname.h \
6495 sys/vm86.h \
6496 sys/wait.h \
6497 syscall.h \
6498 termios.h \
6499 unistd.h \
6500 utime.h \
6501 valgrind/memcheck.h \
6502 valgrind/valgrind.h \
6503 zlib.h
6505 do :
6506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6509 cat >>confdefs.h <<_ACEOF
6510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 _ACEOF
6515 done
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6518 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6519 if ${ac_cv_header_stat_broken+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 #include <sys/types.h>
6525 #include <sys/stat.h>
6527 #if defined S_ISBLK && defined S_IFDIR
6528 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6529 #endif
6531 #if defined S_ISBLK && defined S_IFCHR
6532 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6533 #endif
6535 #if defined S_ISLNK && defined S_IFREG
6536 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6537 #endif
6539 #if defined S_ISSOCK && defined S_IFREG
6540 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6541 #endif
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 ac_cv_header_stat_broken=no
6546 else
6547 ac_cv_header_stat_broken=yes
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6552 $as_echo "$ac_cv_header_stat_broken" >&6; }
6553 if test $ac_cv_header_stat_broken = yes; then
6555 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6561 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6562 do :
6563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6564 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6565 #ifdef HAVE_SYS_PARAM_H
6566 # include <sys/param.h>
6567 #endif
6569 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6570 cat >>confdefs.h <<_ACEOF
6571 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6572 _ACEOF
6576 done
6579 for ac_header in \
6580 netinet/ip.h \
6581 net/if.h \
6582 net/if_arp.h \
6583 net/if_dl.h \
6584 net/if_types.h \
6585 net/route.h \
6586 netinet/if_ether.h \
6587 netinet/if_inarp.h \
6588 netinet/in_pcb.h \
6589 netinet/ip_icmp.h \
6590 netinet/ip_var.h \
6591 netinet/udp.h \
6592 netipx/ipx.h \
6593 sys/un.h \
6595 do :
6596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6598 #ifdef HAVE_SYS_SOCKET_H
6599 # include <sys/socket.h>
6600 #endif
6601 #ifdef HAVE_SYS_SOCKETVAR_H
6602 # include <sys/socketvar.h>
6603 #endif
6604 #ifdef HAVE_NET_ROUTE_H
6605 # include <net/route.h>
6606 #endif
6607 #ifdef HAVE_NETINET_IN_H
6608 # include <netinet/in.h>
6609 #endif
6610 #ifdef HAVE_NETINET_IN_SYSTM_H
6611 # include <netinet/in_systm.h>
6612 #endif
6613 #ifdef HAVE_NET_IF_H
6614 # include <net/if.h>
6615 #endif
6616 #ifdef HAVE_NETINET_IP_H
6617 # include <netinet/ip.h>
6618 #endif
6620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6621 cat >>confdefs.h <<_ACEOF
6622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6623 _ACEOF
6627 done
6630 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6631 do :
6632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6633 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6634 #ifdef HAVE_ALIAS_H
6635 # include <alias.h>
6636 #endif
6637 #ifdef HAVE_SYS_SOCKET_H
6638 # include <sys/socket.h>
6639 #endif
6640 #ifdef HAVE_SYS_SOCKETVAR_H
6641 # include <sys/socketvar.h>
6642 #endif
6643 #ifdef HAVE_SYS_TIMEOUT_H
6644 # include <sys/timeout.h>
6645 #endif
6646 #ifdef HAVE_NETINET_IN_H
6647 # include <netinet/in.h>
6648 #endif
6649 #ifdef HAVE_NETINET_IN_SYSTM_H
6650 # include <netinet/in_systm.h>
6651 #endif
6652 #ifdef HAVE_NETINET_IP_H
6653 # include <netinet/ip.h>
6654 #endif
6655 #ifdef HAVE_NETINET_IP_VAR_H
6656 # include <netinet/ip_var.h>
6657 #endif
6658 #ifdef HAVE_NETINET_IP_ICMP_H
6659 # include <netinet/ip_icmp.h>
6660 #endif
6661 #ifdef HAVE_NETINET_UDP_H
6662 # include <netinet/udp.h>
6663 #endif
6664 #ifdef HAVE_NETINET_TCP_H
6665 # include <netinet/tcp.h>
6666 #endif
6667 #ifdef HAVE_NETINET_TCP_TIMER_H
6668 #include <netinet/tcp_timer.h>
6669 #endif
6671 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6672 cat >>confdefs.h <<_ACEOF
6673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6674 _ACEOF
6678 done
6681 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6682 do :
6683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6684 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6685 #ifdef HAVE_ASM_TYPES_H
6686 # include <asm/types.h>
6687 #endif
6688 #ifdef HAVE_SYS_SOCKET_H
6689 # include <sys/socket.h>
6690 #endif
6691 #ifdef HAVE_LINUX_TYPES_H
6692 # include <linux/types.h>
6693 #endif
6695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6696 cat >>confdefs.h <<_ACEOF
6697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6698 _ACEOF
6702 done
6705 for ac_header in mach-o/dyld_images.h
6706 do :
6707 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6708 # include <stdbool.h>
6709 #endif
6710 #ifdef HAVE_STDINT_H
6711 # include <stdint.h>
6712 #endif
6714 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6715 cat >>confdefs.h <<_ACEOF
6716 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6717 _ACEOF
6721 done
6724 for ac_header in resolv.h
6725 do :
6726 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6727 #ifdef HAVE_SYS_SOCKET_H
6728 # include <sys/socket.h>
6729 #endif
6730 #ifdef HAVE_NETINET_IN_H
6731 # include <netinet/in.h>
6732 #endif
6733 #ifdef HAVE_ARPA_NAMESER_H
6734 # include <arpa/nameser.h>
6735 #endif
6737 if test "x$ac_cv_header_resolv_h" = xyes; then :
6738 cat >>confdefs.h <<_ACEOF
6739 #define HAVE_RESOLV_H 1
6740 _ACEOF
6744 done
6747 for ac_header in ifaddrs.h
6748 do :
6749 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6751 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6752 cat >>confdefs.h <<_ACEOF
6753 #define HAVE_IFADDRS_H 1
6754 _ACEOF
6758 done
6761 for ac_header in ucontext.h
6762 do :
6763 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6765 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6766 cat >>confdefs.h <<_ACEOF
6767 #define HAVE_UCONTEXT_H 1
6768 _ACEOF
6772 done
6775 for ac_header in sys/thr.h
6776 do :
6777 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6778 #ifdef HAVE_UCONTEXT_H
6779 #include <ucontext.h>
6780 #endif
6782 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6783 cat >>confdefs.h <<_ACEOF
6784 #define HAVE_SYS_THR_H 1
6785 _ACEOF
6789 done
6792 for ac_header in pthread_np.h
6793 do :
6794 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6795 #include <pthread.h>
6796 #endif
6798 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_PTHREAD_NP_H 1
6801 _ACEOF
6805 done
6808 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6809 do :
6810 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6811 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6812 #include <sys/time.h>
6813 #endif
6814 #include <sys/types.h>
6815 #ifdef HAVE_ASM_TYPES_H
6816 #include <asm/types.h>
6817 #endif
6819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6820 cat >>confdefs.h <<_ACEOF
6821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6822 _ACEOF
6826 done
6829 for ac_header in libprocstat.h
6830 do :
6831 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6832 #include <sys/param.h>
6833 #endif
6834 #ifdef HAVE_SYS_QUEUE_H
6835 #include <sys/queue.h>
6836 #endif
6837 #ifdef HAVE_SYS_SOCKET_H
6838 #include <sys/socket.h>
6839 #endif
6841 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6842 cat >>confdefs.h <<_ACEOF
6843 #define HAVE_LIBPROCSTAT_H 1
6844 _ACEOF
6848 done
6852 dlldir="\${libdir}/wine"
6854 DLLPREFIX=""
6856 DLLFLAGS="-D_REENTRANT"
6858 LDRPATH_INSTALL=""
6860 LDRPATH_LOCAL=""
6862 LIBEXT="so"
6863 DLLEXT=".so"
6864 IMPLIBEXT="def"
6865 STATIC_IMPLIBEXT="def.a"
6866 # Extract the first word of "ldd", so it can be a program name with args.
6867 set dummy ldd; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_path_LDD+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 case $LDD in
6874 [\\/]* | ?:[\\/]*)
6875 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 as_dummy="/sbin:/usr/sbin:$PATH"
6880 for as_dir in $as_dummy
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6886 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6890 done
6891 done
6892 IFS=$as_save_IFS
6894 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6896 esac
6898 LDD=$ac_cv_path_LDD
6899 if test -n "$LDD"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6901 $as_echo "$LDD" >&6; }
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6908 if test -n "$ac_tool_prefix"; then
6909 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6910 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_READELF+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 if test -n "$READELF"; then
6917 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6930 done
6931 done
6932 IFS=$as_save_IFS
6936 READELF=$ac_cv_prog_READELF
6937 if test -n "$READELF"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6939 $as_echo "$READELF" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6947 if test -z "$ac_cv_prog_READELF"; then
6948 ac_ct_READELF=$READELF
6949 # Extract the first word of "readelf", so it can be a program name with args.
6950 set dummy readelf; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$ac_ct_READELF"; then
6957 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_prog_ac_ct_READELF="readelf"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6970 done
6971 done
6972 IFS=$as_save_IFS
6976 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6977 if test -n "$ac_ct_READELF"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6979 $as_echo "$ac_ct_READELF" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6985 if test "x$ac_ct_READELF" = x; then
6986 READELF="true"
6987 else
6988 case $cross_compiling:$ac_tool_warned in
6989 yes:)
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992 ac_tool_warned=yes ;;
6993 esac
6994 READELF=$ac_ct_READELF
6996 else
6997 READELF="$ac_cv_prog_READELF"
7000 wine_rules_file=conf$$rules.make
7001 rm -f $wine_rules_file
7002 ALL_POT_FILES=""
7003 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7004 ALL_TEST_RESOURCES=""
7007 wine_fn_append_file ()
7009 as_fn_append $1 " \\$as_nl $2"
7012 wine_fn_ignore_file ()
7014 case "$1" in
7015 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7016 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7017 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7018 esac
7021 wine_fn_append_rule ()
7023 $as_echo "$1" >>$wine_rules_file
7026 wine_fn_has_flag ()
7028 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7031 wine_fn_depend_rules ()
7033 wine_fn_append_rule \
7034 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
7035 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir
7036 depend: $ac_dir/depend
7037 .PHONY: $ac_dir/depend
7038 $ac_dir/depend: \$(MAKEDEP) dummy
7039 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir"
7042 wine_fn_pot_rules ()
7044 test "x$with_gettextpo" = xyes || return
7046 if wine_fn_has_flag mc
7047 then
7048 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7049 wine_fn_append_rule \
7050 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7051 @cd $ac_dir && \$(MAKE) msg.pot
7052 $ac_dir/msg.pot: tools/wmc include"
7054 if wine_fn_has_flag po
7055 then
7056 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7057 wine_fn_append_rule \
7058 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7059 @cd $ac_dir && \$(MAKE) rsrc.pot
7060 $ac_dir/rsrc.pot: tools/wrc include"
7064 wine_fn_all_rules ()
7066 wine_fn_depend_rules
7067 wine_fn_append_rule \
7068 "all: $ac_dir
7069 .PHONY: $ac_dir
7070 $ac_dir: $ac_dir/Makefile dummy
7071 @cd $ac_dir && \$(MAKE)"
7074 wine_fn_install_rules ()
7076 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7078 wine_fn_append_rule \
7079 ".PHONY: $ac_dir/install $ac_dir/uninstall
7080 $ac_dir/install:: $ac_dir
7081 @cd $ac_dir && \$(MAKE) install
7082 $ac_dir/uninstall:: $ac_dir/Makefile
7083 @cd $ac_dir && \$(MAKE) uninstall
7084 install:: $ac_dir/install
7085 __uninstall__: $ac_dir/uninstall"
7087 if wine_fn_has_flag install-lib
7088 then
7089 wine_fn_append_rule \
7090 ".PHONY: $ac_dir/install-lib
7091 $ac_dir/install-lib:: $ac_dir
7092 @cd $ac_dir && \$(MAKE) install-lib
7093 install-lib:: $ac_dir/install-lib"
7096 if wine_fn_has_flag install-dev
7097 then
7098 wine_fn_append_rule \
7099 ".PHONY: $ac_dir/install-dev
7100 $ac_dir/install-dev:: $ac_dir
7101 @cd $ac_dir && \$(MAKE) install-dev
7102 install-dev:: $ac_dir/install-dev"
7106 wine_fn_clean_rules ()
7108 ac_clean=$@
7109 ac_extraclean="$ac_dir/Makefile"
7110 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7112 if wine_fn_has_flag clean
7113 then
7114 wine_fn_append_rule \
7115 "__clean__: $ac_dir/clean
7116 .PHONY: $ac_dir/clean
7117 $ac_dir/clean: $ac_dir/Makefile
7118 @cd $ac_dir && \$(MAKE) clean
7119 \$(RM) $ac_extraclean"
7120 else
7121 wine_fn_append_rule \
7122 "__clean__: $ac_dir/clean
7123 .PHONY: $ac_dir/clean
7124 $ac_dir/clean: dummy
7125 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7129 wine_fn_disabled_rules ()
7131 ac_clean=$@
7132 ac_extraclean="$ac_dir/Makefile"
7133 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7135 wine_fn_append_rule \
7136 "__clean__: $ac_dir/clean
7137 .PHONY: $ac_dir/clean
7138 $ac_dir/clean: dummy
7139 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7142 wine_fn_config_makefile ()
7144 ac_dir=$1
7145 ac_enable=$2
7146 ac_flags=$3
7148 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7149 wine_fn_disabled_rules; return
7151 wine_fn_all_rules
7152 wine_fn_install_rules
7153 wine_fn_clean_rules
7156 wine_fn_config_lib ()
7158 ac_name=$1
7159 ac_flags=$2
7160 ac_dir=dlls/$ac_name
7161 ac_deps="include"
7163 if test "x$enable_tools" = xno; then :
7165 else
7166 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7168 wine_fn_all_rules
7169 wine_fn_clean_rules
7171 wine_fn_append_rule \
7172 ".PHONY: $ac_dir/install $ac_dir/uninstall
7173 $ac_dir/install:: $ac_dir
7174 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7175 $ac_dir/uninstall::
7176 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7177 install install-dev:: $ac_dir/install
7178 __uninstall__: $ac_dir/uninstall
7179 __builddeps__: $ac_dir
7180 $ac_dir: $ac_deps"
7183 wine_fn_config_dll ()
7185 ac_name=$1
7186 ac_dir=dlls/$ac_name
7187 ac_enable=$2
7188 ac_flags=$3
7189 ac_implib=${4:-$ac_name}
7190 ac_file=$ac_dir/lib$ac_implib
7191 ac_dll=$ac_name
7192 ac_deps="include"
7193 ac_implibflags=""
7195 if test "x$enable_tools" = xno; then :
7197 else
7198 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7200 case $ac_name in
7201 *16) ac_implibflags=" -m16" ;;
7202 *.*) ;;
7203 *) ac_dll=$ac_dll.dll ;;
7204 esac
7206 ac_clean=
7207 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7208 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7209 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7210 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7212 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7213 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7214 then
7215 wine_fn_depend_rules
7216 wine_fn_clean_rules $ac_clean
7217 else
7218 wine_fn_disabled_rules $ac_clean
7219 return
7221 else
7222 wine_fn_all_rules
7223 wine_fn_clean_rules $ac_clean
7224 wine_fn_append_rule \
7225 "$ac_dir: __builddeps__
7226 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7227 @cd $ac_dir && \$(MAKE) \$@
7228 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7229 install install-lib:: $ac_dir/install-lib
7230 __uninstall__: $ac_dir/uninstall"
7231 if test -n "$DLLEXT"
7232 then
7233 wine_fn_append_rule \
7234 "$ac_dir/install-lib:: $ac_dir
7235 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7236 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7237 $ac_dir/uninstall::
7238 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7239 else
7240 wine_fn_append_rule \
7241 "$ac_dir/install-lib:: $ac_dir
7242 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7243 $ac_dir/uninstall::
7244 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7247 wine_fn_pot_rules
7250 if wine_fn_has_flag staticimplib
7251 then
7252 wine_fn_append_rule \
7253 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7254 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7255 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7256 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7257 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7258 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7259 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7260 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7261 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7262 $ac_dir/uninstall::
7263 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7264 install install-dev:: $ac_dir/install-dev
7265 __uninstall__: $ac_dir/uninstall"
7267 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7268 then
7269 wine_fn_append_rule \
7270 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7271 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7272 $ac_dir/uninstall::
7273 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7276 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7277 then
7278 wine_fn_append_rule \
7279 "__builddeps__: $ac_file.cross.a
7280 $ac_file.cross.a: $ac_dir/Makefile dummy
7281 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7284 elif wine_fn_has_flag implib
7285 then
7286 wine_fn_append_rule \
7287 "__builddeps__: $ac_file.$IMPLIBEXT
7288 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7289 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7290 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7291 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7292 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7293 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7294 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7295 $ac_dir/uninstall::
7296 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7297 install install-dev:: $ac_dir/install-dev
7298 __uninstall__: $ac_dir/uninstall"
7299 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7300 then
7301 wine_fn_append_rule \
7302 "__builddeps__: $ac_file.cross.a
7303 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7304 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7307 if test "$ac_name" != "$ac_implib"
7308 then
7309 wine_fn_append_rule \
7310 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7311 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7312 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7313 clean::
7314 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7315 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7316 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7317 then
7318 wine_fn_append_rule \
7319 "__builddeps__: dlls/lib$ac_implib.cross.a
7320 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7321 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7322 clean::
7323 \$(RM) dlls/lib$ac_implib.cross.a"
7324 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7330 wine_fn_config_program ()
7332 ac_name=$1
7333 ac_dir=programs/$ac_name
7334 ac_enable=$2
7335 ac_flags=$3
7336 ac_program=$ac_name
7338 case $ac_name in
7339 *.*) ;;
7340 *) ac_program=$ac_program.exe ;;
7341 esac
7343 ac_clean=
7344 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7345 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7346 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7347 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7349 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7350 wine_fn_disabled_rules $ac_clean; return
7353 wine_fn_all_rules
7354 wine_fn_clean_rules $ac_clean
7355 wine_fn_append_rule "$ac_dir: __builddeps__"
7356 wine_fn_pot_rules
7358 wine_fn_has_flag install || return
7359 wine_fn_append_rule \
7360 ".PHONY: $ac_dir/install $ac_dir/uninstall
7361 install install-lib:: $ac_dir/install
7362 __uninstall__: $ac_dir/uninstall"
7364 if test -n "$DLLEXT"
7365 then
7366 wine_fn_append_rule \
7367 "$ac_dir/install:: $ac_dir
7368 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7369 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7370 $ac_dir/uninstall::
7371 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7373 if test -z "$with_wine64" && wine_fn_has_flag installbin
7374 then
7375 wine_fn_append_rule \
7376 "$ac_dir/install:: __tooldeps__
7377 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7378 $ac_dir/uninstall::
7379 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7381 else
7382 wine_fn_append_rule \
7383 "$ac_dir/install:: $ac_dir
7384 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7385 $ac_dir/uninstall::
7386 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7389 if test -z "$with_wine64" && wine_fn_has_flag manpage
7390 then
7391 wine_fn_append_rule \
7392 "$ac_dir/install:: $ac_dir
7393 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7394 $ac_dir/uninstall::
7395 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7399 wine_fn_config_test ()
7401 ac_dir=$1
7402 ac_name=$2
7403 ac_flags=$3
7405 ac_clean=
7406 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7407 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7408 ac_clean="$ac_clean $ac_dir/testlist.c"
7410 if test "x$enable_tests" = xno; then :
7411 wine_fn_disabled_rules $ac_clean; return
7414 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7415 wine_fn_all_rules
7416 wine_fn_clean_rules $ac_clean
7418 wine_fn_append_rule \
7419 "$ac_dir: programs/winetest/Makefile __builddeps__
7420 programs/winetest: $ac_dir
7421 check test: $ac_dir/test
7422 .PHONY: $ac_dir/test
7423 $ac_dir/test: dummy
7424 @cd $ac_dir && \$(MAKE) test
7425 testclean::
7426 \$(RM) $ac_dir/*.ok"
7428 if test -n "$CROSSTARGET"
7429 then
7430 wine_fn_append_rule \
7431 "crosstest: $ac_dir/crosstest
7432 .PHONY: $ac_dir/crosstest
7433 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7434 @cd $ac_dir && \$(MAKE) crosstest"
7438 wine_fn_config_tool ()
7440 ac_dir=$1
7441 ac_flags=$2
7442 if test "x$enable_tools" = xno; then :
7443 return
7446 wine_fn_all_rules
7447 wine_fn_install_rules
7448 wine_fn_clean_rules
7450 wine_fn_append_rule "__tooldeps__: $ac_dir"
7451 wine_fn_append_rule "$ac_dir: libs/port"
7452 case $ac_dir in
7453 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7454 esac
7457 wine_fn_config_symlink ()
7459 ac_linkdir=
7460 if test "x$1" = "x-d"
7461 then
7462 ac_linkdir=$2
7463 shift; shift
7465 ac_links=$@
7466 wine_fn_append_rule \
7467 "$ac_links:
7468 @./config.status \$@
7469 distclean::
7470 \$(RM) $ac_links"
7471 for f in $ac_links; do wine_fn_ignore_file $f; done
7472 test -n "$ac_linkdir" || return
7473 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7476 wine_binary="wine"
7477 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7478 loader_programs="$wine_binary wine-installed"
7479 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7481 LOADER_RULES="
7482 install install-lib:: wine-installed
7483 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7485 uninstall::
7486 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7490 case $host_os in
7491 cygwin*|mingw32*)
7492 if test -n "$ac_tool_prefix"; then
7493 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_DLLTOOL+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 if test -n "$DLLTOOL"; then
7501 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7514 done
7515 done
7516 IFS=$as_save_IFS
7520 DLLTOOL=$ac_cv_prog_DLLTOOL
7521 if test -n "$DLLTOOL"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7523 $as_echo "$DLLTOOL" >&6; }
7524 else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7531 if test -z "$ac_cv_prog_DLLTOOL"; then
7532 ac_ct_DLLTOOL=$DLLTOOL
7533 # Extract the first word of "dlltool", so it can be a program name with args.
7534 set dummy dlltool; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 if test -n "$ac_ct_DLLTOOL"; then
7541 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7554 done
7555 done
7556 IFS=$as_save_IFS
7560 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7561 if test -n "$ac_ct_DLLTOOL"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7563 $as_echo "$ac_ct_DLLTOOL" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7569 if test "x$ac_ct_DLLTOOL" = x; then
7570 DLLTOOL="false"
7571 else
7572 case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578 DLLTOOL=$ac_ct_DLLTOOL
7580 else
7581 DLLTOOL="$ac_cv_prog_DLLTOOL"
7584 LIBEXT="dll"
7585 DLLEXT=""
7586 IMPLIBEXT="a"
7587 STATIC_IMPLIBEXT="a"
7588 enable_iphlpapi=${enable_iphlpapi:-no}
7589 enable_kernel32=${enable_kernel32:-no}
7590 enable_msvcrt=${enable_msvcrt:-no}
7591 enable_ntdll=${enable_ntdll:-no}
7592 enable_ws2_32=${enable_ws2_32:-no}
7593 enable_loader=${enable_loader:-no}
7594 enable_server=${enable_server:-no}
7595 with_x=${with_x:-no}
7596 with_pthread=${with_pthread:-no}
7598 crtlibs=""
7599 case $host_os in
7600 mingw32*)
7601 crtlibs="-lmsvcrt"
7602 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7604 esac
7606 libwine_targets="libwine.dll libwine.a"
7607 LIBWINE_RULES="
7608 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7610 all: libwine.dll libwine.a
7612 libwine.a: \$(srcdir)/wine.def
7613 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7615 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7616 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7618 install install-lib:: libwine.dll
7619 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7621 install install-dev:: libwine.a
7622 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7624 uninstall::
7625 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7630 darwin*|macosx*)
7631 LIBEXT="dylib"
7632 DLLFLAGS="$DLLFLAGS -fPIC"
7633 LIBWINE_LDFLAGS="-multiply_defined suppress"
7634 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7635 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7636 COREFOUNDATIONLIB="-framework CoreFoundation"
7638 IOKITLIB="-framework IOKit -framework CoreFoundation"
7640 FORCEFEEDBACKLIB="-framework ForceFeedback -framework CoreFoundation"
7642 APPLICATIONSERVICESLIB="-framework ApplicationServices"
7644 CORESERVICESLIB="-framework CoreServices"
7646 APPKITLIB="-framework AppKit"
7648 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7649 case $host_os in
7650 darwin11*) LDEXECFLAGS="-Wl,-macosx_version_min,10.6 $LDEXECFLAGS" ;;
7651 esac
7652 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7653 then
7654 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
7657 if test "$ac_cv_header_Security_Security_h" = "yes"
7658 then
7659 SECURITYLIB="-framework Security -framework CoreFoundation"
7661 ac_save_LIBS="$LIBS"
7662 LIBS="$LIBS $SECURITYLIB"
7663 for ac_func in SSLCopyPeerCertificates
7664 do :
7665 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7666 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7667 cat >>confdefs.h <<_ACEOF
7668 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7669 _ACEOF
7672 done
7674 LIBS="$ac_save_LIBS"
7675 with_gnutls=${with_gnutls:-no}
7677 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7678 then
7679 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7680 then
7681 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7683 else
7684 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7687 ac_save_LIBS="$LIBS"
7688 LIBS="$LIBS $COREAUDIO"
7689 for ac_func in AUGraphAddNode
7690 do :
7691 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7692 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7693 cat >>confdefs.h <<_ACEOF
7694 #define HAVE_AUGRAPHADDNODE 1
7695 _ACEOF
7698 done
7700 LIBS="$ac_save_LIBS"
7702 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7703 then
7704 FRAMEWORK_OPENAL="-framework OpenAL"
7707 cat >>confdefs.h <<_ACEOF
7708 #define HAVE_OPENAL 1
7709 _ACEOF
7711 ac_cv_lib_openal=yes
7713 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7714 then
7715 LIBOPENCL="-framework OpenCL"
7717 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7719 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7720 then
7721 ac_save_LIBS="$LIBS"
7722 LIBS="$LIBS $IOKITLIB"
7723 for ac_func in IOHIDManagerCreate
7724 do :
7725 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7726 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7727 cat >>confdefs.h <<_ACEOF
7728 #define HAVE_IOHIDMANAGERCREATE 1
7729 _ACEOF
7732 done
7734 LIBS="$ac_save_LIBS"
7736 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7737 then
7738 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7740 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7741 else
7742 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7744 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7745 then
7746 CARBONLIB="-framework Carbon"
7750 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
7751 then
7752 ac_save_LIBS="$LIBS"
7753 LIBS="$LIBS $APPLICATIONSERVICESLIB"
7754 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
7755 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
7756 enable_winemac_drv=${enable_winemac_drv:-yes}
7759 LIBS="$ac_save_LIBS"
7762 if test "x$enable_win16" = "xyes"
7763 then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
7765 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
7766 if test "$cross_compiling" = yes; then :
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
7768 $as_echo "cross-compiling, assuming yes" >&6; }
7769 else
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7772 asm(".text\n"
7773 "bad:\tnop;nop\n"
7774 "good:\tnop;nop\n\t"
7775 ".globl _testfunc\n"
7776 "_testfunc:\tcallw good");
7777 extern void testfunc();
7779 main ()
7781 unsigned short *p = (unsigned short *)testfunc;
7782 return p[0] != 0xe866 || p[1] != 0xfffa
7784 return 0;
7786 _ACEOF
7787 if ac_fn_c_try_run "$LINENO"; then :
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7789 $as_echo "yes" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 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
7795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7796 conftest.$ac_objext conftest.beam conftest.$ac_ext
7801 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
7802 LIBWINE_RULES="
7803 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7805 all: libwine.dylib
7807 libwine.$libwine_version.dylib: \$(OBJS)
7808 \$(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 \$@
7810 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
7811 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
7813 libwine.dylib: libwine.$libwine_soversion.dylib
7814 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
7816 install install-lib:: libwine.$libwine_version.dylib
7817 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
7818 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
7820 install install-dev::
7821 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
7823 uninstall::
7824 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
7828 as_fn_append LOADER_RULES "
7829 $wine_binary: main.o wine_info.plist
7830 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
7832 wine-installed: main.o wine_info.plist
7833 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
7837 linux-android*)
7838 DLLFLAGS="$DLLFLAGS -fPIC"
7839 DLLPREFIX="lib"
7840 LDEXECFLAGS=""
7841 dlldir="\${libdir}"
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7843 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7844 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 ac_wine_try_cflags_saved=$CFLAGS
7848 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7851 int main(int argc, char **argv) { return 0; }
7852 _ACEOF
7853 if ac_fn_c_try_link "$LINENO"; then :
7854 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7855 else
7856 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7858 rm -f core conftest.err conftest.$ac_objext \
7859 conftest$ac_exeext conftest.$ac_ext
7860 CFLAGS=$ac_wine_try_cflags_saved
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7863 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7864 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7865 LDEXECFLAGS="-Wl,--export-dynamic"
7867 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7869 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7870 if eval \${$as_ac_var+:} false; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 ac_wine_try_cflags_saved=$CFLAGS
7874 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877 int main(int argc, char **argv) { return 0; }
7878 _ACEOF
7879 if ac_fn_c_try_link "$LINENO"; then :
7880 eval "$as_ac_var=yes"
7881 else
7882 eval "$as_ac_var=no"
7884 rm -f core conftest.err conftest.$ac_objext \
7885 conftest$ac_exeext conftest.$ac_ext
7886 CFLAGS=$ac_wine_try_cflags_saved
7888 eval ac_res=\$$as_ac_var
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7890 $as_echo "$ac_res" >&6; }
7891 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7892 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7893 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7894 else
7895 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7897 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7898 if eval \${$as_ac_var+:} false; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 ac_wine_try_cflags_saved=$CFLAGS
7902 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 int main(int argc, char **argv) { return 0; }
7906 _ACEOF
7907 if ac_fn_c_try_link "$LINENO"; then :
7908 eval "$as_ac_var=yes"
7909 else
7910 eval "$as_ac_var=no"
7912 rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 CFLAGS=$ac_wine_try_cflags_saved
7916 eval ac_res=\$$as_ac_var
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7918 $as_echo "$ac_res" >&6; }
7919 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7920 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7921 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7926 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7927 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 ac_wine_try_cflags_saved=$CFLAGS
7931 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934 int main(int argc, char **argv) { return 0; }
7935 _ACEOF
7936 if ac_fn_c_try_link "$LINENO"; then :
7937 ac_cv_cflags__Wl___enable_new_dtags=yes
7938 else
7939 ac_cv_cflags__Wl___enable_new_dtags=no
7941 rm -f core conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7943 CFLAGS=$ac_wine_try_cflags_saved
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7946 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7947 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7948 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7951 case $host_cpu in
7952 *i[3456789]86* | x86_64)
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7954 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7955 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 ac_wine_try_cflags_saved=$CFLAGS
7959 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 int main(int argc, char **argv) { return 0; }
7963 _ACEOF
7964 if ac_fn_c_try_link "$LINENO"; then :
7965 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7966 else
7967 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7969 rm -f core conftest.err conftest.$ac_objext \
7970 conftest$ac_exeext conftest.$ac_ext
7971 CFLAGS=$ac_wine_try_cflags_saved
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7974 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7975 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7976 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
7979 esac
7981 libwine_targets="libwine.so"
7982 LIBWINE_RULES="
7983 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7985 all: libwine.so
7987 libwine.so: \$(OBJS)
7988 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7990 install install-lib:: libwine.so
7991 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
7993 uninstall::
7994 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
7998 as_fn_append LOADER_RULES "
7999 $wine_binary: main.o
8000 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8002 wine-installed: main.o
8003 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8008 DLLFLAGS="$DLLFLAGS -fPIC"
8009 LDEXECFLAGS=""
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8011 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8012 if ${ac_cv_c_dll_gnuelf+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 ac_wine_try_cflags_saved=$CFLAGS
8016 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019 void myfunc() {}
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"; then :
8022 ac_cv_c_dll_gnuelf="yes"
8023 else
8024 ac_cv_c_dll_gnuelf="no"
8026 rm -f core conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028 CFLAGS=$ac_wine_try_cflags_saved
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8031 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8032 if test "$ac_cv_c_dll_gnuelf" = "yes"
8033 then
8034 LDSHARED="\$(CC) -shared"
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8036 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8037 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 ac_wine_try_cflags_saved=$CFLAGS
8041 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044 int main(int argc, char **argv) { return 0; }
8045 _ACEOF
8046 if ac_fn_c_try_link "$LINENO"; then :
8047 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8048 else
8049 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8051 rm -f core conftest.err conftest.$ac_objext \
8052 conftest$ac_exeext conftest.$ac_ext
8053 CFLAGS=$ac_wine_try_cflags_saved
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8056 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8057 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
8058 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8061 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8062 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 ac_wine_try_cflags_saved=$CFLAGS
8066 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 int main(int argc, char **argv) { return 0; }
8070 _ACEOF
8071 if ac_fn_c_try_link "$LINENO"; then :
8072 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8073 else
8074 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8076 rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
8078 CFLAGS=$ac_wine_try_cflags_saved
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8081 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8082 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
8083 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8087 echo '{ global: *; };' >conftest.map
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8089 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8090 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 ac_wine_try_cflags_saved=$CFLAGS
8094 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8097 int main(int argc, char **argv) { return 0; }
8098 _ACEOF
8099 if ac_fn_c_try_link "$LINENO"; then :
8100 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8101 else
8102 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8104 rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106 CFLAGS=$ac_wine_try_cflags_saved
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8109 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8110 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
8111 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8113 rm -f conftest.map
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8116 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8117 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 ac_wine_try_cflags_saved=$CFLAGS
8121 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 int main(int argc, char **argv) { return 0; }
8125 _ACEOF
8126 if ac_fn_c_try_link "$LINENO"; then :
8127 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8128 else
8129 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8131 rm -f core conftest.err conftest.$ac_objext \
8132 conftest$ac_exeext conftest.$ac_ext
8133 CFLAGS=$ac_wine_try_cflags_saved
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8136 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8137 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
8138 LDEXECFLAGS="-Wl,--export-dynamic"
8141 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8143 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8144 if eval \${$as_ac_var+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 ac_wine_try_cflags_saved=$CFLAGS
8148 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 int main(int argc, char **argv) { return 0; }
8152 _ACEOF
8153 if ac_fn_c_try_link "$LINENO"; then :
8154 eval "$as_ac_var=yes"
8155 else
8156 eval "$as_ac_var=no"
8158 rm -f core conftest.err conftest.$ac_objext \
8159 conftest$ac_exeext conftest.$ac_ext
8160 CFLAGS=$ac_wine_try_cflags_saved
8162 eval ac_res=\$$as_ac_var
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8164 $as_echo "$ac_res" >&6; }
8165 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8166 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8167 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8168 else
8169 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8171 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8172 if eval \${$as_ac_var+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 ac_wine_try_cflags_saved=$CFLAGS
8176 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 int main(int argc, char **argv) { return 0; }
8180 _ACEOF
8181 if ac_fn_c_try_link "$LINENO"; then :
8182 eval "$as_ac_var=yes"
8183 else
8184 eval "$as_ac_var=no"
8186 rm -f core conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8188 CFLAGS=$ac_wine_try_cflags_saved
8190 eval ac_res=\$$as_ac_var
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8192 $as_echo "$ac_res" >&6; }
8193 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8194 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8195 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8200 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8201 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 ac_wine_try_cflags_saved=$CFLAGS
8205 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 int main(int argc, char **argv) { return 0; }
8209 _ACEOF
8210 if ac_fn_c_try_link "$LINENO"; then :
8211 ac_cv_cflags__Wl___enable_new_dtags=yes
8212 else
8213 ac_cv_cflags__Wl___enable_new_dtags=no
8215 rm -f core conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217 CFLAGS=$ac_wine_try_cflags_saved
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8220 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8221 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8222 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8225 case $host_cpu in
8226 *i[3456789]86* | x86_64)
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8228 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8229 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 ac_wine_try_cflags_saved=$CFLAGS
8233 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 int main(int argc, char **argv) { return 0; }
8237 _ACEOF
8238 if ac_fn_c_try_link "$LINENO"; then :
8239 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8240 else
8241 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8243 rm -f core conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 CFLAGS=$ac_wine_try_cflags_saved
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8248 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8249 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8250 case $host_os in
8251 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8252 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8253 esac
8256 # Extract the first word of "prelink", so it can be a program name with args.
8257 set dummy prelink; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if ${ac_cv_path_PRELINK+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 case $PRELINK in
8264 [\\/]* | ?:[\\/]*)
8265 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in /sbin /usr/sbin $PATH
8271 IFS=$as_save_IFS
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8275 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 break 2
8279 done
8280 done
8281 IFS=$as_save_IFS
8283 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8285 esac
8287 PRELINK=$ac_cv_path_PRELINK
8288 if test -n "$PRELINK"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8290 $as_echo "$PRELINK" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8297 if test "x$PRELINK" = xfalse
8298 then
8299 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8302 esac
8304 else
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8306 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8307 if ${ac_cv_c_dll_unixware+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 ac_wine_try_cflags_saved=$CFLAGS
8311 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8314 void myfunc() {}
8315 _ACEOF
8316 if ac_fn_c_try_link "$LINENO"; then :
8317 ac_cv_c_dll_unixware="yes"
8318 else
8319 ac_cv_c_dll_unixware="no"
8321 rm -f core conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
8323 CFLAGS=$ac_wine_try_cflags_saved
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8326 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8327 if test "$ac_cv_c_dll_unixware" = "yes"
8328 then
8329 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8332 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8333 LIBWINE_RULES="
8334 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8336 all: libwine.so
8338 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8339 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8341 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8342 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8344 libwine.so: libwine.so.$libwine_soversion
8345 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8347 install install-lib:: libwine.so.$libwine_version
8348 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8349 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8351 install install-dev::
8352 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8354 uninstall::
8355 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8359 as_fn_append LOADER_RULES "
8360 $wine_binary: main.o
8361 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8363 wine-installed: main.o
8364 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8367 esac
8369 as_fn_append LIBWINE_RULES "
8370 EXTRA_TARGETS = $libwine_targets
8373 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8374 enable_winemac_drv=${enable_winemac_drv:-no}
8376 CROSSTARGET=""
8378 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8379 then
8380 case "$host_cpu" in
8381 i[3456789]86*)
8382 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
8383 mingw32-gcc" ;;
8384 x86_64)
8385 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 " ;;
8387 ac_prefix_list="" ;;
8388 esac
8389 for ac_prog in $ac_prefix_list
8391 # Extract the first word of "$ac_prog", so it can be a program name with args.
8392 set dummy $ac_prog; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_prog_CROSSCC+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 if test -n "$CROSSCC"; then
8399 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_CROSSCC="$ac_prog"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8414 IFS=$as_save_IFS
8418 CROSSCC=$ac_cv_prog_CROSSCC
8419 if test -n "$CROSSCC"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8421 $as_echo "$CROSSCC" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8428 test -n "$CROSSCC" && break
8429 done
8430 test -n "$CROSSCC" || CROSSCC="false"
8432 if test "$CROSSCC" != "false"
8433 then
8434 ac_save_CC="$CC"
8435 CC="$CROSSCC"
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8437 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8442 main ()
8446 return 0;
8448 _ACEOF
8449 if ac_fn_c_try_compile "$LINENO"; then :
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8451 $as_echo "yes" >&6; }
8452 set x $CROSSCC
8453 shift
8454 while test $# -ge 1
8456 case "$1" in
8457 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8458 esac
8459 shift
8460 done
8461 else
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 CC="$ac_save_CC"
8471 if test "$ac_cv_header_pthread_h" = "yes"
8472 then
8473 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8474 if test "x$ac_cv_func_pthread_create" = xyes; then :
8476 else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8478 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8479 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 ac_check_lib_save_LIBS=$LIBS
8483 LIBS="-lpthread $LIBS"
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8487 /* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8490 #ifdef __cplusplus
8491 extern "C"
8492 #endif
8493 char pthread_create ();
8495 main ()
8497 return pthread_create ();
8499 return 0;
8501 _ACEOF
8502 if ac_fn_c_try_link "$LINENO"; then :
8503 ac_cv_lib_pthread_pthread_create=yes
8504 else
8505 ac_cv_lib_pthread_pthread_create=no
8507 rm -f core conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 LIBS=$ac_check_lib_save_LIBS
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8512 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8513 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8514 LIBPTHREAD="-lpthread"
8521 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
8522 case "x$with_pthread" in
8523 xno) ;;
8524 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8525 Wine cannot support threads without libpthread.
8526 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8527 esac
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8532 $as_echo_n "checking for X... " >&6; }
8535 # Check whether --with-x was given.
8536 if test "${with_x+set}" = set; then :
8537 withval=$with_x;
8540 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8541 if test "x$with_x" = xno; then
8542 # The user explicitly disabled X.
8543 have_x=disabled
8544 else
8545 case $x_includes,$x_libraries in #(
8546 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8547 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 # One or both of the vars are not set, and there is no cached value.
8551 ac_x_includes=no ac_x_libraries=no
8552 rm -f -r conftest.dir
8553 if mkdir conftest.dir; then
8554 cd conftest.dir
8555 cat >Imakefile <<'_ACEOF'
8556 incroot:
8557 @echo incroot='${INCROOT}'
8558 usrlibdir:
8559 @echo usrlibdir='${USRLIBDIR}'
8560 libdir:
8561 @echo libdir='${LIBDIR}'
8562 _ACEOF
8563 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8564 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8565 for ac_var in incroot usrlibdir libdir; do
8566 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8567 done
8568 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8569 for ac_extension in a so sl dylib la dll; do
8570 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8571 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8572 ac_im_usrlibdir=$ac_im_libdir; break
8574 done
8575 # Screen out bogus values from the imake configuration. They are
8576 # bogus both because they are the default anyway, and because
8577 # using them would break gcc on systems where it needs fixed includes.
8578 case $ac_im_incroot in
8579 /usr/include) ac_x_includes= ;;
8580 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8581 esac
8582 case $ac_im_usrlibdir in
8583 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8584 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8585 esac
8587 cd ..
8588 rm -f -r conftest.dir
8591 # Standard set of common directories for X headers.
8592 # Check X11 before X11Rn because it is often a symlink to the current release.
8593 ac_x_header_dirs='
8594 /usr/X11/include
8595 /usr/X11R7/include
8596 /usr/X11R6/include
8597 /usr/X11R5/include
8598 /usr/X11R4/include
8600 /usr/include/X11
8601 /usr/include/X11R7
8602 /usr/include/X11R6
8603 /usr/include/X11R5
8604 /usr/include/X11R4
8606 /usr/local/X11/include
8607 /usr/local/X11R7/include
8608 /usr/local/X11R6/include
8609 /usr/local/X11R5/include
8610 /usr/local/X11R4/include
8612 /usr/local/include/X11
8613 /usr/local/include/X11R7
8614 /usr/local/include/X11R6
8615 /usr/local/include/X11R5
8616 /usr/local/include/X11R4
8618 /usr/X386/include
8619 /usr/x386/include
8620 /usr/XFree86/include/X11
8622 /usr/include
8623 /usr/local/include
8624 /usr/unsupported/include
8625 /usr/athena/include
8626 /usr/local/x11r5/include
8627 /usr/lpp/Xamples/include
8629 /usr/openwin/include
8630 /usr/openwin/share/include'
8632 if test "$ac_x_includes" = no; then
8633 # Guess where to find include files, by looking for Xlib.h.
8634 # First, try using that file with no special directory specified.
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 #include <X11/Xlib.h>
8638 _ACEOF
8639 if ac_fn_c_try_cpp "$LINENO"; then :
8640 # We can compile using X headers with no special include directory.
8641 ac_x_includes=
8642 else
8643 for ac_dir in $ac_x_header_dirs; do
8644 if test -r "$ac_dir/X11/Xlib.h"; then
8645 ac_x_includes=$ac_dir
8646 break
8648 done
8650 rm -f conftest.err conftest.i conftest.$ac_ext
8651 fi # $ac_x_includes = no
8653 if test "$ac_x_libraries" = no; then
8654 # Check for the libraries.
8655 # See if we find them without any special options.
8656 # Don't add to $LIBS permanently.
8657 ac_save_LIBS=$LIBS
8658 LIBS="-lX11 $LIBS"
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 #include <X11/Xlib.h>
8663 main ()
8665 XrmInitialize ()
8667 return 0;
8669 _ACEOF
8670 if ac_fn_c_try_link "$LINENO"; then :
8671 LIBS=$ac_save_LIBS
8672 # We can link X programs with no special library path.
8673 ac_x_libraries=
8674 else
8675 LIBS=$ac_save_LIBS
8676 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8678 # Don't even attempt the hair of trying to link an X program!
8679 for ac_extension in a so sl dylib la dll; do
8680 if test -r "$ac_dir/libX11.$ac_extension"; then
8681 ac_x_libraries=$ac_dir
8682 break 2
8684 done
8685 done
8687 rm -f core conftest.err conftest.$ac_objext \
8688 conftest$ac_exeext conftest.$ac_ext
8689 fi # $ac_x_libraries = no
8691 case $ac_x_includes,$ac_x_libraries in #(
8692 no,* | *,no | *\'*)
8693 # Didn't find X, or a directory has "'" in its name.
8694 ac_cv_have_x="have_x=no";; #(
8696 # Record where we found X for the cache.
8697 ac_cv_have_x="have_x=yes\
8698 ac_x_includes='$ac_x_includes'\
8699 ac_x_libraries='$ac_x_libraries'"
8700 esac
8702 ;; #(
8703 *) have_x=yes;;
8704 esac
8705 eval "$ac_cv_have_x"
8706 fi # $with_x != no
8708 if test "$have_x" != yes; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8710 $as_echo "$have_x" >&6; }
8711 no_x=yes
8712 else
8713 # If each of the values was on the command line, it overrides each guess.
8714 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8715 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8716 # Update the cache value to reflect the command line values.
8717 ac_cv_have_x="have_x=yes\
8718 ac_x_includes='$x_includes'\
8719 ac_x_libraries='$x_libraries'"
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8721 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8724 if test "$no_x" = yes; then
8725 # Not all programs may use this symbol, but it does not hurt to define it.
8727 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8729 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8730 else
8731 if test -n "$x_includes"; then
8732 X_CFLAGS="$X_CFLAGS -I$x_includes"
8735 # It would also be nice to do this for all -L options, not just this one.
8736 if test -n "$x_libraries"; then
8737 X_LIBS="$X_LIBS -L$x_libraries"
8738 # For Solaris; some versions of Sun CC require a space after -R and
8739 # others require no space. Words are not sufficient . . . .
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8741 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8742 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8743 ac_xsave_c_werror_flag=$ac_c_werror_flag
8744 ac_c_werror_flag=yes
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8749 main ()
8753 return 0;
8755 _ACEOF
8756 if ac_fn_c_try_link "$LINENO"; then :
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8759 X_LIBS="$X_LIBS -R$x_libraries"
8760 else
8761 LIBS="$ac_xsave_LIBS -R $x_libraries"
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8766 main ()
8770 return 0;
8772 _ACEOF
8773 if ac_fn_c_try_link "$LINENO"; then :
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8775 $as_echo "yes" >&6; }
8776 X_LIBS="$X_LIBS -R $x_libraries"
8777 else
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8779 $as_echo "neither works" >&6; }
8781 rm -f core conftest.err conftest.$ac_objext \
8782 conftest$ac_exeext conftest.$ac_ext
8784 rm -f core conftest.err conftest.$ac_objext \
8785 conftest$ac_exeext conftest.$ac_ext
8786 ac_c_werror_flag=$ac_xsave_c_werror_flag
8787 LIBS=$ac_xsave_LIBS
8790 # Check for system-dependent libraries X programs must link with.
8791 # Do this before checking for the system-independent R6 libraries
8792 # (-lICE), since we may need -lsocket or whatever for X linking.
8794 if test "$ISC" = yes; then
8795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8796 else
8797 # Martyn Johnson says this is needed for Ultrix, if the X
8798 # libraries were built with DECnet support. And Karl Berry says
8799 # the Alpha needs dnet_stub (dnet does not exist).
8800 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8804 /* Override any GCC internal prototype to avoid an error.
8805 Use char because int might match the return type of a GCC
8806 builtin and then its argument prototype would still apply. */
8807 #ifdef __cplusplus
8808 extern "C"
8809 #endif
8810 char XOpenDisplay ();
8812 main ()
8814 return XOpenDisplay ();
8816 return 0;
8818 _ACEOF
8819 if ac_fn_c_try_link "$LINENO"; then :
8821 else
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8823 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8824 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 ac_check_lib_save_LIBS=$LIBS
8828 LIBS="-ldnet $LIBS"
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8832 /* Override any GCC internal prototype to avoid an error.
8833 Use char because int might match the return type of a GCC
8834 builtin and then its argument prototype would still apply. */
8835 #ifdef __cplusplus
8836 extern "C"
8837 #endif
8838 char dnet_ntoa ();
8840 main ()
8842 return dnet_ntoa ();
8844 return 0;
8846 _ACEOF
8847 if ac_fn_c_try_link "$LINENO"; then :
8848 ac_cv_lib_dnet_dnet_ntoa=yes
8849 else
8850 ac_cv_lib_dnet_dnet_ntoa=no
8852 rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8857 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8858 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8859 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8862 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8864 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8865 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 ac_check_lib_save_LIBS=$LIBS
8869 LIBS="-ldnet_stub $LIBS"
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8873 /* Override any GCC internal prototype to avoid an error.
8874 Use char because int might match the return type of a GCC
8875 builtin and then its argument prototype would still apply. */
8876 #ifdef __cplusplus
8877 extern "C"
8878 #endif
8879 char dnet_ntoa ();
8881 main ()
8883 return dnet_ntoa ();
8885 return 0;
8887 _ACEOF
8888 if ac_fn_c_try_link "$LINENO"; then :
8889 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8890 else
8891 ac_cv_lib_dnet_stub_dnet_ntoa=no
8893 rm -f core conftest.err conftest.$ac_objext \
8894 conftest$ac_exeext conftest.$ac_ext
8895 LIBS=$ac_check_lib_save_LIBS
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8898 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8899 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8900 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8905 rm -f core conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 LIBS="$ac_xsave_LIBS"
8909 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8910 # to get the SysV transport functions.
8911 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8912 # needs -lnsl.
8913 # The nsl library prevents programs from opening the X display
8914 # on Irix 5.2, according to T.E. Dickey.
8915 # The functions gethostbyname, getservbyname, and inet_addr are
8916 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8917 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8918 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8922 if test $ac_cv_func_gethostbyname = no; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8924 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8925 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 ac_check_lib_save_LIBS=$LIBS
8929 LIBS="-lnsl $LIBS"
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8933 /* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
8936 #ifdef __cplusplus
8937 extern "C"
8938 #endif
8939 char gethostbyname ();
8941 main ()
8943 return gethostbyname ();
8945 return 0;
8947 _ACEOF
8948 if ac_fn_c_try_link "$LINENO"; then :
8949 ac_cv_lib_nsl_gethostbyname=yes
8950 else
8951 ac_cv_lib_nsl_gethostbyname=no
8953 rm -f core conftest.err conftest.$ac_objext \
8954 conftest$ac_exeext conftest.$ac_ext
8955 LIBS=$ac_check_lib_save_LIBS
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8958 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8959 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8963 if test $ac_cv_lib_nsl_gethostbyname = no; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8965 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8966 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 ac_check_lib_save_LIBS=$LIBS
8970 LIBS="-lbsd $LIBS"
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8974 /* Override any GCC internal prototype to avoid an error.
8975 Use char because int might match the return type of a GCC
8976 builtin and then its argument prototype would still apply. */
8977 #ifdef __cplusplus
8978 extern "C"
8979 #endif
8980 char gethostbyname ();
8982 main ()
8984 return gethostbyname ();
8986 return 0;
8988 _ACEOF
8989 if ac_fn_c_try_link "$LINENO"; then :
8990 ac_cv_lib_bsd_gethostbyname=yes
8991 else
8992 ac_cv_lib_bsd_gethostbyname=no
8994 rm -f core conftest.err conftest.$ac_objext \
8995 conftest$ac_exeext conftest.$ac_ext
8996 LIBS=$ac_check_lib_save_LIBS
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8999 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9000 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9001 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9007 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9008 # socket/setsockopt and other routines are undefined under SCO ODT
9009 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9010 # on later versions), says Simon Leinen: it contains gethostby*
9011 # variants that don't use the name server (or something). -lsocket
9012 # must be given before -lnsl if both are needed. We assume that
9013 # if connect needs -lnsl, so does gethostbyname.
9014 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9015 if test "x$ac_cv_func_connect" = xyes; then :
9019 if test $ac_cv_func_connect = no; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9021 $as_echo_n "checking for connect in -lsocket... " >&6; }
9022 if ${ac_cv_lib_socket_connect+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 ac_check_lib_save_LIBS=$LIBS
9026 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9030 /* Override any GCC internal prototype to avoid an error.
9031 Use char because int might match the return type of a GCC
9032 builtin and then its argument prototype would still apply. */
9033 #ifdef __cplusplus
9034 extern "C"
9035 #endif
9036 char connect ();
9038 main ()
9040 return connect ();
9042 return 0;
9044 _ACEOF
9045 if ac_fn_c_try_link "$LINENO"; then :
9046 ac_cv_lib_socket_connect=yes
9047 else
9048 ac_cv_lib_socket_connect=no
9050 rm -f core conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
9052 LIBS=$ac_check_lib_save_LIBS
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9055 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9056 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9057 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9062 # Guillermo Gomez says -lposix is necessary on A/UX.
9063 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9064 if test "x$ac_cv_func_remove" = xyes; then :
9068 if test $ac_cv_func_remove = no; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9070 $as_echo_n "checking for remove in -lposix... " >&6; }
9071 if ${ac_cv_lib_posix_remove+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 ac_check_lib_save_LIBS=$LIBS
9075 LIBS="-lposix $LIBS"
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9079 /* Override any GCC internal prototype to avoid an error.
9080 Use char because int might match the return type of a GCC
9081 builtin and then its argument prototype would still apply. */
9082 #ifdef __cplusplus
9083 extern "C"
9084 #endif
9085 char remove ();
9087 main ()
9089 return remove ();
9091 return 0;
9093 _ACEOF
9094 if ac_fn_c_try_link "$LINENO"; then :
9095 ac_cv_lib_posix_remove=yes
9096 else
9097 ac_cv_lib_posix_remove=no
9099 rm -f core conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
9101 LIBS=$ac_check_lib_save_LIBS
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9104 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9105 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9106 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9111 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9112 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9113 if test "x$ac_cv_func_shmat" = xyes; then :
9117 if test $ac_cv_func_shmat = no; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9119 $as_echo_n "checking for shmat in -lipc... " >&6; }
9120 if ${ac_cv_lib_ipc_shmat+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 ac_check_lib_save_LIBS=$LIBS
9124 LIBS="-lipc $LIBS"
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9128 /* Override any GCC internal prototype to avoid an error.
9129 Use char because int might match the return type of a GCC
9130 builtin and then its argument prototype would still apply. */
9131 #ifdef __cplusplus
9132 extern "C"
9133 #endif
9134 char shmat ();
9136 main ()
9138 return shmat ();
9140 return 0;
9142 _ACEOF
9143 if ac_fn_c_try_link "$LINENO"; then :
9144 ac_cv_lib_ipc_shmat=yes
9145 else
9146 ac_cv_lib_ipc_shmat=no
9148 rm -f core conftest.err conftest.$ac_objext \
9149 conftest$ac_exeext conftest.$ac_ext
9150 LIBS=$ac_check_lib_save_LIBS
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9153 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9154 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9155 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9161 # Check for libraries that X11R6 Xt/Xaw programs need.
9162 ac_save_LDFLAGS=$LDFLAGS
9163 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9164 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9165 # check for ICE first), but we must link in the order -lSM -lICE or
9166 # we get undefined symbols. So assume we have SM if we have ICE.
9167 # These have to be linked with before -lX11, unlike the other
9168 # libraries we check for below, so use a different variable.
9169 # John Interrante, Karl Berry
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9171 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9172 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 ac_check_lib_save_LIBS=$LIBS
9176 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9180 /* Override any GCC internal prototype to avoid an error.
9181 Use char because int might match the return type of a GCC
9182 builtin and then its argument prototype would still apply. */
9183 #ifdef __cplusplus
9184 extern "C"
9185 #endif
9186 char IceConnectionNumber ();
9188 main ()
9190 return IceConnectionNumber ();
9192 return 0;
9194 _ACEOF
9195 if ac_fn_c_try_link "$LINENO"; then :
9196 ac_cv_lib_ICE_IceConnectionNumber=yes
9197 else
9198 ac_cv_lib_ICE_IceConnectionNumber=no
9200 rm -f core conftest.err conftest.$ac_objext \
9201 conftest$ac_exeext conftest.$ac_ext
9202 LIBS=$ac_check_lib_save_LIBS
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9205 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9206 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9207 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9210 LDFLAGS=$ac_save_LDFLAGS
9215 if test "$have_x" = "yes"
9216 then
9217 XLIB="-lX11"
9218 ac_save_CPPFLAGS="$CPPFLAGS"
9219 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9222 $as_echo_n "checking for -lX11... " >&6; }
9223 if ${ac_cv_lib_soname_X11+:} false; then :
9224 $as_echo_n "(cached) " >&6
9225 else
9226 ac_check_soname_save_LIBS=$LIBS
9227 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9231 /* Override any GCC internal prototype to avoid an error.
9232 Use char because int might match the return type of a GCC
9233 builtin and then its argument prototype would still apply. */
9234 #ifdef __cplusplus
9235 extern "C"
9236 #endif
9237 char XCreateWindow ();
9239 main ()
9241 return XCreateWindow ();
9243 return 0;
9245 _ACEOF
9246 if ac_fn_c_try_link "$LINENO"; then :
9247 case "$LIBEXT" in
9248 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9249 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'` ;;
9250 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9251 if test "x$ac_cv_lib_soname_X11" = x; then :
9252 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9253 fi ;;
9254 esac
9256 rm -f core conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258 LIBS=$ac_check_soname_save_LIBS
9260 if test "x$ac_cv_lib_soname_X11" = "x"; then :
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9262 $as_echo "not found" >&6; }
9264 else
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9266 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9268 cat >>confdefs.h <<_ACEOF
9269 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9270 _ACEOF
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9275 $as_echo_n "checking for -lXext... " >&6; }
9276 if ${ac_cv_lib_soname_Xext+:} false; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 ac_check_soname_save_LIBS=$LIBS
9280 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9284 /* Override any GCC internal prototype to avoid an error.
9285 Use char because int might match the return type of a GCC
9286 builtin and then its argument prototype would still apply. */
9287 #ifdef __cplusplus
9288 extern "C"
9289 #endif
9290 char XextCreateExtension ();
9292 main ()
9294 return XextCreateExtension ();
9296 return 0;
9298 _ACEOF
9299 if ac_fn_c_try_link "$LINENO"; then :
9300 case "$LIBEXT" in
9301 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9302 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'` ;;
9303 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9304 if test "x$ac_cv_lib_soname_Xext" = x; then :
9305 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9306 fi ;;
9307 esac
9309 rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_soname_save_LIBS
9313 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9315 $as_echo "not found" >&6; }
9317 else
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9319 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9321 cat >>confdefs.h <<_ACEOF
9322 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9323 _ACEOF
9325 XLIB="-lXext $XLIB"
9328 for ac_header in X11/Xlib.h \
9329 X11/XKBlib.h \
9330 X11/Xutil.h \
9331 X11/Xcursor/Xcursor.h \
9332 X11/extensions/shape.h \
9333 X11/extensions/XInput.h \
9334 X11/extensions/XInput2.h \
9335 X11/extensions/XShm.h \
9336 X11/extensions/Xcomposite.h \
9337 X11/extensions/Xinerama.h \
9338 X11/extensions/Xrandr.h \
9339 X11/extensions/Xrender.h \
9340 X11/extensions/xf86vmode.h \
9341 X11/extensions/xf86vmproto.h
9342 do :
9343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9345 # include <X11/Xlib.h>
9346 #endif
9347 #ifdef HAVE_X11_XUTIL_H
9348 # include <X11/Xutil.h>
9349 #endif
9351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9352 cat >>confdefs.h <<_ACEOF
9353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9354 _ACEOF
9358 done
9361 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9362 then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9364 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9365 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 ac_check_lib_save_LIBS=$LIBS
9369 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9373 /* Override any GCC internal prototype to avoid an error.
9374 Use char because int might match the return type of a GCC
9375 builtin and then its argument prototype would still apply. */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 char XkbQueryExtension ();
9381 main ()
9383 return XkbQueryExtension ();
9385 return 0;
9387 _ACEOF
9388 if ac_fn_c_try_link "$LINENO"; then :
9389 ac_cv_lib_X11_XkbQueryExtension=yes
9390 else
9391 ac_cv_lib_X11_XkbQueryExtension=no
9393 rm -f core conftest.err conftest.$ac_objext \
9394 conftest$ac_exeext conftest.$ac_ext
9395 LIBS=$ac_check_lib_save_LIBS
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9398 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9399 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9401 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9407 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9408 then
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9410 $as_echo_n "checking for -lXcursor... " >&6; }
9411 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 ac_check_soname_save_LIBS=$LIBS
9415 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9419 /* Override any GCC internal prototype to avoid an error.
9420 Use char because int might match the return type of a GCC
9421 builtin and then its argument prototype would still apply. */
9422 #ifdef __cplusplus
9423 extern "C"
9424 #endif
9425 char XcursorImageLoadCursor ();
9427 main ()
9429 return XcursorImageLoadCursor ();
9431 return 0;
9433 _ACEOF
9434 if ac_fn_c_try_link "$LINENO"; then :
9435 case "$LIBEXT" in
9436 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9437 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'` ;;
9438 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9439 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
9440 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9441 fi ;;
9442 esac
9444 rm -f core conftest.err conftest.$ac_objext \
9445 conftest$ac_exeext conftest.$ac_ext
9446 LIBS=$ac_check_soname_save_LIBS
9448 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9450 $as_echo "not found" >&6; }
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9454 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9456 cat >>confdefs.h <<_ACEOF
9457 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9458 _ACEOF
9463 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9464 case "x$with_xcursor" in
9465 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9466 xno) ;;
9467 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9468 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9469 esac
9472 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9473 then
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9475 $as_echo_n "checking for -lXi... " >&6; }
9476 if ${ac_cv_lib_soname_Xi+:} false; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 ac_check_soname_save_LIBS=$LIBS
9480 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9487 #ifdef __cplusplus
9488 extern "C"
9489 #endif
9490 char XOpenDevice ();
9492 main ()
9494 return XOpenDevice ();
9496 return 0;
9498 _ACEOF
9499 if ac_fn_c_try_link "$LINENO"; then :
9500 case "$LIBEXT" in
9501 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9502 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'` ;;
9503 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9504 if test "x$ac_cv_lib_soname_Xi" = x; then :
9505 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9506 fi ;;
9507 esac
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511 LIBS=$ac_check_soname_save_LIBS
9513 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9515 $as_echo "not found" >&6; }
9517 else
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9519 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9521 cat >>confdefs.h <<_ACEOF
9522 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9523 _ACEOF
9528 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9529 case "x$with_xinput" in
9530 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9531 xno) ;;
9532 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9533 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9534 esac
9537 if test "x$ac_cv_lib_soname_Xi" != x
9538 then
9539 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9540 case "x$with_xinput2" in
9541 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9542 xno) ;;
9543 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9544 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9545 esac
9549 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9550 then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9552 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9553 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 ac_check_lib_save_LIBS=$LIBS
9557 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 char XShmQueryExtension ();
9569 main ()
9571 return XShmQueryExtension ();
9573 return 0;
9575 _ACEOF
9576 if ac_fn_c_try_link "$LINENO"; then :
9577 ac_cv_lib_Xext_XShmQueryExtension=yes
9578 else
9579 ac_cv_lib_Xext_XShmQueryExtension=no
9581 rm -f core conftest.err conftest.$ac_objext \
9582 conftest$ac_exeext conftest.$ac_ext
9583 LIBS=$ac_check_lib_save_LIBS
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9586 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9587 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9589 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9594 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9595 case "x$with_xshm" in
9596 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9597 xno) ;;
9598 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9599 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9600 esac
9603 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9604 then
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9606 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9607 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9608 $as_echo_n "(cached) " >&6
9609 else
9610 ac_check_lib_save_LIBS=$LIBS
9611 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9618 #ifdef __cplusplus
9619 extern "C"
9620 #endif
9621 char XShapeQueryExtension ();
9623 main ()
9625 return XShapeQueryExtension ();
9627 return 0;
9629 _ACEOF
9630 if ac_fn_c_try_link "$LINENO"; then :
9631 ac_cv_lib_Xext_XShapeQueryExtension=yes
9632 else
9633 ac_cv_lib_Xext_XShapeQueryExtension=no
9635 rm -f core conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9637 LIBS=$ac_check_lib_save_LIBS
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9640 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9641 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9643 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9648 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9649 case "x$with_xshape" in
9650 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9651 xno) ;;
9652 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9653 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9654 esac
9657 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9658 then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9660 $as_echo_n "checking for -lXxf86vm... " >&6; }
9661 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 ac_check_soname_save_LIBS=$LIBS
9665 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9672 #ifdef __cplusplus
9673 extern "C"
9674 #endif
9675 char XF86VidModeQueryExtension ();
9677 main ()
9679 return XF86VidModeQueryExtension ();
9681 return 0;
9683 _ACEOF
9684 if ac_fn_c_try_link "$LINENO"; then :
9685 case "$LIBEXT" in
9686 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9687 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'` ;;
9688 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9689 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
9690 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9691 fi ;;
9692 esac
9694 rm -f core conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9696 LIBS=$ac_check_soname_save_LIBS
9698 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9700 $as_echo "not found" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9704 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9706 cat >>confdefs.h <<_ACEOF
9707 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9708 _ACEOF
9713 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9714 case "x$with_xxf86vm" in
9715 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9716 xno) ;;
9717 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9718 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9719 esac
9722 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"
9723 then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9725 $as_echo_n "checking for -lXrender... " >&6; }
9726 if ${ac_cv_lib_soname_Xrender+:} false; then :
9727 $as_echo_n "(cached) " >&6
9728 else
9729 ac_check_soname_save_LIBS=$LIBS
9730 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9734 /* Override any GCC internal prototype to avoid an error.
9735 Use char because int might match the return type of a GCC
9736 builtin and then its argument prototype would still apply. */
9737 #ifdef __cplusplus
9738 extern "C"
9739 #endif
9740 char XRenderQueryExtension ();
9742 main ()
9744 return XRenderQueryExtension ();
9746 return 0;
9748 _ACEOF
9749 if ac_fn_c_try_link "$LINENO"; then :
9750 case "$LIBEXT" in
9751 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9752 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'` ;;
9753 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9754 if test "x$ac_cv_lib_soname_Xrender" = x; then :
9755 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9756 fi ;;
9757 esac
9759 rm -f core conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761 LIBS=$ac_check_soname_save_LIBS
9763 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9765 $as_echo "not found" >&6; }
9767 else
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
9769 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
9771 cat >>confdefs.h <<_ACEOF
9772 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9773 _ACEOF
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
9776 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9777 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 ac_check_lib_save_LIBS=$LIBS
9781 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9785 /* Override any GCC internal prototype to avoid an error.
9786 Use char because int might match the return type of a GCC
9787 builtin and then its argument prototype would still apply. */
9788 #ifdef __cplusplus
9789 extern "C"
9790 #endif
9791 char XRenderSetPictureTransform ();
9793 main ()
9795 return XRenderSetPictureTransform ();
9797 return 0;
9799 _ACEOF
9800 if ac_fn_c_try_link "$LINENO"; then :
9801 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9802 else
9803 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9805 rm -f core conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 LIBS=$ac_check_lib_save_LIBS
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9810 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9811 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
9813 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
9818 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
9819 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 ac_check_lib_save_LIBS=$LIBS
9823 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9827 /* Override any GCC internal prototype to avoid an error.
9828 Use char because int might match the return type of a GCC
9829 builtin and then its argument prototype would still apply. */
9830 #ifdef __cplusplus
9831 extern "C"
9832 #endif
9833 char XRenderCreateLinearGradient ();
9835 main ()
9837 return XRenderCreateLinearGradient ();
9839 return 0;
9841 _ACEOF
9842 if ac_fn_c_try_link "$LINENO"; then :
9843 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
9844 else
9845 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
9852 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
9853 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
9855 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
9862 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9863 case "x$with_xrender" in
9864 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
9865 xno) ;;
9866 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9867 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9868 esac
9871 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9872 then
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9875 #include <X11/Xlib.h>
9876 #include <X11/extensions/Xrandr.h>
9878 main ()
9880 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9882 return 0;
9884 _ACEOF
9885 if ac_fn_c_try_compile "$LINENO"; then :
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9887 $as_echo_n "checking for -lXrandr... " >&6; }
9888 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 ac_check_soname_save_LIBS=$LIBS
9892 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9896 /* Override any GCC internal prototype to avoid an error.
9897 Use char because int might match the return type of a GCC
9898 builtin and then its argument prototype would still apply. */
9899 #ifdef __cplusplus
9900 extern "C"
9901 #endif
9902 char XRRQueryExtension ();
9904 main ()
9906 return XRRQueryExtension ();
9908 return 0;
9910 _ACEOF
9911 if ac_fn_c_try_link "$LINENO"; then :
9912 case "$LIBEXT" in
9913 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9914 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'` ;;
9915 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9916 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9917 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9918 fi ;;
9919 esac
9921 rm -f core conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_soname_save_LIBS
9925 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9927 $as_echo "not found" >&6; }
9929 else
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9931 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9933 cat >>confdefs.h <<_ACEOF
9934 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9935 _ACEOF
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9939 #include <X11/Xlib.h>
9940 #include <X11/extensions/Xrandr.h>
9942 main ()
9944 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9946 return 0;
9948 _ACEOF
9949 if ac_fn_c_try_compile "$LINENO"; then :
9951 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9960 case "x$with_xrandr" in
9961 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9962 xno) ;;
9963 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9964 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9965 esac
9968 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9969 then
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9972 #include <X11/Xlib.h>
9973 #include <X11/extensions/Xinerama.h>
9975 main ()
9977 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9979 return 0;
9981 _ACEOF
9982 if ac_fn_c_try_compile "$LINENO"; then :
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9984 $as_echo_n "checking for -lXinerama... " >&6; }
9985 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 ac_check_soname_save_LIBS=$LIBS
9989 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9993 /* Override any GCC internal prototype to avoid an error.
9994 Use char because int might match the return type of a GCC
9995 builtin and then its argument prototype would still apply. */
9996 #ifdef __cplusplus
9997 extern "C"
9998 #endif
9999 char XineramaQueryScreens ();
10001 main ()
10003 return XineramaQueryScreens ();
10005 return 0;
10007 _ACEOF
10008 if ac_fn_c_try_link "$LINENO"; then :
10009 case "$LIBEXT" in
10010 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10011 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'` ;;
10012 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10013 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
10014 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10015 fi ;;
10016 esac
10018 rm -f core conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020 LIBS=$ac_check_soname_save_LIBS
10022 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10024 $as_echo "not found" >&6; }
10026 else
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10028 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10030 cat >>confdefs.h <<_ACEOF
10031 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10032 _ACEOF
10037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10040 case "x$with_xinerama" in
10041 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10042 xno) ;;
10043 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10044 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10045 esac
10048 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10049 then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10051 $as_echo_n "checking for -lXcomposite... " >&6; }
10052 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 ac_check_soname_save_LIBS=$LIBS
10056 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10060 /* Override any GCC internal prototype to avoid an error.
10061 Use char because int might match the return type of a GCC
10062 builtin and then its argument prototype would still apply. */
10063 #ifdef __cplusplus
10064 extern "C"
10065 #endif
10066 char XCompositeRedirectWindow ();
10068 main ()
10070 return XCompositeRedirectWindow ();
10072 return 0;
10074 _ACEOF
10075 if ac_fn_c_try_link "$LINENO"; then :
10076 case "$LIBEXT" in
10077 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10078 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'` ;;
10079 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10080 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
10081 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10082 fi ;;
10083 esac
10085 rm -f core conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087 LIBS=$ac_check_soname_save_LIBS
10089 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10091 $as_echo "not found" >&6; }
10093 else
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10095 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10097 cat >>confdefs.h <<_ACEOF
10098 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10099 _ACEOF
10104 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10105 case "x$with_xcomposite" in
10106 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10107 xno) ;;
10108 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10109 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10110 esac
10113 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10114 #include <X11/Xlib.h>
10115 #endif
10117 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10119 cat >>confdefs.h <<_ACEOF
10120 #define HAVE_XICCALLBACK_CALLBACK 1
10121 _ACEOF
10125 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10126 #include <X11/Xlib.h>
10127 #endif
10129 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10131 cat >>confdefs.h <<_ACEOF
10132 #define HAVE_XEVENT_XCOOKIE 1
10133 _ACEOF
10140 opengl_msg=""
10141 if test "x$with_opengl" != "xno"
10142 then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10144 $as_echo_n "checking for -lGL... " >&6; }
10145 if ${ac_cv_lib_soname_GL+:} false; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 ac_check_soname_save_LIBS=$LIBS
10149 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10153 /* Override any GCC internal prototype to avoid an error.
10154 Use char because int might match the return type of a GCC
10155 builtin and then its argument prototype would still apply. */
10156 #ifdef __cplusplus
10157 extern "C"
10158 #endif
10159 char glXCreateContext ();
10161 main ()
10163 return glXCreateContext ();
10165 return 0;
10167 _ACEOF
10168 if ac_fn_c_try_link "$LINENO"; then :
10169 case "$LIBEXT" in
10170 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10171 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'` ;;
10172 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10173 if test "x$ac_cv_lib_soname_GL" = x; then :
10174 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10175 fi ;;
10176 esac
10178 rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10180 LIBS=$ac_check_soname_save_LIBS
10182 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10184 $as_echo "not found" >&6; }
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10186 $as_echo_n "checking for -lGL... " >&6; }
10187 if ${ac_cv_lib_soname_GL+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 ac_check_soname_save_LIBS=$LIBS
10191 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"
10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10195 /* Override any GCC internal prototype to avoid an error.
10196 Use char because int might match the return type of a GCC
10197 builtin and then its argument prototype would still apply. */
10198 #ifdef __cplusplus
10199 extern "C"
10200 #endif
10201 char glXCreateContext ();
10203 main ()
10205 return glXCreateContext ();
10207 return 0;
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211 case "$LIBEXT" in
10212 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10213 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'` ;;
10214 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10215 if test "x$ac_cv_lib_soname_GL" = x; then :
10216 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10217 fi ;;
10218 esac
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_soname_save_LIBS
10224 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10226 $as_echo "not found" >&6; }
10227 if test -f /usr/X11R6/lib/libGL.a
10228 then
10229 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10230 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10231 else
10232 opengl_msg="No OpenGL library found on this system."
10234 else
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10236 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10238 cat >>confdefs.h <<_ACEOF
10239 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10240 _ACEOF
10242 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"
10244 else
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10246 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10248 cat >>confdefs.h <<_ACEOF
10249 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10250 _ACEOF
10252 OPENGL_LIBS="-lGL"
10254 if test "x$with_glu" != "xno"
10255 then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10257 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10258 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 ac_check_lib_save_LIBS=$LIBS
10262 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $XLIB -lm $X_EXTRA_LIBS $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 gluLookAt ();
10274 main ()
10276 return gluLookAt ();
10278 return 0;
10280 _ACEOF
10281 if ac_fn_c_try_link "$LINENO"; then :
10282 ac_cv_lib_GLU_gluLookAt=yes
10283 else
10284 ac_cv_lib_GLU_gluLookAt=no
10286 rm -f core conftest.err conftest.$ac_objext \
10287 conftest$ac_exeext conftest.$ac_ext
10288 LIBS=$ac_check_lib_save_LIBS
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10291 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10292 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10296 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10297 case "x$with_glu" in
10298 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10299 xno) ;;
10300 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10301 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10302 esac
10306 if test "x$with_osmesa" != "xno"
10307 then
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10309 $as_echo_n "checking for -lOSMesa... " >&6; }
10310 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 ac_check_soname_save_LIBS=$LIBS
10314 LIBS="-lOSMesa $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10321 #ifdef __cplusplus
10322 extern "C"
10323 #endif
10324 char glAccum ();
10326 main ()
10328 return glAccum ();
10330 return 0;
10332 _ACEOF
10333 if ac_fn_c_try_link "$LINENO"; then :
10334 case "$LIBEXT" in
10335 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10336 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'` ;;
10337 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10338 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
10339 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10340 fi ;;
10341 esac
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 LIBS=$ac_check_soname_save_LIBS
10347 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10349 $as_echo "not found" >&6; }
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10353 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10355 cat >>confdefs.h <<_ACEOF
10356 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10357 _ACEOF
10361 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10362 case "x$with_osmesa" in
10363 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10364 xno) ;;
10365 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10366 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10367 esac
10371 if test -n "$opengl_msg"; then :
10372 case "x$with_opengl" in
10373 x) as_fn_append wine_warnings "|$opengl_msg
10374 OpenGL and Direct3D won't be supported." ;;
10375 xno) ;;
10376 *) as_fn_error $? "$opengl_msg
10377 OpenGL and Direct3D won't be supported.
10378 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10379 esac
10382 CPPFLAGS="$ac_save_CPPFLAGS"
10383 else
10384 XLIB=""
10385 X_CFLAGS=""
10386 X_LIBS=""
10387 enable_winex11_drv=${enable_winex11_drv:-no}
10389 if test "x$XLIB" = "x"; then :
10390 case "x$with_x" in
10391 xno) ;;
10392 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10393 without X support, which probably isn't what you want. You will need
10394 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10395 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10396 esac
10399 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10401 if test "$ac_cv_header_CL_cl_h" = "yes"
10402 then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10404 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10405 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 ac_check_lib_save_LIBS=$LIBS
10409 LIBS="-lOpenCL $LIBS"
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10416 #ifdef __cplusplus
10417 extern "C"
10418 #endif
10419 char clGetPlatformInfo ();
10421 main ()
10423 return clGetPlatformInfo ();
10425 return 0;
10427 _ACEOF
10428 if ac_fn_c_try_link "$LINENO"; then :
10429 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10430 else
10431 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LIBS=$ac_check_lib_save_LIBS
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10438 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10439 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10440 LIBOPENCL="-lOpenCL"
10445 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10446 case "x$with_opencl" in
10447 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10448 xno) ;;
10449 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10450 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10451 esac
10453 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10456 if test "x$with_xml" != "xno"
10457 then
10458 if test -n "$XML2_CFLAGS"; then :
10460 elif test -n "$PKG_CONFIG"; then :
10461 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10463 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10464 if test -n "$XML2_LIBS"; then :
10466 elif test -n "$PKG_CONFIG"; then :
10467 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10469 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10470 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10471 ac_save_CPPFLAGS=$CPPFLAGS
10472 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10473 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10474 do :
10475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10476 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10477 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10478 cat >>confdefs.h <<_ACEOF
10479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10480 _ACEOF
10484 done
10486 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"
10487 then
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10489 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10490 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 ac_check_lib_save_LIBS=$LIBS
10494 LIBS="-lxml2 $XML2_LIBS $LIBS"
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10498 /* Override any GCC internal prototype to avoid an error.
10499 Use char because int might match the return type of a GCC
10500 builtin and then its argument prototype would still apply. */
10501 #ifdef __cplusplus
10502 extern "C"
10503 #endif
10504 char xmlParseMemory ();
10506 main ()
10508 return xmlParseMemory ();
10510 return 0;
10512 _ACEOF
10513 if ac_fn_c_try_link "$LINENO"; then :
10514 ac_cv_lib_xml2_xmlParseMemory=yes
10515 else
10516 ac_cv_lib_xml2_xmlParseMemory=no
10518 rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520 LIBS=$ac_check_lib_save_LIBS
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10523 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10524 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10526 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10528 else
10529 XML2_LIBS=""
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10533 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10534 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 ac_check_lib_save_LIBS=$LIBS
10538 LIBS="-lxml2 $XML2_LIBS $LIBS"
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10545 #ifdef __cplusplus
10546 extern "C"
10547 #endif
10548 char xmlReadMemory ();
10550 main ()
10552 return xmlReadMemory ();
10554 return 0;
10556 _ACEOF
10557 if ac_fn_c_try_link "$LINENO"; then :
10558 ac_cv_lib_xml2_xmlReadMemory=yes
10559 else
10560 ac_cv_lib_xml2_xmlReadMemory=no
10562 rm -f core conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext conftest.$ac_ext
10564 LIBS=$ac_check_lib_save_LIBS
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10567 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10568 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10570 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10575 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10576 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10577 $as_echo_n "(cached) " >&6
10578 else
10579 ac_check_lib_save_LIBS=$LIBS
10580 LIBS="-lxml2 $XML2_LIBS $LIBS"
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10584 /* Override any GCC internal prototype to avoid an error.
10585 Use char because int might match the return type of a GCC
10586 builtin and then its argument prototype would still apply. */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 char xmlNewDocPI ();
10592 main ()
10594 return xmlNewDocPI ();
10596 return 0;
10598 _ACEOF
10599 if ac_fn_c_try_link "$LINENO"; then :
10600 ac_cv_lib_xml2_xmlNewDocPI=yes
10601 else
10602 ac_cv_lib_xml2_xmlNewDocPI=no
10604 rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10606 LIBS=$ac_check_lib_save_LIBS
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10609 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10610 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10612 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10617 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10618 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 ac_check_lib_save_LIBS=$LIBS
10622 LIBS="-lxml2 $XML2_LIBS $LIBS"
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 char xmlSchemaSetParserStructuredErrors ();
10634 main ()
10636 return xmlSchemaSetParserStructuredErrors ();
10638 return 0;
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"; then :
10642 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10643 else
10644 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10646 rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LIBS=$ac_check_lib_save_LIBS
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10651 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10652 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10654 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10659 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10660 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 ac_check_lib_save_LIBS=$LIBS
10664 LIBS="-lxml2 $XML2_LIBS $LIBS"
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10668 /* Override any GCC internal prototype to avoid an error.
10669 Use char because int might match the return type of a GCC
10670 builtin and then its argument prototype would still apply. */
10671 #ifdef __cplusplus
10672 extern "C"
10673 #endif
10674 char xmlSchemaSetValidStructuredErrors ();
10676 main ()
10678 return xmlSchemaSetValidStructuredErrors ();
10680 return 0;
10682 _ACEOF
10683 if ac_fn_c_try_link "$LINENO"; then :
10684 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10685 else
10686 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
10688 rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 LIBS=$ac_check_lib_save_LIBS
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
10693 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
10694 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
10696 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
10701 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
10702 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 ac_check_lib_save_LIBS=$LIBS
10706 LIBS="-lxml2 $XML2_LIBS $LIBS"
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10710 /* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
10712 builtin and then its argument prototype would still apply. */
10713 #ifdef __cplusplus
10714 extern "C"
10715 #endif
10716 char xmlFirstElementChild ();
10718 main ()
10720 return xmlFirstElementChild ();
10722 return 0;
10724 _ACEOF
10725 if ac_fn_c_try_link "$LINENO"; then :
10726 ac_cv_lib_xml2_xmlFirstElementChild=yes
10727 else
10728 ac_cv_lib_xml2_xmlFirstElementChild=no
10730 rm -f core conftest.err conftest.$ac_objext \
10731 conftest$ac_exeext conftest.$ac_ext
10732 LIBS=$ac_check_lib_save_LIBS
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
10735 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
10736 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
10738 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
10742 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
10744 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
10746 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
10750 else
10751 XML2_CFLAGS=""
10752 XML2_LIBS=""
10754 CPPFLAGS=$ac_save_CPPFLAGS
10755 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10756 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10759 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
10760 case "x$with_xml" in
10761 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
10762 xno) ;;
10763 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
10764 This is an error since --with-xml was requested." "$LINENO" 5 ;;
10765 esac
10768 if test "x$with_xslt" != "xno"
10769 then
10770 if test -n "$XSLT_CFLAGS"; then :
10772 elif test -n "$PKG_CONFIG"; then :
10773 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
10775 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
10776 if test -n "$XSLT_LIBS"; then :
10778 elif test -n "$PKG_CONFIG"; then :
10779 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10781 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10782 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10783 ac_save_CPPFLAGS=$CPPFLAGS
10784 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10785 for ac_header in libxslt/pattern.h libxslt/transform.h
10786 do :
10787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10788 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10789 # include <libxslt/pattern.h>
10790 #endif
10792 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10793 cat >>confdefs.h <<_ACEOF
10794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10795 _ACEOF
10799 done
10801 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10802 then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10804 $as_echo_n "checking for -lxslt... " >&6; }
10805 if ${ac_cv_lib_soname_xslt+:} false; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 ac_check_soname_save_LIBS=$LIBS
10809 LIBS="-lxslt $XSLT_LIBS $LIBS"
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10813 /* Override any GCC internal prototype to avoid an error.
10814 Use char because int might match the return type of a GCC
10815 builtin and then its argument prototype would still apply. */
10816 #ifdef __cplusplus
10817 extern "C"
10818 #endif
10819 char xsltCompilePattern ();
10821 main ()
10823 return xsltCompilePattern ();
10825 return 0;
10827 _ACEOF
10828 if ac_fn_c_try_link "$LINENO"; then :
10829 case "$LIBEXT" in
10830 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10831 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'` ;;
10832 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10833 if test "x$ac_cv_lib_soname_xslt" = x; then :
10834 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10835 fi ;;
10836 esac
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 LIBS=$ac_check_soname_save_LIBS
10842 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10844 $as_echo "not found" >&6; }
10846 else
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10848 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10850 cat >>confdefs.h <<_ACEOF
10851 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10852 _ACEOF
10856 else
10857 XSLT_CFLAGS=""
10859 CPPFLAGS=$ac_save_CPPFLAGS
10860 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10861 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10864 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10865 case "x$with_xslt" in
10866 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10867 xno) ;;
10868 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10869 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10870 esac
10873 if test "x$with_dbus" != "xno"
10874 then
10875 if test -n "$DBUS_CFLAGS"; then :
10877 elif test -n "$PKG_CONFIG"; then :
10878 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10881 if test -n "$DBUS_LIBS"; then :
10883 elif test -n "$PKG_CONFIG"; then :
10884 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10888 ac_save_CPPFLAGS=$CPPFLAGS
10889 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10890 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10891 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10893 $as_echo_n "checking for -ldbus-1... " >&6; }
10894 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 ac_check_soname_save_LIBS=$LIBS
10898 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10902 /* Override any GCC internal prototype to avoid an error.
10903 Use char because int might match the return type of a GCC
10904 builtin and then its argument prototype would still apply. */
10905 #ifdef __cplusplus
10906 extern "C"
10907 #endif
10908 char dbus_connection_close ();
10910 main ()
10912 return dbus_connection_close ();
10914 return 0;
10916 _ACEOF
10917 if ac_fn_c_try_link "$LINENO"; then :
10918 case "$LIBEXT" in
10919 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10920 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'` ;;
10921 *) 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'`
10922 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10923 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10924 fi ;;
10925 esac
10927 rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_soname_save_LIBS
10931 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10933 $as_echo "not found" >&6; }
10934 DBUS_CFLAGS=""
10935 else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10937 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10939 cat >>confdefs.h <<_ACEOF
10940 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10941 _ACEOF
10945 else
10946 DBUS_CFLAGS=""
10950 CPPFLAGS=$ac_save_CPPFLAGS
10951 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10952 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10955 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10956 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10957 case "x$with_dbus" in
10958 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10959 xno) ;;
10960 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10961 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10962 esac
10965 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10966 then
10967 if test -n "$HAL_CFLAGS"; then :
10969 elif test -n "$PKG_CONFIG"; then :
10970 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
10973 if test -n "$HAL_LIBS"; then :
10975 elif test -n "$PKG_CONFIG"; then :
10976 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
10979 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
10980 ac_save_CPPFLAGS=$CPPFLAGS
10981 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
10982 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10983 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10985 $as_echo_n "checking for -lhal... " >&6; }
10986 if ${ac_cv_lib_soname_hal+:} false; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 ac_check_soname_save_LIBS=$LIBS
10990 LIBS="-lhal $HAL_LIBS $LIBS"
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char libhal_ctx_new ();
11002 main ()
11004 return libhal_ctx_new ();
11006 return 0;
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 case "$LIBEXT" in
11011 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11012 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'` ;;
11013 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11014 if test "x$ac_cv_lib_soname_hal" = x; then :
11015 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11016 fi ;;
11017 esac
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_soname_save_LIBS
11023 if test "x$ac_cv_lib_soname_hal" = "x"; then :
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11025 $as_echo "not found" >&6; }
11026 HAL_CFLAGS=""
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11029 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11031 cat >>confdefs.h <<_ACEOF
11032 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11033 _ACEOF
11037 else
11038 HAL_CFLAGS=""
11042 CPPFLAGS=$ac_save_CPPFLAGS
11043 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11044 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11046 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11047 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11048 case "x$with_hal" in
11049 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11050 xno) ;;
11051 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11052 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11053 esac
11057 if test "x$with_gnutls" != "xno"
11058 then
11059 if test -n "$GNUTLS_CFLAGS"; then :
11061 elif test -n "$PKG_CONFIG"; then :
11062 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11065 if test -n "$GNUTLS_LIBS"; then :
11067 elif test -n "$PKG_CONFIG"; then :
11068 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11072 ac_save_CPPFLAGS=$CPPFLAGS
11073 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11074 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11075 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11078 #include <gnutls/gnutls.h>
11079 #include <gnutls/crypto.h>
11081 main ()
11083 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11085 return 0;
11087 _ACEOF
11088 if ac_fn_c_try_compile "$LINENO"; then :
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11090 $as_echo_n "checking for -lgnutls... " >&6; }
11091 if ${ac_cv_lib_soname_gnutls+:} false; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 ac_check_soname_save_LIBS=$LIBS
11095 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11099 /* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11102 #ifdef __cplusplus
11103 extern "C"
11104 #endif
11105 char gnutls_global_init ();
11107 main ()
11109 return gnutls_global_init ();
11111 return 0;
11113 _ACEOF
11114 if ac_fn_c_try_link "$LINENO"; then :
11115 case "$LIBEXT" in
11116 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11117 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'` ;;
11118 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11119 if test "x$ac_cv_lib_soname_gnutls" = x; then :
11120 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11121 fi ;;
11122 esac
11124 rm -f core conftest.err conftest.$ac_objext \
11125 conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_soname_save_LIBS
11128 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11130 $as_echo "not found" >&6; }
11131 GNUTLS_CFLAGS=""
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11134 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11136 cat >>confdefs.h <<_ACEOF
11137 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11138 _ACEOF
11143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144 else
11145 GNUTLS_CFLAGS=""
11149 CPPFLAGS=$ac_save_CPPFLAGS
11150 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11151 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11154 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11155 case "x$with_gnutls" in
11156 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11157 xno) ;;
11158 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11159 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11160 esac
11163 CURSESLIBS=""
11164 if test "$ac_cv_header_ncurses_h" = "yes"
11165 then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11167 $as_echo_n "checking for -lncurses... " >&6; }
11168 if ${ac_cv_lib_soname_ncurses+:} false; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 ac_check_soname_save_LIBS=$LIBS
11172 LIBS="-lncurses $LIBS"
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11176 /* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11179 #ifdef __cplusplus
11180 extern "C"
11181 #endif
11182 char waddch ();
11184 main ()
11186 return waddch ();
11188 return 0;
11190 _ACEOF
11191 if ac_fn_c_try_link "$LINENO"; then :
11192 case "$LIBEXT" in
11193 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11194 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'` ;;
11195 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11196 if test "x$ac_cv_lib_soname_ncurses" = x; then :
11197 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11198 fi ;;
11199 esac
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_soname_save_LIBS
11205 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11207 $as_echo "not found" >&6; }
11209 else
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11211 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11213 cat >>confdefs.h <<_ACEOF
11214 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11215 _ACEOF
11217 CURSESLIBS="-lncurses"
11219 elif test "$ac_cv_header_curses_h" = "yes"
11220 then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11222 $as_echo_n "checking for -lcurses... " >&6; }
11223 if ${ac_cv_lib_soname_curses+:} false; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 ac_check_soname_save_LIBS=$LIBS
11227 LIBS="-lcurses $LIBS"
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 char waddch ();
11239 main ()
11241 return waddch ();
11243 return 0;
11245 _ACEOF
11246 if ac_fn_c_try_link "$LINENO"; then :
11247 case "$LIBEXT" in
11248 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11249 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'` ;;
11250 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11251 if test "x$ac_cv_lib_soname_curses" = x; then :
11252 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11253 fi ;;
11254 esac
11256 rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_soname_save_LIBS
11260 if test "x$ac_cv_lib_soname_curses" = "x"; then :
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11262 $as_echo "not found" >&6; }
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11266 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11268 cat >>confdefs.h <<_ACEOF
11269 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11270 _ACEOF
11272 CURSESLIBS="-lcurses"
11275 ac_save_LIBS="$LIBS"
11276 LIBS="$LIBS $CURSESLIBS"
11277 for ac_func in mousemask
11278 do :
11279 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11280 if test "x$ac_cv_func_mousemask" = xyes; then :
11281 cat >>confdefs.h <<_ACEOF
11282 #define HAVE_MOUSEMASK 1
11283 _ACEOF
11286 done
11288 LIBS="$ac_save_LIBS"
11289 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11290 case "x$with_curses" in
11291 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11292 xno) ;;
11293 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11294 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11295 esac
11298 if test "x$with_sane" != "xno"
11299 then
11300 if test -n "$SANE_CFLAGS"; then :
11302 elif test -n "$PKG_CONFIG"; then :
11303 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11305 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11306 if test -n "$SANE_LIBS"; then :
11308 elif test -n "$PKG_CONFIG"; then :
11309 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11311 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11313 ac_save_CPPFLAGS=$CPPFLAGS
11314 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11315 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11316 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11318 $as_echo_n "checking for -lsane... " >&6; }
11319 if ${ac_cv_lib_soname_sane+:} false; then :
11320 $as_echo_n "(cached) " >&6
11321 else
11322 ac_check_soname_save_LIBS=$LIBS
11323 LIBS="-lsane $SANE_LIBS $LIBS"
11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11327 /* Override any GCC internal prototype to avoid an error.
11328 Use char because int might match the return type of a GCC
11329 builtin and then its argument prototype would still apply. */
11330 #ifdef __cplusplus
11331 extern "C"
11332 #endif
11333 char sane_init ();
11335 main ()
11337 return sane_init ();
11339 return 0;
11341 _ACEOF
11342 if ac_fn_c_try_link "$LINENO"; then :
11343 case "$LIBEXT" in
11344 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11345 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'` ;;
11346 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11347 if test "x$ac_cv_lib_soname_sane" = x; then :
11348 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11349 fi ;;
11350 esac
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 LIBS=$ac_check_soname_save_LIBS
11356 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11358 $as_echo "not found" >&6; }
11359 SANE_CFLAGS=""
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11362 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11364 cat >>confdefs.h <<_ACEOF
11365 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11366 _ACEOF
11370 else
11371 SANE_CFLAGS=""
11375 CPPFLAGS=$ac_save_CPPFLAGS
11376 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11377 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11380 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11381 case "x$with_sane" in
11382 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11383 xno) ;;
11384 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11385 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11386 esac
11389 if test "x$with_v4l" != "xno"
11390 then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11392 $as_echo_n "checking for -lv4l1... " >&6; }
11393 if ${ac_cv_lib_soname_v4l1+:} false; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396 ac_check_soname_save_LIBS=$LIBS
11397 LIBS="-lv4l1 $LIBS"
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11401 /* Override any GCC internal prototype to avoid an error.
11402 Use char because int might match the return type of a GCC
11403 builtin and then its argument prototype would still apply. */
11404 #ifdef __cplusplus
11405 extern "C"
11406 #endif
11407 char v4l1_open ();
11409 main ()
11411 return v4l1_open ();
11413 return 0;
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 case "$LIBEXT" in
11418 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11419 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'` ;;
11420 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11421 if test "x$ac_cv_lib_soname_v4l1" = x; then :
11422 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11423 fi ;;
11424 esac
11426 rm -f core conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428 LIBS=$ac_check_soname_save_LIBS
11430 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11432 $as_echo "not found" >&6; }
11434 else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11436 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11438 cat >>confdefs.h <<_ACEOF
11439 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11440 _ACEOF
11445 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11446 case "x$with_v4l" in
11447 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11448 xno) ;;
11449 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11450 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11451 esac
11454 if test "x$with_gphoto" != "xno"
11455 then
11456 if test -n "$GPHOTO2_CFLAGS"; then :
11458 elif test -n "$PKG_CONFIG"; then :
11459 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11461 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11462 if test -n "$GPHOTO2_LIBS"; then :
11464 elif test -n "$PKG_CONFIG"; then :
11465 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11467 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11468 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11469 ac_save_CPPFLAGS=$CPPFLAGS
11470 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11471 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11472 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11474 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11475 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 ac_check_lib_save_LIBS=$LIBS
11479 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11483 /* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 char gp_camera_new ();
11491 main ()
11493 return gp_camera_new ();
11495 return 0;
11497 _ACEOF
11498 if ac_fn_c_try_link "$LINENO"; then :
11499 ac_cv_lib_gphoto2_gp_camera_new=yes
11500 else
11501 ac_cv_lib_gphoto2_gp_camera_new=no
11503 rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11508 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11509 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11511 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11513 else
11514 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11517 else
11518 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11522 CPPFLAGS=$ac_save_CPPFLAGS
11523 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11524 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11526 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
11528 elif test -n "$PKG_CONFIG"; then :
11529 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11531 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11532 if test -n "$GPHOTO2_PORT_LIBS"; then :
11534 elif test -n "$PKG_CONFIG"; then :
11535 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11537 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11538 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11539 ac_save_CPPFLAGS=$CPPFLAGS
11540 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11541 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11542 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11544 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11545 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 ac_check_lib_save_LIBS=$LIBS
11549 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h. */
11553 /* Override any GCC internal prototype to avoid an error.
11554 Use char because int might match the return type of a GCC
11555 builtin and then its argument prototype would still apply. */
11556 #ifdef __cplusplus
11557 extern "C"
11558 #endif
11559 char gp_port_info_list_new ();
11561 main ()
11563 return gp_port_info_list_new ();
11565 return 0;
11567 _ACEOF
11568 if ac_fn_c_try_link "$LINENO"; then :
11569 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11570 else
11571 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11573 rm -f core conftest.err conftest.$ac_objext \
11574 conftest$ac_exeext conftest.$ac_ext
11575 LIBS=$ac_check_lib_save_LIBS
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11578 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11579 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11581 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11583 else
11584 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11587 else
11588 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11592 CPPFLAGS=$ac_save_CPPFLAGS
11593 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11594 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11597 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11598 case "x$with_gphoto" in
11599 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11600 xno) ;;
11601 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11602 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11603 esac
11605 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11606 case "x$with_gphoto" in
11607 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11608 xno) ;;
11609 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11610 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11611 esac
11615 if test "$ac_cv_header_resolv_h" = "yes"
11616 then
11617 ac_save_LIBS="$LIBS"
11618 for lib in '' -lresolv
11620 LIBS="$lib $ac_save_LIBS"
11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11623 #ifdef HAVE_NETINET_IN_H
11624 #include <netinet/in.h>
11625 #endif
11626 #include <resolv.h>
11628 main ()
11630 res_query("foo",ns_c_in,0,0,0);
11632 return 0;
11634 _ACEOF
11635 if ac_fn_c_try_link "$LINENO"; then :
11637 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11639 RESOLVLIBS="$lib"
11642 rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644 if test "${RESOLVLIBS+set}" = set; then
11645 break
11647 done
11648 LIBS="$ac_save_LIBS"
11651 if test "x$with_lcms2" != "xno"
11652 then
11653 if test -n "$LCMS2_CFLAGS"; then :
11655 elif test -n "$PKG_CONFIG"; then :
11656 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11659 if test -n "$LCMS2_LIBS"; then :
11661 elif test -n "$PKG_CONFIG"; then :
11662 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
11665 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
11666 ac_save_CPPFLAGS=$CPPFLAGS
11667 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
11668 for ac_header in lcms2.h
11669 do :
11670 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
11671 if test "x$ac_cv_header_lcms2_h" = xyes; then :
11672 cat >>confdefs.h <<_ACEOF
11673 #define HAVE_LCMS2_H 1
11674 _ACEOF
11678 done
11680 if test "$ac_cv_header_lcms2_h" = "yes"
11681 then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
11683 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
11684 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 ac_check_lib_save_LIBS=$LIBS
11688 LIBS="-llcms2 $LIBS"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char cmsOpenProfileFromFile ();
11700 main ()
11702 return cmsOpenProfileFromFile ();
11704 return 0;
11706 _ACEOF
11707 if ac_fn_c_try_link "$LINENO"; then :
11708 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
11709 else
11710 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
11712 rm -f core conftest.err conftest.$ac_objext \
11713 conftest$ac_exeext conftest.$ac_ext
11714 LIBS=$ac_check_lib_save_LIBS
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
11717 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
11718 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
11720 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
11722 else
11723 LCMS2_LIBS=""
11726 else
11727 LCMS2_CFLAGS=""
11728 LCMS2_LIBS=""
11730 CPPFLAGS=$ac_save_CPPFLAGS
11731 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11732 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11735 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
11736 case "x$with_cms" in
11737 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
11738 xno) ;;
11739 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
11740 This is an error since --with-cms was requested." "$LINENO" 5 ;;
11741 esac
11744 if test "x$with_freetype" != "xno"
11745 then
11746 if test -n "$FREETYPE_CFLAGS"; then :
11748 elif test -n "$PKG_CONFIG"; then :
11749 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
11751 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
11752 if test -n "$FREETYPE_LIBS"; then :
11754 elif test -n "$PKG_CONFIG"; then :
11755 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
11757 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
11758 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
11759 ac_save_CPPFLAGS=$CPPFLAGS
11760 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
11761 for ac_header in ft2build.h
11762 do :
11763 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
11764 if test "x$ac_cv_header_ft2build_h" = xyes; then :
11765 cat >>confdefs.h <<_ACEOF
11766 #define HAVE_FT2BUILD_H 1
11767 _ACEOF
11771 done
11773 if test "$ac_cv_header_ft2build_h" = "yes"
11774 then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
11776 $as_echo_n "checking for -lfreetype... " >&6; }
11777 if ${ac_cv_lib_soname_freetype+:} false; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11780 ac_check_soname_save_LIBS=$LIBS
11781 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11785 /* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11788 #ifdef __cplusplus
11789 extern "C"
11790 #endif
11791 char FT_Init_FreeType ();
11793 main ()
11795 return FT_Init_FreeType ();
11797 return 0;
11799 _ACEOF
11800 if ac_fn_c_try_link "$LINENO"; then :
11801 case "$LIBEXT" in
11802 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11803 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'` ;;
11804 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11805 if test "x$ac_cv_lib_soname_freetype" = x; then :
11806 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11807 fi ;;
11808 esac
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11812 LIBS=$ac_check_soname_save_LIBS
11814 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11816 $as_echo "not found" >&6; }
11817 FREETYPE_LIBS=""
11818 else
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11820 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11822 cat >>confdefs.h <<_ACEOF
11823 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11824 _ACEOF
11827 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11829 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
11830 #include FT_MODULE_H
11832 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11834 cat >>confdefs.h <<_ACEOF
11835 #define HAVE_FT_TRUETYPEENGINETYPE 1
11836 _ACEOF
11842 else
11843 FREETYPE_CFLAGS=""
11844 FREETYPE_LIBS=""
11846 CPPFLAGS=$ac_save_CPPFLAGS
11847 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11848 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11851 if test "x$ac_cv_lib_soname_freetype" = x; then :
11852 case "x$with_freetype" in
11853 xno) ;;
11854 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11855 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11856 esac
11858 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11861 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11862 if ${ac_cv_c_ppdev+:} false; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867 #ifdef HAVE_SYS_IOCTL_H
11868 # include <sys/ioctl.h>
11869 #endif
11870 #include <linux/ppdev.h>
11872 main ()
11874 ioctl (1,PPCLAIM,0)
11876 return 0;
11878 _ACEOF
11879 if ac_fn_c_try_compile "$LINENO"; then :
11880 ac_cv_c_ppdev="yes"
11881 else
11882 ac_cv_c_ppdev="no"
11884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11887 $as_echo "$ac_cv_c_ppdev" >&6; }
11888 if test "$ac_cv_c_ppdev" = "yes"
11889 then
11891 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11895 ac_wine_check_funcs_save_LIBS="$LIBS"
11896 LIBS="$LIBS $LIBPTHREAD"
11897 for ac_func in \
11898 pthread_attr_get_np \
11899 pthread_getattr_np \
11900 pthread_getthreadid_np \
11901 pthread_get_stackaddr_np \
11902 pthread_get_stacksize_np
11903 do :
11904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11905 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11906 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11907 cat >>confdefs.h <<_ACEOF
11908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11909 _ACEOF
11912 done
11914 LIBS="$ac_wine_check_funcs_save_LIBS"
11916 if test "$ac_cv_header_zlib_h" = "yes"
11917 then
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11919 $as_echo_n "checking for inflate in -lz... " >&6; }
11920 if ${ac_cv_lib_z_inflate+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 ac_check_lib_save_LIBS=$LIBS
11924 LIBS="-lz $LIBS"
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11928 /* Override any GCC internal prototype to avoid an error.
11929 Use char because int might match the return type of a GCC
11930 builtin and then its argument prototype would still apply. */
11931 #ifdef __cplusplus
11932 extern "C"
11933 #endif
11934 char inflate ();
11936 main ()
11938 return inflate ();
11940 return 0;
11942 _ACEOF
11943 if ac_fn_c_try_link "$LINENO"; then :
11944 ac_cv_lib_z_inflate=yes
11945 else
11946 ac_cv_lib_z_inflate=no
11948 rm -f core conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950 LIBS=$ac_check_lib_save_LIBS
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11953 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11954 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11956 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11958 ZLIB="-lz"
11963 if test "x$ZLIB" = "x"; then :
11964 case "x$with_zlib" in
11965 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11966 xno) ;;
11967 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11968 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11969 esac
11972 if test "x$enable_tools" != xno
11973 then
11974 if test "$ac_cv_header_gettext_po_h" = "yes"
11975 then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11977 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11978 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981 ac_check_lib_save_LIBS=$LIBS
11982 LIBS="-lgettextpo $LIBS"
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11986 /* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11989 #ifdef __cplusplus
11990 extern "C"
11991 #endif
11992 char po_message_msgctxt ();
11994 main ()
11996 return po_message_msgctxt ();
11998 return 0;
12000 _ACEOF
12001 if ac_fn_c_try_link "$LINENO"; then :
12002 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12003 else
12004 ac_cv_lib_gettextpo_po_message_msgctxt=no
12006 rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008 LIBS=$ac_check_lib_save_LIBS
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12011 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12012 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12014 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12016 LIBGETTEXTPO="-lgettextpo"
12021 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
12022 case "x$with_gettextpo" in
12023 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12024 xno) ;;
12025 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12026 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12027 esac
12031 if test "x$with_gstreamer" != "xno"
12032 then
12033 if test -n "$GSTREAMER_CFLAGS"; then :
12035 elif test -n "$PKG_CONFIG"; then :
12036 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12039 if test -n "$GSTREAMER_LIBS"; then :
12041 elif test -n "$PKG_CONFIG"; then :
12042 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12046 ac_save_CPPFLAGS=$CPPFLAGS
12047 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12048 ac_gst_incl=""
12049 for i in $GSTREAMER_CFLAGS
12051 case "$i" in
12052 -I*) ac_gst_incl="$ac_gst_incl $i";;
12053 esac
12054 done
12055 GSTREAMER_CFLAGS=$ac_gst_incl
12056 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12057 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12058 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12059 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12060 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12062 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12065 #include <gst/app/gstappsink.h>
12067 main ()
12069 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12071 return 0;
12073 _ACEOF
12074 if ac_fn_c_try_compile "$LINENO"; then :
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12076 $as_echo "yes" >&6; }
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12078 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12079 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 ac_check_lib_save_LIBS=$LIBS
12083 LIBS="-lgstreamer-0.10 $LIBS"
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12087 /* Override any GCC internal prototype to avoid an error.
12088 Use char because int might match the return type of a GCC
12089 builtin and then its argument prototype would still apply. */
12090 #ifdef __cplusplus
12091 extern "C"
12092 #endif
12093 char gst_pad_get_caps_reffed ();
12095 main ()
12097 return gst_pad_get_caps_reffed ();
12099 return 0;
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12104 else
12105 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12107 rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109 LIBS=$ac_check_lib_save_LIBS
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12112 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12113 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12115 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12116 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 char gst_app_buffer_new ();
12132 main ()
12134 return gst_app_buffer_new ();
12136 return 0;
12138 _ACEOF
12139 if ac_fn_c_try_link "$LINENO"; then :
12140 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12141 else
12142 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12149 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12150 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12156 else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164 else
12165 GSTREAMER_CFLAGS=""
12169 CPPFLAGS=$ac_save_CPPFLAGS
12170 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12171 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12174 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12175 case "x$with_gstreamer" in
12176 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12177 xno) ;;
12178 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12179 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12180 esac
12182 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12184 ALSALIBS=""
12186 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12187 then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12189 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12190 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 ac_check_lib_save_LIBS=$LIBS
12194 LIBS="-lasound $LIBS"
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 char snd_pcm_hw_params_get_access_mask ();
12206 main ()
12208 return snd_pcm_hw_params_get_access_mask ();
12210 return 0;
12212 _ACEOF
12213 if ac_fn_c_try_link "$LINENO"; then :
12214 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12215 else
12216 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12218 rm -f core conftest.err conftest.$ac_objext \
12219 conftest$ac_exeext conftest.$ac_ext
12220 LIBS=$ac_check_lib_save_LIBS
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12223 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12224 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12227 #ifdef HAVE_ALSA_ASOUNDLIB_H
12228 #include <alsa/asoundlib.h>
12229 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12230 #include <sys/asoundlib.h>
12231 #endif
12233 main ()
12235 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12237 return 0;
12239 _ACEOF
12240 if ac_fn_c_try_compile "$LINENO"; then :
12241 ALSALIBS="-lasound"
12243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12248 if test "x$with_oss" != xno
12249 then
12250 ac_save_CPPFLAGS="$CPPFLAGS"
12251 if test -f /etc/oss.conf
12252 then
12253 . /etc/oss.conf
12255 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12256 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12257 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12258 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12259 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12261 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12263 cat >>confdefs.h <<_ACEOF
12264 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12265 _ACEOF
12267 OSS4INCL="$ac_oss_incl"
12274 CPPFLAGS="$ac_save_CPPFLAGS"
12275 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12276 then
12277 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12281 if test "x$with_capi" != "xno"
12282 then
12283 if test -n "$CAPI20_CFLAGS"; then :
12285 elif test -n "$PKG_CONFIG"; then :
12286 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12289 if test -n "$CAPI20_LIBS"; then :
12291 elif test -n "$PKG_CONFIG"; then :
12292 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12296 ac_save_CPPFLAGS=$CPPFLAGS
12297 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12298 for ac_header in capi20.h linux/capi.h
12299 do :
12300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12301 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12303 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12304 cat >>confdefs.h <<_ACEOF
12305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12306 _ACEOF
12310 done
12312 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12313 then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12315 $as_echo_n "checking for -lcapi20... " >&6; }
12316 if ${ac_cv_lib_soname_capi20+:} false; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 ac_check_soname_save_LIBS=$LIBS
12320 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322 /* end confdefs.h. */
12324 /* Override any GCC internal prototype to avoid an error.
12325 Use char because int might match the return type of a GCC
12326 builtin and then its argument prototype would still apply. */
12327 #ifdef __cplusplus
12328 extern "C"
12329 #endif
12330 char capi20_register ();
12332 main ()
12334 return capi20_register ();
12336 return 0;
12338 _ACEOF
12339 if ac_fn_c_try_link "$LINENO"; then :
12340 case "$LIBEXT" in
12341 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12342 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'` ;;
12343 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12344 if test "x$ac_cv_lib_soname_capi20" = x; then :
12345 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12346 fi ;;
12347 esac
12349 rm -f core conftest.err conftest.$ac_objext \
12350 conftest$ac_exeext conftest.$ac_ext
12351 LIBS=$ac_check_soname_save_LIBS
12353 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12355 $as_echo "not found" >&6; }
12357 else
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12359 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12361 cat >>confdefs.h <<_ACEOF
12362 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12363 _ACEOF
12368 CPPFLAGS=$ac_save_CPPFLAGS
12369 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12370 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12373 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12374 case "x$with_capi" in
12375 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12376 xno) ;;
12377 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12378 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12379 esac
12382 CUPSINCL=""
12384 if test "x$with_cups" != "xno"
12385 then
12386 ac_save_CPPFLAGS="$CPPFLAGS"
12387 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12388 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12389 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12390 for ac_header in cups/cups.h
12391 do :
12392 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12393 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12394 cat >>confdefs.h <<_ACEOF
12395 #define HAVE_CUPS_CUPS_H 1
12396 _ACEOF
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12398 $as_echo_n "checking for -lcups... " >&6; }
12399 if ${ac_cv_lib_soname_cups+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 ac_check_soname_save_LIBS=$LIBS
12403 LIBS="-lcups $ac_cups_libs $LIBS"
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12407 /* Override any GCC internal prototype to avoid an error.
12408 Use char because int might match the return type of a GCC
12409 builtin and then its argument prototype would still apply. */
12410 #ifdef __cplusplus
12411 extern "C"
12412 #endif
12413 char cupsGetDefault ();
12415 main ()
12417 return cupsGetDefault ();
12419 return 0;
12421 _ACEOF
12422 if ac_fn_c_try_link "$LINENO"; then :
12423 case "$LIBEXT" in
12424 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12425 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'` ;;
12426 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12427 if test "x$ac_cv_lib_soname_cups" = x; then :
12428 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12429 fi ;;
12430 esac
12432 rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 LIBS=$ac_check_soname_save_LIBS
12436 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12438 $as_echo "not found" >&6; }
12440 else
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12442 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12444 cat >>confdefs.h <<_ACEOF
12445 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12446 _ACEOF
12448 CUPSINCL="$ac_cups_cflags"
12452 done
12454 CPPFLAGS="$ac_save_CPPFLAGS"
12456 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12457 case "x$with_cups" in
12458 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12459 xno) ;;
12460 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12461 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12462 esac
12465 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12466 then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12468 $as_echo_n "checking for -lfontconfig... " >&6; }
12469 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 ac_check_soname_save_LIBS=$LIBS
12473 LIBS="-lfontconfig $LIBS"
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12477 /* Override any GCC internal prototype to avoid an error.
12478 Use char because int might match the return type of a GCC
12479 builtin and then its argument prototype would still apply. */
12480 #ifdef __cplusplus
12481 extern "C"
12482 #endif
12483 char FcInit ();
12485 main ()
12487 return FcInit ();
12489 return 0;
12491 _ACEOF
12492 if ac_fn_c_try_link "$LINENO"; then :
12493 case "$LIBEXT" in
12494 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12495 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'` ;;
12496 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12497 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12498 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12499 fi ;;
12500 esac
12502 rm -f core conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_soname_save_LIBS
12506 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12508 $as_echo "not found" >&6; }
12510 else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12512 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12514 cat >>confdefs.h <<_ACEOF
12515 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12516 _ACEOF
12520 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
12521 then
12522 ac_save_CPPFLAGS="$CPPFLAGS"
12523 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12524 $as_unset ac_cv_header_fontconfig_fontconfig_h
12525 for ac_header in fontconfig/fontconfig.h
12526 do :
12527 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12528 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12529 cat >>confdefs.h <<_ACEOF
12530 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12531 _ACEOF
12535 done
12537 CPPFLAGS="$ac_save_CPPFLAGS"
12538 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12539 then
12540 FONTCONFIGINCL="$X_CFLAGS"
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12543 $as_echo_n "checking for -lfontconfig... " >&6; }
12544 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 ac_check_soname_save_LIBS=$LIBS
12548 LIBS="-lfontconfig $X_LIBS $LIBS"
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12552 /* Override any GCC internal prototype to avoid an error.
12553 Use char because int might match the return type of a GCC
12554 builtin and then its argument prototype would still apply. */
12555 #ifdef __cplusplus
12556 extern "C"
12557 #endif
12558 char FcInit ();
12560 main ()
12562 return FcInit ();
12564 return 0;
12566 _ACEOF
12567 if ac_fn_c_try_link "$LINENO"; then :
12568 case "$LIBEXT" in
12569 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12570 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'` ;;
12571 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12572 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12573 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12574 fi ;;
12575 esac
12577 rm -f core conftest.err conftest.$ac_objext \
12578 conftest$ac_exeext conftest.$ac_ext
12579 LIBS=$ac_check_soname_save_LIBS
12581 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12583 $as_echo "not found" >&6; }
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12587 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12589 cat >>confdefs.h <<_ACEOF
12590 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12591 _ACEOF
12597 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12598 case "x$with_fontconfig" in
12599 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12600 xno) ;;
12601 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12602 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12603 esac
12606 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12607 then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12609 $as_echo_n "checking for -lgsm... " >&6; }
12610 if ${ac_cv_lib_soname_gsm+:} false; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 ac_check_soname_save_LIBS=$LIBS
12614 LIBS="-lgsm $LIBS"
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12618 /* Override any GCC internal prototype to avoid an error.
12619 Use char because int might match the return type of a GCC
12620 builtin and then its argument prototype would still apply. */
12621 #ifdef __cplusplus
12622 extern "C"
12623 #endif
12624 char gsm_create ();
12626 main ()
12628 return gsm_create ();
12630 return 0;
12632 _ACEOF
12633 if ac_fn_c_try_link "$LINENO"; then :
12634 case "$LIBEXT" in
12635 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12636 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'` ;;
12637 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12638 if test "x$ac_cv_lib_soname_gsm" = x; then :
12639 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12640 fi ;;
12641 esac
12643 rm -f core conftest.err conftest.$ac_objext \
12644 conftest$ac_exeext conftest.$ac_ext
12645 LIBS=$ac_check_soname_save_LIBS
12647 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12649 $as_echo "not found" >&6; }
12651 else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12653 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12655 cat >>confdefs.h <<_ACEOF
12656 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12657 _ACEOF
12662 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12663 case "x$with_gsm" in
12664 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12665 xno) ;;
12666 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12667 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12668 esac
12671 if test "x$with_jpeg" != "xno"
12672 then
12673 if test -n "$JPEG_CFLAGS"; then :
12675 elif test -n "$PKG_CONFIG"; then :
12676 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12679 if test -n "$JPEG_LIBS"; then :
12681 elif test -n "$PKG_CONFIG"; then :
12682 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12686 ac_save_CPPFLAGS=$CPPFLAGS
12687 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
12688 for ac_header in jpeglib.h
12689 do :
12690 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12691 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12692 cat >>confdefs.h <<_ACEOF
12693 #define HAVE_JPEGLIB_H 1
12694 _ACEOF
12698 done
12700 if test "$ac_cv_header_jpeglib_h" = "yes"
12701 then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
12703 $as_echo_n "checking for -ljpeg... " >&6; }
12704 if ${ac_cv_lib_soname_jpeg+:} false; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 ac_check_soname_save_LIBS=$LIBS
12708 LIBS="-ljpeg $JPEG_LIBS $LIBS"
12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12710 /* end confdefs.h. */
12712 /* Override any GCC internal prototype to avoid an error.
12713 Use char because int might match the return type of a GCC
12714 builtin and then its argument prototype would still apply. */
12715 #ifdef __cplusplus
12716 extern "C"
12717 #endif
12718 char jpeg_start_decompress ();
12720 main ()
12722 return jpeg_start_decompress ();
12724 return 0;
12726 _ACEOF
12727 if ac_fn_c_try_link "$LINENO"; then :
12728 case "$LIBEXT" in
12729 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12730 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'` ;;
12731 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12732 if test "x$ac_cv_lib_soname_jpeg" = x; then :
12733 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12734 fi ;;
12735 esac
12737 rm -f core conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12739 LIBS=$ac_check_soname_save_LIBS
12741 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12743 $as_echo "not found" >&6; }
12744 JPEG_CFLAGS=""
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
12747 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
12749 cat >>confdefs.h <<_ACEOF
12750 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
12751 _ACEOF
12755 else
12756 JPEG_CFLAGS=""
12758 CPPFLAGS=$ac_save_CPPFLAGS
12759 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12760 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12763 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12764 case "x$with_jpeg" in
12765 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
12766 xno) ;;
12767 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
12768 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
12769 esac
12772 if test "x$with_png" != "xno"
12773 then
12774 if test -n "$PNG_CFLAGS"; then :
12776 elif test -n "$PKG_CONFIG"; then :
12777 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
12779 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
12780 if test -n "$PNG_LIBS"; then :
12782 elif test -n "$PKG_CONFIG"; then :
12783 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
12785 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
12787 ac_save_CPPFLAGS=$CPPFLAGS
12788 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
12789 for ac_header in png.h
12790 do :
12791 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12792 if test "x$ac_cv_header_png_h" = xyes; then :
12793 cat >>confdefs.h <<_ACEOF
12794 #define HAVE_PNG_H 1
12795 _ACEOF
12799 done
12801 if test "$ac_cv_header_png_h" = "yes"
12802 then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12804 $as_echo_n "checking for -lpng... " >&6; }
12805 if ${ac_cv_lib_soname_png+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 ac_check_soname_save_LIBS=$LIBS
12809 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12813 /* Override any GCC internal prototype to avoid an error.
12814 Use char because int might match the return type of a GCC
12815 builtin and then its argument prototype would still apply. */
12816 #ifdef __cplusplus
12817 extern "C"
12818 #endif
12819 char png_create_read_struct ();
12821 main ()
12823 return png_create_read_struct ();
12825 return 0;
12827 _ACEOF
12828 if ac_fn_c_try_link "$LINENO"; then :
12829 case "$LIBEXT" in
12830 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12831 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'` ;;
12832 *) 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'`
12833 if test "x$ac_cv_lib_soname_png" = x; then :
12834 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12835 fi ;;
12836 esac
12838 rm -f core conftest.err conftest.$ac_objext \
12839 conftest$ac_exeext conftest.$ac_ext
12840 LIBS=$ac_check_soname_save_LIBS
12842 if test "x$ac_cv_lib_soname_png" = "x"; then :
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12844 $as_echo "not found" >&6; }
12845 PNG_CFLAGS=""
12846 else
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12848 $as_echo "$ac_cv_lib_soname_png" >&6; }
12850 cat >>confdefs.h <<_ACEOF
12851 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12852 _ACEOF
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856 #include <png.h>
12858 main ()
12860 typeof(png_set_expand_gray_1_2_4_to_8) *p
12862 return 0;
12864 _ACEOF
12865 if ac_fn_c_try_compile "$LINENO"; then :
12867 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 else
12873 PNG_CFLAGS=""
12875 CPPFLAGS=$ac_save_CPPFLAGS
12876 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12877 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12880 if test "x$ac_cv_lib_soname_png" = "x"; then :
12881 case "x$with_png" in
12882 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12883 xno) ;;
12884 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12885 This is an error since --with-png was requested." "$LINENO" 5 ;;
12886 esac
12889 if test "x$with_tiff" != "xno"
12890 then
12891 if test -n "$TIFF_CFLAGS"; then :
12893 elif test -n "$PKG_CONFIG"; then :
12894 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
12897 if test -n "$TIFF_LIBS"; then :
12899 elif test -n "$PKG_CONFIG"; then :
12900 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
12904 ac_save_CPPFLAGS=$CPPFLAGS
12905 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
12906 for ac_header in tiffio.h
12907 do :
12908 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12909 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12910 cat >>confdefs.h <<_ACEOF
12911 #define HAVE_TIFFIO_H 1
12912 _ACEOF
12916 done
12918 if test "$ac_cv_header_tiffio_h" = "yes"
12919 then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12921 $as_echo_n "checking for -ltiff... " >&6; }
12922 if ${ac_cv_lib_soname_tiff+:} false; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 ac_check_soname_save_LIBS=$LIBS
12926 LIBS="-ltiff $TIFF_LIBS $LIBS"
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12930 /* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
12933 #ifdef __cplusplus
12934 extern "C"
12935 #endif
12936 char TIFFClientOpen ();
12938 main ()
12940 return TIFFClientOpen ();
12942 return 0;
12944 _ACEOF
12945 if ac_fn_c_try_link "$LINENO"; then :
12946 case "$LIBEXT" in
12947 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12948 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'` ;;
12949 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12950 if test "x$ac_cv_lib_soname_tiff" = x; then :
12951 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12952 fi ;;
12953 esac
12955 rm -f core conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12957 LIBS=$ac_check_soname_save_LIBS
12959 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12961 $as_echo "not found" >&6; }
12963 else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12965 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12967 cat >>confdefs.h <<_ACEOF
12968 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12969 _ACEOF
12974 CPPFLAGS=$ac_save_CPPFLAGS
12975 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12976 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12979 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12980 case "x$with_tiff" in
12981 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12982 xno) ;;
12983 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12984 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12985 esac
12988 if test "x$with_mpg123" != "xno"
12989 then
12990 if test -n "$MPG123_CFLAGS"; then :
12992 elif test -n "$PKG_CONFIG"; then :
12993 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
12996 if test -n "$MPG123_LIBS"; then :
12998 elif test -n "$PKG_CONFIG"; then :
12999 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13002 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13003 ac_save_CPPFLAGS=$CPPFLAGS
13004 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13005 for ac_header in mpg123.h
13006 do :
13007 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13008 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13009 cat >>confdefs.h <<_ACEOF
13010 #define HAVE_MPG123_H 1
13011 _ACEOF
13015 done
13017 if test "$ac_cv_header_mpg123_h" = "yes"
13018 then
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13020 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13021 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13022 $as_echo_n "(cached) " >&6
13023 else
13024 ac_check_lib_save_LIBS=$LIBS
13025 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13029 /* Override any GCC internal prototype to avoid an error.
13030 Use char because int might match the return type of a GCC
13031 builtin and then its argument prototype would still apply. */
13032 #ifdef __cplusplus
13033 extern "C"
13034 #endif
13035 char mpg123_feed ();
13037 main ()
13039 return mpg123_feed ();
13041 return 0;
13043 _ACEOF
13044 if ac_fn_c_try_link "$LINENO"; then :
13045 ac_cv_lib_mpg123_mpg123_feed=yes
13046 else
13047 ac_cv_lib_mpg123_mpg123_feed=no
13049 rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13051 LIBS=$ac_check_lib_save_LIBS
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13054 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13055 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13057 else
13058 MPG123_LIBS=""
13061 else
13062 MPG123_CFLAGS=""
13063 MPG123_LIBS=""
13065 CPPFLAGS=$ac_save_CPPFLAGS
13066 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13067 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13070 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13071 case "x$with_mpg123" in
13072 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13073 xno) ;;
13074 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13075 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13076 esac
13078 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}
13080 if test "$ac_cv_header_AL_al_h" = "yes"
13081 then
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13083 $as_echo_n "checking for -lopenal... " >&6; }
13084 if ${ac_cv_lib_soname_openal+:} false; then :
13085 $as_echo_n "(cached) " >&6
13086 else
13087 ac_check_soname_save_LIBS=$LIBS
13088 LIBS="-lopenal $LIBS"
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13092 /* Override any GCC internal prototype to avoid an error.
13093 Use char because int might match the return type of a GCC
13094 builtin and then its argument prototype would still apply. */
13095 #ifdef __cplusplus
13096 extern "C"
13097 #endif
13098 char alGetSource3i ();
13100 main ()
13102 return alGetSource3i ();
13104 return 0;
13106 _ACEOF
13107 if ac_fn_c_try_link "$LINENO"; then :
13108 case "$LIBEXT" in
13109 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13110 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'` ;;
13111 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13112 if test "x$ac_cv_lib_soname_openal" = x; then :
13113 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13114 fi ;;
13115 esac
13117 rm -f core conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13119 LIBS=$ac_check_soname_save_LIBS
13121 if test "x$ac_cv_lib_soname_openal" = "x"; then :
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13123 $as_echo "not found" >&6; }
13125 else
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13127 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13129 cat >>confdefs.h <<_ACEOF
13130 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13131 _ACEOF
13133 LIBOPENAL="-lopenal"
13135 ac_cv_lib_openal=yes
13137 cat >>confdefs.h <<_ACEOF
13138 #define HAVE_OPENAL 1
13139 _ACEOF
13143 if test "x$ac_cv_lib_openal" != xyes; then :
13144 case "x$with_openal" in
13145 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13146 xno) ;;
13147 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13148 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13149 esac
13151 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13153 if test "$ac_cv_header_kstat_h" = "yes"
13154 then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13156 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13157 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 ac_check_lib_save_LIBS=$LIBS
13161 LIBS="-lkstat $LIBS"
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13165 /* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
13168 #ifdef __cplusplus
13169 extern "C"
13170 #endif
13171 char kstat_open ();
13173 main ()
13175 return kstat_open ();
13177 return 0;
13179 _ACEOF
13180 if ac_fn_c_try_link "$LINENO"; then :
13181 ac_cv_lib_kstat_kstat_open=yes
13182 else
13183 ac_cv_lib_kstat_kstat_open=no
13185 rm -f core conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext conftest.$ac_ext
13187 LIBS=$ac_check_lib_save_LIBS
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13190 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13191 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13193 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13195 LIBKSTAT="-lkstat"
13201 if test "$ac_cv_header_libprocstat_h" = "yes"
13202 then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13204 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13205 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13206 $as_echo_n "(cached) " >&6
13207 else
13208 ac_check_lib_save_LIBS=$LIBS
13209 LIBS="-lprocstat $LIBS"
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13213 /* Override any GCC internal prototype to avoid an error.
13214 Use char because int might match the return type of a GCC
13215 builtin and then its argument prototype would still apply. */
13216 #ifdef __cplusplus
13217 extern "C"
13218 #endif
13219 char procstat_open_sysctl ();
13221 main ()
13223 return procstat_open_sysctl ();
13225 return 0;
13227 _ACEOF
13228 if ac_fn_c_try_link "$LINENO"; then :
13229 ac_cv_lib_procstat_procstat_open_sysctl=yes
13230 else
13231 ac_cv_lib_procstat_procstat_open_sysctl=no
13233 rm -f core conftest.err conftest.$ac_objext \
13234 conftest$ac_exeext conftest.$ac_ext
13235 LIBS=$ac_check_lib_save_LIBS
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13238 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13239 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13241 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13243 LIBPROCSTAT="-lprocstat"
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13250 $as_echo_n "checking for -lodbc... " >&6; }
13251 if ${ac_cv_lib_soname_odbc+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253 else
13254 ac_check_soname_save_LIBS=$LIBS
13255 LIBS="-lodbc $LIBS"
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13259 /* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13262 #ifdef __cplusplus
13263 extern "C"
13264 #endif
13265 char SQLConnect ();
13267 main ()
13269 return SQLConnect ();
13271 return 0;
13273 _ACEOF
13274 if ac_fn_c_try_link "$LINENO"; then :
13275 case "$LIBEXT" in
13276 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13277 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'` ;;
13278 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13279 if test "x$ac_cv_lib_soname_odbc" = x; then :
13280 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13281 fi ;;
13282 esac
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LIBS=$ac_check_soname_save_LIBS
13288 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13290 $as_echo "not found" >&6; }
13291 cat >>confdefs.h <<_ACEOF
13292 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13293 _ACEOF
13295 else
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13297 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13299 cat >>confdefs.h <<_ACEOF
13300 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13301 _ACEOF
13306 if test "x$with_netapi" != "xno"
13307 then
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13309 $as_echo_n "checking for -lnetapi... " >&6; }
13310 if ${ac_cv_lib_soname_netapi+:} false; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13313 ac_check_soname_save_LIBS=$LIBS
13314 LIBS="-lnetapi $LIBS"
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13318 /* Override any GCC internal prototype to avoid an error.
13319 Use char because int might match the return type of a GCC
13320 builtin and then its argument prototype would still apply. */
13321 #ifdef __cplusplus
13322 extern "C"
13323 #endif
13324 char libnetapi_init ();
13326 main ()
13328 return libnetapi_init ();
13330 return 0;
13332 _ACEOF
13333 if ac_fn_c_try_link "$LINENO"; then :
13334 case "$LIBEXT" in
13335 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13336 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'` ;;
13337 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13338 if test "x$ac_cv_lib_soname_netapi" = x; then :
13339 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13340 fi ;;
13341 esac
13343 rm -f core conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
13345 LIBS=$ac_check_soname_save_LIBS
13347 if test "x$ac_cv_lib_soname_netapi" = "x"; then :
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13349 $as_echo "not found" >&6; }
13350 cat >>confdefs.h <<_ACEOF
13351 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13352 _ACEOF
13354 else
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13356 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13358 cat >>confdefs.h <<_ACEOF
13359 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13360 _ACEOF
13366 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13367 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13368 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13369 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13371 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
13372 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13373 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13374 then
13375 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13379 EXTRACFLAGS=""
13381 if test "x${GCC}" = "xyes"
13382 then
13383 EXTRACFLAGS="-Wall -pipe"
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13386 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13387 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 if test "$cross_compiling" = yes; then :
13391 ac_cv_c_gcc_strength_bug="yes"
13392 else
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13395 int L[4] = {0,1,2,3};
13397 main ()
13399 static int Array[3];
13400 unsigned int B = 3;
13401 int i;
13402 for(i=0; i<B; i++) Array[i] = i - 3;
13403 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13404 L[i] = 4;
13405 return (Array[1] != -2 || L[2] != 3)
13407 return 0;
13409 _ACEOF
13410 if ac_fn_c_try_run "$LINENO"; then :
13411 ac_cv_c_gcc_strength_bug="no"
13412 else
13413 ac_cv_c_gcc_strength_bug="yes"
13415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13416 conftest.$ac_objext conftest.beam conftest.$ac_ext
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13421 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13422 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13423 then
13424 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13428 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13429 if ${ac_cv_cflags__fno_builtin+:} false; then :
13430 $as_echo_n "(cached) " >&6
13431 else
13432 ac_wine_try_cflags_saved=$CFLAGS
13433 CFLAGS="$CFLAGS -fno-builtin"
13434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435 /* end confdefs.h. */
13436 int main(int argc, char **argv) { return 0; }
13437 _ACEOF
13438 if ac_fn_c_try_link "$LINENO"; then :
13439 ac_cv_cflags__fno_builtin=yes
13440 else
13441 ac_cv_cflags__fno_builtin=no
13443 rm -f core conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
13445 CFLAGS=$ac_wine_try_cflags_saved
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13448 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13449 if test $ac_cv_cflags__fno_builtin = yes; then :
13450 BUILTINFLAG="-fno-builtin"
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13454 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13455 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13456 $as_echo_n "(cached) " >&6
13457 else
13458 ac_wine_try_cflags_saved=$CFLAGS
13459 CFLAGS="$CFLAGS -fno-strict-aliasing"
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13462 int main(int argc, char **argv) { return 0; }
13463 _ACEOF
13464 if ac_fn_c_try_link "$LINENO"; then :
13465 ac_cv_cflags__fno_strict_aliasing=yes
13466 else
13467 ac_cv_cflags__fno_strict_aliasing=no
13469 rm -f core conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13471 CFLAGS=$ac_wine_try_cflags_saved
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13474 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13475 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
13476 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13478 saved_CFLAGS=$CFLAGS
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13480 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13481 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 ac_wine_try_cflags_saved=$CFLAGS
13485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 int main(int argc, char **argv) { return 0; }
13489 _ACEOF
13490 if ac_fn_c_try_link "$LINENO"; then :
13491 ac_cv_cflags__Werror_unknown_warning_option=yes
13492 else
13493 ac_cv_cflags__Werror_unknown_warning_option=no
13495 rm -f core conftest.err conftest.$ac_objext \
13496 conftest$ac_exeext conftest.$ac_ext
13497 CFLAGS=$ac_wine_try_cflags_saved
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13500 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13501 if test $ac_cv_cflags__Werror_unknown_warning_option = yes; then :
13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13505 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13506 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 ac_wine_try_cflags_saved=$CFLAGS
13510 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 int main(int argc, char **argv) { return 0; }
13514 _ACEOF
13515 if ac_fn_c_try_link "$LINENO"; then :
13516 ac_cv_cflags__Wdeclaration_after_statement=yes
13517 else
13518 ac_cv_cflags__Wdeclaration_after_statement=no
13520 rm -f core conftest.err conftest.$ac_objext \
13521 conftest$ac_exeext conftest.$ac_ext
13522 CFLAGS=$ac_wine_try_cflags_saved
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13525 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13526 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
13527 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13530 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13531 if ${ac_cv_cflags__Wempty_body+:} false; then :
13532 $as_echo_n "(cached) " >&6
13533 else
13534 ac_wine_try_cflags_saved=$CFLAGS
13535 CFLAGS="$CFLAGS -Wempty-body"
13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h. */
13538 int main(int argc, char **argv) { return 0; }
13539 _ACEOF
13540 if ac_fn_c_try_link "$LINENO"; then :
13541 ac_cv_cflags__Wempty_body=yes
13542 else
13543 ac_cv_cflags__Wempty_body=no
13545 rm -f core conftest.err conftest.$ac_objext \
13546 conftest$ac_exeext conftest.$ac_ext
13547 CFLAGS=$ac_wine_try_cflags_saved
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13550 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13551 if test $ac_cv_cflags__Wempty_body = yes; then :
13552 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13555 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13556 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13557 $as_echo_n "(cached) " >&6
13558 else
13559 ac_wine_try_cflags_saved=$CFLAGS
13560 CFLAGS="$CFLAGS -Wignored-qualifiers"
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 int main(int argc, char **argv) { return 0; }
13564 _ACEOF
13565 if ac_fn_c_try_link "$LINENO"; then :
13566 ac_cv_cflags__Wignored_qualifiers=yes
13567 else
13568 ac_cv_cflags__Wignored_qualifiers=no
13570 rm -f core conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13572 CFLAGS=$ac_wine_try_cflags_saved
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13575 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13576 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
13577 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13580 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13581 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 ac_wine_try_cflags_saved=$CFLAGS
13585 CFLAGS="$CFLAGS -Wstrict-prototypes"
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 int main(int argc, char **argv) { return 0; }
13589 _ACEOF
13590 if ac_fn_c_try_link "$LINENO"; then :
13591 ac_cv_cflags__Wstrict_prototypes=yes
13592 else
13593 ac_cv_cflags__Wstrict_prototypes=no
13595 rm -f core conftest.err conftest.$ac_objext \
13596 conftest$ac_exeext conftest.$ac_ext
13597 CFLAGS=$ac_wine_try_cflags_saved
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13600 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13601 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
13602 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13605 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13606 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13607 $as_echo_n "(cached) " >&6
13608 else
13609 ac_wine_try_cflags_saved=$CFLAGS
13610 CFLAGS="$CFLAGS -Wtype-limits"
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613 int main(int argc, char **argv) { return 0; }
13614 _ACEOF
13615 if ac_fn_c_try_link "$LINENO"; then :
13616 ac_cv_cflags__Wtype_limits=yes
13617 else
13618 ac_cv_cflags__Wtype_limits=no
13620 rm -f core conftest.err conftest.$ac_objext \
13621 conftest$ac_exeext conftest.$ac_ext
13622 CFLAGS=$ac_wine_try_cflags_saved
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13625 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13626 if test $ac_cv_cflags__Wtype_limits = yes; then :
13627 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13630 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13631 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 ac_wine_try_cflags_saved=$CFLAGS
13635 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637 /* end confdefs.h. */
13638 int main(int argc, char **argv) { return 0; }
13639 _ACEOF
13640 if ac_fn_c_try_link "$LINENO"; then :
13641 ac_cv_cflags__Wunused_but_set_parameter=yes
13642 else
13643 ac_cv_cflags__Wunused_but_set_parameter=no
13645 rm -f core conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
13647 CFLAGS=$ac_wine_try_cflags_saved
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13650 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13651 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
13652 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13655 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13656 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 ac_wine_try_cflags_saved=$CFLAGS
13660 CFLAGS="$CFLAGS -Wwrite-strings"
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663 int main(int argc, char **argv) { return 0; }
13664 _ACEOF
13665 if ac_fn_c_try_link "$LINENO"; then :
13666 ac_cv_cflags__Wwrite_strings=yes
13667 else
13668 ac_cv_cflags__Wwrite_strings=no
13670 rm -f core conftest.err conftest.$ac_objext \
13671 conftest$ac_exeext conftest.$ac_ext
13672 CFLAGS=$ac_wine_try_cflags_saved
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
13675 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
13676 if test $ac_cv_cflags__Wwrite_strings = yes; then :
13677 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
13681 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
13682 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 ac_wine_try_cflags_saved=$CFLAGS
13686 CFLAGS="$CFLAGS -Wpointer-arith"
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689 int main(int argc, char **argv) { return 0; }
13690 _ACEOF
13691 if ac_fn_c_try_link "$LINENO"; then :
13692 ac_cv_cflags__Wpointer_arith=yes
13693 else
13694 ac_cv_cflags__Wpointer_arith=no
13696 rm -f core conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
13698 CFLAGS=$ac_wine_try_cflags_saved
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
13701 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
13702 if test $ac_cv_cflags__Wpointer_arith = yes; then :
13703 saved_string_h_CFLAGS=$CFLAGS
13704 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
13706 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
13707 if ${ac_cv_c_string_h_warnings+:} false; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712 #include <string.h>
13714 main ()
13718 return 0;
13720 _ACEOF
13721 if ac_fn_c_try_compile "$LINENO"; then :
13722 ac_cv_c_string_h_warnings=no
13723 else
13724 ac_cv_c_string_h_warnings=yes
13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
13729 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
13730 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13731 CFLAGS=$saved_string_h_CFLAGS
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
13735 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
13736 if ${ac_cv_cflags__Wlogical_op+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 ac_wine_try_cflags_saved=$CFLAGS
13740 CFLAGS="$CFLAGS -Wlogical-op"
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743 int main(int argc, char **argv) { return 0; }
13744 _ACEOF
13745 if ac_fn_c_try_link "$LINENO"; then :
13746 ac_cv_cflags__Wlogical_op=yes
13747 else
13748 ac_cv_cflags__Wlogical_op=no
13750 rm -f core conftest.err conftest.$ac_objext \
13751 conftest$ac_exeext conftest.$ac_ext
13752 CFLAGS=$ac_wine_try_cflags_saved
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
13755 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
13756 if test $ac_cv_cflags__Wlogical_op = yes; then :
13757 saved_string_h_CFLAGS=$CFLAGS
13758 CFLAGS="$CFLAGS -Wlogical-op -Werror"
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
13760 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
13761 if ${ac_cv_c_logicalop_noisy+:} false; then :
13762 $as_echo_n "(cached) " >&6
13763 else
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h. */
13766 #include <string.h>
13767 char*f(const char *h,char n) {return strchr(h,n);}
13769 main ()
13773 return 0;
13775 _ACEOF
13776 if ac_fn_c_try_compile "$LINENO"; then :
13777 ac_cv_c_logicalop_noisy=no
13778 else
13779 ac_cv_c_logicalop_noisy=yes
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
13784 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
13785 CFLAGS=$saved_string_h_CFLAGS
13786 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
13789 CFLAGS=$saved_CFLAGS
13791 for ac_flag in $CFLAGS; do
13792 case $ac_flag in
13793 -g) case $host_os in
13794 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
13795 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
13796 if ${ac_cv_cflags__gstabsp+:} false; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 ac_wine_try_cflags_saved=$CFLAGS
13800 CFLAGS="$CFLAGS -gstabs+"
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 int main(int argc, char **argv) { return 0; }
13804 _ACEOF
13805 if ac_fn_c_try_link "$LINENO"; then :
13806 ac_cv_cflags__gstabsp=yes
13807 else
13808 ac_cv_cflags__gstabsp=no
13810 rm -f core conftest.err conftest.$ac_objext \
13811 conftest$ac_exeext conftest.$ac_ext
13812 CFLAGS=$ac_wine_try_cflags_saved
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
13815 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
13816 if test $ac_cv_cflags__gstabsp = yes; then :
13817 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13818 fi ;;
13819 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
13820 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
13821 if ${ac_cv_cflags__gdwarf_2+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 ac_wine_try_cflags_saved=$CFLAGS
13825 CFLAGS="$CFLAGS -gdwarf-2"
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828 int main(int argc, char **argv) { return 0; }
13829 _ACEOF
13830 if ac_fn_c_try_link "$LINENO"; then :
13831 ac_cv_cflags__gdwarf_2=yes
13832 else
13833 ac_cv_cflags__gdwarf_2=no
13835 rm -f core conftest.err conftest.$ac_objext \
13836 conftest$ac_exeext conftest.$ac_ext
13837 CFLAGS=$ac_wine_try_cflags_saved
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
13840 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
13841 if test $ac_cv_cflags__gdwarf_2 = yes; then :
13842 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
13845 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
13846 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
13847 $as_echo_n "(cached) " >&6
13848 else
13849 ac_wine_try_cflags_saved=$CFLAGS
13850 CFLAGS="$CFLAGS -gstrict-dwarf"
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 int main(int argc, char **argv) { return 0; }
13854 _ACEOF
13855 if ac_fn_c_try_link "$LINENO"; then :
13856 ac_cv_cflags__gstrict_dwarf=yes
13857 else
13858 ac_cv_cflags__gstrict_dwarf=no
13860 rm -f core conftest.err conftest.$ac_objext \
13861 conftest$ac_exeext conftest.$ac_ext
13862 CFLAGS=$ac_wine_try_cflags_saved
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
13865 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
13866 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
13867 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
13868 fi ;;
13869 esac ;;
13870 esac
13871 done
13873 case $host_cpu in
13874 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
13875 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
13876 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 ac_wine_try_cflags_saved=$CFLAGS
13880 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13883 int main(int argc, char **argv) { return 0; }
13884 _ACEOF
13885 if ac_fn_c_try_link "$LINENO"; then :
13886 ac_cv_cflags__fno_omit_frame_pointer=yes
13887 else
13888 ac_cv_cflags__fno_omit_frame_pointer=no
13890 rm -f core conftest.err conftest.$ac_objext \
13891 conftest$ac_exeext conftest.$ac_ext
13892 CFLAGS=$ac_wine_try_cflags_saved
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
13895 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
13896 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
13897 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
13898 fi ;;
13899 esac
13901 case $host in
13902 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
13903 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
13904 if ${ac_cv_cflags__Wno_format+:} false; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 ac_wine_try_cflags_saved=$CFLAGS
13908 CFLAGS="$CFLAGS -Wno-format"
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13911 int main(int argc, char **argv) { return 0; }
13912 _ACEOF
13913 if ac_fn_c_try_link "$LINENO"; then :
13914 ac_cv_cflags__Wno_format=yes
13915 else
13916 ac_cv_cflags__Wno_format=no
13918 rm -f core conftest.err conftest.$ac_objext \
13919 conftest$ac_exeext conftest.$ac_ext
13920 CFLAGS=$ac_wine_try_cflags_saved
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
13923 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
13924 if test $ac_cv_cflags__Wno_format = yes; then :
13925 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
13926 fi ;;
13927 esac
13929 if test "x$enable_maintainer_mode" = "xyes"
13930 then
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
13932 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
13933 if ${ac_cv_cflags__Werror+:} false; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 ac_wine_try_cflags_saved=$CFLAGS
13937 CFLAGS="$CFLAGS -Werror"
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940 int main(int argc, char **argv) { return 0; }
13941 _ACEOF
13942 if ac_fn_c_try_link "$LINENO"; then :
13943 ac_cv_cflags__Werror=yes
13944 else
13945 ac_cv_cflags__Werror=no
13947 rm -f core conftest.err conftest.$ac_objext \
13948 conftest$ac_exeext conftest.$ac_ext
13949 CFLAGS=$ac_wine_try_cflags_saved
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
13952 $as_echo "$ac_cv_cflags__Werror" >&6; }
13953 if test $ac_cv_cflags__Werror = yes; then :
13954 EXTRACFLAGS="$EXTRACFLAGS -Werror"
13958 saved_CFLAGS="$CFLAGS"
13959 CFLAGS="$CFLAGS -Werror"
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
13961 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
13962 if ${ac_cv_have_ms_hook_prologue+:} false; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13967 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
13969 main ()
13973 return 0;
13975 _ACEOF
13976 if ac_fn_c_try_compile "$LINENO"; then :
13977 ac_cv_have_ms_hook_prologue="yes"
13978 else
13979 ac_cv_have_ms_hook_prologue="no"
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
13984 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
13985 CFLAGS="$saved_CFLAGS"
13986 if test "$ac_cv_have_ms_hook_prologue" = "yes"
13987 then
13989 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
13991 else
13992 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
13999 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14000 if ${ac_cv_c_fortify_enabled+:} false; then :
14001 $as_echo_n "(cached) " >&6
14002 else
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14005 #include <string.h>
14007 main ()
14009 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14010 #error Fortify enabled
14011 #endif
14013 return 0;
14015 _ACEOF
14016 if ac_fn_c_try_compile "$LINENO"; then :
14017 ac_cv_c_fortify_enabled=no
14018 else
14019 ac_cv_c_fortify_enabled=yes
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14024 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14025 if test "$ac_cv_c_fortify_enabled" = yes
14026 then
14027 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14032 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14033 if ${ac_cv_c_extern_prefix+:} false; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038 extern int ac_test;
14040 main ()
14042 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14044 return 0;
14046 _ACEOF
14047 if ac_fn_c_try_link "$LINENO"; then :
14048 ac_cv_c_extern_prefix="yes"
14049 else
14050 ac_cv_c_extern_prefix="no"
14052 rm -f core conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14056 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14058 case $host_cpu in
14059 *i[3456789]86*)
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14061 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14062 if ${ac_cv_c_stdcall_suffix+:} false; then :
14063 $as_echo_n "(cached) " >&6
14064 else
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14067 #ifndef _MSC_VER
14068 #define __stdcall __attribute__((__stdcall__))
14069 #endif
14070 int __stdcall ac_test(int i) { return i; }
14072 main ()
14074 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14076 return 0;
14078 _ACEOF
14079 if ac_fn_c_try_link "$LINENO"; then :
14080 ac_cv_c_stdcall_suffix="yes"
14081 else
14082 ac_cv_c_stdcall_suffix="no"
14084 rm -f core conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14088 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14089 *) ac_cv_c_stdcall_suffix="no" ;;
14090 esac
14093 if test "$ac_cv_c_extern_prefix" = "yes"
14094 then
14095 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14097 asm_name_prefix="_"
14098 else
14099 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14101 asm_name_prefix=""
14105 if test "$ac_cv_c_stdcall_suffix" = "yes"
14106 then
14107 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14109 else
14110 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14116 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14117 if ${ac_cv_asm_func_def+:} false; then :
14118 $as_echo_n "(cached) " >&6
14119 else
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14124 main ()
14126 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14128 return 0;
14130 _ACEOF
14131 if ac_fn_c_try_link "$LINENO"; then :
14132 ac_cv_asm_func_def=".def"
14133 else
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14138 main ()
14140 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14142 return 0;
14144 _ACEOF
14145 if ac_fn_c_try_link "$LINENO"; then :
14146 ac_cv_asm_func_def=".type @function"
14147 else
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14152 main ()
14154 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14156 return 0;
14158 _ACEOF
14159 if ac_fn_c_try_link "$LINENO"; then :
14160 ac_cv_asm_func_def=".type 2"
14161 else
14162 ac_cv_asm_func_def="unknown"
14164 rm -f core conftest.err conftest.$ac_objext \
14165 conftest$ac_exeext conftest.$ac_ext
14167 rm -f core conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14170 rm -f core conftest.err conftest.$ac_objext \
14171 conftest$ac_exeext conftest.$ac_ext
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14174 $as_echo "$ac_cv_asm_func_def" >&6; }
14177 case "$ac_cv_asm_func_def" in
14178 ".def")
14179 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14181 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14182 ".type @function")
14183 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14185 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14186 ".type 2")
14187 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14189 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14191 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14193 asm_func_header="" ;;
14194 esac
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14197 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14198 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14203 asm(".text\n\t.long 0");
14205 main ()
14209 return 0;
14211 _ACEOF
14212 if ac_fn_c_try_compile "$LINENO"; then :
14213 ac_cv_c_asm_outside_funcs="yes"
14214 else
14215 ac_cv_c_asm_outside_funcs="no"
14217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14220 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14223 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14224 if ${ac_cv_c_dot_previous+:} false; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14231 main ()
14233 asm(".text\nac_test:\t.long 0\n\t.previous");
14235 return 0;
14237 _ACEOF
14238 if ac_fn_c_try_link "$LINENO"; then :
14239 ac_cv_c_dot_previous="yes"
14240 else
14241 ac_cv_c_dot_previous="no"
14243 rm -f core conftest.err conftest.$ac_objext \
14244 conftest$ac_exeext conftest.$ac_ext
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14247 $as_echo "$ac_cv_c_dot_previous" >&6; }
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14250 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14251 if ${ac_cv_c_cfi_support+:} false; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14258 main ()
14262 return 0;
14264 _ACEOF
14265 if ac_fn_c_try_compile "$LINENO"; then :
14266 ac_cv_c_cfi_support="yes"
14267 else
14268 ac_cv_c_cfi_support="no"
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14273 $as_echo "$ac_cv_c_cfi_support" >&6; }
14275 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14276 asm_func_trailer=""
14277 if test "$ac_cv_c_dot_previous" = "yes"
14278 then
14279 asm_func_trailer="\\n\\t.previous"
14281 if test "$ac_cv_c_cfi_support" = "yes"
14282 then
14283 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14284 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14286 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14288 UNWINDFLAGS=-fasynchronous-unwind-tables
14290 else
14291 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14295 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14298 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14299 then
14300 cat >>confdefs.h <<_ACEOF
14301 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14302 _ACEOF
14304 else
14305 cat >>confdefs.h <<_ACEOF
14306 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14307 _ACEOF
14311 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14314 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14318 case $build_os in
14319 cygwin*|mingw32*) TOOLSEXT=".exe"
14321 esac
14323 case $host_os in
14324 linux*)
14325 case $host_cpu in
14326 *i[3456789]86*|x86_64*)
14327 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14328 loader_programs="$loader_programs $wine_binary-preloader"
14329 as_fn_append LOADER_RULES "
14330 $wine_binary-preloader: preloader.o
14331 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14333 install install-lib:: $wine_binary-preloader
14334 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14336 uninstall::
14337 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14339 preloader_EXTRADEFS = $BUILTINFLAG
14340 " ;;
14341 esac
14343 esac
14344 as_fn_append LOADER_RULES "
14345 PROGRAMS = $loader_programs
14349 ac_save_CFLAGS="$CFLAGS"
14350 CFLAGS="$CFLAGS $BUILTINFLAG"
14351 for ac_func in \
14352 __res_get_state \
14353 __res_getservers \
14354 _finite \
14355 _isnan \
14356 _pclose \
14357 _popen \
14358 _snprintf \
14359 _spawnvp \
14360 _strdup \
14361 _stricmp \
14362 _strnicmp \
14363 _strtoi64 \
14364 _strtoui64 \
14365 _vsnprintf \
14366 asctime_r \
14367 chsize \
14368 dlopen \
14369 epoll_create \
14370 ffs \
14371 fnmatch \
14372 fork \
14373 fpclass \
14374 fstatfs \
14375 fstatvfs \
14376 ftruncate \
14377 futimens \
14378 futimes \
14379 futimesat \
14380 getattrlist \
14381 getdirentries \
14382 getopt_long_only \
14383 getpwuid \
14384 gettimeofday \
14385 getuid \
14386 if_nameindex \
14387 kqueue \
14388 lstat \
14389 memmove \
14390 mmap \
14391 pclose \
14392 pipe2 \
14393 poll \
14394 popen \
14395 port_create \
14396 prctl \
14397 pread \
14398 proc_pidinfo \
14399 pwrite \
14400 readdir \
14401 readlink \
14402 sched_yield \
14403 select \
14404 setproctitle \
14405 setrlimit \
14406 settimeofday \
14407 sigaltstack \
14408 sigprocmask \
14409 snprintf \
14410 statfs \
14411 statvfs \
14412 strcasecmp \
14413 strdup \
14414 strerror \
14415 strncasecmp \
14416 strtold \
14417 strtoll \
14418 strtoull \
14419 symlink \
14420 tcdrain \
14421 thr_kill2 \
14422 timegm \
14423 usleep \
14424 vsnprintf
14426 do :
14427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14428 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14429 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14430 cat >>confdefs.h <<_ACEOF
14431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14432 _ACEOF
14435 done
14437 CFLAGS="$ac_save_CFLAGS"
14439 if test "$ac_cv_func_dlopen" = no
14440 then
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14442 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14443 if ${ac_cv_lib_dl_dlopen+:} false; then :
14444 $as_echo_n "(cached) " >&6
14445 else
14446 ac_check_lib_save_LIBS=$LIBS
14447 LIBS="-ldl $LIBS"
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14451 /* Override any GCC internal prototype to avoid an error.
14452 Use char because int might match the return type of a GCC
14453 builtin and then its argument prototype would still apply. */
14454 #ifdef __cplusplus
14455 extern "C"
14456 #endif
14457 char dlopen ();
14459 main ()
14461 return dlopen ();
14463 return 0;
14465 _ACEOF
14466 if ac_fn_c_try_link "$LINENO"; then :
14467 ac_cv_lib_dl_dlopen=yes
14468 else
14469 ac_cv_lib_dl_dlopen=no
14471 rm -f core conftest.err conftest.$ac_objext \
14472 conftest$ac_exeext conftest.$ac_ext
14473 LIBS=$ac_check_lib_save_LIBS
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14476 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14477 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14478 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14479 LIBDL="-ldl"
14484 ac_wine_check_funcs_save_LIBS="$LIBS"
14485 LIBS="$LIBS $LIBDL"
14486 for ac_func in dladdr
14487 do :
14488 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14489 if test "x$ac_cv_func_dladdr" = xyes; then :
14490 cat >>confdefs.h <<_ACEOF
14491 #define HAVE_DLADDR 1
14492 _ACEOF
14495 done
14497 LIBS="$ac_wine_check_funcs_save_LIBS"
14499 if test "$ac_cv_func_poll" = no
14500 then
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14502 $as_echo_n "checking for poll in -lpoll... " >&6; }
14503 if ${ac_cv_lib_poll_poll+:} false; then :
14504 $as_echo_n "(cached) " >&6
14505 else
14506 ac_check_lib_save_LIBS=$LIBS
14507 LIBS="-lpoll $LIBS"
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14511 /* Override any GCC internal prototype to avoid an error.
14512 Use char because int might match the return type of a GCC
14513 builtin and then its argument prototype would still apply. */
14514 #ifdef __cplusplus
14515 extern "C"
14516 #endif
14517 char poll ();
14519 main ()
14521 return poll ();
14523 return 0;
14525 _ACEOF
14526 if ac_fn_c_try_link "$LINENO"; then :
14527 ac_cv_lib_poll_poll=yes
14528 else
14529 ac_cv_lib_poll_poll=no
14531 rm -f core conftest.err conftest.$ac_objext \
14532 conftest$ac_exeext conftest.$ac_ext
14533 LIBS=$ac_check_lib_save_LIBS
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14536 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14537 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14538 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14539 LIBPOLL="-lpoll"
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14546 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14547 if ${ac_cv_search_gethostbyname+:} false; then :
14548 $as_echo_n "(cached) " >&6
14549 else
14550 ac_func_search_save_LIBS=$LIBS
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14554 /* Override any GCC internal prototype to avoid an error.
14555 Use char because int might match the return type of a GCC
14556 builtin and then its argument prototype would still apply. */
14557 #ifdef __cplusplus
14558 extern "C"
14559 #endif
14560 char gethostbyname ();
14562 main ()
14564 return gethostbyname ();
14566 return 0;
14568 _ACEOF
14569 for ac_lib in '' nsl; do
14570 if test -z "$ac_lib"; then
14571 ac_res="none required"
14572 else
14573 ac_res=-l$ac_lib
14574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14576 if ac_fn_c_try_link "$LINENO"; then :
14577 ac_cv_search_gethostbyname=$ac_res
14579 rm -f core conftest.err conftest.$ac_objext \
14580 conftest$ac_exeext
14581 if ${ac_cv_search_gethostbyname+:} false; then :
14582 break
14584 done
14585 if ${ac_cv_search_gethostbyname+:} false; then :
14587 else
14588 ac_cv_search_gethostbyname=no
14590 rm conftest.$ac_ext
14591 LIBS=$ac_func_search_save_LIBS
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14594 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14595 ac_res=$ac_cv_search_gethostbyname
14596 if test "$ac_res" != no; then :
14597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14603 $as_echo_n "checking for library containing connect... " >&6; }
14604 if ${ac_cv_search_connect+:} false; then :
14605 $as_echo_n "(cached) " >&6
14606 else
14607 ac_func_search_save_LIBS=$LIBS
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14611 /* Override any GCC internal prototype to avoid an error.
14612 Use char because int might match the return type of a GCC
14613 builtin and then its argument prototype would still apply. */
14614 #ifdef __cplusplus
14615 extern "C"
14616 #endif
14617 char connect ();
14619 main ()
14621 return connect ();
14623 return 0;
14625 _ACEOF
14626 for ac_lib in '' socket; do
14627 if test -z "$ac_lib"; then
14628 ac_res="none required"
14629 else
14630 ac_res=-l$ac_lib
14631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14633 if ac_fn_c_try_link "$LINENO"; then :
14634 ac_cv_search_connect=$ac_res
14636 rm -f core conftest.err conftest.$ac_objext \
14637 conftest$ac_exeext
14638 if ${ac_cv_search_connect+:} false; then :
14639 break
14641 done
14642 if ${ac_cv_search_connect+:} false; then :
14644 else
14645 ac_cv_search_connect=no
14647 rm conftest.$ac_ext
14648 LIBS=$ac_func_search_save_LIBS
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14651 $as_echo "$ac_cv_search_connect" >&6; }
14652 ac_res=$ac_cv_search_connect
14653 if test "$ac_res" != no; then :
14654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14660 $as_echo_n "checking for library containing inet_aton... " >&6; }
14661 if ${ac_cv_search_inet_aton+:} false; then :
14662 $as_echo_n "(cached) " >&6
14663 else
14664 ac_func_search_save_LIBS=$LIBS
14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14668 /* Override any GCC internal prototype to avoid an error.
14669 Use char because int might match the return type of a GCC
14670 builtin and then its argument prototype would still apply. */
14671 #ifdef __cplusplus
14672 extern "C"
14673 #endif
14674 char inet_aton ();
14676 main ()
14678 return inet_aton ();
14680 return 0;
14682 _ACEOF
14683 for ac_lib in '' resolv; do
14684 if test -z "$ac_lib"; then
14685 ac_res="none required"
14686 else
14687 ac_res=-l$ac_lib
14688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14690 if ac_fn_c_try_link "$LINENO"; then :
14691 ac_cv_search_inet_aton=$ac_res
14693 rm -f core conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext
14695 if ${ac_cv_search_inet_aton+:} false; then :
14696 break
14698 done
14699 if ${ac_cv_search_inet_aton+:} false; then :
14701 else
14702 ac_cv_search_inet_aton=no
14704 rm conftest.$ac_ext
14705 LIBS=$ac_func_search_save_LIBS
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14708 $as_echo "$ac_cv_search_inet_aton" >&6; }
14709 ac_res=$ac_cv_search_inet_aton
14710 if test "$ac_res" != no; then :
14711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14716 for ac_func in \
14717 getaddrinfo \
14718 getnameinfo \
14719 getnetbyname \
14720 getprotobyname \
14721 getprotobynumber \
14722 getservbyport \
14723 inet_addr \
14724 inet_network \
14725 inet_ntop \
14726 inet_pton \
14727 sendmsg \
14728 socketpair \
14730 do :
14731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14732 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14733 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14734 cat >>confdefs.h <<_ACEOF
14735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14736 _ACEOF
14739 done
14742 ac_save_LIBS=$LIBS
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14744 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14745 if ${ac_cv_search_clock_gettime+:} false; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14748 ac_func_search_save_LIBS=$LIBS
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14752 /* Override any GCC internal prototype to avoid an error.
14753 Use char because int might match the return type of a GCC
14754 builtin and then its argument prototype would still apply. */
14755 #ifdef __cplusplus
14756 extern "C"
14757 #endif
14758 char clock_gettime ();
14760 main ()
14762 return clock_gettime ();
14764 return 0;
14766 _ACEOF
14767 for ac_lib in '' rt; do
14768 if test -z "$ac_lib"; then
14769 ac_res="none required"
14770 else
14771 ac_res=-l$ac_lib
14772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14774 if ac_fn_c_try_link "$LINENO"; then :
14775 ac_cv_search_clock_gettime=$ac_res
14777 rm -f core conftest.err conftest.$ac_objext \
14778 conftest$ac_exeext
14779 if ${ac_cv_search_clock_gettime+:} false; then :
14780 break
14782 done
14783 if ${ac_cv_search_clock_gettime+:} false; then :
14785 else
14786 ac_cv_search_clock_gettime=no
14788 rm conftest.$ac_ext
14789 LIBS=$ac_func_search_save_LIBS
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14792 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14793 ac_res=$ac_cv_search_clock_gettime
14794 if test "$ac_res" != no; then :
14795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14797 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14799 test "$ac_res" = "none required" || LIBRT="$ac_res"
14803 LIBS=$ac_save_LIBS
14805 LDAPLIBS=""
14807 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
14808 then
14809 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
14811 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
14813 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
14814 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
14815 $as_echo_n "(cached) " >&6
14816 else
14817 ac_check_lib_save_LIBS=$LIBS
14818 LIBS="-lldap_r $LIBPTHREAD $LIBS"
14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14822 /* Override any GCC internal prototype to avoid an error.
14823 Use char because int might match the return type of a GCC
14824 builtin and then its argument prototype would still apply. */
14825 #ifdef __cplusplus
14826 extern "C"
14827 #endif
14828 char ldap_initialize ();
14830 main ()
14832 return ldap_initialize ();
14834 return 0;
14836 _ACEOF
14837 if ac_fn_c_try_link "$LINENO"; then :
14838 ac_cv_lib_ldap_r_ldap_initialize=yes
14839 else
14840 ac_cv_lib_ldap_r_ldap_initialize=no
14842 rm -f core conftest.err conftest.$ac_objext \
14843 conftest$ac_exeext conftest.$ac_ext
14844 LIBS=$ac_check_lib_save_LIBS
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
14847 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
14848 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14850 $as_echo_n "checking for ber_init in -llber... " >&6; }
14851 if ${ac_cv_lib_lber_ber_init+:} false; then :
14852 $as_echo_n "(cached) " >&6
14853 else
14854 ac_check_lib_save_LIBS=$LIBS
14855 LIBS="-llber $LIBPTHREAD $LIBS"
14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h. */
14859 /* Override any GCC internal prototype to avoid an error.
14860 Use char because int might match the return type of a GCC
14861 builtin and then its argument prototype would still apply. */
14862 #ifdef __cplusplus
14863 extern "C"
14864 #endif
14865 char ber_init ();
14867 main ()
14869 return ber_init ();
14871 return 0;
14873 _ACEOF
14874 if ac_fn_c_try_link "$LINENO"; then :
14875 ac_cv_lib_lber_ber_init=yes
14876 else
14877 ac_cv_lib_lber_ber_init=no
14879 rm -f core conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
14881 LIBS=$ac_check_lib_save_LIBS
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14884 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
14885 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
14887 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
14889 LDAPLIBS="-lldap_r -llber"
14896 ac_wine_check_funcs_save_LIBS="$LIBS"
14897 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
14898 for ac_func in \
14899 ldap_count_references \
14900 ldap_first_reference \
14901 ldap_next_reference \
14902 ldap_parse_reference \
14903 ldap_parse_sort_control \
14904 ldap_parse_sortresponse_control \
14905 ldap_parse_vlv_control \
14906 ldap_parse_vlvresponse_control
14907 do :
14908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14909 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14910 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14911 cat >>confdefs.h <<_ACEOF
14912 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14913 _ACEOF
14916 done
14918 LIBS="$ac_wine_check_funcs_save_LIBS"
14920 if test "x$LDAPLIBS" = "x"; then :
14921 case "x$with_ldap" in
14922 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
14923 xno) ;;
14924 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
14925 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
14926 esac
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
14930 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
14931 if ${wine_cv_one_arg_mkdir+:} false; then :
14932 $as_echo_n "(cached) " >&6
14933 else
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 #include <sys/stat.h>
14938 main ()
14940 mkdir("foo");
14942 return 0;
14944 _ACEOF
14945 if ac_fn_c_try_compile "$LINENO"; then :
14946 wine_cv_one_arg_mkdir=yes
14947 else
14948 wine_cv_one_arg_mkdir=no
14950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
14953 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
14954 if test "$wine_cv_one_arg_mkdir" = "yes"
14955 then
14957 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
14962 $as_echo_n "checking for sched_setaffinity... " >&6; }
14963 if ${wine_cv_have_sched_setaffinity+:} false; then :
14964 $as_echo_n "(cached) " >&6
14965 else
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 #define _GNU_SOURCE
14969 #include <sched.h>
14971 main ()
14973 sched_setaffinity(0, 0, 0);
14975 return 0;
14977 _ACEOF
14978 if ac_fn_c_try_link "$LINENO"; then :
14979 wine_cv_have_sched_setaffinity=yes
14980 else
14981 wine_cv_have_sched_setaffinity=no
14983 rm -f core conftest.err conftest.$ac_objext \
14984 conftest$ac_exeext conftest.$ac_ext
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
14987 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
14988 if test "$wine_cv_have_sched_setaffinity" = "yes"
14989 then
14991 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
14996 $as_echo_n "checking for fallocate... " >&6; }
14997 if ${wine_cv_have_fallocate+:} false; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002 #define _GNU_SOURCE
15003 #include <fcntl.h>
15005 main ()
15007 fallocate(-1, 0, 0, 0);
15009 return 0;
15011 _ACEOF
15012 if ac_fn_c_try_link "$LINENO"; then :
15013 wine_cv_have_fallocate=yes
15014 else
15015 wine_cv_have_fallocate=no
15017 rm -f core conftest.err conftest.$ac_objext \
15018 conftest$ac_exeext conftest.$ac_ext
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15021 $as_echo "$wine_cv_have_fallocate" >&6; }
15022 if test "$wine_cv_have_fallocate" = "yes"
15023 then
15025 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15031 $as_echo_n "checking for inline... " >&6; }
15032 if ${ac_cv_c_inline+:} false; then :
15033 $as_echo_n "(cached) " >&6
15034 else
15035 ac_cv_c_inline=no
15036 for ac_kw in inline __inline__ __inline; do
15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h. */
15039 #ifndef __cplusplus
15040 typedef int foo_t;
15041 static $ac_kw foo_t static_foo () {return 0; }
15042 $ac_kw foo_t foo () {return 0; }
15043 #endif
15045 _ACEOF
15046 if ac_fn_c_try_compile "$LINENO"; then :
15047 ac_cv_c_inline=$ac_kw
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15050 test "$ac_cv_c_inline" != no && break
15051 done
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15055 $as_echo "$ac_cv_c_inline" >&6; }
15057 case $ac_cv_c_inline in
15058 inline | yes) ;;
15060 case $ac_cv_c_inline in
15061 no) ac_val=;;
15062 *) ac_val=$ac_cv_c_inline;;
15063 esac
15064 cat >>confdefs.h <<_ACEOF
15065 #ifndef __cplusplus
15066 #define inline $ac_val
15067 #endif
15068 _ACEOF
15070 esac
15072 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15073 if test "x$ac_cv_type_mode_t" = xyes; then :
15075 cat >>confdefs.h <<_ACEOF
15076 #define HAVE_MODE_T 1
15077 _ACEOF
15081 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15082 if test "x$ac_cv_type_off_t" = xyes; then :
15084 cat >>confdefs.h <<_ACEOF
15085 #define HAVE_OFF_T 1
15086 _ACEOF
15090 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15091 if test "x$ac_cv_type_pid_t" = xyes; then :
15093 cat >>confdefs.h <<_ACEOF
15094 #define HAVE_PID_T 1
15095 _ACEOF
15099 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15100 if test "x$ac_cv_type_size_t" = xyes; then :
15102 cat >>confdefs.h <<_ACEOF
15103 #define HAVE_SIZE_T 1
15104 _ACEOF
15108 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15109 if test "x$ac_cv_type_ssize_t" = xyes; then :
15111 cat >>confdefs.h <<_ACEOF
15112 #define HAVE_SSIZE_T 1
15113 _ACEOF
15117 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15118 if test "x$ac_cv_type_long_long" = xyes; then :
15120 cat >>confdefs.h <<_ACEOF
15121 #define HAVE_LONG_LONG 1
15122 _ACEOF
15126 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15127 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15129 cat >>confdefs.h <<_ACEOF
15130 #define HAVE_FSBLKCNT_T 1
15131 _ACEOF
15135 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15136 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_FSFILCNT_T 1
15140 _ACEOF
15145 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15146 #include <signal.h>
15148 if test "x$ac_cv_type_sigset_t" = xyes; then :
15150 cat >>confdefs.h <<_ACEOF
15151 #define HAVE_SIGSET_T 1
15152 _ACEOF
15157 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15159 if test "x$ac_cv_type_request_sense" = xyes; then :
15161 cat >>confdefs.h <<_ACEOF
15162 #define HAVE_REQUEST_SENSE 1
15163 _ACEOF
15169 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15170 #ifdef HAVE_SYS_SOCKET_H
15171 #include <sys/socket.h>
15172 #endif
15173 #ifdef HAVE_SYS_SOCKETVAR_H
15174 #include <sys/socketvar.h>
15175 #endif
15176 #ifdef HAVE_NET_ROUTE_H
15177 #include <net/route.h>
15178 #endif
15179 #ifdef HAVE_NETINET_IN_H
15180 #include <netinet/in.h>
15181 #endif
15182 #ifdef HAVE_NETINET_IN_SYSTM_H
15183 #include <netinet/in_systm.h>
15184 #endif
15185 #ifdef HAVE_NETINET_IP_H
15186 #include <netinet/ip.h>
15187 #endif
15188 #ifdef HAVE_NETINET_IN_PCB_H
15189 #include <netinet/in_pcb.h>
15190 #endif
15192 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15194 cat >>confdefs.h <<_ACEOF
15195 #define HAVE_STRUCT_XINPGEN 1
15196 _ACEOF
15202 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15203 #include <link.h>
15204 #endif
15205 #ifdef HAVE_SYS_LINK_H
15206 #include <sys/link.h>
15207 #endif
15209 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15211 cat >>confdefs.h <<_ACEOF
15212 #define HAVE_STRUCT_R_DEBUG 1
15213 _ACEOF
15217 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15218 #include <link.h>
15219 #endif
15220 #ifdef HAVE_SYS_LINK_H
15221 #include <sys/link.h>
15222 #endif
15224 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_STRUCT_LINK_MAP 1
15228 _ACEOF
15234 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15235 #include <linux/input.h>
15236 #endif
15238 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15240 cat >>confdefs.h <<_ACEOF
15241 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15242 _ACEOF
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15249 $as_echo_n "checking for sigaddset... " >&6; }
15250 if ${wine_cv_have_sigaddset+:} false; then :
15251 $as_echo_n "(cached) " >&6
15252 else
15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15255 #include <signal.h>
15257 main ()
15259 sigset_t set; sigaddset(&set,SIGTERM);
15261 return 0;
15263 _ACEOF
15264 if ac_fn_c_try_link "$LINENO"; then :
15265 wine_cv_have_sigaddset=yes
15266 else
15267 wine_cv_have_sigaddset=no
15269 rm -f core conftest.err conftest.$ac_objext \
15270 conftest$ac_exeext conftest.$ac_ext
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15273 $as_echo "$wine_cv_have_sigaddset" >&6; }
15274 if test "$wine_cv_have_sigaddset" = "yes"
15275 then
15277 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15283 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15284 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15285 $as_echo_n "(cached) " >&6
15286 else
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15289 #include <netdb.h>
15291 main ()
15294 char *name=0;
15295 struct hostent he;
15296 struct hostent *result;
15297 char *buf=0;
15298 int bufsize=0;
15299 int errnr;
15300 char *addr=0;
15301 int addrlen=0;
15302 int addrtype=0;
15303 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15304 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15307 return 0;
15309 _ACEOF
15310 if ac_fn_c_try_link "$LINENO"; then :
15311 wine_cv_linux_gethostbyname_r_6=yes
15312 else
15313 wine_cv_linux_gethostbyname_r_6=no
15316 rm -f core conftest.err conftest.$ac_objext \
15317 conftest$ac_exeext conftest.$ac_ext
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15321 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15322 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15323 then
15325 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15329 if test "$ac_cv_header_linux_joystick_h" = "yes"
15330 then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15332 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15333 if ${wine_cv_linux_joystick_22_api+:} false; then :
15334 $as_echo_n "(cached) " >&6
15335 else
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15339 #include <sys/ioctl.h>
15340 #include <sys/types.h>
15341 #include <linux/joystick.h>
15343 struct js_event blub;
15344 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15345 #error "no 2.2 header"
15346 #endif
15349 main ()
15351 /*empty*/
15353 return 0;
15355 _ACEOF
15356 if ac_fn_c_try_compile "$LINENO"; then :
15357 wine_cv_linux_joystick_22_api=yes
15358 else
15359 wine_cv_linux_joystick_22_api=no
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15365 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15366 if test "$wine_cv_linux_joystick_22_api" = "yes"
15367 then
15369 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15375 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15376 #ifdef HAVE_SYS_PARAM_H
15377 # include <sys/param.h>
15378 #endif
15379 #ifdef HAVE_SYS_MOUNT_H
15380 # include <sys/mount.h>
15381 #endif
15382 #ifdef HAVE_SYS_VFS_H
15383 # include <sys/vfs.h>
15384 #endif
15385 #ifdef HAVE_SYS_STATFS_H
15386 # include <sys/statfs.h>
15387 #endif
15389 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15391 cat >>confdefs.h <<_ACEOF
15392 #define HAVE_STRUCT_STATFS_F_BFREE 1
15393 _ACEOF
15397 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15398 #ifdef HAVE_SYS_PARAM_H
15399 # include <sys/param.h>
15400 #endif
15401 #ifdef HAVE_SYS_MOUNT_H
15402 # include <sys/mount.h>
15403 #endif
15404 #ifdef HAVE_SYS_VFS_H
15405 # include <sys/vfs.h>
15406 #endif
15407 #ifdef HAVE_SYS_STATFS_H
15408 # include <sys/statfs.h>
15409 #endif
15411 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15413 cat >>confdefs.h <<_ACEOF
15414 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15415 _ACEOF
15419 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15420 #ifdef HAVE_SYS_PARAM_H
15421 # include <sys/param.h>
15422 #endif
15423 #ifdef HAVE_SYS_MOUNT_H
15424 # include <sys/mount.h>
15425 #endif
15426 #ifdef HAVE_SYS_VFS_H
15427 # include <sys/vfs.h>
15428 #endif
15429 #ifdef HAVE_SYS_STATFS_H
15430 # include <sys/statfs.h>
15431 #endif
15433 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15435 cat >>confdefs.h <<_ACEOF
15436 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15437 _ACEOF
15441 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15442 #ifdef HAVE_SYS_PARAM_H
15443 # include <sys/param.h>
15444 #endif
15445 #ifdef HAVE_SYS_MOUNT_H
15446 # include <sys/mount.h>
15447 #endif
15448 #ifdef HAVE_SYS_VFS_H
15449 # include <sys/vfs.h>
15450 #endif
15451 #ifdef HAVE_SYS_STATFS_H
15452 # include <sys/statfs.h>
15453 #endif
15455 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15457 cat >>confdefs.h <<_ACEOF
15458 #define HAVE_STRUCT_STATFS_F_FFREE 1
15459 _ACEOF
15463 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15464 #ifdef HAVE_SYS_PARAM_H
15465 # include <sys/param.h>
15466 #endif
15467 #ifdef HAVE_SYS_MOUNT_H
15468 # include <sys/mount.h>
15469 #endif
15470 #ifdef HAVE_SYS_VFS_H
15471 # include <sys/vfs.h>
15472 #endif
15473 #ifdef HAVE_SYS_STATFS_H
15474 # include <sys/statfs.h>
15475 #endif
15477 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15479 cat >>confdefs.h <<_ACEOF
15480 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15481 _ACEOF
15485 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15486 #ifdef HAVE_SYS_PARAM_H
15487 # include <sys/param.h>
15488 #endif
15489 #ifdef HAVE_SYS_MOUNT_H
15490 # include <sys/mount.h>
15491 #endif
15492 #ifdef HAVE_SYS_VFS_H
15493 # include <sys/vfs.h>
15494 #endif
15495 #ifdef HAVE_SYS_STATFS_H
15496 # include <sys/statfs.h>
15497 #endif
15499 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15501 cat >>confdefs.h <<_ACEOF
15502 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15503 _ACEOF
15509 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15510 #include <sys/statvfs.h>
15511 #endif
15513 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15515 cat >>confdefs.h <<_ACEOF
15516 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15517 _ACEOF
15523 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15524 #include <dirent.h>
15525 #endif
15527 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15529 cat >>confdefs.h <<_ACEOF
15530 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15531 _ACEOF
15537 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15538 #ifdef HAVE_SYS_SOCKET_H
15539 # include <sys/socket.h>
15540 #endif
15541 #ifdef HAVE_SYS_UN_H
15542 # include <sys/un.h>
15543 #endif
15545 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15547 cat >>confdefs.h <<_ACEOF
15548 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15549 _ACEOF
15553 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15554 #ifdef HAVE_SYS_SOCKET_H
15555 # include <sys/socket.h>
15556 #endif
15557 #ifdef HAVE_SYS_UN_H
15558 # include <sys/un.h>
15559 #endif
15561 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15563 cat >>confdefs.h <<_ACEOF
15564 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15565 _ACEOF
15569 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15570 #ifdef HAVE_SYS_SOCKET_H
15571 # include <sys/socket.h>
15572 #endif
15573 #ifdef HAVE_SYS_UN_H
15574 # include <sys/un.h>
15575 #endif
15577 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15579 cat >>confdefs.h <<_ACEOF
15580 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15581 _ACEOF
15587 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15588 #ifdef HAVE_SCSI_SG_H
15589 #include <scsi/sg.h>
15590 #endif
15592 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15594 cat >>confdefs.h <<_ACEOF
15595 #define HAVE_SCSIREQ_T_CMD 1
15596 _ACEOF
15600 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>
15601 #ifdef HAVE_SCSI_SG_H
15602 #include <scsi/sg.h>
15603 #endif
15605 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15607 cat >>confdefs.h <<_ACEOF
15608 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15609 _ACEOF
15615 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15617 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15619 cat >>confdefs.h <<_ACEOF
15620 #define HAVE_SIGINFO_T_SI_FD 1
15621 _ACEOF
15627 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15628 #ifdef HAVE_SYS_MTIO_H
15629 #include <sys/mtio.h>
15630 #endif
15632 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15634 cat >>confdefs.h <<_ACEOF
15635 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15636 _ACEOF
15640 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15641 #ifdef HAVE_SYS_MTIO_H
15642 #include <sys/mtio.h>
15643 #endif
15645 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15647 cat >>confdefs.h <<_ACEOF
15648 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15649 _ACEOF
15653 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15654 #ifdef HAVE_SYS_MTIO_H
15655 #include <sys/mtio.h>
15656 #endif
15658 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
15660 cat >>confdefs.h <<_ACEOF
15661 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
15662 _ACEOF
15668 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
15669 #include <getopt.h>
15670 #endif
15672 if test "x$ac_cv_member_struct_option_name" = xyes; then :
15674 cat >>confdefs.h <<_ACEOF
15675 #define HAVE_STRUCT_OPTION_NAME 1
15676 _ACEOF
15682 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15683 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15685 cat >>confdefs.h <<_ACEOF
15686 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15687 _ACEOF
15691 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15692 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
15694 cat >>confdefs.h <<_ACEOF
15695 #define HAVE_STRUCT_STAT_ST_MTIM 1
15696 _ACEOF
15700 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15701 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
15703 cat >>confdefs.h <<_ACEOF
15704 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
15705 _ACEOF
15709 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
15710 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
15712 cat >>confdefs.h <<_ACEOF
15713 #define HAVE_STRUCT_STAT_ST_CTIM 1
15714 _ACEOF
15718 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
15719 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
15721 cat >>confdefs.h <<_ACEOF
15722 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
15723 _ACEOF
15727 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
15728 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
15730 cat >>confdefs.h <<_ACEOF
15731 #define HAVE_STRUCT_STAT_ST_ATIM 1
15732 _ACEOF
15736 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
15737 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
15739 cat >>confdefs.h <<_ACEOF
15740 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
15741 _ACEOF
15745 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15746 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15748 cat >>confdefs.h <<_ACEOF
15749 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15750 _ACEOF
15754 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
15755 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
15757 cat >>confdefs.h <<_ACEOF
15758 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
15759 _ACEOF
15763 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
15764 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
15766 cat >>confdefs.h <<_ACEOF
15767 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
15768 _ACEOF
15772 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
15773 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
15775 cat >>confdefs.h <<_ACEOF
15776 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
15777 _ACEOF
15781 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
15782 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
15784 cat >>confdefs.h <<_ACEOF
15785 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
15786 _ACEOF
15792 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
15793 #include <sys/types.h>
15794 #endif
15795 #ifdef HAVE_NETINET_IN_H
15796 #include <netinet/in.h>
15797 #endif
15799 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15801 cat >>confdefs.h <<_ACEOF
15802 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15803 _ACEOF
15809 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
15810 #include <resolv.h>
15811 #endif
15813 if test "x$ac_cv_type_struct___res_state" = xyes; then :
15815 cat >>confdefs.h <<_ACEOF
15816 #define HAVE_STRUCT___RES_STATE 1
15817 _ACEOF
15823 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
15824 #include <resolv.h>
15825 #endif
15827 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
15829 cat >>confdefs.h <<_ACEOF
15830 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
15831 _ACEOF
15837 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
15838 #include <sys/types.h>
15839 #endif
15840 #ifdef HAVE_NETINET_IN_H
15841 # include <netinet/in.h>
15842 #endif
15843 #ifdef HAVE_ARPA_NAMESER_H
15844 # include <arpa/nameser.h>
15845 #endif
15847 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
15849 cat >>confdefs.h <<_ACEOF
15850 #define HAVE_NS_MSG__MSG_PTR 1
15851 _ACEOF
15857 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
15858 #include <sys/types.h>
15859 #endif
15860 #ifdef HAVE_NETINET_IP_H
15861 #include <netinet/ip.h>
15862 #endif
15863 #ifdef HAVE_NETINET_IP_ICMP_H
15864 #include <netinet/ip_icmp.h>
15865 #endif
15866 #ifdef HAVE_NETINET_ICMP_VAR_H
15867 #include <netinet/icmp_var.h>
15868 #endif
15870 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
15872 cat >>confdefs.h <<_ACEOF
15873 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
15874 _ACEOF
15880 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
15881 #include <sys/types.h>
15882 #endif
15883 #ifdef HAVE_ALIAS_H
15884 #include <alias.h>
15885 #endif
15886 #ifdef HAVE_SYS_SOCKET_H
15887 #include <sys/socket.h>
15888 #endif
15889 #ifdef HAVE_SYS_SOCKETVAR_H
15890 #include <sys/socketvar.h>
15891 #endif
15892 #ifdef HAVE_SYS_TIMEOUT_H
15893 #include <sys/timeout.h>
15894 #endif
15895 #ifdef HAVE_NETINET_IN_H
15896 #include <netinet/in.h>
15897 #endif
15898 #ifdef HAVE_NETINET_IN_SYSTM_H
15899 #include <netinet/in_systm.h>
15900 #endif
15901 #ifdef HAVE_NETINET_IP_H
15902 #include <netinet/ip.h>
15903 #endif
15904 #ifdef HAVE_NETINET_IP_VAR_H
15905 #include <netinet/ip_var.h>
15906 #endif
15907 #ifdef HAVE_NETINET_IP_ICMP_H
15908 #include <netinet/ip_icmp.h>
15909 #endif
15910 #ifdef HAVE_NETINET_ICMP_VAR_H
15911 #include <netinet/icmp_var.h>
15912 #endif
15914 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
15916 cat >>confdefs.h <<_ACEOF
15917 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
15918 _ACEOF
15924 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
15925 #include <sys/types.h>
15926 #endif
15927 #ifdef HAVE_SYS_SOCKETVAR_H
15928 #include <sys/socketvar.h>
15929 #endif
15930 #ifdef HAVE_NETINET_IN_H
15931 #include <netinet/in.h>
15932 #endif
15933 #ifdef HAVE_NETINET_IP_VAR_H
15934 #include <netinet/ip_var.h>
15935 #endif
15937 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
15939 cat >>confdefs.h <<_ACEOF
15940 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
15941 _ACEOF
15947 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
15948 #include <netinet/ip_var.h>
15949 #endif
15951 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
15953 cat >>confdefs.h <<_ACEOF
15954 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
15955 _ACEOF
15961 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
15962 #include <sys/types.h>
15963 #endif
15964 #ifdef HAVE_SYS_SOCKETVAR_H
15965 #include <sys/socketvar.h>
15966 #endif
15967 #ifdef HAVE_NETINET_IN_H
15968 #include <netinet/in.h>
15969 #endif
15970 #ifdef HAVE_NETINET_TCP_H
15971 #include <netinet/tcp.h>
15972 #endif
15973 #ifdef HAVE_NETINET_TCP_VAR_H
15974 #include <netinet/tcp_var.h>
15975 #endif
15977 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
15979 cat >>confdefs.h <<_ACEOF
15980 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
15981 _ACEOF
15987 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
15988 #include <netinet/tcp_var.h>
15989 #endif
15991 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
15993 cat >>confdefs.h <<_ACEOF
15994 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
15995 _ACEOF
16001 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16002 #include <sys/types.h>
16003 #endif
16004 #ifdef HAVE_NETINET_IN_H
16005 #include <netinet/in.h>
16006 #endif
16007 #ifdef HAVE_NETINET_IP_VAR_H
16008 #include <netinet/ip_var.h>
16009 #endif
16010 #ifdef HAVE_NETINET_UDP_H
16011 #include <netinet/udp.h>
16012 #endif
16013 #ifdef HAVE_NETINET_UDP_VAR_H
16014 #include <netinet/udp_var.h>
16015 #endif
16017 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16019 cat >>confdefs.h <<_ACEOF
16020 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16021 _ACEOF
16027 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16028 #include <sys/types.h>
16029 #endif
16030 #ifdef HAVE_NET_IF_H
16031 # include <net/if.h>
16032 #endif
16034 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16036 cat >>confdefs.h <<_ACEOF
16037 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16038 _ACEOF
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16045 $as_echo_n "checking for timezone variable... " >&6; }
16046 if ${ac_cv_have_timezone+:} false; then :
16047 $as_echo_n "(cached) " >&6
16048 else
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16051 #include <time.h>
16053 main ()
16055 timezone = 1
16057 return 0;
16059 _ACEOF
16060 if ac_fn_c_try_link "$LINENO"; then :
16061 ac_cv_have_timezone="yes"
16062 else
16063 ac_cv_have_timezone="no"
16065 rm -f core conftest.err conftest.$ac_objext \
16066 conftest$ac_exeext conftest.$ac_ext
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16069 $as_echo "$ac_cv_have_timezone" >&6; }
16070 if test "$ac_cv_have_timezone" = "yes"
16071 then
16073 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16077 $as_echo_n "checking for daylight variable... " >&6; }
16078 if ${ac_cv_have_daylight+:} false; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 #include <time.h>
16085 main ()
16087 daylight = 1
16089 return 0;
16091 _ACEOF
16092 if ac_fn_c_try_link "$LINENO"; then :
16093 ac_cv_have_daylight="yes"
16094 else
16095 ac_cv_have_daylight="no"
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16101 $as_echo "$ac_cv_have_daylight" >&6; }
16102 if test "$ac_cv_have_daylight" = "yes"
16103 then
16105 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16109 ac_save_LIBS="$LIBS"
16110 LIBS="$LIBS -lm"
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16112 $as_echo_n "checking for isfinite... " >&6; }
16113 if ${ac_cv_have_isfinite+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16118 #define _GNU_SOURCE
16119 #include <math.h>
16121 main ()
16123 float f = 0.0; return isfinite(f)
16125 return 0;
16127 _ACEOF
16128 if ac_fn_c_try_link "$LINENO"; then :
16129 ac_cv_have_isfinite="yes"
16130 else
16131 ac_cv_have_isfinite="no"
16133 rm -f core conftest.err conftest.$ac_objext \
16134 conftest$ac_exeext conftest.$ac_ext
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16137 $as_echo "$ac_cv_have_isfinite" >&6; }
16138 if test "$ac_cv_have_isfinite" = "yes"
16139 then
16141 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16145 ac_save_LIBS="$LIBS"
16146 LIBS="$LIBS -lm"
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16148 $as_echo_n "checking for isinf... " >&6; }
16149 if ${ac_cv_have_isinf+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h. */
16154 #include <math.h>
16156 main ()
16158 float f = 0.0; return isinf(f)
16160 return 0;
16162 _ACEOF
16163 if ac_fn_c_try_link "$LINENO"; then :
16164 ac_cv_have_isinf="yes"
16165 else
16166 ac_cv_have_isinf="no"
16168 rm -f core conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16172 $as_echo "$ac_cv_have_isinf" >&6; }
16173 if test "$ac_cv_have_isinf" = "yes"
16174 then
16176 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16181 $as_echo_n "checking for isnan... " >&6; }
16182 if ${ac_cv_have_isnan+:} false; then :
16183 $as_echo_n "(cached) " >&6
16184 else
16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16187 #include <math.h>
16189 main ()
16191 float f = 0.0; return isnan(f)
16193 return 0;
16195 _ACEOF
16196 if ac_fn_c_try_link "$LINENO"; then :
16197 ac_cv_have_isnan="yes"
16198 else
16199 ac_cv_have_isnan="no"
16201 rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16205 $as_echo "$ac_cv_have_isnan" >&6; }
16206 if test "$ac_cv_have_isnan" = "yes"
16207 then
16209 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16212 LIBS="$ac_save_LIBS"
16215 case $host_cpu in
16216 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16217 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16218 if ${ac_cv_cpp_def___i386__+:} false; then :
16219 $as_echo_n "(cached) " >&6
16220 else
16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h. */
16223 #ifndef __i386__
16225 #endif
16226 _ACEOF
16227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16228 $EGREP "yes" >/dev/null 2>&1; then :
16229 ac_cv_cpp_def___i386__=yes
16230 else
16231 ac_cv_cpp_def___i386__=no
16233 rm -f conftest*
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16237 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16238 if test $ac_cv_cpp_def___i386__ = yes; then :
16239 CFLAGS="$CFLAGS -D__i386__"
16240 LINTFLAGS="$LINTFLAGS -D__i386__"
16241 fi ;;
16242 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16243 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16244 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16245 $as_echo_n "(cached) " >&6
16246 else
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249 #ifndef __x86_64__
16251 #endif
16252 _ACEOF
16253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16254 $EGREP "yes" >/dev/null 2>&1; then :
16255 ac_cv_cpp_def___x86_64__=yes
16256 else
16257 ac_cv_cpp_def___x86_64__=no
16259 rm -f conftest*
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16263 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16264 if test $ac_cv_cpp_def___x86_64__ = yes; then :
16265 CFLAGS="$CFLAGS -D__x86_64__"
16266 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16267 fi ;;
16268 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16269 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16270 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16271 $as_echo_n "(cached) " >&6
16272 else
16273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274 /* end confdefs.h. */
16275 #ifndef __sparc64__
16277 #endif
16278 _ACEOF
16279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16280 $EGREP "yes" >/dev/null 2>&1; then :
16281 ac_cv_cpp_def___sparc64__=yes
16282 else
16283 ac_cv_cpp_def___sparc64__=no
16285 rm -f conftest*
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16289 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16290 if test $ac_cv_cpp_def___sparc64__ = yes; then :
16291 CFLAGS="$CFLAGS -D__sparc64__"
16292 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16293 fi ;;
16294 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16295 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16296 if ${ac_cv_cpp_def___sparc__+:} false; then :
16297 $as_echo_n "(cached) " >&6
16298 else
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16301 #ifndef __sparc__
16303 #endif
16304 _ACEOF
16305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16306 $EGREP "yes" >/dev/null 2>&1; then :
16307 ac_cv_cpp_def___sparc__=yes
16308 else
16309 ac_cv_cpp_def___sparc__=no
16311 rm -f conftest*
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16315 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16316 if test $ac_cv_cpp_def___sparc__ = yes; then :
16317 CFLAGS="$CFLAGS -D__sparc__"
16318 LINTFLAGS="$LINTFLAGS -D__sparc__"
16319 fi ;;
16320 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16321 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16322 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16323 $as_echo_n "(cached) " >&6
16324 else
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16327 #ifndef __powerpc64__
16329 #endif
16330 _ACEOF
16331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16332 $EGREP "yes" >/dev/null 2>&1; then :
16333 ac_cv_cpp_def___powerpc64__=yes
16334 else
16335 ac_cv_cpp_def___powerpc64__=no
16337 rm -f conftest*
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16341 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16342 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
16343 CFLAGS="$CFLAGS -D__powerpc64__"
16344 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16345 fi ;;
16346 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16347 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16348 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16349 $as_echo_n "(cached) " >&6
16350 else
16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h. */
16353 #ifndef __powerpc__
16355 #endif
16356 _ACEOF
16357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16358 $EGREP "yes" >/dev/null 2>&1; then :
16359 ac_cv_cpp_def___powerpc__=yes
16360 else
16361 ac_cv_cpp_def___powerpc__=no
16363 rm -f conftest*
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16367 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16368 if test $ac_cv_cpp_def___powerpc__ = yes; then :
16369 CFLAGS="$CFLAGS -D__powerpc__"
16370 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16371 fi ;;
16372 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16373 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16374 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16375 $as_echo_n "(cached) " >&6
16376 else
16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h. */
16379 #ifndef __aarch64__
16381 #endif
16382 _ACEOF
16383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16384 $EGREP "yes" >/dev/null 2>&1; then :
16385 ac_cv_cpp_def___aarch64__=yes
16386 else
16387 ac_cv_cpp_def___aarch64__=no
16389 rm -f conftest*
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16393 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16394 if test $ac_cv_cpp_def___aarch64__ = yes; then :
16395 CFLAGS="$CFLAGS -D__aarch64__"
16396 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16397 fi ;;
16398 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16399 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16400 if ${ac_cv_cpp_def___arm__+:} false; then :
16401 $as_echo_n "(cached) " >&6
16402 else
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16405 #ifndef __arm__
16407 #endif
16408 _ACEOF
16409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16410 $EGREP "yes" >/dev/null 2>&1; then :
16411 ac_cv_cpp_def___arm__=yes
16412 else
16413 ac_cv_cpp_def___arm__=no
16415 rm -f conftest*
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16419 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16420 if test $ac_cv_cpp_def___arm__ = yes; then :
16421 CFLAGS="$CFLAGS -D__arm__"
16422 LINTFLAGS="$LINTFLAGS -D__arm__"
16423 fi ;;
16424 esac
16426 case $host_vendor in
16427 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16428 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16429 if ${ac_cv_cpp_def___sun__+:} false; then :
16430 $as_echo_n "(cached) " >&6
16431 else
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16434 #ifndef __sun__
16436 #endif
16437 _ACEOF
16438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16439 $EGREP "yes" >/dev/null 2>&1; then :
16440 ac_cv_cpp_def___sun__=yes
16441 else
16442 ac_cv_cpp_def___sun__=no
16444 rm -f conftest*
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16448 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16449 if test $ac_cv_cpp_def___sun__ = yes; then :
16450 CFLAGS="$CFLAGS -D__sun__"
16451 LINTFLAGS="$LINTFLAGS -D__sun__"
16452 fi ;;
16453 esac
16459 ac_config_commands="$ac_config_commands include/stamp-h"
16461 $as_echo_n "creating Makefile rules..." >&6
16464 wine_fn_append_rule "
16465 # Rules automatically generated by configure
16467 CLEAN_FILES = *.o *.a *.so *.res *.fake *.ok *.tab.[ch] *.yy.c
16469 .INIT: Makefile
16470 .MAKEFILEDEPS:
16471 all: Makefile
16472 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status
16473 @./config.status Make.tmp Makefile"
16475 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16476 .gitignore: config.status
16477 @./config.status .gitignore"
16479 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16480 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16482 if test "x$enable_fonts" != xno; then
16483 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16484 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16485 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16486 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16487 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16489 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16490 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16491 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16492 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16493 ac_config_links="$ac_config_links wine:tools/winewrapper"
16494 wine_fn_config_symlink wine
16495 if test "x$enable_win64" != xno; then
16496 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16497 wine_fn_config_symlink wine64
16500 wine_fn_config_dll acledit enable_acledit
16501 wine_fn_config_dll aclui enable_aclui implib
16502 wine_fn_config_dll activeds enable_activeds implib
16503 wine_fn_config_dll actxprxy enable_actxprxy clean
16504 wine_fn_config_lib adsiid
16505 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16506 wine_fn_config_test dlls/advapi32/tests advapi32_test
16507 wine_fn_config_dll advpack enable_advpack implib
16508 wine_fn_config_test dlls/advpack/tests advpack_test
16509 wine_fn_config_dll amstream enable_amstream clean
16510 wine_fn_config_test dlls/amstream/tests amstream_test
16511 wine_fn_config_dll api-ms-win-core-debug-l1-1-1 enable_api_ms_win_core_debug_l1_1_1
16512 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-1 enable_api_ms_win_core_errorhandling_l1_1_1
16513 wine_fn_config_dll api-ms-win-core-interlocked-l1-2-0 enable_api_ms_win_core_interlocked_l1_2_0
16514 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16515 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16516 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-1 enable_api_ms_win_core_processthreads_l1_1_1
16517 wine_fn_config_dll api-ms-win-core-profile-l1-1-0 enable_api_ms_win_core_profile_l1_1_0
16518 wine_fn_config_dll api-ms-win-core-string-l1-1-0 enable_api_ms_win_core_string_l1_1_0
16519 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-0 enable_api_ms_win_core_sysinfo_l1_2_0
16520 wine_fn_config_dll api-ms-win-core-util-l1-1-0 enable_api_ms_win_core_util_l1_1_0
16521 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16522 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16523 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16524 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16525 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16526 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16527 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16528 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16529 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16530 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16531 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16532 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16533 wine_fn_config_dll apphelp enable_apphelp
16534 wine_fn_config_test dlls/apphelp/tests apphelp_test
16535 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16536 wine_fn_config_dll atl enable_atl clean,implib
16537 wine_fn_config_test dlls/atl/tests atl_test
16538 wine_fn_config_dll atl100 enable_atl100 implib
16539 wine_fn_config_test dlls/atl100/tests atl100_test
16540 wine_fn_config_dll atl110 enable_atl110
16541 wine_fn_config_dll atl80 enable_atl80 implib
16542 wine_fn_config_test dlls/atl80/tests atl80_test
16543 wine_fn_config_dll atl90 enable_atl90
16544 wine_fn_config_dll authz enable_authz
16545 wine_fn_config_dll avicap32 enable_avicap32 implib
16546 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
16547 wine_fn_config_test dlls/avifil32/tests avifil32_test
16548 wine_fn_config_dll avifile.dll16 enable_win16
16549 wine_fn_config_dll avrt enable_avrt implib
16550 wine_fn_config_dll bcrypt enable_bcrypt
16551 wine_fn_config_dll browseui enable_browseui clean,po
16552 wine_fn_config_test dlls/browseui/tests browseui_test
16553 wine_fn_config_dll cabinet enable_cabinet implib
16554 wine_fn_config_test dlls/cabinet/tests cabinet_test
16555 wine_fn_config_dll capi2032 enable_capi2032 implib
16556 wine_fn_config_dll cards enable_cards implib
16557 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16558 wine_fn_config_dll clusapi enable_clusapi implib
16559 wine_fn_config_dll comcat enable_comcat
16560 wine_fn_config_test dlls/comcat/tests comcat_test
16561 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16562 wine_fn_config_test dlls/comctl32/tests comctl32_test
16563 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
16564 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16565 wine_fn_config_dll comm.drv16 enable_win16
16566 wine_fn_config_dll commdlg.dll16 enable_win16
16567 wine_fn_config_dll compobj.dll16 enable_win16
16568 wine_fn_config_dll compstui enable_compstui implib
16569 wine_fn_config_dll comsvcs enable_comsvcs implib
16570 wine_fn_config_dll credui enable_credui implib,po
16571 wine_fn_config_test dlls/credui/tests credui_test
16572 wine_fn_config_dll crtdll enable_crtdll implib
16573 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16574 wine_fn_config_test dlls/crypt32/tests crypt32_test
16575 wine_fn_config_dll cryptdlg enable_cryptdlg po
16576 wine_fn_config_dll cryptdll enable_cryptdll implib
16577 wine_fn_config_dll cryptnet enable_cryptnet implib
16578 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16579 wine_fn_config_dll cryptui enable_cryptui implib,po
16580 wine_fn_config_test dlls/cryptui/tests cryptui_test
16581 wine_fn_config_dll ctapi32 enable_ctapi32
16582 wine_fn_config_dll ctl3d.dll16 enable_win16
16583 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16584 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16585 wine_fn_config_dll d3d10 enable_d3d10 implib
16586 wine_fn_config_test dlls/d3d10/tests d3d10_test
16587 wine_fn_config_dll d3d10core enable_d3d10core implib
16588 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16589 wine_fn_config_dll d3d11 enable_d3d11
16590 wine_fn_config_dll d3d8 enable_d3d8 implib
16591 wine_fn_config_test dlls/d3d8/tests d3d8_test
16592 wine_fn_config_dll d3d9 enable_d3d9 implib
16593 wine_fn_config_test dlls/d3d9/tests d3d9_test
16594 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16595 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16596 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16597 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16598 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16599 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16600 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16601 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16602 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16603 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16604 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16605 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16606 wine_fn_config_dll d3dim enable_d3dim implib
16607 wine_fn_config_dll d3drm enable_d3drm implib
16608 wine_fn_config_test dlls/d3drm/tests d3drm_test
16609 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16610 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16611 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16612 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16613 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16614 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16615 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16616 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16617 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16618 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16619 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16620 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
16621 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
16622 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16623 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16624 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16625 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16626 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16627 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16628 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16629 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16630 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16631 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16632 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16633 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16634 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16635 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16636 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16637 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16638 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16639 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16640 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16641 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16642 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16643 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
16644 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16645 wine_fn_config_dll dbgeng enable_dbgeng implib
16646 wine_fn_config_dll dbghelp enable_dbghelp implib
16647 wine_fn_config_dll dciman32 enable_dciman32 implib
16648 wine_fn_config_dll ddeml.dll16 enable_win16
16649 wine_fn_config_dll ddraw enable_ddraw clean,implib
16650 wine_fn_config_test dlls/ddraw/tests ddraw_test
16651 wine_fn_config_dll ddrawex enable_ddrawex clean
16652 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16653 wine_fn_config_dll devenum enable_devenum clean,po
16654 wine_fn_config_test dlls/devenum/tests devenum_test
16655 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16656 wine_fn_config_dll difxapi enable_difxapi
16657 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
16658 wine_fn_config_test dlls/dinput/tests dinput_test
16659 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
16660 wine_fn_config_test dlls/dinput8/tests dinput8_test
16661 wine_fn_config_dll dispdib.dll16 enable_win16
16662 wine_fn_config_dll dispex enable_dispex clean
16663 wine_fn_config_test dlls/dispex/tests dispex_test
16664 wine_fn_config_dll display.drv16 enable_win16
16665 wine_fn_config_dll dmband enable_dmband clean
16666 wine_fn_config_test dlls/dmband/tests dmband_test
16667 wine_fn_config_dll dmcompos enable_dmcompos clean
16668 wine_fn_config_test dlls/dmcompos/tests dmcompos_test
16669 wine_fn_config_dll dmime enable_dmime clean
16670 wine_fn_config_test dlls/dmime/tests dmime_test
16671 wine_fn_config_dll dmloader enable_dmloader clean
16672 wine_fn_config_test dlls/dmloader/tests dmloader_test
16673 wine_fn_config_dll dmscript enable_dmscript clean
16674 wine_fn_config_test dlls/dmscript/tests dmscript_test
16675 wine_fn_config_dll dmstyle enable_dmstyle clean
16676 wine_fn_config_test dlls/dmstyle/tests dmstyle_test
16677 wine_fn_config_dll dmsynth enable_dmsynth clean
16678 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16679 wine_fn_config_dll dmusic enable_dmusic clean
16680 wine_fn_config_test dlls/dmusic/tests dmusic_test
16681 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16682 wine_fn_config_dll dnsapi enable_dnsapi implib
16683 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16684 wine_fn_config_dll dplay enable_dplay implib
16685 wine_fn_config_dll dplayx enable_dplayx clean,implib
16686 wine_fn_config_test dlls/dplayx/tests dplayx_test
16687 wine_fn_config_dll dpnaddr enable_dpnaddr
16688 wine_fn_config_dll dpnet enable_dpnet clean,implib
16689 wine_fn_config_test dlls/dpnet/tests dpnet_test
16690 wine_fn_config_dll dpnhpast enable_dpnhpast
16691 wine_fn_config_dll dpnlobby enable_dpnlobby
16692 wine_fn_config_dll dpwsockx enable_dpwsockx
16693 wine_fn_config_dll drmclien enable_drmclien
16694 wine_fn_config_dll dsound enable_dsound clean,implib
16695 wine_fn_config_test dlls/dsound/tests dsound_test
16696 wine_fn_config_dll dssenh enable_dssenh
16697 wine_fn_config_test dlls/dssenh/tests dssenh_test
16698 wine_fn_config_dll dswave enable_dswave clean
16699 wine_fn_config_dll dwmapi enable_dwmapi implib
16700 wine_fn_config_dll dwrite enable_dwrite implib
16701 wine_fn_config_test dlls/dwrite/tests dwrite_test
16702 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
16703 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16704 wine_fn_config_lib dxerr8
16705 wine_fn_config_lib dxerr9
16706 wine_fn_config_dll dxgi enable_dxgi implib
16707 wine_fn_config_test dlls/dxgi/tests dxgi_test
16708 wine_fn_config_lib dxguid
16709 wine_fn_config_dll explorerframe enable_explorerframe clean
16710 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16711 wine_fn_config_dll faultrep enable_faultrep implib
16712 wine_fn_config_test dlls/faultrep/tests faultrep_test
16713 wine_fn_config_dll fltlib enable_fltlib
16714 wine_fn_config_dll fusion enable_fusion
16715 wine_fn_config_test dlls/fusion/tests fusion_test
16716 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16717 wine_fn_config_dll gameux enable_gameux clean
16718 wine_fn_config_test dlls/gameux/tests gameux_test
16719 wine_fn_config_dll gdi.exe16 enable_win16
16720 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
16721 wine_fn_config_test dlls/gdi32/tests gdi32_test
16722 wine_fn_config_dll gdiplus enable_gdiplus implib
16723 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16724 wine_fn_config_dll glu32 enable_glu32 implib
16725 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16726 wine_fn_config_dll gpkcsp enable_gpkcsp
16727 wine_fn_config_dll hal enable_hal
16728 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
16729 wine_fn_config_dll hid enable_hid implib
16730 wine_fn_config_dll hlink enable_hlink clean,implib
16731 wine_fn_config_test dlls/hlink/tests hlink_test
16732 wine_fn_config_dll hnetcfg enable_hnetcfg clean
16733 wine_fn_config_dll httpapi enable_httpapi
16734 wine_fn_config_dll iccvid enable_iccvid po
16735 wine_fn_config_dll icmp enable_icmp
16736 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
16737 wine_fn_config_test dlls/ieframe/tests ieframe_test
16738 wine_fn_config_dll ifsmgr.vxd enable_win16
16739 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16740 wine_fn_config_dll imagehlp enable_imagehlp implib
16741 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16742 wine_fn_config_dll imm.dll16 enable_win16
16743 wine_fn_config_dll imm32 enable_imm32 implib
16744 wine_fn_config_test dlls/imm32/tests imm32_test
16745 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
16746 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16747 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16748 wine_fn_config_dll inetmib1 enable_inetmib1
16749 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16750 wine_fn_config_dll infosoft enable_infosoft clean
16751 wine_fn_config_test dlls/infosoft/tests infosoft_test
16752 wine_fn_config_dll initpki enable_initpki
16753 wine_fn_config_dll inkobj enable_inkobj
16754 wine_fn_config_dll inseng enable_inseng clean
16755 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16756 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16757 wine_fn_config_dll itircl enable_itircl
16758 wine_fn_config_dll itss enable_itss clean
16759 wine_fn_config_test dlls/itss/tests itss_test
16760 wine_fn_config_dll joy.cpl enable_joy_cpl po
16761 wine_fn_config_dll jscript enable_jscript clean,po
16762 wine_fn_config_test dlls/jscript/tests jscript_test
16763 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
16764 wine_fn_config_test dlls/kernel32/tests kernel32_test
16765 wine_fn_config_dll keyboard.drv16 enable_win16
16766 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16767 wine_fn_config_dll ktmw32 enable_ktmw32
16768 wine_fn_config_dll loadperf enable_loadperf implib
16769 wine_fn_config_dll localspl enable_localspl po
16770 wine_fn_config_test dlls/localspl/tests localspl_test
16771 wine_fn_config_dll localui enable_localui po
16772 wine_fn_config_test dlls/localui/tests localui_test
16773 wine_fn_config_dll lz32 enable_lz32 implib
16774 wine_fn_config_test dlls/lz32/tests lz32_test
16775 wine_fn_config_dll lzexpand.dll16 enable_win16
16776 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16777 wine_fn_config_test dlls/mapi32/tests mapi32_test
16778 wine_fn_config_dll mapistub enable_mapistub
16779 wine_fn_config_dll mciavi32 enable_mciavi32
16780 wine_fn_config_dll mcicda enable_mcicda
16781 wine_fn_config_dll mciqtz32 enable_mciqtz32
16782 wine_fn_config_dll mciseq enable_mciseq
16783 wine_fn_config_dll mciwave enable_mciwave
16784 wine_fn_config_dll mgmtapi enable_mgmtapi
16785 wine_fn_config_dll midimap enable_midimap
16786 wine_fn_config_dll mlang enable_mlang clean,implib
16787 wine_fn_config_test dlls/mlang/tests mlang_test
16788 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
16789 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16790 wine_fn_config_dll mmdevapi enable_mmdevapi clean
16791 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16792 wine_fn_config_dll mmdevldr.vxd enable_win16
16793 wine_fn_config_dll mmsystem.dll16 enable_win16
16794 wine_fn_config_dll monodebg.vxd enable_win16
16795 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16796 wine_fn_config_dll mouse.drv16 enable_win16
16797 wine_fn_config_dll mpr enable_mpr implib,po
16798 wine_fn_config_test dlls/mpr/tests mpr_test
16799 wine_fn_config_dll mprapi enable_mprapi implib
16800 wine_fn_config_dll msacm.dll16 enable_win16
16801 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16802 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16803 wine_fn_config_test dlls/msacm32/tests msacm32_test
16804 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16805 wine_fn_config_dll mscat32 enable_mscat32
16806 wine_fn_config_dll mscms enable_mscms implib
16807 wine_fn_config_test dlls/mscms/tests mscms_test
16808 wine_fn_config_dll mscoree enable_mscoree clean
16809 wine_fn_config_test dlls/mscoree/tests mscoree_test
16810 wine_fn_config_dll msctf enable_msctf clean
16811 wine_fn_config_test dlls/msctf/tests msctf_test
16812 wine_fn_config_dll msdaps enable_msdaps clean
16813 wine_fn_config_dll msdmo enable_msdmo implib
16814 wine_fn_config_dll msftedit enable_msftedit
16815 wine_fn_config_dll msg711.acm enable_msg711_acm
16816 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16817 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
16818 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
16819 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
16820 wine_fn_config_dll msi enable_msi clean,implib,po
16821 wine_fn_config_test dlls/msi/tests msi_test
16822 wine_fn_config_dll msident enable_msident clean
16823 wine_fn_config_dll msimg32 enable_msimg32 implib
16824 wine_fn_config_dll msimsg enable_msimsg
16825 wine_fn_config_dll msimtf enable_msimtf clean
16826 wine_fn_config_dll msisip enable_msisip
16827 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16828 wine_fn_config_dll msls31 enable_msls31
16829 wine_fn_config_dll msnet32 enable_msnet32
16830 wine_fn_config_dll mspatcha enable_mspatcha
16831 wine_fn_config_dll msrle32 enable_msrle32 po
16832 wine_fn_config_test dlls/msrle32/tests msrle32_test
16833 wine_fn_config_dll mssign32 enable_mssign32
16834 wine_fn_config_dll mssip32 enable_mssip32
16835 wine_fn_config_dll mstask enable_mstask clean
16836 wine_fn_config_test dlls/mstask/tests mstask_test
16837 wine_fn_config_dll msvcirt enable_msvcirt
16838 wine_fn_config_dll msvcm80 enable_msvcm80
16839 wine_fn_config_dll msvcm90 enable_msvcm90
16840 wine_fn_config_dll msvcp100 enable_msvcp100
16841 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16842 wine_fn_config_dll msvcp110 enable_msvcp110
16843 wine_fn_config_dll msvcp60 enable_msvcp60
16844 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16845 wine_fn_config_dll msvcp70 enable_msvcp70
16846 wine_fn_config_dll msvcp71 enable_msvcp71
16847 wine_fn_config_dll msvcp80 enable_msvcp80
16848 wine_fn_config_dll msvcp90 enable_msvcp90
16849 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16850 wine_fn_config_dll msvcr100 enable_msvcr100 implib
16851 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16852 wine_fn_config_dll msvcr110 enable_msvcr110 implib
16853 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16854 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16855 wine_fn_config_dll msvcr80 enable_msvcr80 implib
16856 wine_fn_config_dll msvcr90 enable_msvcr90 implib
16857 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16858 wine_fn_config_dll msvcrt enable_msvcrt implib
16859 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16860 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16861 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16862 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16863 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16864 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16865 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16866 wine_fn_config_dll msvidc32 enable_msvidc32 po
16867 wine_fn_config_dll msvideo.dll16 enable_win16
16868 wine_fn_config_dll mswsock enable_mswsock implib
16869 wine_fn_config_dll msxml enable_msxml clean
16870 wine_fn_config_dll msxml2 enable_msxml2 clean
16871 wine_fn_config_dll msxml3 enable_msxml3 clean
16872 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
16873 wine_fn_config_dll msxml4 enable_msxml4 clean
16874 wine_fn_config_dll msxml6 enable_msxml6 clean
16875 wine_fn_config_dll nddeapi enable_nddeapi implib
16876 wine_fn_config_dll netapi32 enable_netapi32 implib
16877 wine_fn_config_test dlls/netapi32/tests netapi32_test
16878 wine_fn_config_dll netcfgx enable_netcfgx
16879 wine_fn_config_dll newdev enable_newdev implib
16880 wine_fn_config_dll normaliz enable_normaliz implib
16881 wine_fn_config_dll npmshtml enable_npmshtml
16882 wine_fn_config_dll ntdll enable_ntdll implib
16883 wine_fn_config_test dlls/ntdll/tests ntdll_test
16884 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16885 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16886 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16887 wine_fn_config_dll ntprint enable_ntprint
16888 wine_fn_config_test dlls/ntprint/tests ntprint_test
16889 wine_fn_config_dll objsel enable_objsel clean
16890 wine_fn_config_dll odbc32 enable_odbc32 implib
16891 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16892 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16893 wine_fn_config_dll odbccu32 enable_odbccu32
16894 wine_fn_config_dll ole2.dll16 enable_win16
16895 wine_fn_config_dll ole2conv.dll16 enable_win16
16896 wine_fn_config_dll ole2disp.dll16 enable_win16
16897 wine_fn_config_dll ole2nls.dll16 enable_win16
16898 wine_fn_config_dll ole2prox.dll16 enable_win16
16899 wine_fn_config_dll ole2thk.dll16 enable_win16
16900 wine_fn_config_dll ole32 enable_ole32 clean,implib
16901 wine_fn_config_test dlls/ole32/tests ole32_test
16902 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
16903 wine_fn_config_test dlls/oleacc/tests oleacc_test
16904 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
16905 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
16906 wine_fn_config_dll olecli.dll16 enable_win16
16907 wine_fn_config_dll olecli32 enable_olecli32 implib
16908 wine_fn_config_dll oledb32 enable_oledb32 clean
16909 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
16910 wine_fn_config_dll oledlg enable_oledlg implib,po
16911 wine_fn_config_dll olepro32 enable_olepro32 implib
16912 wine_fn_config_dll olesvr.dll16 enable_win16
16913 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16914 wine_fn_config_dll olethk32 enable_olethk32
16915 wine_fn_config_dll openal32 enable_openal32
16916 wine_fn_config_dll opencl enable_opencl
16917 wine_fn_config_dll opengl32 enable_opengl32 implib
16918 wine_fn_config_test dlls/opengl32/tests opengl32_test
16919 wine_fn_config_dll pdh enable_pdh implib
16920 wine_fn_config_test dlls/pdh/tests pdh_test
16921 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16922 wine_fn_config_dll pidgen enable_pidgen
16923 wine_fn_config_dll powrprof enable_powrprof implib
16924 wine_fn_config_dll printui enable_printui
16925 wine_fn_config_dll propsys enable_propsys clean,implib
16926 wine_fn_config_test dlls/propsys/tests propsys_test
16927 wine_fn_config_dll psapi enable_psapi implib
16928 wine_fn_config_test dlls/psapi/tests psapi_test
16929 wine_fn_config_dll pstorec enable_pstorec clean
16930 wine_fn_config_dll qcap enable_qcap
16931 wine_fn_config_test dlls/qcap/tests qcap_test
16932 wine_fn_config_dll qedit enable_qedit clean
16933 wine_fn_config_test dlls/qedit/tests qedit_test
16934 wine_fn_config_dll qmgr enable_qmgr clean
16935 wine_fn_config_test dlls/qmgr/tests qmgr_test
16936 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
16937 wine_fn_config_dll quartz enable_quartz clean,implib
16938 wine_fn_config_test dlls/quartz/tests quartz_test clean
16939 wine_fn_config_dll query enable_query
16940 wine_fn_config_dll rasapi16.dll16 enable_win16
16941 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16942 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16943 wine_fn_config_dll rasdlg enable_rasdlg implib
16944 wine_fn_config_dll regapi enable_regapi
16945 wine_fn_config_dll resutils enable_resutils implib
16946 wine_fn_config_dll riched20 enable_riched20 implib
16947 wine_fn_config_test dlls/riched20/tests riched20_test
16948 wine_fn_config_dll riched32 enable_riched32
16949 wine_fn_config_test dlls/riched32/tests riched32_test
16950 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
16951 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
16952 wine_fn_config_dll rsabase enable_rsabase
16953 wine_fn_config_dll rsaenh enable_rsaenh implib
16954 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16955 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16956 wine_fn_config_dll rtutils enable_rtutils implib
16957 wine_fn_config_dll samlib enable_samlib
16958 wine_fn_config_dll sane.ds enable_sane_ds po
16959 wine_fn_config_dll scarddlg enable_scarddlg
16960 wine_fn_config_dll sccbase enable_sccbase
16961 wine_fn_config_dll schannel enable_schannel
16962 wine_fn_config_test dlls/schannel/tests schannel_test
16963 wine_fn_config_dll scrrun enable_scrrun clean
16964 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
16965 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16966 wine_fn_config_dll secur32 enable_secur32 implib
16967 wine_fn_config_test dlls/secur32/tests secur32_test
16968 wine_fn_config_dll security enable_security
16969 wine_fn_config_dll sensapi enable_sensapi implib
16970 wine_fn_config_dll serialui enable_serialui implib,po
16971 wine_fn_config_test dlls/serialui/tests serialui_test
16972 wine_fn_config_dll setupapi enable_setupapi implib,po
16973 wine_fn_config_test dlls/setupapi/tests setupapi_test
16974 wine_fn_config_dll setupx.dll16 enable_win16
16975 wine_fn_config_dll sfc enable_sfc implib
16976 wine_fn_config_dll sfc_os enable_sfc_os implib
16977 wine_fn_config_dll shdoclc enable_shdoclc po
16978 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
16979 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16980 wine_fn_config_dll shell.dll16 enable_win16
16981 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
16982 wine_fn_config_test dlls/shell32/tests shell32_test
16983 wine_fn_config_dll shfolder enable_shfolder implib
16984 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16985 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16986 wine_fn_config_dll slbcsp enable_slbcsp
16987 wine_fn_config_dll slc enable_slc implib
16988 wine_fn_config_dll snmpapi enable_snmpapi implib
16989 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16990 wine_fn_config_dll softpub enable_softpub
16991 wine_fn_config_dll sound.drv16 enable_win16
16992 wine_fn_config_dll spoolss enable_spoolss implib
16993 wine_fn_config_test dlls/spoolss/tests spoolss_test
16994 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
16995 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
16996 wine_fn_config_dll sti enable_sti clean,implib
16997 wine_fn_config_test dlls/sti/tests sti_test
16998 wine_fn_config_dll storage.dll16 enable_win16
16999 wine_fn_config_dll stress.dll16 enable_win16
17000 wine_fn_config_lib strmbase
17001 wine_fn_config_lib strmiids
17002 wine_fn_config_dll svrapi enable_svrapi
17003 wine_fn_config_dll sxs enable_sxs implib
17004 wine_fn_config_test dlls/sxs/tests sxs_test
17005 wine_fn_config_dll system.drv16 enable_win16
17006 wine_fn_config_dll t2embed enable_t2embed
17007 wine_fn_config_dll tapi32 enable_tapi32 implib
17008 wine_fn_config_dll taskschd enable_taskschd clean
17009 wine_fn_config_test dlls/taskschd/tests taskschd_test
17010 wine_fn_config_dll toolhelp.dll16 enable_win16
17011 wine_fn_config_dll traffic enable_traffic
17012 wine_fn_config_dll twain.dll16 enable_win16
17013 wine_fn_config_dll twain_32 enable_twain_32
17014 wine_fn_config_test dlls/twain_32/tests twain_32_test
17015 wine_fn_config_dll typelib.dll16 enable_win16
17016 wine_fn_config_dll unicows enable_unicows implib
17017 wine_fn_config_dll updspapi enable_updspapi
17018 wine_fn_config_dll url enable_url implib
17019 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17020 wine_fn_config_test dlls/urlmon/tests urlmon_test
17021 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17022 wine_fn_config_dll user.exe16 enable_win16
17023 wine_fn_config_dll user32 enable_user32 clean,implib,po
17024 wine_fn_config_test dlls/user32/tests user32_test
17025 wine_fn_config_dll userenv enable_userenv implib
17026 wine_fn_config_test dlls/userenv/tests userenv_test
17027 wine_fn_config_dll usp10 enable_usp10 implib
17028 wine_fn_config_test dlls/usp10/tests usp10_test
17029 wine_fn_config_lib uuid
17030 wine_fn_config_dll uxtheme enable_uxtheme implib
17031 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17032 wine_fn_config_dll vbscript enable_vbscript clean
17033 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17034 wine_fn_config_dll vcomp enable_vcomp
17035 wine_fn_config_dll vcomp100 enable_vcomp100
17036 wine_fn_config_dll vcomp90 enable_vcomp90
17037 wine_fn_config_dll vdhcp.vxd enable_win16
17038 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17039 wine_fn_config_dll ver.dll16 enable_win16
17040 wine_fn_config_dll version enable_version implib
17041 wine_fn_config_test dlls/version/tests version_test
17042 wine_fn_config_dll vmm.vxd enable_win16
17043 wine_fn_config_dll vnbt.vxd enable_win16
17044 wine_fn_config_dll vnetbios.vxd enable_win16
17045 wine_fn_config_dll vtdapi.vxd enable_win16
17046 wine_fn_config_dll vwin32.vxd enable_win16
17047 wine_fn_config_dll w32skrnl enable_win16
17048 wine_fn_config_dll w32sys.dll16 enable_win16
17049 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17050 wine_fn_config_dll wbemprox enable_wbemprox clean
17051 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17052 wine_fn_config_dll webservices enable_webservices implib
17053 wine_fn_config_dll wer enable_wer implib
17054 wine_fn_config_test dlls/wer/tests wer_test
17055 wine_fn_config_dll wevtapi enable_wevtapi
17056 wine_fn_config_dll wiaservc enable_wiaservc clean
17057 wine_fn_config_dll win32s16.dll16 enable_win16
17058 wine_fn_config_dll win87em.dll16 enable_win16
17059 wine_fn_config_dll winaspi.dll16 enable_win16
17060 wine_fn_config_dll windebug.dll16 enable_win16
17061 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17062 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17063 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17064 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17065 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17066 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17067 wine_fn_config_lib winecrt0
17068 wine_fn_config_dll wined3d enable_wined3d implib
17069 wine_fn_config_dll winegstreamer enable_winegstreamer
17070 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17071 wine_fn_config_dll winemac.drv enable_winemac_drv
17072 wine_fn_config_dll winemapi enable_winemapi
17073 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17074 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17075 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17076 wine_fn_config_dll wineps16.drv16 enable_win16
17077 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17078 wine_fn_config_dll winex11.drv enable_winex11_drv
17079 wine_fn_config_dll wing.dll16 enable_win16
17080 wine_fn_config_dll wing32 enable_wing32
17081 wine_fn_config_dll winhttp enable_winhttp clean,implib
17082 wine_fn_config_test dlls/winhttp/tests winhttp_test
17083 wine_fn_config_dll wininet enable_wininet implib,po
17084 wine_fn_config_test dlls/wininet/tests wininet_test
17085 wine_fn_config_dll winmm enable_winmm implib,po
17086 wine_fn_config_test dlls/winmm/tests winmm_test
17087 wine_fn_config_dll winnls.dll16 enable_win16
17088 wine_fn_config_dll winnls32 enable_winnls32 implib
17089 wine_fn_config_dll winscard enable_winscard implib
17090 wine_fn_config_dll winsock.dll16 enable_win16
17091 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17092 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17093 wine_fn_config_dll winsta enable_winsta
17094 wine_fn_config_dll wintab.dll16 enable_win16
17095 wine_fn_config_dll wintab32 enable_wintab32 implib
17096 wine_fn_config_test dlls/wintab32/tests wintab32_test
17097 wine_fn_config_dll wintrust enable_wintrust implib
17098 wine_fn_config_test dlls/wintrust/tests wintrust_test
17099 wine_fn_config_dll wlanapi enable_wlanapi
17100 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17101 wine_fn_config_test dlls/wldap32/tests wldap32_test
17102 wine_fn_config_dll wmi enable_wmi
17103 wine_fn_config_dll wmiutils enable_wmiutils clean
17104 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17105 wine_fn_config_dll wmvcore enable_wmvcore
17106 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17107 wine_fn_config_dll wow32 enable_win16 implib
17108 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17109 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17110 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17111 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17112 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17113 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17114 wine_fn_config_dll wsock32 enable_wsock32 implib
17115 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17116 wine_fn_config_dll wuapi enable_wuapi clean
17117 wine_fn_config_dll wuaueng enable_wuaueng
17118 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17119 wine_fn_config_dll xinput1_1 enable_xinput1_1
17120 wine_fn_config_dll xinput1_2 enable_xinput1_2
17121 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17122 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17123 wine_fn_config_dll xinput1_4 enable_xinput1_4
17124 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17125 wine_fn_config_dll xmllite enable_xmllite
17126 wine_fn_config_test dlls/xmllite/tests xmllite_test
17127 wine_fn_config_dll xolehlp enable_xolehlp
17128 wine_fn_config_dll xpsprint enable_xpsprint
17129 wine_fn_config_dll xpssvcs enable_xpssvcs
17130 wine_fn_config_makefile documentation enable_documentation clean
17131 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17132 wine_fn_config_makefile include enable_include clean,install-dev
17133 wine_fn_config_makefile libs/port enable_libs_port
17134 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17135 wine_fn_config_makefile libs/wpp enable_libs_wpp
17136 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17137 wine_fn_config_program arp enable_arp install
17138 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17139 wine_fn_config_program attrib enable_attrib install,po
17140 wine_fn_config_program cabarc enable_cabarc install
17141 wine_fn_config_program cacls enable_cacls install
17142 wine_fn_config_program clock enable_clock install,po
17143 wine_fn_config_program cmd enable_cmd install,po
17144 wine_fn_config_test programs/cmd/tests cmd.exe_test
17145 wine_fn_config_program conhost enable_conhost install
17146 wine_fn_config_program control enable_control install
17147 wine_fn_config_program cscript enable_cscript install
17148 wine_fn_config_program dxdiag enable_dxdiag install,po
17149 wine_fn_config_program eject enable_eject install
17150 wine_fn_config_program expand enable_expand install
17151 wine_fn_config_program explorer enable_explorer install,po
17152 wine_fn_config_program extrac32 enable_extrac32 install
17153 wine_fn_config_program findstr enable_findstr install
17154 wine_fn_config_program hh enable_hh install
17155 wine_fn_config_program hostname enable_hostname install,po
17156 wine_fn_config_program icinfo enable_icinfo install
17157 wine_fn_config_program iexplore enable_iexplore install
17158 wine_fn_config_program ipconfig enable_ipconfig install,po
17159 wine_fn_config_program lodctr enable_lodctr install
17160 wine_fn_config_program mofcomp enable_mofcomp install
17161 wine_fn_config_program mshta enable_mshta install
17162 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17163 wine_fn_config_program net enable_net install,po
17164 wine_fn_config_program netsh enable_netsh install
17165 wine_fn_config_program netstat enable_netstat install,po
17166 wine_fn_config_program ngen enable_ngen install
17167 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17168 wine_fn_config_program oleview enable_oleview install,po
17169 wine_fn_config_program ping enable_ping install
17170 wine_fn_config_program plugplay enable_plugplay install
17171 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17172 wine_fn_config_program progman enable_progman install,po
17173 wine_fn_config_program reg enable_reg install,po
17174 wine_fn_config_program regasm enable_regasm install
17175 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17176 wine_fn_config_test programs/regedit/tests regedit.exe_test
17177 wine_fn_config_program regsvcs enable_regsvcs install
17178 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
17179 wine_fn_config_program rpcss enable_rpcss clean,install
17180 wine_fn_config_program rundll.exe16 enable_win16 install
17181 wine_fn_config_program rundll32 enable_rundll32 install
17182 wine_fn_config_program sc enable_sc install
17183 wine_fn_config_program schtasks enable_schtasks install
17184 wine_fn_config_program secedit enable_secedit install
17185 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17186 wine_fn_config_program services enable_services clean,install
17187 wine_fn_config_test programs/services/tests services.exe_test
17188 wine_fn_config_program spoolsv enable_spoolsv install
17189 wine_fn_config_program start enable_start install,po
17190 wine_fn_config_program svchost enable_svchost install
17191 wine_fn_config_program taskkill enable_taskkill install,po
17192 wine_fn_config_program tasklist enable_tasklist install
17193 wine_fn_config_program taskmgr enable_taskmgr install,po
17194 wine_fn_config_program termsv enable_termsv install
17195 wine_fn_config_program uninstaller enable_uninstaller install,po
17196 wine_fn_config_program unlodctr enable_unlodctr install
17197 wine_fn_config_program view enable_view install,po
17198 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17199 wine_fn_config_program winebrowser enable_winebrowser install
17200 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17201 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17202 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17203 wine_fn_config_program winedevice enable_winedevice install
17204 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17205 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17206 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17207 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17208 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17209 wine_fn_config_program winetest enable_winetest clean
17210 wine_fn_config_program winevdm enable_win16 install
17211 wine_fn_config_program winhelp.exe16 enable_win16 install
17212 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17213 wine_fn_config_program winoldap.mod16 enable_win16 install
17214 wine_fn_config_program winver enable_winver install
17215 wine_fn_config_program wmic enable_wmic install,po
17216 wine_fn_config_program wordpad enable_wordpad install,po
17217 wine_fn_config_program write enable_write install,po
17218 wine_fn_config_program wscript enable_wscript clean,install
17219 wine_fn_config_test programs/wscript/tests wscript.exe_test
17220 wine_fn_config_program wusa enable_wusa install
17221 wine_fn_config_program xcopy enable_xcopy install,po
17222 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17223 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17224 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17225 wine_fn_config_tool tools/widl clean,install-dev,manpage
17226 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17227 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17228 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17229 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17230 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17232 LINGUAS="\
17233 ar \
17234 bg \
17235 ca \
17236 cs \
17237 da \
17238 de \
17239 el \
17240 en \
17241 en_US \
17242 eo \
17243 es \
17244 fa \
17245 fi \
17246 fr \
17247 he \
17248 hi \
17249 hr \
17250 hu \
17251 it \
17252 ja \
17253 ko \
17254 lt \
17255 ml \
17256 nb_NO \
17257 nl \
17258 or \
17259 pa \
17260 pl \
17261 pt_BR \
17262 pt_PT \
17263 rm \
17264 ro \
17265 ru \
17266 sk \
17267 sl \
17268 sr_RS@cyrillic \
17269 sr_RS@latin \
17270 sv \
17271 te \
17272 th \
17273 tr \
17274 uk \
17275 wa \
17276 zh_CN \
17277 zh_TW"
17282 wine_fn_ignore_file ".gitignore"
17283 wine_fn_ignore_file "Makefile"
17284 wine_fn_ignore_file "TAGS"
17285 wine_fn_ignore_file "tags"
17286 wine_fn_ignore_file "autom4te.cache"
17287 wine_fn_ignore_file "config.cache"
17288 wine_fn_ignore_file "config.log"
17289 wine_fn_ignore_file "config.status"
17290 wine_fn_ignore_file "configure.lineno"
17291 wine_fn_ignore_file "include/config.h"
17292 wine_fn_ignore_file "include/stamp-h"
17293 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17295 ac_config_commands="$ac_config_commands Makefile"
17298 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17302 if test "x$enable_maintainer_mode" = xyes
17303 then
17304 wine_fn_append_rule "configure: configure.ac aclocal.m4
17305 autoconf --warnings=all
17306 include/config.h.in: include/stamp-h.in
17307 include/stamp-h.in: configure.ac aclocal.m4
17308 autoheader --warnings=all
17309 @echo timestamp > \$@"
17312 if test "x$with_gettextpo" = xyes
17313 then
17314 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17315 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17316 \$(LINGUAS:%=po/%.po): po/wine.pot
17317 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17318 po/wine.pot: \$(ALL_POT_FILES)
17319 msgcat -o \$@ \$(ALL_POT_FILES)"
17322 if test "$MSGFMT" != false
17323 then
17324 wine_fn_append_rule "__builddeps__: \$(LINGUAS:%=po/%.mo)
17325 clean::
17326 \$(RM) \$(LINGUAS:%=po/%.mo)"
17328 posrc="po"
17329 test "$srcdir" = . || posrc="$srcdir/po"
17330 for i in $LINGUAS
17332 wine_fn_ignore_file "po/$i.mo"
17333 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17334 \$(MSGFMT) -o \$@ $posrc/$i.po"
17335 done
17336 else
17337 LINGUAS=
17340 if test "x$enable_tools" != xno
17341 then
17342 ac_config_commands="$ac_config_commands tools"
17344 wine_fn_ignore_file "tools/makedep$ac_exeext"
17345 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h
17346 \$(CC) -Iinclude -I$srcdir/include -D__WINESRC__ \$(EXTRACFLAGS) \$(CPPFLAGS) \$(CFLAGS) -o \$@ $srcdir/tools/makedep.c \$(LDFLAGS)
17347 clean:: __clean__
17348 \$(RM) tools/makedep$ac_exeext"
17349 else
17350 wine_fn_append_rule "\$(MAKEDEP):
17351 @echo \"You need to run make in $TOOLSDIR first\" && false"
17354 if test -n "$with_wine64"
17355 then
17356 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17357 fonts server tools:
17358 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17359 $with_wine64/loader/wine:
17360 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17361 $with_wine64/loader/wine-preloader:
17362 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17363 clean::
17364 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17365 else
17366 as_fn_append LOADER_RULES "
17367 all: wine.inf
17369 install install-lib:: wine.inf install-man-pages
17370 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17371 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17373 uninstall::
17374 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17378 if test "$srcdir" = .
17379 then
17380 ac_config_commands="$ac_config_commands .gitignore"
17384 $as_echo " done" >&6
17385 cat >confcache <<\_ACEOF
17386 # This file is a shell script that caches the results of configure
17387 # tests run on this system so they can be shared between configure
17388 # scripts and configure runs, see configure's option --config-cache.
17389 # It is not useful on other systems. If it contains results you don't
17390 # want to keep, you may remove or edit it.
17392 # config.status only pays attention to the cache file if you give it
17393 # the --recheck option to rerun configure.
17395 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17397 # following values.
17399 _ACEOF
17401 # The following way of writing the cache mishandles newlines in values,
17402 # but we know of no workaround that is simple, portable, and efficient.
17403 # So, we kill variables containing newlines.
17404 # Ultrix sh set writes to stderr and can't be redirected directly,
17405 # and sets the high bit in the cache file unless we assign to the vars.
17407 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17408 eval ac_val=\$$ac_var
17409 case $ac_val in #(
17410 *${as_nl}*)
17411 case $ac_var in #(
17412 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17413 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17414 esac
17415 case $ac_var in #(
17416 _ | IFS | as_nl) ;; #(
17417 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17418 *) { eval $ac_var=; unset $ac_var;} ;;
17419 esac ;;
17420 esac
17421 done
17423 (set) 2>&1 |
17424 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17425 *${as_nl}ac_space=\ *)
17426 # `set' does not quote correctly, so add quotes: double-quote
17427 # substitution turns \\\\ into \\, and sed turns \\ into \.
17428 sed -n \
17429 "s/'/'\\\\''/g;
17430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17431 ;; #(
17433 # `set' quotes correctly as required by POSIX, so do not add quotes.
17434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17436 esac |
17437 sort
17439 sed '
17440 /^ac_cv_env_/b end
17441 t clear
17442 :clear
17443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17444 t end
17445 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17446 :end' >>confcache
17447 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17448 if test -w "$cache_file"; then
17449 if test "x$cache_file" != "x/dev/null"; then
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17451 $as_echo "$as_me: updating cache $cache_file" >&6;}
17452 if test ! -f "$cache_file" || test -h "$cache_file"; then
17453 cat confcache >"$cache_file"
17454 else
17455 case $cache_file in #(
17456 */* | ?:*)
17457 mv -f confcache "$cache_file"$$ &&
17458 mv -f "$cache_file"$$ "$cache_file" ;; #(
17460 mv -f confcache "$cache_file" ;;
17461 esac
17464 else
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17466 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17469 rm -f confcache
17471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17472 # Let make expand exec_prefix.
17473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17475 DEFS=-DHAVE_CONFIG_H
17477 ac_libobjs=
17478 ac_ltlibobjs=
17480 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17481 # 1. Remove the extension, and $U if already installed.
17482 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17483 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17484 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17485 # will be set to the directory where LIBOBJS objects are built.
17486 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17487 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17488 done
17489 LIBOBJS=$ac_libobjs
17491 LTLIBOBJS=$ac_ltlibobjs
17495 : "${CONFIG_STATUS=./config.status}"
17496 ac_write_fail=0
17497 ac_clean_files_save=$ac_clean_files
17498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17500 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17501 as_write_fail=0
17502 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17503 #! $SHELL
17504 # Generated by $as_me.
17505 # Run this file to recreate the current configuration.
17506 # Compiler output produced by configure, useful for debugging
17507 # configure, is in config.log if it exists.
17509 debug=false
17510 ac_cs_recheck=false
17511 ac_cs_silent=false
17513 SHELL=\${CONFIG_SHELL-$SHELL}
17514 export SHELL
17515 _ASEOF
17516 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17517 ## -------------------- ##
17518 ## M4sh Initialization. ##
17519 ## -------------------- ##
17521 # Be more Bourne compatible
17522 DUALCASE=1; export DUALCASE # for MKS sh
17523 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17524 emulate sh
17525 NULLCMD=:
17526 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17527 # is contrary to our usage. Disable this feature.
17528 alias -g '${1+"$@"}'='"$@"'
17529 setopt NO_GLOB_SUBST
17530 else
17531 case `(set -o) 2>/dev/null` in #(
17532 *posix*) :
17533 set -o posix ;; #(
17534 *) :
17536 esac
17540 as_nl='
17542 export as_nl
17543 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17544 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17545 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17546 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17547 # Prefer a ksh shell builtin over an external printf program on Solaris,
17548 # but without wasting forks for bash or zsh.
17549 if test -z "$BASH_VERSION$ZSH_VERSION" \
17550 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17551 as_echo='print -r --'
17552 as_echo_n='print -rn --'
17553 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17554 as_echo='printf %s\n'
17555 as_echo_n='printf %s'
17556 else
17557 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17558 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17559 as_echo_n='/usr/ucb/echo -n'
17560 else
17561 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17562 as_echo_n_body='eval
17563 arg=$1;
17564 case $arg in #(
17565 *"$as_nl"*)
17566 expr "X$arg" : "X\\(.*\\)$as_nl";
17567 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17568 esac;
17569 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17571 export as_echo_n_body
17572 as_echo_n='sh -c $as_echo_n_body as_echo'
17574 export as_echo_body
17575 as_echo='sh -c $as_echo_body as_echo'
17578 # The user is always right.
17579 if test "${PATH_SEPARATOR+set}" != set; then
17580 PATH_SEPARATOR=:
17581 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17582 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17583 PATH_SEPARATOR=';'
17588 # IFS
17589 # We need space, tab and new line, in precisely that order. Quoting is
17590 # there to prevent editors from complaining about space-tab.
17591 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17592 # splitting by setting IFS to empty value.)
17593 IFS=" "" $as_nl"
17595 # Find who we are. Look in the path if we contain no directory separator.
17596 as_myself=
17597 case $0 in #((
17598 *[\\/]* ) as_myself=$0 ;;
17599 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17600 for as_dir in $PATH
17602 IFS=$as_save_IFS
17603 test -z "$as_dir" && as_dir=.
17604 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17605 done
17606 IFS=$as_save_IFS
17609 esac
17610 # We did not find ourselves, most probably we were run as `sh COMMAND'
17611 # in which case we are not to be found in the path.
17612 if test "x$as_myself" = x; then
17613 as_myself=$0
17615 if test ! -f "$as_myself"; then
17616 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17617 exit 1
17620 # Unset variables that we do not need and which cause bugs (e.g. in
17621 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17622 # suppresses any "Segmentation fault" message there. '((' could
17623 # trigger a bug in pdksh 5.2.14.
17624 for as_var in BASH_ENV ENV MAIL MAILPATH
17625 do eval test x\${$as_var+set} = xset \
17626 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17627 done
17628 PS1='$ '
17629 PS2='> '
17630 PS4='+ '
17632 # NLS nuisances.
17633 LC_ALL=C
17634 export LC_ALL
17635 LANGUAGE=C
17636 export LANGUAGE
17638 # CDPATH.
17639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17642 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17643 # ----------------------------------------
17644 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17645 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17646 # script with STATUS, using 1 if that was 0.
17647 as_fn_error ()
17649 as_status=$1; test $as_status -eq 0 && as_status=1
17650 if test "$4"; then
17651 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17652 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17654 $as_echo "$as_me: error: $2" >&2
17655 as_fn_exit $as_status
17656 } # as_fn_error
17659 # as_fn_set_status STATUS
17660 # -----------------------
17661 # Set $? to STATUS, without forking.
17662 as_fn_set_status ()
17664 return $1
17665 } # as_fn_set_status
17667 # as_fn_exit STATUS
17668 # -----------------
17669 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17670 as_fn_exit ()
17672 set +e
17673 as_fn_set_status $1
17674 exit $1
17675 } # as_fn_exit
17677 # as_fn_unset VAR
17678 # ---------------
17679 # Portably unset VAR.
17680 as_fn_unset ()
17682 { eval $1=; unset $1;}
17684 as_unset=as_fn_unset
17685 # as_fn_append VAR VALUE
17686 # ----------------------
17687 # Append the text in VALUE to the end of the definition contained in VAR. Take
17688 # advantage of any shell optimizations that allow amortized linear growth over
17689 # repeated appends, instead of the typical quadratic growth present in naive
17690 # implementations.
17691 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17692 eval 'as_fn_append ()
17694 eval $1+=\$2
17696 else
17697 as_fn_append ()
17699 eval $1=\$$1\$2
17701 fi # as_fn_append
17703 # as_fn_arith ARG...
17704 # ------------------
17705 # Perform arithmetic evaluation on the ARGs, and store the result in the
17706 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17707 # must be portable across $(()) and expr.
17708 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17709 eval 'as_fn_arith ()
17711 as_val=$(( $* ))
17713 else
17714 as_fn_arith ()
17716 as_val=`expr "$@" || test $? -eq 1`
17718 fi # as_fn_arith
17721 if expr a : '\(a\)' >/dev/null 2>&1 &&
17722 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17723 as_expr=expr
17724 else
17725 as_expr=false
17728 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17729 as_basename=basename
17730 else
17731 as_basename=false
17734 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17735 as_dirname=dirname
17736 else
17737 as_dirname=false
17740 as_me=`$as_basename -- "$0" ||
17741 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17742 X"$0" : 'X\(//\)$' \| \
17743 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17744 $as_echo X/"$0" |
17745 sed '/^.*\/\([^/][^/]*\)\/*$/{
17746 s//\1/
17749 /^X\/\(\/\/\)$/{
17750 s//\1/
17753 /^X\/\(\/\).*/{
17754 s//\1/
17757 s/.*/./; q'`
17759 # Avoid depending upon Character Ranges.
17760 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17761 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17762 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17763 as_cr_digits='0123456789'
17764 as_cr_alnum=$as_cr_Letters$as_cr_digits
17766 ECHO_C= ECHO_N= ECHO_T=
17767 case `echo -n x` in #(((((
17768 -n*)
17769 case `echo 'xy\c'` in
17770 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17771 xy) ECHO_C='\c';;
17772 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17773 ECHO_T=' ';;
17774 esac;;
17776 ECHO_N='-n';;
17777 esac
17779 rm -f conf$$ conf$$.exe conf$$.file
17780 if test -d conf$$.dir; then
17781 rm -f conf$$.dir/conf$$.file
17782 else
17783 rm -f conf$$.dir
17784 mkdir conf$$.dir 2>/dev/null
17786 if (echo >conf$$.file) 2>/dev/null; then
17787 if ln -s conf$$.file conf$$ 2>/dev/null; then
17788 as_ln_s='ln -s'
17789 # ... but there are two gotchas:
17790 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17791 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17792 # In both cases, we have to default to `cp -pR'.
17793 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17794 as_ln_s='cp -pR'
17795 elif ln conf$$.file conf$$ 2>/dev/null; then
17796 as_ln_s=ln
17797 else
17798 as_ln_s='cp -pR'
17800 else
17801 as_ln_s='cp -pR'
17803 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17804 rmdir conf$$.dir 2>/dev/null
17807 # as_fn_mkdir_p
17808 # -------------
17809 # Create "$as_dir" as a directory, including parents if necessary.
17810 as_fn_mkdir_p ()
17813 case $as_dir in #(
17814 -*) as_dir=./$as_dir;;
17815 esac
17816 test -d "$as_dir" || eval $as_mkdir_p || {
17817 as_dirs=
17818 while :; do
17819 case $as_dir in #(
17820 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17821 *) as_qdir=$as_dir;;
17822 esac
17823 as_dirs="'$as_qdir' $as_dirs"
17824 as_dir=`$as_dirname -- "$as_dir" ||
17825 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17826 X"$as_dir" : 'X\(//\)[^/]' \| \
17827 X"$as_dir" : 'X\(//\)$' \| \
17828 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17829 $as_echo X"$as_dir" |
17830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17831 s//\1/
17834 /^X\(\/\/\)[^/].*/{
17835 s//\1/
17838 /^X\(\/\/\)$/{
17839 s//\1/
17842 /^X\(\/\).*/{
17843 s//\1/
17846 s/.*/./; q'`
17847 test -d "$as_dir" && break
17848 done
17849 test -z "$as_dirs" || eval "mkdir $as_dirs"
17850 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17853 } # as_fn_mkdir_p
17854 if mkdir -p . 2>/dev/null; then
17855 as_mkdir_p='mkdir -p "$as_dir"'
17856 else
17857 test -d ./-p && rmdir ./-p
17858 as_mkdir_p=false
17862 # as_fn_executable_p FILE
17863 # -----------------------
17864 # Test if FILE is an executable regular file.
17865 as_fn_executable_p ()
17867 test -f "$1" && test -x "$1"
17868 } # as_fn_executable_p
17869 as_test_x='test -x'
17870 as_executable_p=as_fn_executable_p
17872 # Sed expression to map a string onto a valid CPP name.
17873 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17875 # Sed expression to map a string onto a valid variable name.
17876 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17879 exec 6>&1
17880 ## ----------------------------------- ##
17881 ## Main body of $CONFIG_STATUS script. ##
17882 ## ----------------------------------- ##
17883 _ASEOF
17884 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17887 # Save the log message, to keep $0 and so on meaningful, and to
17888 # report actual input values of CONFIG_FILES etc. instead of their
17889 # values after options handling.
17890 ac_log="
17891 This file was extended by Wine $as_me 1.7.11, which was
17892 generated by GNU Autoconf 2.69. Invocation command line was
17894 CONFIG_FILES = $CONFIG_FILES
17895 CONFIG_HEADERS = $CONFIG_HEADERS
17896 CONFIG_LINKS = $CONFIG_LINKS
17897 CONFIG_COMMANDS = $CONFIG_COMMANDS
17898 $ $0 $@
17900 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17903 _ACEOF
17905 case $ac_config_files in *"
17906 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17907 esac
17909 case $ac_config_headers in *"
17910 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17911 esac
17914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17915 # Files that config.status was made for.
17916 config_files="$ac_config_files"
17917 config_headers="$ac_config_headers"
17918 config_links="$ac_config_links"
17919 config_commands="$ac_config_commands"
17921 _ACEOF
17923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17924 ac_cs_usage="\
17925 \`$as_me' instantiates files and other configuration actions
17926 from templates according to the current configuration. Unless the files
17927 and actions are specified as TAGs, all are instantiated by default.
17929 Usage: $0 [OPTION]... [TAG]...
17931 -h, --help print this help, then exit
17932 -V, --version print version number and configuration settings, then exit
17933 --config print configuration, then exit
17934 -q, --quiet, --silent
17935 do not print progress messages
17936 -d, --debug don't remove temporary files
17937 --recheck update $as_me by reconfiguring in the same conditions
17938 --file=FILE[:TEMPLATE]
17939 instantiate the configuration file FILE
17940 --header=FILE[:TEMPLATE]
17941 instantiate the configuration header FILE
17943 Configuration files:
17944 $config_files
17946 Configuration headers:
17947 $config_headers
17949 Configuration links:
17950 $config_links
17952 Configuration commands:
17953 $config_commands
17955 Report bugs to <wine-devel@winehq.org>.
17956 Wine home page: <http://www.winehq.org>."
17958 _ACEOF
17959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17960 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17961 ac_cs_version="\\
17962 Wine config.status 1.7.11
17963 configured by $0, generated by GNU Autoconf 2.69,
17964 with options \\"\$ac_cs_config\\"
17966 Copyright (C) 2012 Free Software Foundation, Inc.
17967 This config.status script is free software; the Free Software Foundation
17968 gives unlimited permission to copy, distribute and modify it."
17970 ac_pwd='$ac_pwd'
17971 srcdir='$srcdir'
17972 test -n "\$AWK" || AWK=awk
17973 _ACEOF
17975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17976 # The default lists apply if the user does not specify any file.
17977 ac_need_defaults=:
17978 while test $# != 0
17980 case $1 in
17981 --*=?*)
17982 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17983 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17984 ac_shift=:
17986 --*=)
17987 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17988 ac_optarg=
17989 ac_shift=:
17992 ac_option=$1
17993 ac_optarg=$2
17994 ac_shift=shift
17996 esac
17998 case $ac_option in
17999 # Handling of the options.
18000 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18001 ac_cs_recheck=: ;;
18002 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18003 $as_echo "$ac_cs_version"; exit ;;
18004 --config | --confi | --conf | --con | --co | --c )
18005 $as_echo "$ac_cs_config"; exit ;;
18006 --debug | --debu | --deb | --de | --d | -d )
18007 debug=: ;;
18008 --file | --fil | --fi | --f )
18009 $ac_shift
18010 case $ac_optarg in
18011 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18012 '') as_fn_error $? "missing file argument" ;;
18013 esac
18014 as_fn_append CONFIG_FILES " '$ac_optarg'"
18015 ac_need_defaults=false;;
18016 --header | --heade | --head | --hea )
18017 $ac_shift
18018 case $ac_optarg in
18019 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18020 esac
18021 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18022 ac_need_defaults=false;;
18023 --he | --h)
18024 # Conflict between --help and --header
18025 as_fn_error $? "ambiguous option: \`$1'
18026 Try \`$0 --help' for more information.";;
18027 --help | --hel | -h )
18028 $as_echo "$ac_cs_usage"; exit ;;
18029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18030 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18031 ac_cs_silent=: ;;
18033 # This is an error.
18034 -*) as_fn_error $? "unrecognized option: \`$1'
18035 Try \`$0 --help' for more information." ;;
18037 *) as_fn_append ac_config_targets " $1"
18038 ac_need_defaults=false ;;
18040 esac
18041 shift
18042 done
18044 ac_configure_extra_args=
18046 if $ac_cs_silent; then
18047 exec 6>/dev/null
18048 ac_configure_extra_args="$ac_configure_extra_args --silent"
18051 _ACEOF
18052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18053 if \$ac_cs_recheck; then
18054 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18055 shift
18056 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18057 CONFIG_SHELL='$SHELL'
18058 export CONFIG_SHELL
18059 exec "\$@"
18062 _ACEOF
18063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18064 exec 5>>config.log
18066 echo
18067 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18068 ## Running $as_me. ##
18069 _ASBOX
18070 $as_echo "$ac_log"
18071 } >&5
18073 _ACEOF
18074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18076 # INIT-COMMANDS
18078 wine_fn_output_makefile ()
18080 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
18081 `cat $wine_rules_file`
18082 _WINE_EOF
18083 as_fn_error $? "could not create Makefile" "$LINENO" 5
18085 wine_fn_output_gitignore ()
18087 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18088 $GITIGNORE
18089 _WINE_EOF
18090 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18093 _ACEOF
18095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18097 # Handling of arguments.
18098 for ac_config_target in $ac_config_targets
18100 case $ac_config_target in
18101 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18102 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18103 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18104 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18105 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18106 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18107 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18108 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18109 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18110 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18111 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18112 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18113 "tools") CONFIG_COMMANDS="$CONFIG_COMMANDS tools" ;;
18114 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18116 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18117 esac
18118 done
18121 # If the user did not use the arguments to specify the items to instantiate,
18122 # then the envvar interface is used. Set only those that are not.
18123 # We use the long form for the default assignment because of an extremely
18124 # bizarre bug on SunOS 4.1.3.
18125 if $ac_need_defaults; then
18126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18127 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18128 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18132 # Have a temporary directory for convenience. Make it in the build tree
18133 # simply because there is no reason against having it here, and in addition,
18134 # creating and moving files from /tmp can sometimes cause problems.
18135 # Hook for its removal unless debugging.
18136 # Note that there is a small window in which the directory will not be cleaned:
18137 # after its creation but before its name has been assigned to `$tmp'.
18138 $debug ||
18140 tmp= ac_tmp=
18141 trap 'exit_status=$?
18142 : "${ac_tmp:=$tmp}"
18143 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18145 trap 'as_fn_exit 1' 1 2 13 15
18147 # Create a (secure) tmp directory for tmp files.
18150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18151 test -d "$tmp"
18152 } ||
18154 tmp=./conf$$-$RANDOM
18155 (umask 077 && mkdir "$tmp")
18156 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18157 ac_tmp=$tmp
18159 # Set up the scripts for CONFIG_FILES section.
18160 # No need to generate them if there are no CONFIG_FILES.
18161 # This happens for instance with `./config.status config.h'.
18162 if test -n "$CONFIG_FILES"; then
18165 ac_cr=`echo X | tr X '\015'`
18166 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18167 # But we know of no other shell where ac_cr would be empty at this
18168 # point, so we can use a bashism as a fallback.
18169 if test "x$ac_cr" = x; then
18170 eval ac_cr=\$\'\\r\'
18172 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18173 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18174 ac_cs_awk_cr='\\r'
18175 else
18176 ac_cs_awk_cr=$ac_cr
18179 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18180 _ACEOF
18184 echo "cat >conf$$subs.awk <<_ACEOF" &&
18185 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18186 echo "_ACEOF"
18187 } >conf$$subs.sh ||
18188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18189 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18190 ac_delim='%!_!# '
18191 for ac_last_try in false false false false false :; do
18192 . ./conf$$subs.sh ||
18193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18195 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18196 if test $ac_delim_n = $ac_delim_num; then
18197 break
18198 elif $ac_last_try; then
18199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18200 else
18201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18203 done
18204 rm -f conf$$subs.sh
18206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18207 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18208 _ACEOF
18209 sed -n '
18211 s/^/S["/; s/!.*/"]=/
18214 s/^[^!]*!//
18215 :repl
18216 t repl
18217 s/'"$ac_delim"'$//
18218 t delim
18221 s/\(.\{148\}\)..*/\1/
18222 t more1
18223 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18226 b repl
18227 :more1
18228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18231 s/.\{148\}//
18232 t nl
18233 :delim
18235 s/\(.\{148\}\)..*/\1/
18236 t more2
18237 s/["\\]/\\&/g; s/^/"/; s/$/"/
18240 :more2
18241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18244 s/.\{148\}//
18245 t delim
18246 ' <conf$$subs.awk | sed '
18247 /^[^""]/{
18249 s/\n//
18251 ' >>$CONFIG_STATUS || ac_write_fail=1
18252 rm -f conf$$subs.awk
18253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18254 _ACAWK
18255 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18256 for (key in S) S_is_set[key] = 1
18257 FS = "\a"
18261 line = $ 0
18262 nfields = split(line, field, "@")
18263 substed = 0
18264 len = length(field[1])
18265 for (i = 2; i < nfields; i++) {
18266 key = field[i]
18267 keylen = length(key)
18268 if (S_is_set[key]) {
18269 value = S[key]
18270 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18271 len += length(value) + length(field[++i])
18272 substed = 1
18273 } else
18274 len += 1 + keylen
18277 print line
18280 _ACAWK
18281 _ACEOF
18282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18283 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18284 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18285 else
18287 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18288 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18289 _ACEOF
18291 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18292 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18293 # trailing colons and then remove the whole line if VPATH becomes empty
18294 # (actually we leave an empty line to preserve line numbers).
18295 if test "x$srcdir" = x.; then
18296 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18298 s///
18299 s/^/:/
18300 s/[ ]*$/:/
18301 s/:\$(srcdir):/:/g
18302 s/:\${srcdir}:/:/g
18303 s/:@srcdir@:/:/g
18304 s/^:*//
18305 s/:*$//
18307 s/\(=[ ]*\).*/\1/
18309 s/\n//
18310 s/^[^=]*=[ ]*$//
18314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18315 fi # test -n "$CONFIG_FILES"
18317 # Set up the scripts for CONFIG_HEADERS section.
18318 # No need to generate them if there are no CONFIG_HEADERS.
18319 # This happens for instance with `./config.status Makefile'.
18320 if test -n "$CONFIG_HEADERS"; then
18321 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18322 BEGIN {
18323 _ACEOF
18325 # Transform confdefs.h into an awk script `defines.awk', embedded as
18326 # here-document in config.status, that substitutes the proper values into
18327 # config.h.in to produce config.h.
18329 # Create a delimiter string that does not exist in confdefs.h, to ease
18330 # handling of long lines.
18331 ac_delim='%!_!# '
18332 for ac_last_try in false false :; do
18333 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18334 if test -z "$ac_tt"; then
18335 break
18336 elif $ac_last_try; then
18337 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18338 else
18339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18341 done
18343 # For the awk script, D is an array of macro values keyed by name,
18344 # likewise P contains macro parameters if any. Preserve backslash
18345 # newline sequences.
18347 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18348 sed -n '
18349 s/.\{148\}/&'"$ac_delim"'/g
18350 t rset
18351 :rset
18352 s/^[ ]*#[ ]*define[ ][ ]*/ /
18353 t def
18355 :def
18356 s/\\$//
18357 t bsnl
18358 s/["\\]/\\&/g
18359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18360 D["\1"]=" \3"/p
18361 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18363 :bsnl
18364 s/["\\]/\\&/g
18365 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18366 D["\1"]=" \3\\\\\\n"\\/p
18367 t cont
18368 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18369 t cont
18371 :cont
18373 s/.\{148\}/&'"$ac_delim"'/g
18374 t clear
18375 :clear
18376 s/\\$//
18377 t bsnlc
18378 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18380 :bsnlc
18381 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18382 b cont
18383 ' <confdefs.h | sed '
18384 s/'"$ac_delim"'/"\\\
18385 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18388 for (key in D) D_is_set[key] = 1
18389 FS = "\a"
18391 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18392 line = \$ 0
18393 split(line, arg, " ")
18394 if (arg[1] == "#") {
18395 defundef = arg[2]
18396 mac1 = arg[3]
18397 } else {
18398 defundef = substr(arg[1], 2)
18399 mac1 = arg[2]
18401 split(mac1, mac2, "(") #)
18402 macro = mac2[1]
18403 prefix = substr(line, 1, index(line, defundef) - 1)
18404 if (D_is_set[macro]) {
18405 # Preserve the white space surrounding the "#".
18406 print prefix "define", macro P[macro] D[macro]
18407 next
18408 } else {
18409 # Replace #undef with comments. This is necessary, for example,
18410 # in the case of _POSIX_SOURCE, which is predefined and required
18411 # on some systems where configure will not decide to define it.
18412 if (defundef == "undef") {
18413 print "/*", prefix defundef, macro, "*/"
18414 next
18418 { print }
18419 _ACAWK
18420 _ACEOF
18421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18422 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18423 fi # test -n "$CONFIG_HEADERS"
18426 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18427 shift
18428 for ac_tag
18430 case $ac_tag in
18431 :[FHLC]) ac_mode=$ac_tag; continue;;
18432 esac
18433 case $ac_mode$ac_tag in
18434 :[FHL]*:*);;
18435 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18436 :[FH]-) ac_tag=-:-;;
18437 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18438 esac
18439 ac_save_IFS=$IFS
18440 IFS=:
18441 set x $ac_tag
18442 IFS=$ac_save_IFS
18443 shift
18444 ac_file=$1
18445 shift
18447 case $ac_mode in
18448 :L) ac_source=$1;;
18449 :[FH])
18450 ac_file_inputs=
18451 for ac_f
18453 case $ac_f in
18454 -) ac_f="$ac_tmp/stdin";;
18455 *) # Look for the file first in the build tree, then in the source tree
18456 # (if the path is not absolute). The absolute path cannot be DOS-style,
18457 # because $ac_f cannot contain `:'.
18458 test -f "$ac_f" ||
18459 case $ac_f in
18460 [\\/$]*) false;;
18461 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18462 esac ||
18463 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18464 esac
18465 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18466 as_fn_append ac_file_inputs " '$ac_f'"
18467 done
18469 # Let's still pretend it is `configure' which instantiates (i.e., don't
18470 # use $as_me), people would be surprised to read:
18471 # /* config.h. Generated by config.status. */
18472 configure_input='Generated from '`
18473 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18474 `' by configure.'
18475 if test x"$ac_file" != x-; then
18476 configure_input="$ac_file. $configure_input"
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18478 $as_echo "$as_me: creating $ac_file" >&6;}
18480 # Neutralize special characters interpreted by sed in replacement strings.
18481 case $configure_input in #(
18482 *\&* | *\|* | *\\* )
18483 ac_sed_conf_input=`$as_echo "$configure_input" |
18484 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18485 *) ac_sed_conf_input=$configure_input;;
18486 esac
18488 case $ac_tag in
18489 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18491 esac
18493 esac
18495 ac_dir=`$as_dirname -- "$ac_file" ||
18496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18497 X"$ac_file" : 'X\(//\)[^/]' \| \
18498 X"$ac_file" : 'X\(//\)$' \| \
18499 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18500 $as_echo X"$ac_file" |
18501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18502 s//\1/
18505 /^X\(\/\/\)[^/].*/{
18506 s//\1/
18509 /^X\(\/\/\)$/{
18510 s//\1/
18513 /^X\(\/\).*/{
18514 s//\1/
18517 s/.*/./; q'`
18518 as_dir="$ac_dir"; as_fn_mkdir_p
18519 ac_builddir=.
18521 case "$ac_dir" in
18522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18525 # A ".." for each directory in $ac_dir_suffix.
18526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18527 case $ac_top_builddir_sub in
18528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18530 esac ;;
18531 esac
18532 ac_abs_top_builddir=$ac_pwd
18533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18534 # for backward compatibility:
18535 ac_top_builddir=$ac_top_build_prefix
18537 case $srcdir in
18538 .) # We are building in place.
18539 ac_srcdir=.
18540 ac_top_srcdir=$ac_top_builddir_sub
18541 ac_abs_top_srcdir=$ac_pwd ;;
18542 [\\/]* | ?:[\\/]* ) # Absolute name.
18543 ac_srcdir=$srcdir$ac_dir_suffix;
18544 ac_top_srcdir=$srcdir
18545 ac_abs_top_srcdir=$srcdir ;;
18546 *) # Relative name.
18547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18548 ac_top_srcdir=$ac_top_build_prefix$srcdir
18549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18550 esac
18551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18554 case $ac_mode in
18557 # CONFIG_FILE
18560 _ACEOF
18562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18563 # If the template does not know about datarootdir, expand it.
18564 # FIXME: This hack should be removed a few years after 2.60.
18565 ac_datarootdir_hack=; ac_datarootdir_seen=
18566 ac_sed_dataroot='
18567 /datarootdir/ {
18571 /@datadir@/p
18572 /@docdir@/p
18573 /@infodir@/p
18574 /@localedir@/p
18575 /@mandir@/p'
18576 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18577 *datarootdir*) ac_datarootdir_seen=yes;;
18578 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18580 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18581 _ACEOF
18582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18583 ac_datarootdir_hack='
18584 s&@datadir@&$datadir&g
18585 s&@docdir@&$docdir&g
18586 s&@infodir@&$infodir&g
18587 s&@localedir@&$localedir&g
18588 s&@mandir@&$mandir&g
18589 s&\\\${datarootdir}&$datarootdir&g' ;;
18590 esac
18591 _ACEOF
18593 # Neutralize VPATH when `$srcdir' = `.'.
18594 # Shell code in configure.ac might set extrasub.
18595 # FIXME: do we really want to maintain this feature?
18596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18597 ac_sed_extra="$ac_vpsub
18598 $extrasub
18599 _ACEOF
18600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18603 s|@configure_input@|$ac_sed_conf_input|;t t
18604 s&@top_builddir@&$ac_top_builddir_sub&;t t
18605 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18606 s&@srcdir@&$ac_srcdir&;t t
18607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18608 s&@top_srcdir@&$ac_top_srcdir&;t t
18609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18610 s&@builddir@&$ac_builddir&;t t
18611 s&@abs_builddir@&$ac_abs_builddir&;t t
18612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18613 $ac_datarootdir_hack
18615 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18616 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18618 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18619 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18620 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18621 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18623 which seems to be undefined. Please make sure it is defined" >&5
18624 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18625 which seems to be undefined. Please make sure it is defined" >&2;}
18627 rm -f "$ac_tmp/stdin"
18628 case $ac_file in
18629 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18630 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18631 esac \
18632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18636 # CONFIG_HEADER
18638 if test x"$ac_file" != x-; then
18640 $as_echo "/* $configure_input */" \
18641 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18642 } >"$ac_tmp/config.h" \
18643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18644 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18646 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18647 else
18648 rm -f "$ac_file"
18649 mv "$ac_tmp/config.h" "$ac_file" \
18650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18652 else
18653 $as_echo "/* $configure_input */" \
18654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18655 || as_fn_error $? "could not create -" "$LINENO" 5
18660 # CONFIG_LINK
18663 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18665 else
18666 # Prefer the file from the source tree if names are identical.
18667 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18668 ac_source=$srcdir/$ac_source
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18672 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18674 if test ! -r "$ac_source"; then
18675 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18677 rm -f "$ac_file"
18679 # Try a relative symlink, then a hard link, then a copy.
18680 case $ac_source in
18681 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18682 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18683 esac
18684 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18685 ln "$ac_source" "$ac_file" 2>/dev/null ||
18686 cp -p "$ac_source" "$ac_file" ||
18687 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18690 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18691 $as_echo "$as_me: executing $ac_file commands" >&6;}
18693 esac
18696 case $ac_file$ac_mode in
18697 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18698 "Makefile":C) wine_fn_output_makefile Makefile ;;
18699 "tools":C) as_dir=tools; as_fn_mkdir_p ;;
18700 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
18702 esac
18703 done # for ac_tag
18706 as_fn_exit 0
18707 _ACEOF
18708 ac_clean_files=$ac_clean_files_save
18710 test $ac_write_fail = 0 ||
18711 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18714 # configure is writing to config.log, and then calls config.status.
18715 # config.status does its own redirection, appending to config.log.
18716 # Unfortunately, on DOS this fails, as config.log is still kept open
18717 # by configure, so config.status won't be able to write to it; its
18718 # output is simply discarded. So we exec the FD to /dev/null,
18719 # effectively closing config.log, so it can be properly (re)opened and
18720 # appended to by config.status. When coming back to configure, we
18721 # need to make the FD available again.
18722 if test "$no_create" != yes; then
18723 ac_cs_success=:
18724 ac_config_status_args=
18725 test "$silent" = yes &&
18726 ac_config_status_args="$ac_config_status_args --quiet"
18727 exec 5>/dev/null
18728 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18729 exec 5>>config.log
18730 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18731 # would make configure fail if this is the last instruction.
18732 $ac_cs_success || as_fn_exit 1
18734 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18736 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18740 if test "$no_create" = "yes"
18741 then
18742 exit 0
18745 ac_save_IFS="$IFS"
18746 if test "x$wine_notices != "x; then
18747 echo >&6
18748 IFS="|"
18749 for msg in $wine_notices; do
18750 IFS="$ac_save_IFS"
18751 if test -n "$msg"; then
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18753 $as_echo "$as_me: $msg" >&6;}
18755 done
18757 IFS="|"
18758 for msg in $wine_warnings; do
18759 IFS="$ac_save_IFS"
18760 if test -n "$msg"; then
18761 echo >&2
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18763 $as_echo "$as_me: WARNING: $msg" >&2;}
18765 done
18766 IFS="$ac_save_IFS"
18768 $as_echo "
18769 $as_me: Finished. Do '${ac_make}' to compile Wine.
18770 " >&6