msvcp71: Share the ios.c implementation with msvcp90.
[wine.git] / configure
bloba9080f4af17b8ade4ade43396b97683dc69a0f8a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.8.
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.8'
584 PACKAGE_STRING='Wine 1.7.8'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 PORCFLAGS
628 LINGUAS
629 MAKE_TEST_RULES
630 MAKE_PROG_RULES
631 MAKE_DLL_RULES
632 MAKE_IMPLIB_RULES
633 LDAPLIBS
634 LIBRT
635 LIBPOLL
636 LIBDL
637 TOOLSEXT
638 UNWINDFLAGS
639 BUILTINFLAG
640 EXTRACFLAGS
641 LIBPROCSTAT
642 LIBKSTAT
643 LIBOPENAL
644 MPG123_LIBS
645 MPG123_CFLAGS
646 TIFF_LIBS
647 TIFF_CFLAGS
648 PNG_LIBS
649 PNG_CFLAGS
650 JPEG_LIBS
651 JPEG_CFLAGS
652 FONTCONFIGINCL
653 CUPSINCL
654 CAPI20_LIBS
655 CAPI20_CFLAGS
656 OSS4INCL
657 ALSALIBS
658 GSTREAMER_LIBS
659 GSTREAMER_CFLAGS
660 LIBGETTEXTPO
661 ZLIB
662 FREETYPE_LIBS
663 FREETYPE_CFLAGS
664 LCMS2_LIBS
665 LCMS2_CFLAGS
666 RESOLVLIBS
667 GPHOTO2_PORT_LIBS
668 GPHOTO2_PORT_CFLAGS
669 GPHOTO2_LIBS
670 GPHOTO2_CFLAGS
671 SANE_LIBS
672 SANE_CFLAGS
673 GNUTLS_LIBS
674 GNUTLS_CFLAGS
675 HAL_LIBS
676 HAL_CFLAGS
677 DBUS_LIBS
678 DBUS_CFLAGS
679 XSLT_LIBS
680 XSLT_CFLAGS
681 XML2_LIBS
682 XML2_CFLAGS
683 X_EXTRA_LIBS
684 X_LIBS
685 X_PRE_LIBS
686 X_CFLAGS
687 XMKMF
688 LIBPTHREAD
689 CROSSCC
690 CROSSTARGET
691 PRELINK
692 CARBONLIB
693 QUICKTIMELIB
694 LIBOPENCL
695 FRAMEWORK_OPENAL
696 COREAUDIO
697 SECURITYLIB
698 DISKARBITRATIONLIB
699 APPKITLIB
700 CORESERVICESLIB
701 APPLICATIONSERVICESLIB
702 FORCEFEEDBACKLIB
703 IOKITLIB
704 COREFOUNDATIONLIB
705 LIBWINE_RULES
706 SOCKETLIBS
707 DLLTOOL
708 LOADER_RULES
709 ALL_TEST_RESOURCES
710 READELF
712 LDRPATH_LOCAL
713 LDRPATH_INSTALL
714 IMPLIBEXT
715 DLLFLAGS
716 DLLPREFIX
717 dlldir
719 OPENGL_LIBS
720 XLIB
721 MAINTAINER_MODE
722 PKG_CONFIG
723 MSGFMT
724 ICOTOOL
725 CONVERT
726 RSVG
727 FONTFORGE
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 LDCONFIG
732 MKDIR_P
733 EGREP
734 GREP
735 LN_S
736 RANLIB
737 ARFLAGS
738 STRIP
739 ac_ct_AR
741 BISON
742 FLEX
743 TOOLSDIR
744 TARGETFLAGS
745 CPPBIN
746 ac_ct_CXX
747 CXXFLAGS
749 OBJEXT
750 EXEEXT
751 ac_ct_CC
752 CPPFLAGS
753 LDFLAGS
754 CFLAGS
756 SET_MAKE
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files='MAKE_RULES'
804 ac_user_opts='
805 enable_option_checking
806 enable_win16
807 enable_win64
808 enable_tests
809 enable_maintainer_mode
810 with_alsa
811 with_capi
812 with_cms
813 with_coreaudio
814 with_cups
815 with_curses
816 with_dbus
817 with_fontconfig
818 with_freetype
819 with_gettext
820 with_gettextpo
821 with_gphoto
822 with_glu
823 with_gnutls
824 with_gsm
825 with_gstreamer
826 with_hal
827 with_jpeg
828 with_ldap
829 with_mpg123
830 with_netapi
831 with_openal
832 with_opencl
833 with_opengl
834 with_osmesa
835 with_oss
836 with_png
837 with_pthread
838 with_sane
839 with_tiff
840 with_v4l
841 with_xcomposite
842 with_xcursor
843 with_xinerama
844 with_xinput
845 with_xinput2
846 with_xml
847 with_xrandr
848 with_xrender
849 with_xshape
850 with_xshm
851 with_xslt
852 with_xxf86vm
853 with_zlib
854 with_wine_tools
855 with_wine64
856 enable_largefile
857 with_x
858 enable_acledit
859 enable_aclui
860 enable_activeds
861 enable_actxprxy
862 enable_advapi32
863 enable_advpack
864 enable_amstream
865 enable_api_ms_win_core_localregistry_l1_1_0
866 enable_api_ms_win_core_processthreads_l1_1_0
867 enable_api_ms_win_core_winrt_error_l1_1_0
868 enable_api_ms_win_core_winrt_string_l1_1_0
869 enable_api_ms_win_downlevel_advapi32_l1_1_0
870 enable_api_ms_win_downlevel_advapi32_l2_1_0
871 enable_api_ms_win_downlevel_normaliz_l1_1_0
872 enable_api_ms_win_downlevel_ole32_l1_1_0
873 enable_api_ms_win_downlevel_shell32_l1_1_0
874 enable_api_ms_win_downlevel_shlwapi_l1_1_0
875 enable_api_ms_win_downlevel_shlwapi_l2_1_0
876 enable_api_ms_win_downlevel_user32_l1_1_0
877 enable_api_ms_win_downlevel_version_l1_1_0
878 enable_api_ms_win_security_base_l1_1_0
879 enable_apphelp
880 enable_appwiz_cpl
881 enable_atl
882 enable_atl100
883 enable_atl110
884 enable_atl80
885 enable_atl90
886 enable_authz
887 enable_avicap32
888 enable_avifil32
889 enable_avrt
890 enable_bcrypt
891 enable_browseui
892 enable_cabinet
893 enable_capi2032
894 enable_cards
895 enable_cfgmgr32
896 enable_clusapi
897 enable_comcat
898 enable_comctl32
899 enable_comdlg32
900 enable_compstui
901 enable_comsvcs
902 enable_credui
903 enable_crtdll
904 enable_crypt32
905 enable_cryptdlg
906 enable_cryptdll
907 enable_cryptnet
908 enable_cryptui
909 enable_ctapi32
910 enable_ctl3d32
911 enable_d3d10
912 enable_d3d10core
913 enable_d3d11
914 enable_d3d8
915 enable_d3d9
916 enable_d3dcompiler_33
917 enable_d3dcompiler_34
918 enable_d3dcompiler_35
919 enable_d3dcompiler_36
920 enable_d3dcompiler_37
921 enable_d3dcompiler_38
922 enable_d3dcompiler_39
923 enable_d3dcompiler_40
924 enable_d3dcompiler_41
925 enable_d3dcompiler_42
926 enable_d3dcompiler_43
927 enable_d3dim
928 enable_d3drm
929 enable_d3dx10_33
930 enable_d3dx10_34
931 enable_d3dx10_35
932 enable_d3dx10_36
933 enable_d3dx10_37
934 enable_d3dx10_38
935 enable_d3dx10_39
936 enable_d3dx10_40
937 enable_d3dx10_41
938 enable_d3dx10_42
939 enable_d3dx10_43
940 enable_d3dx11_42
941 enable_d3dx11_43
942 enable_d3dx9_24
943 enable_d3dx9_25
944 enable_d3dx9_26
945 enable_d3dx9_27
946 enable_d3dx9_28
947 enable_d3dx9_29
948 enable_d3dx9_30
949 enable_d3dx9_31
950 enable_d3dx9_32
951 enable_d3dx9_33
952 enable_d3dx9_34
953 enable_d3dx9_35
954 enable_d3dx9_36
955 enable_d3dx9_37
956 enable_d3dx9_38
957 enable_d3dx9_39
958 enable_d3dx9_40
959 enable_d3dx9_41
960 enable_d3dx9_42
961 enable_d3dx9_43
962 enable_d3dxof
963 enable_dbgeng
964 enable_dbghelp
965 enable_dciman32
966 enable_ddraw
967 enable_ddrawex
968 enable_devenum
969 enable_dhcpcsvc
970 enable_difxapi
971 enable_dinput
972 enable_dinput8
973 enable_dispex
974 enable_dmband
975 enable_dmcompos
976 enable_dmime
977 enable_dmloader
978 enable_dmscript
979 enable_dmstyle
980 enable_dmsynth
981 enable_dmusic
982 enable_dmusic32
983 enable_dnsapi
984 enable_dplay
985 enable_dplayx
986 enable_dpnaddr
987 enable_dpnet
988 enable_dpnhpast
989 enable_dpnlobby
990 enable_dpwsockx
991 enable_drmclien
992 enable_dsound
993 enable_dssenh
994 enable_dswave
995 enable_dwmapi
996 enable_dwrite
997 enable_dxdiagn
998 enable_dxgi
999 enable_explorerframe
1000 enable_faultrep
1001 enable_fltlib
1002 enable_fusion
1003 enable_fwpuclnt
1004 enable_gameux
1005 enable_gdi32
1006 enable_gdiplus
1007 enable_glu32
1008 enable_gphoto2_ds
1009 enable_gpkcsp
1010 enable_hal
1011 enable_hhctrl_ocx
1012 enable_hid
1013 enable_hlink
1014 enable_hnetcfg
1015 enable_httpapi
1016 enable_iccvid
1017 enable_icmp
1018 enable_ieframe
1019 enable_imaadp32_acm
1020 enable_imagehlp
1021 enable_imm32
1022 enable_inetcomm
1023 enable_inetcpl_cpl
1024 enable_inetmib1
1025 enable_infosoft
1026 enable_initpki
1027 enable_inkobj
1028 enable_inseng
1029 enable_iphlpapi
1030 enable_itircl
1031 enable_itss
1032 enable_joy_cpl
1033 enable_jscript
1034 enable_kernel32
1035 enable_ktmw32
1036 enable_loadperf
1037 enable_localspl
1038 enable_localui
1039 enable_lz32
1040 enable_mapi32
1041 enable_mapistub
1042 enable_mciavi32
1043 enable_mcicda
1044 enable_mciqtz32
1045 enable_mciseq
1046 enable_mciwave
1047 enable_mgmtapi
1048 enable_midimap
1049 enable_mlang
1050 enable_mmcndmgr
1051 enable_mmdevapi
1052 enable_mountmgr_sys
1053 enable_mpr
1054 enable_mprapi
1055 enable_msacm32_drv
1056 enable_msacm32
1057 enable_msadp32_acm
1058 enable_mscat32
1059 enable_mscms
1060 enable_mscoree
1061 enable_msctf
1062 enable_msdaps
1063 enable_msdmo
1064 enable_msftedit
1065 enable_msg711_acm
1066 enable_msgsm32_acm
1067 enable_mshtml_tlb
1068 enable_mshtml
1069 enable_msi
1070 enable_msident
1071 enable_msimg32
1072 enable_msimsg
1073 enable_msimtf
1074 enable_msisip
1075 enable_msisys_ocx
1076 enable_msls31
1077 enable_msnet32
1078 enable_mspatcha
1079 enable_msrle32
1080 enable_mssign32
1081 enable_mssip32
1082 enable_mstask
1083 enable_msvcirt
1084 enable_msvcm80
1085 enable_msvcm90
1086 enable_msvcp100
1087 enable_msvcp110
1088 enable_msvcp60
1089 enable_msvcp70
1090 enable_msvcp71
1091 enable_msvcp80
1092 enable_msvcp90
1093 enable_msvcr100
1094 enable_msvcr110
1095 enable_msvcr70
1096 enable_msvcr71
1097 enable_msvcr80
1098 enable_msvcr90
1099 enable_msvcrt
1100 enable_msvcrt20
1101 enable_msvcrt40
1102 enable_msvcrtd
1103 enable_msvfw32
1104 enable_msvidc32
1105 enable_mswsock
1106 enable_msxml
1107 enable_msxml2
1108 enable_msxml3
1109 enable_msxml4
1110 enable_msxml6
1111 enable_nddeapi
1112 enable_netapi32
1113 enable_netcfgx
1114 enable_newdev
1115 enable_normaliz
1116 enable_npmshtml
1117 enable_ntdll
1118 enable_ntdsapi
1119 enable_ntoskrnl_exe
1120 enable_ntprint
1121 enable_objsel
1122 enable_odbc32
1123 enable_odbccp32
1124 enable_odbccu32
1125 enable_ole32
1126 enable_oleacc
1127 enable_oleaut32
1128 enable_olecli32
1129 enable_oledb32
1130 enable_oledlg
1131 enable_olepro32
1132 enable_olesvr32
1133 enable_olethk32
1134 enable_openal32
1135 enable_opencl
1136 enable_opengl32
1137 enable_pdh
1138 enable_photometadatahandler
1139 enable_pidgen
1140 enable_powrprof
1141 enable_printui
1142 enable_propsys
1143 enable_psapi
1144 enable_pstorec
1145 enable_qcap
1146 enable_qedit
1147 enable_qmgr
1148 enable_qmgrprxy
1149 enable_quartz
1150 enable_query
1151 enable_rasapi32
1152 enable_rasdlg
1153 enable_regapi
1154 enable_resutils
1155 enable_riched20
1156 enable_riched32
1157 enable_rpcrt4
1158 enable_rsabase
1159 enable_rsaenh
1160 enable_rstrtmgr
1161 enable_rtutils
1162 enable_samlib
1163 enable_sane_ds
1164 enable_scarddlg
1165 enable_sccbase
1166 enable_schannel
1167 enable_scrrun
1168 enable_scsiport_sys
1169 enable_secur32
1170 enable_security
1171 enable_sensapi
1172 enable_serialui
1173 enable_setupapi
1174 enable_sfc
1175 enable_sfc_os
1176 enable_shdoclc
1177 enable_shdocvw
1178 enable_shell32
1179 enable_shfolder
1180 enable_shlwapi
1181 enable_slbcsp
1182 enable_slc
1183 enable_snmpapi
1184 enable_softpub
1185 enable_spoolss
1186 enable_stdole2_tlb
1187 enable_stdole32_tlb
1188 enable_sti
1189 enable_svrapi
1190 enable_sxs
1191 enable_t2embed
1192 enable_tapi32
1193 enable_traffic
1194 enable_twain_32
1195 enable_unicows
1196 enable_updspapi
1197 enable_url
1198 enable_urlmon
1199 enable_usbd_sys
1200 enable_user32
1201 enable_userenv
1202 enable_usp10
1203 enable_uxtheme
1204 enable_vbscript
1205 enable_vcomp
1206 enable_vcomp100
1207 enable_vcomp90
1208 enable_vdmdbg
1209 enable_version
1210 enable_wbemdisp
1211 enable_wbemprox
1212 enable_webservices
1213 enable_wer
1214 enable_wevtapi
1215 enable_wiaservc
1216 enable_windowscodecs
1217 enable_windowscodecsext
1218 enable_winealsa_drv
1219 enable_winecoreaudio_drv
1220 enable_wined3d
1221 enable_winegstreamer
1222 enable_winejoystick_drv
1223 enable_winemac_drv
1224 enable_winemapi
1225 enable_winemp3_acm
1226 enable_wineoss_drv
1227 enable_wineps_drv
1228 enable_wineqtdecoder
1229 enable_winex11_drv
1230 enable_wing32
1231 enable_winhttp
1232 enable_wininet
1233 enable_winmm
1234 enable_winnls32
1235 enable_winscard
1236 enable_winspool_drv
1237 enable_winsta
1238 enable_wintab32
1239 enable_wintrust
1240 enable_wlanapi
1241 enable_wldap32
1242 enable_wmi
1243 enable_wmiutils
1244 enable_wmvcore
1245 enable_wnaspi32
1246 enable_ws2_32
1247 enable_wshom_ocx
1248 enable_wsnmp32
1249 enable_wsock32
1250 enable_wtsapi32
1251 enable_wuapi
1252 enable_wuaueng
1253 enable_xapofx1_1
1254 enable_xinput1_1
1255 enable_xinput1_2
1256 enable_xinput1_3
1257 enable_xinput1_4
1258 enable_xinput9_1_0
1259 enable_xmllite
1260 enable_xolehlp
1261 enable_xpsprint
1262 enable_xpssvcs
1263 enable_documentation
1264 enable_fonts
1265 enable_include
1266 enable_libs_port
1267 enable_libs_wine
1268 enable_libs_wpp
1269 enable_loader
1270 enable_arp
1271 enable_aspnet_regiis
1272 enable_attrib
1273 enable_cabarc
1274 enable_cacls
1275 enable_clock
1276 enable_cmd
1277 enable_conhost
1278 enable_control
1279 enable_cscript
1280 enable_dxdiag
1281 enable_eject
1282 enable_expand
1283 enable_explorer
1284 enable_extrac32
1285 enable_findstr
1286 enable_hh
1287 enable_hostname
1288 enable_icinfo
1289 enable_iexplore
1290 enable_ipconfig
1291 enable_lodctr
1292 enable_mofcomp
1293 enable_mshta
1294 enable_msiexec
1295 enable_net
1296 enable_netsh
1297 enable_netstat
1298 enable_ngen
1299 enable_notepad
1300 enable_oleview
1301 enable_ping
1302 enable_plugplay
1303 enable_presentationfontcache
1304 enable_progman
1305 enable_reg
1306 enable_regasm
1307 enable_regedit
1308 enable_regsvcs
1309 enable_regsvr32
1310 enable_rpcss
1311 enable_rundll32
1312 enable_sc
1313 enable_schtasks
1314 enable_secedit
1315 enable_servicemodelreg
1316 enable_services
1317 enable_spoolsv
1318 enable_start
1319 enable_svchost
1320 enable_taskkill
1321 enable_tasklist
1322 enable_taskmgr
1323 enable_termsv
1324 enable_uninstaller
1325 enable_unlodctr
1326 enable_view
1327 enable_wineboot
1328 enable_winebrowser
1329 enable_winecfg
1330 enable_wineconsole
1331 enable_winedbg
1332 enable_winedevice
1333 enable_winefile
1334 enable_winemenubuilder
1335 enable_winemine
1336 enable_winemsibuilder
1337 enable_winepath
1338 enable_winetest
1339 enable_winhlp32
1340 enable_winver
1341 enable_wmic
1342 enable_wordpad
1343 enable_write
1344 enable_wscript
1345 enable_wusa
1346 enable_xcopy
1347 enable_server
1348 enable_tools
1350 ac_precious_vars='build_alias
1351 host_alias
1352 target_alias
1354 CFLAGS
1355 LDFLAGS
1356 LIBS
1357 CPPFLAGS
1359 CXXFLAGS
1362 XMKMF
1363 XML2_CFLAGS
1364 XML2_LIBS
1365 XSLT_CFLAGS
1366 XSLT_LIBS
1367 DBUS_CFLAGS
1368 DBUS_LIBS
1369 HAL_CFLAGS
1370 HAL_LIBS
1371 GNUTLS_CFLAGS
1372 GNUTLS_LIBS
1373 SANE_CFLAGS
1374 SANE_LIBS
1375 GPHOTO2_CFLAGS
1376 GPHOTO2_LIBS
1377 GPHOTO2_PORT_CFLAGS
1378 GPHOTO2_PORT_LIBS
1379 LCMS2_CFLAGS
1380 LCMS2_LIBS
1381 FREETYPE_CFLAGS
1382 FREETYPE_LIBS
1383 GSTREAMER_CFLAGS
1384 GSTREAMER_LIBS
1385 CAPI20_CFLAGS
1386 CAPI20_LIBS
1387 JPEG_CFLAGS
1388 JPEG_LIBS
1389 PNG_CFLAGS
1390 PNG_LIBS
1391 TIFF_CFLAGS
1392 TIFF_LIBS
1393 MPG123_CFLAGS
1394 MPG123_LIBS'
1397 # Initialize some variables set by options.
1398 ac_init_help=
1399 ac_init_version=false
1400 ac_unrecognized_opts=
1401 ac_unrecognized_sep=
1402 # The variables have the same names as the options, with
1403 # dashes changed to underlines.
1404 cache_file=/dev/null
1405 exec_prefix=NONE
1406 no_create=
1407 no_recursion=
1408 prefix=NONE
1409 program_prefix=NONE
1410 program_suffix=NONE
1411 program_transform_name=s,x,x,
1412 silent=
1413 site=
1414 srcdir=
1415 verbose=
1416 x_includes=NONE
1417 x_libraries=NONE
1419 # Installation directory options.
1420 # These are left unexpanded so users can "make install exec_prefix=/foo"
1421 # and all the variables that are supposed to be based on exec_prefix
1422 # by default will actually change.
1423 # Use braces instead of parens because sh, perl, etc. also accept them.
1424 # (The list follows the same order as the GNU Coding Standards.)
1425 bindir='${exec_prefix}/bin'
1426 sbindir='${exec_prefix}/sbin'
1427 libexecdir='${exec_prefix}/libexec'
1428 datarootdir='${prefix}/share'
1429 datadir='${datarootdir}'
1430 sysconfdir='${prefix}/etc'
1431 sharedstatedir='${prefix}/com'
1432 localstatedir='${prefix}/var'
1433 includedir='${prefix}/include'
1434 oldincludedir='/usr/include'
1435 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1436 infodir='${datarootdir}/info'
1437 htmldir='${docdir}'
1438 dvidir='${docdir}'
1439 pdfdir='${docdir}'
1440 psdir='${docdir}'
1441 libdir='${exec_prefix}/lib'
1442 localedir='${datarootdir}/locale'
1443 mandir='${datarootdir}/man'
1445 ac_prev=
1446 ac_dashdash=
1447 for ac_option
1449 # If the previous option needs an argument, assign it.
1450 if test -n "$ac_prev"; then
1451 eval $ac_prev=\$ac_option
1452 ac_prev=
1453 continue
1456 case $ac_option in
1457 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1458 *=) ac_optarg= ;;
1459 *) ac_optarg=yes ;;
1460 esac
1462 # Accept the important Cygnus configure options, so we can diagnose typos.
1464 case $ac_dashdash$ac_option in
1466 ac_dashdash=yes ;;
1468 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1469 ac_prev=bindir ;;
1470 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1471 bindir=$ac_optarg ;;
1473 -build | --build | --buil | --bui | --bu)
1474 ac_prev=build_alias ;;
1475 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1476 build_alias=$ac_optarg ;;
1478 -cache-file | --cache-file | --cache-fil | --cache-fi \
1479 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1480 ac_prev=cache_file ;;
1481 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1482 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1483 cache_file=$ac_optarg ;;
1485 --config-cache | -C)
1486 cache_file=config.cache ;;
1488 -datadir | --datadir | --datadi | --datad)
1489 ac_prev=datadir ;;
1490 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1491 datadir=$ac_optarg ;;
1493 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1494 | --dataroo | --dataro | --datar)
1495 ac_prev=datarootdir ;;
1496 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1497 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1498 datarootdir=$ac_optarg ;;
1500 -disable-* | --disable-*)
1501 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1502 # Reject names that are not valid shell variable names.
1503 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1504 as_fn_error $? "invalid feature name: $ac_useropt"
1505 ac_useropt_orig=$ac_useropt
1506 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1507 case $ac_user_opts in
1509 "enable_$ac_useropt"
1510 "*) ;;
1511 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1512 ac_unrecognized_sep=', ';;
1513 esac
1514 eval enable_$ac_useropt=no ;;
1516 -docdir | --docdir | --docdi | --doc | --do)
1517 ac_prev=docdir ;;
1518 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1519 docdir=$ac_optarg ;;
1521 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1522 ac_prev=dvidir ;;
1523 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1524 dvidir=$ac_optarg ;;
1526 -enable-* | --enable-*)
1527 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1528 # Reject names that are not valid shell variable names.
1529 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1530 as_fn_error $? "invalid feature name: $ac_useropt"
1531 ac_useropt_orig=$ac_useropt
1532 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1533 case $ac_user_opts in
1535 "enable_$ac_useropt"
1536 "*) ;;
1537 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1538 ac_unrecognized_sep=', ';;
1539 esac
1540 eval enable_$ac_useropt=\$ac_optarg ;;
1542 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1543 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1544 | --exec | --exe | --ex)
1545 ac_prev=exec_prefix ;;
1546 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1547 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1548 | --exec=* | --exe=* | --ex=*)
1549 exec_prefix=$ac_optarg ;;
1551 -gas | --gas | --ga | --g)
1552 # Obsolete; use --with-gas.
1553 with_gas=yes ;;
1555 -help | --help | --hel | --he | -h)
1556 ac_init_help=long ;;
1557 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1558 ac_init_help=recursive ;;
1559 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1560 ac_init_help=short ;;
1562 -host | --host | --hos | --ho)
1563 ac_prev=host_alias ;;
1564 -host=* | --host=* | --hos=* | --ho=*)
1565 host_alias=$ac_optarg ;;
1567 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1568 ac_prev=htmldir ;;
1569 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1570 | --ht=*)
1571 htmldir=$ac_optarg ;;
1573 -includedir | --includedir | --includedi | --included | --include \
1574 | --includ | --inclu | --incl | --inc)
1575 ac_prev=includedir ;;
1576 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1577 | --includ=* | --inclu=* | --incl=* | --inc=*)
1578 includedir=$ac_optarg ;;
1580 -infodir | --infodir | --infodi | --infod | --info | --inf)
1581 ac_prev=infodir ;;
1582 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1583 infodir=$ac_optarg ;;
1585 -libdir | --libdir | --libdi | --libd)
1586 ac_prev=libdir ;;
1587 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1588 libdir=$ac_optarg ;;
1590 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1591 | --libexe | --libex | --libe)
1592 ac_prev=libexecdir ;;
1593 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1594 | --libexe=* | --libex=* | --libe=*)
1595 libexecdir=$ac_optarg ;;
1597 -localedir | --localedir | --localedi | --localed | --locale)
1598 ac_prev=localedir ;;
1599 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1600 localedir=$ac_optarg ;;
1602 -localstatedir | --localstatedir | --localstatedi | --localstated \
1603 | --localstate | --localstat | --localsta | --localst | --locals)
1604 ac_prev=localstatedir ;;
1605 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1606 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1607 localstatedir=$ac_optarg ;;
1609 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1610 ac_prev=mandir ;;
1611 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1612 mandir=$ac_optarg ;;
1614 -nfp | --nfp | --nf)
1615 # Obsolete; use --without-fp.
1616 with_fp=no ;;
1618 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1619 | --no-cr | --no-c | -n)
1620 no_create=yes ;;
1622 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1623 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1624 no_recursion=yes ;;
1626 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1627 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1628 | --oldin | --oldi | --old | --ol | --o)
1629 ac_prev=oldincludedir ;;
1630 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1631 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1632 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1633 oldincludedir=$ac_optarg ;;
1635 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1636 ac_prev=prefix ;;
1637 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1638 prefix=$ac_optarg ;;
1640 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1641 | --program-pre | --program-pr | --program-p)
1642 ac_prev=program_prefix ;;
1643 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1644 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1645 program_prefix=$ac_optarg ;;
1647 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1648 | --program-suf | --program-su | --program-s)
1649 ac_prev=program_suffix ;;
1650 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1651 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1652 program_suffix=$ac_optarg ;;
1654 -program-transform-name | --program-transform-name \
1655 | --program-transform-nam | --program-transform-na \
1656 | --program-transform-n | --program-transform- \
1657 | --program-transform | --program-transfor \
1658 | --program-transfo | --program-transf \
1659 | --program-trans | --program-tran \
1660 | --progr-tra | --program-tr | --program-t)
1661 ac_prev=program_transform_name ;;
1662 -program-transform-name=* | --program-transform-name=* \
1663 | --program-transform-nam=* | --program-transform-na=* \
1664 | --program-transform-n=* | --program-transform-=* \
1665 | --program-transform=* | --program-transfor=* \
1666 | --program-transfo=* | --program-transf=* \
1667 | --program-trans=* | --program-tran=* \
1668 | --progr-tra=* | --program-tr=* | --program-t=*)
1669 program_transform_name=$ac_optarg ;;
1671 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1672 ac_prev=pdfdir ;;
1673 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1674 pdfdir=$ac_optarg ;;
1676 -psdir | --psdir | --psdi | --psd | --ps)
1677 ac_prev=psdir ;;
1678 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1679 psdir=$ac_optarg ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1683 silent=yes ;;
1685 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1686 ac_prev=sbindir ;;
1687 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1688 | --sbi=* | --sb=*)
1689 sbindir=$ac_optarg ;;
1691 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1692 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1693 | --sharedst | --shareds | --shared | --share | --shar \
1694 | --sha | --sh)
1695 ac_prev=sharedstatedir ;;
1696 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1697 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1698 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1699 | --sha=* | --sh=*)
1700 sharedstatedir=$ac_optarg ;;
1702 -site | --site | --sit)
1703 ac_prev=site ;;
1704 -site=* | --site=* | --sit=*)
1705 site=$ac_optarg ;;
1707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1708 ac_prev=srcdir ;;
1709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1710 srcdir=$ac_optarg ;;
1712 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1713 | --syscon | --sysco | --sysc | --sys | --sy)
1714 ac_prev=sysconfdir ;;
1715 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1716 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1717 sysconfdir=$ac_optarg ;;
1719 -target | --target | --targe | --targ | --tar | --ta | --t)
1720 ac_prev=target_alias ;;
1721 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1722 target_alias=$ac_optarg ;;
1724 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1725 verbose=yes ;;
1727 -version | --version | --versio | --versi | --vers | -V)
1728 ac_init_version=: ;;
1730 -with-* | --with-*)
1731 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1732 # Reject names that are not valid shell variable names.
1733 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1734 as_fn_error $? "invalid package name: $ac_useropt"
1735 ac_useropt_orig=$ac_useropt
1736 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1737 case $ac_user_opts in
1739 "with_$ac_useropt"
1740 "*) ;;
1741 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1742 ac_unrecognized_sep=', ';;
1743 esac
1744 eval with_$ac_useropt=\$ac_optarg ;;
1746 -without-* | --without-*)
1747 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1748 # Reject names that are not valid shell variable names.
1749 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1750 as_fn_error $? "invalid package name: $ac_useropt"
1751 ac_useropt_orig=$ac_useropt
1752 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1753 case $ac_user_opts in
1755 "with_$ac_useropt"
1756 "*) ;;
1757 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1758 ac_unrecognized_sep=', ';;
1759 esac
1760 eval with_$ac_useropt=no ;;
1762 --x)
1763 # Obsolete; use --with-x.
1764 with_x=yes ;;
1766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1767 | --x-incl | --x-inc | --x-in | --x-i)
1768 ac_prev=x_includes ;;
1769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1771 x_includes=$ac_optarg ;;
1773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1775 ac_prev=x_libraries ;;
1776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1778 x_libraries=$ac_optarg ;;
1780 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1781 Try \`$0 --help' for more information"
1784 *=*)
1785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1786 # Reject names that are not valid shell variable names.
1787 case $ac_envvar in #(
1788 '' | [0-9]* | *[!_$as_cr_alnum]* )
1789 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1790 esac
1791 eval $ac_envvar=\$ac_optarg
1792 export $ac_envvar ;;
1795 # FIXME: should be removed in autoconf 3.0.
1796 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1798 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1799 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1802 esac
1803 done
1805 if test -n "$ac_prev"; then
1806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1807 as_fn_error $? "missing argument to $ac_option"
1810 if test -n "$ac_unrecognized_opts"; then
1811 case $enable_option_checking in
1812 no) ;;
1813 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1814 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1815 esac
1818 # Check all directory arguments for consistency.
1819 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1820 datadir sysconfdir sharedstatedir localstatedir includedir \
1821 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1822 libdir localedir mandir
1824 eval ac_val=\$$ac_var
1825 # Remove trailing slashes.
1826 case $ac_val in
1827 */ )
1828 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1829 eval $ac_var=\$ac_val;;
1830 esac
1831 # Be sure to have absolute directory names.
1832 case $ac_val in
1833 [\\/$]* | ?:[\\/]* ) continue;;
1834 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1835 esac
1836 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1837 done
1839 # There might be people who depend on the old broken behavior: `$host'
1840 # used to hold the argument of --host etc.
1841 # FIXME: To remove some day.
1842 build=$build_alias
1843 host=$host_alias
1844 target=$target_alias
1846 # FIXME: To remove some day.
1847 if test "x$host_alias" != x; then
1848 if test "x$build_alias" = x; then
1849 cross_compiling=maybe
1850 elif test "x$build_alias" != "x$host_alias"; then
1851 cross_compiling=yes
1855 ac_tool_prefix=
1856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1858 test "$silent" = yes && exec 6>/dev/null
1861 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1862 ac_ls_di=`ls -di .` &&
1863 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1864 as_fn_error $? "working directory cannot be determined"
1865 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1866 as_fn_error $? "pwd does not report name of working directory"
1869 # Find the source files, if location was not specified.
1870 if test -z "$srcdir"; then
1871 ac_srcdir_defaulted=yes
1872 # Try the directory containing this script, then the parent directory.
1873 ac_confdir=`$as_dirname -- "$as_myself" ||
1874 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1875 X"$as_myself" : 'X\(//\)[^/]' \| \
1876 X"$as_myself" : 'X\(//\)$' \| \
1877 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1878 $as_echo X"$as_myself" |
1879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1880 s//\1/
1883 /^X\(\/\/\)[^/].*/{
1884 s//\1/
1887 /^X\(\/\/\)$/{
1888 s//\1/
1891 /^X\(\/\).*/{
1892 s//\1/
1895 s/.*/./; q'`
1896 srcdir=$ac_confdir
1897 if test ! -r "$srcdir/$ac_unique_file"; then
1898 srcdir=..
1900 else
1901 ac_srcdir_defaulted=no
1903 if test ! -r "$srcdir/$ac_unique_file"; then
1904 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1905 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1907 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1908 ac_abs_confdir=`(
1909 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1910 pwd)`
1911 # When building in place, set srcdir=.
1912 if test "$ac_abs_confdir" = "$ac_pwd"; then
1913 srcdir=.
1915 # Remove unnecessary trailing slashes from srcdir.
1916 # Double slashes in file names in object file debugging info
1917 # mess up M-x gdb in Emacs.
1918 case $srcdir in
1919 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1920 esac
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1923 eval ac_env_${ac_var}_value=\$${ac_var}
1924 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1925 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1926 done
1929 # Report the --help message.
1931 if test "$ac_init_help" = "long"; then
1932 # Omit some internal or obsolete options to make the list less imposing.
1933 # This message is too long to be a string in the A/UX 3.1 sh.
1934 cat <<_ACEOF
1935 \`configure' configures Wine 1.7.8 to adapt to many kinds of systems.
1937 Usage: $0 [OPTION]... [VAR=VALUE]...
1939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1940 VAR=VALUE. See below for descriptions of some of the useful variables.
1942 Defaults for the options are specified in brackets.
1944 Configuration:
1945 -h, --help display this help and exit
1946 --help=short display options specific to this package
1947 --help=recursive display the short help of all the included packages
1948 -V, --version display version information and exit
1949 -q, --quiet, --silent do not print \`checking ...' messages
1950 --cache-file=FILE cache test results in FILE [disabled]
1951 -C, --config-cache alias for \`--cache-file=config.cache'
1952 -n, --no-create do not create output files
1953 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1955 Installation directories:
1956 --prefix=PREFIX install architecture-independent files in PREFIX
1957 [$ac_default_prefix]
1958 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1959 [PREFIX]
1961 By default, \`make install' will install all the files in
1962 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1963 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1964 for instance \`--prefix=\$HOME'.
1966 For better control, use the options below.
1968 Fine tuning of the installation directories:
1969 --bindir=DIR user executables [EPREFIX/bin]
1970 --sbindir=DIR system admin executables [EPREFIX/sbin]
1971 --libexecdir=DIR program executables [EPREFIX/libexec]
1972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1975 --libdir=DIR object code libraries [EPREFIX/lib]
1976 --includedir=DIR C header files [PREFIX/include]
1977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1978 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1979 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1980 --infodir=DIR info documentation [DATAROOTDIR/info]
1981 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1982 --mandir=DIR man documentation [DATAROOTDIR/man]
1983 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1984 --htmldir=DIR html documentation [DOCDIR]
1985 --dvidir=DIR dvi documentation [DOCDIR]
1986 --pdfdir=DIR pdf documentation [DOCDIR]
1987 --psdir=DIR ps documentation [DOCDIR]
1988 _ACEOF
1990 cat <<\_ACEOF
1992 X features:
1993 --x-includes=DIR X include files are in DIR
1994 --x-libraries=DIR X library files are in DIR
1996 System types:
1997 --build=BUILD configure for building on BUILD [guessed]
1998 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1999 _ACEOF
2002 if test -n "$ac_init_help"; then
2003 case $ac_init_help in
2004 short | recursive ) echo "Configuration of Wine 1.7.8:";;
2005 esac
2006 cat <<\_ACEOF
2008 Optional Features:
2009 --disable-option-checking ignore unrecognized --enable/--with options
2010 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2011 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2012 --disable-win16 do not include Win16 support
2013 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2014 binaries)
2015 --disable-tests do not build the regression tests
2016 --enable-maintainer-mode
2017 enable maintainer-specific build rules
2018 --disable-largefile omit support for large files
2020 Optional Packages:
2021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2023 --without-alsa do not use the Alsa sound support
2024 --without-capi do not use CAPI (ISDN support)
2025 --without-cms do not use CMS (color management support)
2026 --without-coreaudio do not use the CoreAudio sound support
2027 --without-cups do not use CUPS
2028 --without-curses do not use (n)curses
2029 --without-dbus do not use DBus (dynamic device support)
2030 --without-fontconfig do not use fontconfig
2031 --without-freetype do not use the FreeType library
2032 --without-gettext do not use gettext
2033 --with-gettextpo use the GetTextPO library to rebuild po files
2034 --without-gphoto do not use gphoto (Digital Camera support)
2035 --without-glu do not use the GLU library
2036 --without-gnutls do not use GnuTLS (schannel support)
2037 --without-gsm do not use libgsm (GSM 06.10 codec support)
2038 --without-gstreamer do not use GStreamer (codecs support)
2039 --without-hal do not use HAL (dynamic device support)
2040 --without-jpeg do not use JPEG
2041 --without-ldap do not use LDAP
2042 --without-mpg123 do not use the mpg123 library
2043 --without-netapi do not use the Samba NetAPI library
2044 --without-openal do not use OpenAL
2045 --without-opencl do not use OpenCL
2046 --without-opengl do not use OpenGL
2047 --without-osmesa do not use the OSMesa library
2048 --without-oss do not use the OSS sound support
2049 --without-png do not use PNG
2050 --without-pthread do not use the pthread library
2051 --without-sane do not use SANE (scanner support)
2052 --without-tiff do not use TIFF
2053 --without-v4l do not use v4l1 (v4l support)
2054 --without-xcomposite do not use the Xcomposite extension
2055 --without-xcursor do not use the Xcursor extension
2056 --without-xinerama do not use Xinerama (multi-monitor support)
2057 --without-xinput do not use the Xinput extension
2058 --without-xinput2 do not use the Xinput 2 extension
2059 --without-xml do not use XML
2060 --without-xrandr do not use Xrandr (resolution changes)
2061 --without-xrender do not use the Xrender extension
2062 --without-xshape do not use the Xshape extension
2063 --without-xshm do not use XShm (shared memory extension)
2064 --without-xslt do not use XSLT
2065 --without-xxf86vm do not use XFree video mode extension
2066 --without-zlib do not use Zlib (data compression)
2067 --with-wine-tools=DIR use Wine tools from directory DIR
2068 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2069 --with-x use the X Window System
2071 Some influential environment variables:
2072 CC C compiler command
2073 CFLAGS C compiler flags
2074 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2075 nonstandard directory <lib dir>
2076 LIBS libraries to pass to the linker, e.g. -l<library>
2077 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2078 you have headers in a nonstandard directory <include dir>
2079 CXX C++ compiler command
2080 CXXFLAGS C++ compiler flags
2081 CPP C preprocessor
2082 XMKMF Path to xmkmf, Makefile generator for X Window System
2083 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2084 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2085 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2086 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2087 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2088 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2089 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2090 HAL_LIBS Linker flags for hal, overriding pkg-config
2091 GNUTLS_CFLAGS
2092 C compiler flags for gnutls, overriding pkg-config
2093 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2094 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2095 SANE_LIBS Linker flags for libsane, overriding pkg-config
2096 GPHOTO2_CFLAGS
2097 C compiler flags for libgphoto2, overriding pkg-config
2098 GPHOTO2_LIBS
2099 Linker flags for libgphoto2, overriding pkg-config
2100 GPHOTO2_PORT_CFLAGS
2101 C compiler flags for libgphoto2_port, overriding pkg-config
2102 GPHOTO2_PORT_LIBS
2103 Linker flags for libgphoto2_port, overriding pkg-config
2104 LCMS2_CFLAGS
2105 C compiler flags for lcms2, overriding pkg-config
2106 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2107 FREETYPE_CFLAGS
2108 C compiler flags for freetype2, overriding pkg-config
2109 FREETYPE_LIBS
2110 Linker flags for freetype2, overriding pkg-config
2111 GSTREAMER_CFLAGS
2112 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2113 GSTREAMER_LIBS
2114 Linker flags for gstreamer-app-0.10, overriding pkg-config
2115 CAPI20_CFLAGS
2116 C compiler flags for capi20, overriding pkg-config
2117 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2118 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2119 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2120 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2121 PNG_LIBS Linker flags for libpng, overriding pkg-config
2122 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2123 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2124 MPG123_CFLAGS
2125 C compiler flags for libmpg123, overriding pkg-config
2126 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2128 Use these variables to override the choices made by `configure' or to help
2129 it to find libraries and programs with nonstandard names/locations.
2131 Report bugs to <wine-devel@winehq.org>.
2132 Wine home page: <http://www.winehq.org>.
2133 _ACEOF
2134 ac_status=$?
2137 if test "$ac_init_help" = "recursive"; then
2138 # If there are subdirs, report their specific --help.
2139 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2140 test -d "$ac_dir" ||
2141 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2142 continue
2143 ac_builddir=.
2145 case "$ac_dir" in
2146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2148 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2149 # A ".." for each directory in $ac_dir_suffix.
2150 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2151 case $ac_top_builddir_sub in
2152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2154 esac ;;
2155 esac
2156 ac_abs_top_builddir=$ac_pwd
2157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2158 # for backward compatibility:
2159 ac_top_builddir=$ac_top_build_prefix
2161 case $srcdir in
2162 .) # We are building in place.
2163 ac_srcdir=.
2164 ac_top_srcdir=$ac_top_builddir_sub
2165 ac_abs_top_srcdir=$ac_pwd ;;
2166 [\\/]* | ?:[\\/]* ) # Absolute name.
2167 ac_srcdir=$srcdir$ac_dir_suffix;
2168 ac_top_srcdir=$srcdir
2169 ac_abs_top_srcdir=$srcdir ;;
2170 *) # Relative name.
2171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2172 ac_top_srcdir=$ac_top_build_prefix$srcdir
2173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2174 esac
2175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2177 cd "$ac_dir" || { ac_status=$?; continue; }
2178 # Check for guested configure.
2179 if test -f "$ac_srcdir/configure.gnu"; then
2180 echo &&
2181 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2182 elif test -f "$ac_srcdir/configure"; then
2183 echo &&
2184 $SHELL "$ac_srcdir/configure" --help=recursive
2185 else
2186 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2187 fi || ac_status=$?
2188 cd "$ac_pwd" || { ac_status=$?; break; }
2189 done
2192 test -n "$ac_init_help" && exit $ac_status
2193 if $ac_init_version; then
2194 cat <<\_ACEOF
2195 Wine configure 1.7.8
2196 generated by GNU Autoconf 2.69
2198 Copyright (C) 2012 Free Software Foundation, Inc.
2199 This configure script is free software; the Free Software Foundation
2200 gives unlimited permission to copy, distribute and modify it.
2201 _ACEOF
2202 exit
2205 ## ------------------------ ##
2206 ## Autoconf initialization. ##
2207 ## ------------------------ ##
2209 # ac_fn_c_try_compile LINENO
2210 # --------------------------
2211 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2212 ac_fn_c_try_compile ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 rm -f conftest.$ac_objext
2216 if { { ac_try="$ac_compile"
2217 case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2220 esac
2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222 $as_echo "$ac_try_echo"; } >&5
2223 (eval "$ac_compile") 2>conftest.err
2224 ac_status=$?
2225 if test -s conftest.err; then
2226 grep -v '^ *+' conftest.err >conftest.er1
2227 cat conftest.er1 >&5
2228 mv -f conftest.er1 conftest.err
2230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2231 test $ac_status = 0; } && {
2232 test -z "$ac_c_werror_flag" ||
2233 test ! -s conftest.err
2234 } && test -s conftest.$ac_objext; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2240 ac_retval=1
2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 as_fn_set_status $ac_retval
2245 } # ac_fn_c_try_compile
2247 # ac_fn_cxx_try_compile LINENO
2248 # ----------------------------
2249 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2250 ac_fn_cxx_try_compile ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 rm -f conftest.$ac_objext
2254 if { { ac_try="$ac_compile"
2255 case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258 esac
2259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 $as_echo "$ac_try_echo"; } >&5
2261 (eval "$ac_compile") 2>conftest.err
2262 ac_status=$?
2263 if test -s conftest.err; then
2264 grep -v '^ *+' conftest.err >conftest.er1
2265 cat conftest.er1 >&5
2266 mv -f conftest.er1 conftest.err
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } && {
2270 test -z "$ac_cxx_werror_flag" ||
2271 test ! -s conftest.err
2272 } && test -s conftest.$ac_objext; then :
2273 ac_retval=0
2274 else
2275 $as_echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2278 ac_retval=1
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281 as_fn_set_status $ac_retval
2283 } # ac_fn_cxx_try_compile
2285 # ac_fn_c_try_link LINENO
2286 # -----------------------
2287 # Try to link conftest.$ac_ext, and return whether this succeeded.
2288 ac_fn_c_try_link ()
2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291 rm -f conftest.$ac_objext conftest$ac_exeext
2292 if { { ac_try="$ac_link"
2293 case "(($ac_try" in
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2296 esac
2297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2298 $as_echo "$ac_try_echo"; } >&5
2299 (eval "$ac_link") 2>conftest.err
2300 ac_status=$?
2301 if test -s conftest.err; then
2302 grep -v '^ *+' conftest.err >conftest.er1
2303 cat conftest.er1 >&5
2304 mv -f conftest.er1 conftest.err
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } && {
2308 test -z "$ac_c_werror_flag" ||
2309 test ! -s conftest.err
2310 } && test -s conftest$ac_exeext && {
2311 test "$cross_compiling" = yes ||
2312 test -x conftest$ac_exeext
2313 }; then :
2314 ac_retval=0
2315 else
2316 $as_echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2319 ac_retval=1
2321 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2322 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2323 # interfere with the next link command; also delete a directory that is
2324 # left behind by Apple's compiler. We do this before executing the actions.
2325 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327 as_fn_set_status $ac_retval
2329 } # ac_fn_c_try_link
2331 # ac_fn_c_try_cpp LINENO
2332 # ----------------------
2333 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_c_try_cpp ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 if { { ac_try="$ac_cpp conftest.$ac_ext"
2338 case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341 esac
2342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343 $as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2345 ac_status=$?
2346 if test -s conftest.err; then
2347 grep -v '^ *+' conftest.err >conftest.er1
2348 cat conftest.er1 >&5
2349 mv -f conftest.er1 conftest.err
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } > conftest.i && {
2353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2354 test ! -s conftest.err
2355 }; then :
2356 ac_retval=0
2357 else
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2361 ac_retval=1
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 as_fn_set_status $ac_retval
2366 } # ac_fn_c_try_cpp
2368 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2369 # -------------------------------------------------------
2370 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2371 # the include files in INCLUDES and setting the cache variable VAR
2372 # accordingly.
2373 ac_fn_c_check_header_mongrel ()
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 if eval \${$3+:} false; then :
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378 $as_echo_n "checking for $2... " >&6; }
2379 if eval \${$3+:} false; then :
2380 $as_echo_n "(cached) " >&6
2382 eval ac_res=\$$3
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2385 else
2386 # Is the header compilable?
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2388 $as_echo_n "checking $2 usability... " >&6; }
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2392 #include <$2>
2393 _ACEOF
2394 if ac_fn_c_try_compile "$LINENO"; then :
2395 ac_header_compiler=yes
2396 else
2397 ac_header_compiler=no
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2401 $as_echo "$ac_header_compiler" >&6; }
2403 # Is the header present?
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2405 $as_echo_n "checking $2 presence... " >&6; }
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2408 #include <$2>
2409 _ACEOF
2410 if ac_fn_c_try_cpp "$LINENO"; then :
2411 ac_header_preproc=yes
2412 else
2413 ac_header_preproc=no
2415 rm -f conftest.err conftest.i conftest.$ac_ext
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2417 $as_echo "$ac_header_preproc" >&6; }
2419 # So? What about this header?
2420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2421 yes:no: )
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2423 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2425 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2427 no:yes:* )
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2429 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2431 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2433 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2435 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2437 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2438 ( $as_echo "## ------------------------------------ ##
2439 ## Report this to wine-devel@winehq.org ##
2440 ## ------------------------------------ ##"
2441 ) | sed "s/^/$as_me: WARNING: /" >&2
2443 esac
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2445 $as_echo_n "checking for $2... " >&6; }
2446 if eval \${$3+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 eval "$3=\$ac_header_compiler"
2451 eval ac_res=\$$3
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457 } # ac_fn_c_check_header_mongrel
2459 # ac_fn_c_try_run LINENO
2460 # ----------------------
2461 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2462 # that executables *can* be run.
2463 ac_fn_c_try_run ()
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 if { { ac_try="$ac_link"
2467 case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2470 esac
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473 (eval "$ac_link") 2>&5
2474 ac_status=$?
2475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2477 { { case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480 esac
2481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482 $as_echo "$ac_try_echo"; } >&5
2483 (eval "$ac_try") 2>&5
2484 ac_status=$?
2485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2486 test $ac_status = 0; }; }; then :
2487 ac_retval=0
2488 else
2489 $as_echo "$as_me: program exited with status $ac_status" >&5
2490 $as_echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2493 ac_retval=$ac_status
2495 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2497 as_fn_set_status $ac_retval
2499 } # ac_fn_c_try_run
2501 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2502 # -------------------------------------------------------
2503 # Tests whether HEADER exists and can be compiled using the include files in
2504 # INCLUDES, setting the cache variable VAR accordingly.
2505 ac_fn_c_check_header_compile ()
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2509 $as_echo_n "checking for $2... " >&6; }
2510 if eval \${$3+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2516 #include <$2>
2517 _ACEOF
2518 if ac_fn_c_try_compile "$LINENO"; then :
2519 eval "$3=yes"
2520 else
2521 eval "$3=no"
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 eval ac_res=\$$3
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2530 } # ac_fn_c_check_header_compile
2532 # ac_fn_c_check_func LINENO FUNC VAR
2533 # ----------------------------------
2534 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2535 ac_fn_c_check_func ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if eval \${$3+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2545 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2547 #define $2 innocuous_$2
2549 /* System header to define __stub macros and hopefully few prototypes,
2550 which can conflict with char $2 (); below.
2551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2552 <limits.h> exists even on freestanding compilers. */
2554 #ifdef __STDC__
2555 # include <limits.h>
2556 #else
2557 # include <assert.h>
2558 #endif
2560 #undef $2
2562 /* Override any GCC internal prototype to avoid an error.
2563 Use char because int might match the return type of a GCC
2564 builtin and then its argument prototype would still apply. */
2565 #ifdef __cplusplus
2566 extern "C"
2567 #endif
2568 char $2 ();
2569 /* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572 #if defined __stub_$2 || defined __stub___$2
2573 choke me
2574 #endif
2577 main ()
2579 return $2 ();
2581 return 0;
2583 _ACEOF
2584 if ac_fn_c_try_link "$LINENO"; then :
2585 eval "$3=yes"
2586 else
2587 eval "$3=no"
2589 rm -f core conftest.err conftest.$ac_objext \
2590 conftest$ac_exeext conftest.$ac_ext
2592 eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597 } # ac_fn_c_check_func
2599 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2600 # ----------------------------------------------------
2601 # Tries to find if the field MEMBER exists in type AGGR, after including
2602 # INCLUDES, setting cache variable VAR accordingly.
2603 ac_fn_c_check_member ()
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2607 $as_echo_n "checking for $2.$3... " >&6; }
2608 if eval \${$4+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2615 main ()
2617 static $2 ac_aggr;
2618 if (ac_aggr.$3)
2619 return 0;
2621 return 0;
2623 _ACEOF
2624 if ac_fn_c_try_compile "$LINENO"; then :
2625 eval "$4=yes"
2626 else
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h. */
2631 main ()
2633 static $2 ac_aggr;
2634 if (sizeof ac_aggr.$3)
2635 return 0;
2637 return 0;
2639 _ACEOF
2640 if ac_fn_c_try_compile "$LINENO"; then :
2641 eval "$4=yes"
2642 else
2643 eval "$4=no"
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 eval ac_res=\$$4
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2651 $as_echo "$ac_res" >&6; }
2652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2654 } # ac_fn_c_check_member
2656 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2657 # -------------------------------------------
2658 # Tests whether TYPE exists after having included INCLUDES, setting cache
2659 # variable VAR accordingly.
2660 ac_fn_c_check_type ()
2662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2664 $as_echo_n "checking for $2... " >&6; }
2665 if eval \${$3+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 eval "$3=no"
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2673 main ()
2675 if (sizeof ($2))
2676 return 0;
2678 return 0;
2680 _ACEOF
2681 if ac_fn_c_try_compile "$LINENO"; then :
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2686 main ()
2688 if (sizeof (($2)))
2689 return 0;
2691 return 0;
2693 _ACEOF
2694 if ac_fn_c_try_compile "$LINENO"; then :
2696 else
2697 eval "$3=yes"
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 eval ac_res=\$$3
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2705 $as_echo "$ac_res" >&6; }
2706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2708 } # ac_fn_c_check_type
2709 cat >config.log <<_ACEOF
2710 This file contains any messages produced by compilers while
2711 running configure, to aid debugging if configure makes a mistake.
2713 It was created by Wine $as_me 1.7.8, which was
2714 generated by GNU Autoconf 2.69. Invocation command line was
2716 $ $0 $@
2718 _ACEOF
2719 exec 5>>config.log
2721 cat <<_ASUNAME
2722 ## --------- ##
2723 ## Platform. ##
2724 ## --------- ##
2726 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2727 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2728 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2729 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2730 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2732 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2733 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2735 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2736 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2737 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2738 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2739 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2740 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2741 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2743 _ASUNAME
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 $as_echo "PATH: $as_dir"
2751 done
2752 IFS=$as_save_IFS
2754 } >&5
2756 cat >&5 <<_ACEOF
2759 ## ----------- ##
2760 ## Core tests. ##
2761 ## ----------- ##
2763 _ACEOF
2766 # Keep a trace of the command line.
2767 # Strip out --no-create and --no-recursion so they do not pile up.
2768 # Strip out --silent because we don't want to record it for future runs.
2769 # Also quote any args containing shell meta-characters.
2770 # Make two passes to allow for proper duplicate-argument suppression.
2771 ac_configure_args=
2772 ac_configure_args0=
2773 ac_configure_args1=
2774 ac_must_keep_next=false
2775 for ac_pass in 1 2
2777 for ac_arg
2779 case $ac_arg in
2780 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2782 | -silent | --silent | --silen | --sile | --sil)
2783 continue ;;
2784 *\'*)
2785 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2786 esac
2787 case $ac_pass in
2788 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2790 as_fn_append ac_configure_args1 " '$ac_arg'"
2791 if test $ac_must_keep_next = true; then
2792 ac_must_keep_next=false # Got value, back to normal.
2793 else
2794 case $ac_arg in
2795 *=* | --config-cache | -C | -disable-* | --disable-* \
2796 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2797 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2798 | -with-* | --with-* | -without-* | --without-* | --x)
2799 case "$ac_configure_args0 " in
2800 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2801 esac
2803 -* ) ac_must_keep_next=true ;;
2804 esac
2806 as_fn_append ac_configure_args " '$ac_arg'"
2808 esac
2809 done
2810 done
2811 { ac_configure_args0=; unset ac_configure_args0;}
2812 { ac_configure_args1=; unset ac_configure_args1;}
2814 # When interrupted or exit'd, cleanup temporary files, and complete
2815 # config.log. We remove comments because anyway the quotes in there
2816 # would cause problems or look ugly.
2817 # WARNING: Use '\'' to represent an apostrophe within the trap.
2818 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2819 trap 'exit_status=$?
2820 # Save into config.log some information that might help in debugging.
2822 echo
2824 $as_echo "## ---------------- ##
2825 ## Cache variables. ##
2826 ## ---------------- ##"
2827 echo
2828 # The following way of writing the cache mishandles newlines in values,
2830 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2831 eval ac_val=\$$ac_var
2832 case $ac_val in #(
2833 *${as_nl}*)
2834 case $ac_var in #(
2835 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2836 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2837 esac
2838 case $ac_var in #(
2839 _ | IFS | as_nl) ;; #(
2840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2841 *) { eval $ac_var=; unset $ac_var;} ;;
2842 esac ;;
2843 esac
2844 done
2845 (set) 2>&1 |
2846 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2847 *${as_nl}ac_space=\ *)
2848 sed -n \
2849 "s/'\''/'\''\\\\'\'''\''/g;
2850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2851 ;; #(
2853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2855 esac |
2856 sort
2858 echo
2860 $as_echo "## ----------------- ##
2861 ## Output variables. ##
2862 ## ----------------- ##"
2863 echo
2864 for ac_var in $ac_subst_vars
2866 eval ac_val=\$$ac_var
2867 case $ac_val in
2868 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2869 esac
2870 $as_echo "$ac_var='\''$ac_val'\''"
2871 done | sort
2872 echo
2874 if test -n "$ac_subst_files"; then
2875 $as_echo "## ------------------- ##
2876 ## File substitutions. ##
2877 ## ------------------- ##"
2878 echo
2879 for ac_var in $ac_subst_files
2881 eval ac_val=\$$ac_var
2882 case $ac_val in
2883 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2884 esac
2885 $as_echo "$ac_var='\''$ac_val'\''"
2886 done | sort
2887 echo
2890 if test -s confdefs.h; then
2891 $as_echo "## ----------- ##
2892 ## confdefs.h. ##
2893 ## ----------- ##"
2894 echo
2895 cat confdefs.h
2896 echo
2898 test "$ac_signal" != 0 &&
2899 $as_echo "$as_me: caught signal $ac_signal"
2900 $as_echo "$as_me: exit $exit_status"
2901 } >&5
2902 rm -f core *.core core.conftest.* &&
2903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2904 exit $exit_status
2906 for ac_signal in 1 2 13 15; do
2907 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2908 done
2909 ac_signal=0
2911 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2912 rm -f -r conftest* confdefs.h
2914 $as_echo "/* confdefs.h */" > confdefs.h
2916 # Predefined preprocessor variables.
2918 cat >>confdefs.h <<_ACEOF
2919 #define PACKAGE_NAME "$PACKAGE_NAME"
2920 _ACEOF
2922 cat >>confdefs.h <<_ACEOF
2923 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2924 _ACEOF
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2928 _ACEOF
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE_STRING "$PACKAGE_STRING"
2932 _ACEOF
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2936 _ACEOF
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE_URL "$PACKAGE_URL"
2940 _ACEOF
2943 # Let the site file select an alternate cache file if it wants to.
2944 # Prefer an explicitly selected file to automatically selected ones.
2945 ac_site_file1=NONE
2946 ac_site_file2=NONE
2947 if test -n "$CONFIG_SITE"; then
2948 # We do not want a PATH search for config.site.
2949 case $CONFIG_SITE in #((
2950 -*) ac_site_file1=./$CONFIG_SITE;;
2951 */*) ac_site_file1=$CONFIG_SITE;;
2952 *) ac_site_file1=./$CONFIG_SITE;;
2953 esac
2954 elif test "x$prefix" != xNONE; then
2955 ac_site_file1=$prefix/share/config.site
2956 ac_site_file2=$prefix/etc/config.site
2957 else
2958 ac_site_file1=$ac_default_prefix/share/config.site
2959 ac_site_file2=$ac_default_prefix/etc/config.site
2961 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2963 test "x$ac_site_file" = xNONE && continue
2964 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2966 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2967 sed 's/^/| /' "$ac_site_file" >&5
2968 . "$ac_site_file" \
2969 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 as_fn_error $? "failed to load site script $ac_site_file
2972 See \`config.log' for more details" "$LINENO" 5; }
2974 done
2976 if test -r "$cache_file"; then
2977 # Some versions of bash will fail to source /dev/null (special files
2978 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2979 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2981 $as_echo "$as_me: loading cache $cache_file" >&6;}
2982 case $cache_file in
2983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2984 *) . "./$cache_file";;
2985 esac
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2989 $as_echo "$as_me: creating cache $cache_file" >&6;}
2990 >$cache_file
2993 # Check that the precious variables saved in the cache have kept the same
2994 # value.
2995 ac_cache_corrupted=false
2996 for ac_var in $ac_precious_vars; do
2997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2998 eval ac_new_set=\$ac_env_${ac_var}_set
2999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3000 eval ac_new_val=\$ac_env_${ac_var}_value
3001 case $ac_old_set,$ac_new_set in
3002 set,)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3004 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3005 ac_cache_corrupted=: ;;
3006 ,set)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3008 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3009 ac_cache_corrupted=: ;;
3010 ,);;
3012 if test "x$ac_old_val" != "x$ac_new_val"; then
3013 # differences in whitespace do not lead to failure.
3014 ac_old_val_w=`echo x $ac_old_val`
3015 ac_new_val_w=`echo x $ac_new_val`
3016 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3018 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3019 ac_cache_corrupted=:
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3022 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3023 eval $ac_var=\$ac_old_val
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3026 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3028 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3029 fi;;
3030 esac
3031 # Pass precious variables to config.status.
3032 if test "$ac_new_set" = set; then
3033 case $ac_new_val in
3034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3035 *) ac_arg=$ac_var=$ac_new_val ;;
3036 esac
3037 case " $ac_configure_args " in
3038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3039 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3040 esac
3042 done
3043 if $ac_cache_corrupted; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3047 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3048 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3050 ## -------------------- ##
3051 ## Main body of script. ##
3052 ## -------------------- ##
3054 ac_ext=c
3055 ac_cpp='$CPP $CPPFLAGS'
3056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 ac_config_headers="$ac_config_headers include/config.h"
3064 ac_aux_dir=
3065 for ac_dir in tools "$srcdir"/tools; do
3066 if test -f "$ac_dir/install-sh"; then
3067 ac_aux_dir=$ac_dir
3068 ac_install_sh="$ac_aux_dir/install-sh -c"
3069 break
3070 elif test -f "$ac_dir/install.sh"; then
3071 ac_aux_dir=$ac_dir
3072 ac_install_sh="$ac_aux_dir/install.sh -c"
3073 break
3074 elif test -f "$ac_dir/shtool"; then
3075 ac_aux_dir=$ac_dir
3076 ac_install_sh="$ac_aux_dir/shtool install -c"
3077 break
3079 done
3080 if test -z "$ac_aux_dir"; then
3081 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3084 # These three variables are undocumented and unsupported,
3085 # and are intended to be withdrawn in a future Autoconf release.
3086 # They can cause serious problems if a builder's source tree is in a directory
3087 # whose full name contains unusual characters.
3088 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3089 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3090 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5366 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5367 if test -z "$MKDIR_P"; then
5368 if ${ac_cv_path_mkdir+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_prog in mkdir gmkdir; do
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5379 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5380 'mkdir (GNU coreutils) '* | \
5381 'mkdir (coreutils) '* | \
5382 'mkdir (fileutils) '4.1*)
5383 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5384 break 3;;
5385 esac
5386 done
5387 done
5388 done
5389 IFS=$as_save_IFS
5393 test -d ./--version && rmdir ./--version
5394 if test "${ac_cv_path_mkdir+set}" = set; then
5395 MKDIR_P="$ac_cv_path_mkdir -p"
5396 else
5397 # As a last resort, use the slow shell script. Don't cache a
5398 # value for MKDIR_P within a source directory, because that will
5399 # break other packages using the cache if that directory is
5400 # removed, or if the value is a relative name.
5401 MKDIR_P="$ac_install_sh -d"
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5405 $as_echo "$MKDIR_P" >&6; }
5407 # Extract the first word of "ldconfig", so it can be a program name with args.
5408 set dummy ldconfig; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_path_LDCONFIG+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 case $LDCONFIG in
5415 [\\/]* | ?:[\\/]*)
5416 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in /sbin /usr/sbin $PATH
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5434 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5436 esac
5438 LDCONFIG=$ac_cv_path_LDCONFIG
5439 if test -n "$LDCONFIG"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5441 $as_echo "$LDCONFIG" >&6; }
5442 else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM="STRIPPROG=\"\$(STRIP)\" \$(top_srcdir)/tools/install-sh"
5450 # Find a good install program. We prefer a C program (faster),
5451 # so one script is as good as another. But avoid the broken or
5452 # incompatible versions:
5453 # SysV /etc/install, /usr/sbin/install
5454 # SunOS /usr/etc/install
5455 # IRIX /sbin/install
5456 # AIX /bin/install
5457 # AmigaOS /C/install, which installs bootblocks on floppy discs
5458 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5459 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5460 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5461 # OS/2's system install, which has a completely different semantic
5462 # ./install, which can be erroneously created by make from ./install.sh.
5463 # Reject install programs that cannot install multiple files.
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5465 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5466 if test -z "$INSTALL"; then
5467 if ${ac_cv_path_install+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 # Account for people who put trailing slashes in PATH elements.
5476 case $as_dir/ in #((
5477 ./ | .// | /[cC]/* | \
5478 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5479 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5480 /usr/ucb/* ) ;;
5482 # OSF1 and SCO ODT 3.0 have their own names for install.
5483 # Don't use installbsd from OSF since it installs stuff as root
5484 # by default.
5485 for ac_prog in ginstall scoinst install; do
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5488 if test $ac_prog = install &&
5489 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5490 # AIX install. It has an incompatible calling convention.
5492 elif test $ac_prog = install &&
5493 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5494 # program-specific install script used by HP pwplus--don't use.
5496 else
5497 rm -rf conftest.one conftest.two conftest.dir
5498 echo one > conftest.one
5499 echo two > conftest.two
5500 mkdir conftest.dir
5501 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5502 test -s conftest.one && test -s conftest.two &&
5503 test -s conftest.dir/conftest.one &&
5504 test -s conftest.dir/conftest.two
5505 then
5506 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5507 break 3
5511 done
5512 done
5514 esac
5516 done
5517 IFS=$as_save_IFS
5519 rm -rf conftest.one conftest.two conftest.dir
5522 if test "${ac_cv_path_install+set}" = set; then
5523 INSTALL=$ac_cv_path_install
5524 else
5525 # As a last resort, use the slow shell script. Don't cache a
5526 # value for INSTALL within a source directory, because that will
5527 # break other packages using the cache if that directory is
5528 # removed, or if the value is a relative name.
5529 INSTALL=$ac_install_sh
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5533 $as_echo "$INSTALL" >&6; }
5535 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5536 # It thinks the first close brace ends the variable substitution.
5537 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5539 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5541 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5544 for ac_prog in fontforge
5546 # Extract the first word of "$ac_prog", so it can be a program name with args.
5547 set dummy $ac_prog; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_prog_FONTFORGE+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 if test -n "$FONTFORGE"; then
5554 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563 ac_cv_prog_FONTFORGE="$ac_prog"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5567 done
5568 done
5569 IFS=$as_save_IFS
5573 FONTFORGE=$ac_cv_prog_FONTFORGE
5574 if test -n "$FONTFORGE"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5576 $as_echo "$FONTFORGE" >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5583 test -n "$FONTFORGE" && break
5584 done
5585 test -n "$FONTFORGE" || FONTFORGE="false"
5587 for ac_prog in rsvg
5589 # Extract the first word of "$ac_prog", so it can be a program name with args.
5590 set dummy $ac_prog; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_prog_RSVG+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if test -n "$RSVG"; then
5597 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_prog_RSVG="$ac_prog"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5610 done
5611 done
5612 IFS=$as_save_IFS
5616 RSVG=$ac_cv_prog_RSVG
5617 if test -n "$RSVG"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5619 $as_echo "$RSVG" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5626 test -n "$RSVG" && break
5627 done
5628 test -n "$RSVG" || RSVG="false"
5630 for ac_prog in convert
5632 # Extract the first word of "$ac_prog", so it can be a program name with args.
5633 set dummy $ac_prog; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if ${ac_cv_prog_CONVERT+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 if test -n "$CONVERT"; then
5640 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649 ac_cv_prog_CONVERT="$ac_prog"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5653 done
5654 done
5655 IFS=$as_save_IFS
5659 CONVERT=$ac_cv_prog_CONVERT
5660 if test -n "$CONVERT"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5662 $as_echo "$CONVERT" >&6; }
5663 else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5669 test -n "$CONVERT" && break
5670 done
5671 test -n "$CONVERT" || CONVERT="false"
5673 for ac_prog in icotool
5675 # Extract the first word of "$ac_prog", so it can be a program name with args.
5676 set dummy $ac_prog; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_ICOTOOL+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 if test -n "$ICOTOOL"; then
5683 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_ICOTOOL="$ac_prog"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5696 done
5697 done
5698 IFS=$as_save_IFS
5702 ICOTOOL=$ac_cv_prog_ICOTOOL
5703 if test -n "$ICOTOOL"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5705 $as_echo "$ICOTOOL" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5712 test -n "$ICOTOOL" && break
5713 done
5714 test -n "$ICOTOOL" || ICOTOOL="false"
5716 for ac_prog in msgfmt
5718 # Extract the first word of "$ac_prog", so it can be a program name with args.
5719 set dummy $ac_prog; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if ${ac_cv_prog_MSGFMT+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if test -n "$MSGFMT"; then
5726 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735 ac_cv_prog_MSGFMT="$ac_prog"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5739 done
5740 done
5741 IFS=$as_save_IFS
5745 MSGFMT=$ac_cv_prog_MSGFMT
5746 if test -n "$MSGFMT"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5748 $as_echo "$MSGFMT" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5755 test -n "$MSGFMT" && break
5756 done
5757 test -n "$MSGFMT" || MSGFMT="false"
5759 if test -n "$ac_tool_prefix"; then
5760 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5761 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test -n "$PKG_CONFIG"; then
5768 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5781 done
5782 done
5783 IFS=$as_save_IFS
5787 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5788 if test -n "$PKG_CONFIG"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5790 $as_echo "$PKG_CONFIG" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5798 if test -n "$ac_cv_prog_PKG_CONFIG"; then
5799 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
5800 elif test "$cross_compiling" != yes; then
5801 unset ac_cv_prog_PKG_CONFIG
5802 # Extract the first word of "pkg-config", so it can be a program name with args.
5803 set dummy pkg-config; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if test -n "$PKG_CONFIG"; then
5810 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_PKG_CONFIG="pkg-config"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5823 done
5824 done
5825 IFS=$as_save_IFS
5829 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5830 if test -n "$PKG_CONFIG"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5832 $as_echo "$PKG_CONFIG" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5841 if test "x$enable_maintainer_mode" != "xyes"
5842 then
5843 MAINTAINER_MODE=\#
5845 else
5846 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5847 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5848 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5850 if test "$CONVERT" = false
5851 then
5852 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5853 else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5855 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5856 convert_version=`convert --version | head -n1`
5857 if test "x$convert_version" != "x"
5858 then
5859 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5860 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5861 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5862 then
5863 CONVERT=false
5866 if test "$CONVERT" = false
5867 then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5869 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5870 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5871 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5873 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5877 if test "$ICOTOOL" = false
5878 then
5879 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5882 $as_echo_n "checking for recent enough icotool... " >&6; }
5883 icotool_version=`icotool --version | head -n1`
5884 if test "x$icotool_version" != "x"
5885 then
5886 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5887 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5888 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5889 then
5890 ICOTOOL=false
5891 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5894 if test "$ICOTOOL" = false
5895 then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5897 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5898 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5901 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5905 with_gettext=yes
5906 with_gettextpo=yes
5907 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5910 test "x$with_gettext" != xno || MSGFMT=false
5911 if test "$MSGFMT" != "false"
5912 then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5914 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5915 cat >conftest.po <<EOF
5916 # comment
5917 msgctxt "ctxt"
5918 msgid "id"
5919 msgstr "str"
5921 if $MSGFMT -o /dev/null conftest.po 2>&5
5922 then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5924 $as_echo "yes" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5928 MSGFMT=false
5931 if test "$MSGFMT" = false; then :
5932 case "x$with_gettext" in
5933 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5934 xno) ;;
5935 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5936 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5937 esac
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5942 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5943 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 ac_check_lib_save_LIBS=$LIBS
5947 LIBS="-li386 $LIBS"
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5951 /* Override any GCC internal prototype to avoid an error.
5952 Use char because int might match the return type of a GCC
5953 builtin and then its argument prototype would still apply. */
5954 #ifdef __cplusplus
5955 extern "C"
5956 #endif
5957 char i386_set_ldt ();
5959 main ()
5961 return i386_set_ldt ();
5963 return 0;
5965 _ACEOF
5966 if ac_fn_c_try_link "$LINENO"; then :
5967 ac_cv_lib_i386_i386_set_ldt=yes
5968 else
5969 ac_cv_lib_i386_i386_set_ldt=no
5971 rm -f core conftest.err conftest.$ac_objext \
5972 conftest$ac_exeext conftest.$ac_ext
5973 LIBS=$ac_check_lib_save_LIBS
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5976 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5977 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5978 cat >>confdefs.h <<_ACEOF
5979 #define HAVE_LIBI386 1
5980 _ACEOF
5982 LIBS="-li386 $LIBS"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5987 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5988 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 ac_check_lib_save_LIBS=$LIBS
5992 LIBS="-lossaudio $LIBS"
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5996 /* Override any GCC internal prototype to avoid an error.
5997 Use char because int might match the return type of a GCC
5998 builtin and then its argument prototype would still apply. */
5999 #ifdef __cplusplus
6000 extern "C"
6001 #endif
6002 char _oss_ioctl ();
6004 main ()
6006 return _oss_ioctl ();
6008 return 0;
6010 _ACEOF
6011 if ac_fn_c_try_link "$LINENO"; then :
6012 ac_cv_lib_ossaudio__oss_ioctl=yes
6013 else
6014 ac_cv_lib_ossaudio__oss_ioctl=no
6016 rm -f core conftest.err conftest.$ac_objext \
6017 conftest$ac_exeext conftest.$ac_ext
6018 LIBS=$ac_check_lib_save_LIBS
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6021 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6022 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6023 cat >>confdefs.h <<_ACEOF
6024 #define HAVE_LIBOSSAUDIO 1
6025 _ACEOF
6027 LIBS="-lossaudio $LIBS"
6032 XLIB=""
6034 OPENGL_LIBS=""
6038 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
6040 # Check whether --enable-largefile was given.
6041 if test "${enable_largefile+set}" = set; then :
6042 enableval=$enable_largefile;
6045 if test "$enable_largefile" != no; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6048 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6049 if ${ac_cv_sys_largefile_CC+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 ac_cv_sys_largefile_CC=no
6053 if test "$GCC" != yes; then
6054 ac_save_CC=$CC
6055 while :; do
6056 # IRIX 6.2 and later do not support large files by default,
6057 # so use the C compiler's -n32 option if that helps.
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 #include <sys/types.h>
6061 /* Check that off_t can represent 2**63 - 1 correctly.
6062 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6063 since some C++ compilers masquerading as C compilers
6064 incorrectly reject 9223372036854775807. */
6065 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6067 && LARGE_OFF_T % 2147483647 == 1)
6068 ? 1 : -1];
6070 main ()
6074 return 0;
6076 _ACEOF
6077 if ac_fn_c_try_compile "$LINENO"; then :
6078 break
6080 rm -f core conftest.err conftest.$ac_objext
6081 CC="$CC -n32"
6082 if ac_fn_c_try_compile "$LINENO"; then :
6083 ac_cv_sys_largefile_CC=' -n32'; break
6085 rm -f core conftest.err conftest.$ac_objext
6086 break
6087 done
6088 CC=$ac_save_CC
6089 rm -f conftest.$ac_ext
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6093 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6094 if test "$ac_cv_sys_largefile_CC" != no; then
6095 CC=$CC$ac_cv_sys_largefile_CC
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6099 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6100 if ${ac_cv_sys_file_offset_bits+:} false; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103 while :; do
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 #include <sys/types.h>
6107 /* Check that off_t can represent 2**63 - 1 correctly.
6108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6109 since some C++ compilers masquerading as C compilers
6110 incorrectly reject 9223372036854775807. */
6111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6113 && LARGE_OFF_T % 2147483647 == 1)
6114 ? 1 : -1];
6116 main ()
6120 return 0;
6122 _ACEOF
6123 if ac_fn_c_try_compile "$LINENO"; then :
6124 ac_cv_sys_file_offset_bits=no; break
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 #define _FILE_OFFSET_BITS 64
6130 #include <sys/types.h>
6131 /* Check that off_t can represent 2**63 - 1 correctly.
6132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6133 since some C++ compilers masquerading as C compilers
6134 incorrectly reject 9223372036854775807. */
6135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6137 && LARGE_OFF_T % 2147483647 == 1)
6138 ? 1 : -1];
6140 main ()
6144 return 0;
6146 _ACEOF
6147 if ac_fn_c_try_compile "$LINENO"; then :
6148 ac_cv_sys_file_offset_bits=64; break
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 ac_cv_sys_file_offset_bits=unknown
6152 break
6153 done
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6156 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6157 case $ac_cv_sys_file_offset_bits in #(
6158 no | unknown) ;;
6160 cat >>confdefs.h <<_ACEOF
6161 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6162 _ACEOF
6164 esac
6165 rm -rf conftest*
6166 if test $ac_cv_sys_file_offset_bits = unknown; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6168 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6169 if ${ac_cv_sys_large_files+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 while :; do
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 #include <sys/types.h>
6176 /* Check that off_t can represent 2**63 - 1 correctly.
6177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6178 since some C++ compilers masquerading as C compilers
6179 incorrectly reject 9223372036854775807. */
6180 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6182 && LARGE_OFF_T % 2147483647 == 1)
6183 ? 1 : -1];
6185 main ()
6189 return 0;
6191 _ACEOF
6192 if ac_fn_c_try_compile "$LINENO"; then :
6193 ac_cv_sys_large_files=no; break
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 #define _LARGE_FILES 1
6199 #include <sys/types.h>
6200 /* Check that off_t can represent 2**63 - 1 correctly.
6201 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6202 since some C++ compilers masquerading as C compilers
6203 incorrectly reject 9223372036854775807. */
6204 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6205 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6206 && LARGE_OFF_T % 2147483647 == 1)
6207 ? 1 : -1];
6209 main ()
6213 return 0;
6215 _ACEOF
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217 ac_cv_sys_large_files=1; break
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 ac_cv_sys_large_files=unknown
6221 break
6222 done
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6225 $as_echo "$ac_cv_sys_large_files" >&6; }
6226 case $ac_cv_sys_large_files in #(
6227 no | unknown) ;;
6229 cat >>confdefs.h <<_ACEOF
6230 #define _LARGE_FILES $ac_cv_sys_large_files
6231 _ACEOF
6233 esac
6234 rm -rf conftest*
6241 ac_ext=c
6242 ac_cpp='$CPP $CPPFLAGS'
6243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6247 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6248 # On Suns, sometimes $CPP names a directory.
6249 if test -n "$CPP" && test -d "$CPP"; then
6250 CPP=
6252 if test -z "$CPP"; then
6253 if ${ac_cv_prog_CPP+:} false; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 # Double quotes because CPP needs to be expanded
6257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6259 ac_preproc_ok=false
6260 for ac_c_preproc_warn_flag in '' yes
6262 # Use a header file that comes with gcc, so configuring glibc
6263 # with a fresh cross-compiler works.
6264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6265 # <limits.h> exists even on freestanding compilers.
6266 # On the NeXT, cc -E runs the code through the compiler's parser,
6267 # not just through cpp. "Syntax error" is here to catch this case.
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 #ifdef __STDC__
6271 # include <limits.h>
6272 #else
6273 # include <assert.h>
6274 #endif
6275 Syntax error
6276 _ACEOF
6277 if ac_fn_c_try_cpp "$LINENO"; then :
6279 else
6280 # Broken: fails on valid input.
6281 continue
6283 rm -f conftest.err conftest.i conftest.$ac_ext
6285 # OK, works on sane cases. Now check whether nonexistent headers
6286 # can be detected and how.
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 #include <ac_nonexistent.h>
6290 _ACEOF
6291 if ac_fn_c_try_cpp "$LINENO"; then :
6292 # Broken: success on invalid input.
6293 continue
6294 else
6295 # Passes both tests.
6296 ac_preproc_ok=:
6297 break
6299 rm -f conftest.err conftest.i conftest.$ac_ext
6301 done
6302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6303 rm -f conftest.i conftest.err conftest.$ac_ext
6304 if $ac_preproc_ok; then :
6305 break
6308 done
6309 ac_cv_prog_CPP=$CPP
6312 CPP=$ac_cv_prog_CPP
6313 else
6314 ac_cv_prog_CPP=$CPP
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6317 $as_echo "$CPP" >&6; }
6318 ac_preproc_ok=false
6319 for ac_c_preproc_warn_flag in '' yes
6321 # Use a header file that comes with gcc, so configuring glibc
6322 # with a fresh cross-compiler works.
6323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6324 # <limits.h> exists even on freestanding compilers.
6325 # On the NeXT, cc -E runs the code through the compiler's parser,
6326 # not just through cpp. "Syntax error" is here to catch this case.
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 #ifdef __STDC__
6330 # include <limits.h>
6331 #else
6332 # include <assert.h>
6333 #endif
6334 Syntax error
6335 _ACEOF
6336 if ac_fn_c_try_cpp "$LINENO"; then :
6338 else
6339 # Broken: fails on valid input.
6340 continue
6342 rm -f conftest.err conftest.i conftest.$ac_ext
6344 # OK, works on sane cases. Now check whether nonexistent headers
6345 # can be detected and how.
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 #include <ac_nonexistent.h>
6349 _ACEOF
6350 if ac_fn_c_try_cpp "$LINENO"; then :
6351 # Broken: success on invalid input.
6352 continue
6353 else
6354 # Passes both tests.
6355 ac_preproc_ok=:
6356 break
6358 rm -f conftest.err conftest.i conftest.$ac_ext
6360 done
6361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6362 rm -f conftest.i conftest.err conftest.$ac_ext
6363 if $ac_preproc_ok; then :
6365 else
6366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6368 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6369 See \`config.log' for more details" "$LINENO" 5; }
6372 ac_ext=c
6373 ac_cpp='$CPP $CPPFLAGS'
6374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6380 $as_echo_n "checking for ANSI C header files... " >&6; }
6381 if ${ac_cv_header_stdc+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 #include <stdlib.h>
6387 #include <stdarg.h>
6388 #include <string.h>
6389 #include <float.h>
6392 main ()
6396 return 0;
6398 _ACEOF
6399 if ac_fn_c_try_compile "$LINENO"; then :
6400 ac_cv_header_stdc=yes
6401 else
6402 ac_cv_header_stdc=no
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 if test $ac_cv_header_stdc = yes; then
6407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 #include <string.h>
6412 _ACEOF
6413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6414 $EGREP "memchr" >/dev/null 2>&1; then :
6416 else
6417 ac_cv_header_stdc=no
6419 rm -f conftest*
6423 if test $ac_cv_header_stdc = yes; then
6424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 #include <stdlib.h>
6429 _ACEOF
6430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431 $EGREP "free" >/dev/null 2>&1; then :
6433 else
6434 ac_cv_header_stdc=no
6436 rm -f conftest*
6440 if test $ac_cv_header_stdc = yes; then
6441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6442 if test "$cross_compiling" = yes; then :
6444 else
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 #include <ctype.h>
6448 #include <stdlib.h>
6449 #if ((' ' & 0x0FF) == 0x020)
6450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6452 #else
6453 # define ISLOWER(c) \
6454 (('a' <= (c) && (c) <= 'i') \
6455 || ('j' <= (c) && (c) <= 'r') \
6456 || ('s' <= (c) && (c) <= 'z'))
6457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6458 #endif
6460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6462 main ()
6464 int i;
6465 for (i = 0; i < 256; i++)
6466 if (XOR (islower (i), ISLOWER (i))
6467 || toupper (i) != TOUPPER (i))
6468 return 2;
6469 return 0;
6471 _ACEOF
6472 if ac_fn_c_try_run "$LINENO"; then :
6474 else
6475 ac_cv_header_stdc=no
6477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6478 conftest.$ac_objext conftest.beam conftest.$ac_ext
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6484 $as_echo "$ac_cv_header_stdc" >&6; }
6485 if test $ac_cv_header_stdc = yes; then
6487 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6491 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6492 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6493 inttypes.h stdint.h unistd.h
6494 do :
6495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6496 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6498 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6499 cat >>confdefs.h <<_ACEOF
6500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 _ACEOF
6505 done
6508 for ac_header in \
6509 AL/al.h \
6510 ApplicationServices/ApplicationServices.h \
6511 AudioToolbox/AudioConverter.h \
6512 AudioUnit/AudioUnit.h \
6513 AudioUnit/AudioComponent.h \
6514 CL/cl.h \
6515 Carbon/Carbon.h \
6516 CoreAudio/CoreAudio.h \
6517 CoreServices/CoreServices.h \
6518 DiskArbitration/DiskArbitration.h \
6519 IOKit/IOKitLib.h \
6520 IOKit/hid/IOHIDLib.h \
6521 OpenAL/al.h \
6522 OpenCL/opencl.h \
6523 QuickTime/ImageCompression.h \
6524 Security/Security.h \
6525 alias.h \
6526 alsa/asoundlib.h \
6527 arpa/inet.h \
6528 arpa/nameser.h \
6529 asm/types.h \
6530 asm/user.h \
6531 curses.h \
6532 direct.h \
6533 dirent.h \
6534 dlfcn.h \
6535 elf.h \
6536 float.h \
6537 fnmatch.h \
6538 fontconfig/fontconfig.h \
6539 getopt.h \
6540 gettext-po.h \
6541 grp.h \
6542 gsm.h \
6543 gsm/gsm.h \
6544 ieeefp.h \
6545 inet/mib2.h \
6546 io.h \
6547 kstat.h \
6548 lber.h \
6549 ldap.h \
6550 libproc.h \
6551 link.h \
6552 linux/cdrom.h \
6553 linux/compiler.h \
6554 linux/filter.h \
6555 linux/hdreg.h \
6556 linux/input.h \
6557 linux/ioctl.h \
6558 linux/joystick.h \
6559 linux/major.h \
6560 linux/param.h \
6561 linux/serial.h \
6562 linux/types.h \
6563 linux/ucdrom.h \
6564 lwp.h \
6565 mach-o/nlist.h \
6566 mach-o/loader.h \
6567 mach/mach.h \
6568 mach/machine.h \
6569 machine/cpu.h \
6570 machine/limits.h \
6571 machine/sysarch.h \
6572 mntent.h \
6573 ncurses.h \
6574 netdb.h \
6575 netinet/in.h \
6576 netinet/in_systm.h \
6577 netinet/tcp.h \
6578 netinet/tcp_fsm.h \
6579 poll.h \
6580 port.h \
6581 process.h \
6582 pthread.h \
6583 pwd.h \
6584 sched.h \
6585 scsi/scsi.h \
6586 scsi/scsi_ioctl.h \
6587 scsi/sg.h \
6588 stdbool.h \
6589 stdint.h \
6590 stropts.h \
6591 sys/asoundlib.h \
6592 sys/attr.h \
6593 sys/cdio.h \
6594 sys/elf32.h \
6595 sys/epoll.h \
6596 sys/event.h \
6597 sys/exec_elf.h \
6598 sys/filio.h \
6599 sys/inotify.h \
6600 sys/ioctl.h \
6601 sys/ipc.h \
6602 sys/limits.h \
6603 sys/link.h \
6604 sys/mman.h \
6605 sys/modem.h \
6606 sys/msg.h \
6607 sys/mtio.h \
6608 sys/param.h \
6609 sys/poll.h \
6610 sys/prctl.h \
6611 sys/protosw.h \
6612 sys/ptrace.h \
6613 sys/queue.h \
6614 sys/resource.h \
6615 sys/scsiio.h \
6616 sys/shm.h \
6617 sys/signal.h \
6618 sys/socket.h \
6619 sys/socketvar.h \
6620 sys/sockio.h \
6621 sys/statvfs.h \
6622 sys/strtio.h \
6623 sys/syscall.h \
6624 sys/tihdr.h \
6625 sys/time.h \
6626 sys/timeout.h \
6627 sys/times.h \
6628 sys/uio.h \
6629 sys/user.h \
6630 sys/utsname.h \
6631 sys/vm86.h \
6632 sys/wait.h \
6633 syscall.h \
6634 termios.h \
6635 unistd.h \
6636 utime.h \
6637 valgrind/memcheck.h \
6638 valgrind/valgrind.h \
6639 zlib.h
6641 do :
6642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6643 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6644 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6645 cat >>confdefs.h <<_ACEOF
6646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6647 _ACEOF
6651 done
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6654 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6655 if ${ac_cv_header_stat_broken+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660 #include <sys/types.h>
6661 #include <sys/stat.h>
6663 #if defined S_ISBLK && defined S_IFDIR
6664 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6665 #endif
6667 #if defined S_ISBLK && defined S_IFCHR
6668 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6669 #endif
6671 #if defined S_ISLNK && defined S_IFREG
6672 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6673 #endif
6675 #if defined S_ISSOCK && defined S_IFREG
6676 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6677 #endif
6679 _ACEOF
6680 if ac_fn_c_try_compile "$LINENO"; then :
6681 ac_cv_header_stat_broken=no
6682 else
6683 ac_cv_header_stat_broken=yes
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6688 $as_echo "$ac_cv_header_stat_broken" >&6; }
6689 if test $ac_cv_header_stat_broken = yes; then
6691 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6697 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6698 do :
6699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6700 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6701 #ifdef HAVE_SYS_PARAM_H
6702 # include <sys/param.h>
6703 #endif
6705 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6706 cat >>confdefs.h <<_ACEOF
6707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6708 _ACEOF
6712 done
6715 for ac_header in \
6716 netinet/ip.h \
6717 net/if.h \
6718 net/if_arp.h \
6719 net/if_dl.h \
6720 net/if_types.h \
6721 net/route.h \
6722 netinet/if_ether.h \
6723 netinet/if_inarp.h \
6724 netinet/in_pcb.h \
6725 netinet/ip_icmp.h \
6726 netinet/ip_var.h \
6727 netinet/udp.h \
6728 netipx/ipx.h \
6729 sys/un.h \
6731 do :
6732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6733 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6734 #ifdef HAVE_SYS_SOCKET_H
6735 # include <sys/socket.h>
6736 #endif
6737 #ifdef HAVE_SYS_SOCKETVAR_H
6738 # include <sys/socketvar.h>
6739 #endif
6740 #ifdef HAVE_NET_ROUTE_H
6741 # include <net/route.h>
6742 #endif
6743 #ifdef HAVE_NETINET_IN_H
6744 # include <netinet/in.h>
6745 #endif
6746 #ifdef HAVE_NETINET_IN_SYSTM_H
6747 # include <netinet/in_systm.h>
6748 #endif
6749 #ifdef HAVE_NET_IF_H
6750 # include <net/if.h>
6751 #endif
6752 #ifdef HAVE_NETINET_IP_H
6753 # include <netinet/ip.h>
6754 #endif
6756 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6757 cat >>confdefs.h <<_ACEOF
6758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6759 _ACEOF
6763 done
6766 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6767 do :
6768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6769 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6770 #ifdef HAVE_ALIAS_H
6771 # include <alias.h>
6772 #endif
6773 #ifdef HAVE_SYS_SOCKET_H
6774 # include <sys/socket.h>
6775 #endif
6776 #ifdef HAVE_SYS_SOCKETVAR_H
6777 # include <sys/socketvar.h>
6778 #endif
6779 #ifdef HAVE_SYS_TIMEOUT_H
6780 # include <sys/timeout.h>
6781 #endif
6782 #ifdef HAVE_NETINET_IN_H
6783 # include <netinet/in.h>
6784 #endif
6785 #ifdef HAVE_NETINET_IN_SYSTM_H
6786 # include <netinet/in_systm.h>
6787 #endif
6788 #ifdef HAVE_NETINET_IP_H
6789 # include <netinet/ip.h>
6790 #endif
6791 #ifdef HAVE_NETINET_IP_VAR_H
6792 # include <netinet/ip_var.h>
6793 #endif
6794 #ifdef HAVE_NETINET_IP_ICMP_H
6795 # include <netinet/ip_icmp.h>
6796 #endif
6797 #ifdef HAVE_NETINET_UDP_H
6798 # include <netinet/udp.h>
6799 #endif
6800 #ifdef HAVE_NETINET_TCP_H
6801 # include <netinet/tcp.h>
6802 #endif
6803 #ifdef HAVE_NETINET_TCP_TIMER_H
6804 #include <netinet/tcp_timer.h>
6805 #endif
6807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6808 cat >>confdefs.h <<_ACEOF
6809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6810 _ACEOF
6814 done
6817 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6818 do :
6819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6820 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6821 #ifdef HAVE_ASM_TYPES_H
6822 # include <asm/types.h>
6823 #endif
6824 #ifdef HAVE_SYS_SOCKET_H
6825 # include <sys/socket.h>
6826 #endif
6827 #ifdef HAVE_LINUX_TYPES_H
6828 # include <linux/types.h>
6829 #endif
6831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6832 cat >>confdefs.h <<_ACEOF
6833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6834 _ACEOF
6838 done
6841 for ac_header in mach-o/dyld_images.h
6842 do :
6843 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6844 # include <stdbool.h>
6845 #endif
6846 #ifdef HAVE_STDINT_H
6847 # include <stdint.h>
6848 #endif
6850 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6851 cat >>confdefs.h <<_ACEOF
6852 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6853 _ACEOF
6857 done
6860 for ac_header in resolv.h
6861 do :
6862 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6863 #ifdef HAVE_SYS_SOCKET_H
6864 # include <sys/socket.h>
6865 #endif
6866 #ifdef HAVE_NETINET_IN_H
6867 # include <netinet/in.h>
6868 #endif
6869 #ifdef HAVE_ARPA_NAMESER_H
6870 # include <arpa/nameser.h>
6871 #endif
6873 if test "x$ac_cv_header_resolv_h" = xyes; then :
6874 cat >>confdefs.h <<_ACEOF
6875 #define HAVE_RESOLV_H 1
6876 _ACEOF
6880 done
6883 for ac_header in ifaddrs.h
6884 do :
6885 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6887 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6888 cat >>confdefs.h <<_ACEOF
6889 #define HAVE_IFADDRS_H 1
6890 _ACEOF
6894 done
6897 for ac_header in ucontext.h
6898 do :
6899 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6901 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6902 cat >>confdefs.h <<_ACEOF
6903 #define HAVE_UCONTEXT_H 1
6904 _ACEOF
6908 done
6911 for ac_header in sys/thr.h
6912 do :
6913 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6914 #ifdef HAVE_UCONTEXT_H
6915 #include <ucontext.h>
6916 #endif
6918 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6919 cat >>confdefs.h <<_ACEOF
6920 #define HAVE_SYS_THR_H 1
6921 _ACEOF
6925 done
6928 for ac_header in pthread_np.h
6929 do :
6930 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6931 #include <pthread.h>
6932 #endif
6934 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6935 cat >>confdefs.h <<_ACEOF
6936 #define HAVE_PTHREAD_NP_H 1
6937 _ACEOF
6941 done
6944 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6945 do :
6946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6947 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6948 #include <sys/time.h>
6949 #endif
6950 #include <sys/types.h>
6951 #ifdef HAVE_ASM_TYPES_H
6952 #include <asm/types.h>
6953 #endif
6955 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6956 cat >>confdefs.h <<_ACEOF
6957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6958 _ACEOF
6962 done
6965 for ac_header in libprocstat.h
6966 do :
6967 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6968 #include <sys/param.h>
6969 #endif
6970 #ifdef HAVE_SYS_QUEUE_H
6971 #include <sys/queue.h>
6972 #endif
6973 #ifdef HAVE_SYS_SOCKET_H
6974 #include <sys/socket.h>
6975 #endif
6977 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6978 cat >>confdefs.h <<_ACEOF
6979 #define HAVE_LIBPROCSTAT_H 1
6980 _ACEOF
6984 done
6988 dlldir="\${libdir}/wine"
6990 DLLPREFIX=""
6992 DLLFLAGS="-D_REENTRANT"
6994 IMPLIBEXT="def"
6996 LDRPATH_INSTALL=""
6998 LDRPATH_LOCAL=""
7000 LIBEXT="so"
7001 DLLEXT=".so"
7002 STATIC_IMPLIBEXT="def.a"
7003 # Extract the first word of "ldd", so it can be a program name with args.
7004 set dummy ldd; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_path_LDD+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 case $LDD in
7011 [\\/]* | ?:[\\/]*)
7012 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 as_dummy="/sbin:/usr/sbin:$PATH"
7017 for as_dir in $as_dummy
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7027 done
7028 done
7029 IFS=$as_save_IFS
7031 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
7033 esac
7035 LDD=$ac_cv_path_LDD
7036 if test -n "$LDD"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
7038 $as_echo "$LDD" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7045 if test -n "$ac_tool_prefix"; then
7046 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
7047 set dummy ${ac_tool_prefix}readelf; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_READELF+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$READELF"; then
7054 ac_cv_prog_READELF="$READELF" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7067 done
7068 done
7069 IFS=$as_save_IFS
7073 READELF=$ac_cv_prog_READELF
7074 if test -n "$READELF"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
7076 $as_echo "$READELF" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7084 if test -z "$ac_cv_prog_READELF"; then
7085 ac_ct_READELF=$READELF
7086 # Extract the first word of "readelf", so it can be a program name with args.
7087 set dummy readelf; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 if test -n "$ac_ct_READELF"; then
7094 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103 ac_cv_prog_ac_ct_READELF="readelf"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7107 done
7108 done
7109 IFS=$as_save_IFS
7113 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7114 if test -n "$ac_ct_READELF"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7116 $as_echo "$ac_ct_READELF" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7122 if test "x$ac_ct_READELF" = x; then
7123 READELF="true"
7124 else
7125 case $cross_compiling:$ac_tool_warned in
7126 yes:)
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7129 ac_tool_warned=yes ;;
7130 esac
7131 READELF=$ac_ct_READELF
7133 else
7134 READELF="$ac_cv_prog_READELF"
7138 wine_binary="wine"
7139 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7141 wine_rules_file=conf$$rules.make
7142 rm -f $wine_rules_file
7143 ALL_POT_FILES=""
7144 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7145 ALL_TEST_RESOURCES=""
7148 wine_fn_append_file ()
7150 as_fn_append $1 " \\$as_nl $2"
7153 wine_fn_ignore_file ()
7155 case "$1" in
7156 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7157 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7158 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7159 esac
7162 wine_fn_append_rule ()
7164 $as_echo "$1" >>$wine_rules_file
7167 wine_fn_has_flag ()
7169 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7172 wine_fn_depend_rules ()
7174 ac_alldeps=$1
7175 ac_makedep="\$(MAKEDEP)"
7176 ac_input=Make.vars.in:$ac_dir/Makefile.in
7177 case $1 in
7178 *.in)
7179 ac_input=$ac_input:$1
7180 test "$srcdir" = . || ac_alldeps="$srcdir/$ac_alldeps" ;;
7182 ac_makedep="$1 $ac_makedep" ;;
7183 esac
7185 wine_fn_append_rule \
7186 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status $ac_alldeps \$(MAKEDEP)
7187 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
7188 depend: $ac_dir/depend
7189 .PHONY: $ac_dir/depend
7190 $ac_dir/depend: $ac_makedep dummy
7191 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
7194 wine_fn_pot_rules ()
7196 test "x$with_gettextpo" = xyes || return
7198 if wine_fn_has_flag mc
7199 then
7200 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7201 wine_fn_append_rule \
7202 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7203 @cd $ac_dir && \$(MAKE) msg.pot
7204 $ac_dir/msg.pot: tools/wmc include"
7206 if wine_fn_has_flag po
7207 then
7208 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7209 wine_fn_append_rule \
7210 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7211 @cd $ac_dir && \$(MAKE) rsrc.pot
7212 $ac_dir/rsrc.pot: tools/wrc include"
7216 wine_fn_all_rules ()
7218 ac_rules=$1
7220 wine_fn_depend_rules ${ac_rules:-Make.rules}
7221 wine_fn_append_rule \
7222 "all: $ac_dir
7223 .PHONY: $ac_dir
7224 $ac_dir: $ac_dir/Makefile dummy
7225 @cd $ac_dir && \$(MAKE)"
7228 wine_fn_install_rules ()
7230 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7232 wine_fn_append_rule \
7233 ".PHONY: $ac_dir/install $ac_dir/uninstall
7234 $ac_dir/install:: $ac_dir
7235 @cd $ac_dir && \$(MAKE) install
7236 $ac_dir/uninstall:: $ac_dir/Makefile
7237 @cd $ac_dir && \$(MAKE) uninstall
7238 install:: $ac_dir/install
7239 __uninstall__: $ac_dir/uninstall"
7241 if wine_fn_has_flag install-lib
7242 then
7243 wine_fn_append_rule \
7244 ".PHONY: $ac_dir/install-lib
7245 $ac_dir/install-lib:: $ac_dir
7246 @cd $ac_dir && \$(MAKE) install-lib
7247 install-lib:: $ac_dir/install-lib"
7250 if wine_fn_has_flag install-dev
7251 then
7252 wine_fn_append_rule \
7253 ".PHONY: $ac_dir/install-dev
7254 $ac_dir/install-dev:: $ac_dir
7255 @cd $ac_dir && \$(MAKE) install-dev
7256 install-dev:: $ac_dir/install-dev"
7260 wine_fn_clean_rules ()
7262 ac_clean=$@
7263 ac_extraclean="$ac_dir/Makefile"
7264 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7266 if wine_fn_has_flag clean
7267 then
7268 wine_fn_append_rule \
7269 "__clean__: $ac_dir/clean
7270 .PHONY: $ac_dir/clean
7271 $ac_dir/clean: $ac_dir/Makefile
7272 @cd $ac_dir && \$(MAKE) clean
7273 \$(RM) $ac_extraclean"
7274 else
7275 wine_fn_append_rule \
7276 "__clean__: $ac_dir/clean
7277 .PHONY: $ac_dir/clean
7278 $ac_dir/clean: dummy
7279 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7283 wine_fn_disabled_rules ()
7285 ac_clean=$@
7286 ac_extraclean="$ac_dir/Makefile"
7287 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7289 wine_fn_append_rule \
7290 "__clean__: $ac_dir/clean
7291 .PHONY: $ac_dir/clean
7292 $ac_dir/clean: dummy
7293 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7296 wine_fn_config_makefile ()
7298 ac_dir=$1
7299 ac_enable=$2
7300 ac_flags=$3
7302 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7303 wine_fn_disabled_rules; return
7305 wine_fn_all_rules
7306 wine_fn_install_rules
7307 wine_fn_clean_rules
7310 wine_fn_config_lib ()
7312 ac_name=$1
7313 ac_flags=$2
7314 ac_dir=dlls/$ac_name
7315 ac_deps="include"
7317 if test "x$enable_tools" = xno; then :
7319 else
7320 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7322 wine_fn_all_rules Make.rules.in
7323 wine_fn_clean_rules
7325 wine_fn_append_rule \
7326 ".PHONY: $ac_dir/install $ac_dir/uninstall
7327 $ac_dir/install:: $ac_dir \$(DESTDIR)\$(dlldir)
7328 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7329 $ac_dir/uninstall::
7330 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7331 install install-dev:: $ac_dir/install
7332 __uninstall__: $ac_dir/uninstall
7333 __builddeps__: $ac_dir
7334 $ac_dir: $ac_deps"
7337 wine_fn_config_dll ()
7339 ac_name=$1
7340 ac_dir=dlls/$ac_name
7341 ac_enable=$2
7342 ac_flags=$3
7343 ac_implib=${4:-$ac_name}
7344 ac_file=$ac_dir/lib$ac_implib
7345 ac_dll=$ac_name
7346 ac_deps="include"
7347 ac_implibflags=""
7349 if test "x$enable_tools" = xno; then :
7351 else
7352 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7354 case $ac_name in
7355 *16) ac_implibflags=" -m16" ;;
7356 *.*) ;;
7357 *) ac_dll=$ac_dll.dll ;;
7358 esac
7360 ac_clean=
7361 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7362 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7363 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7364 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7366 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7367 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7368 then
7369 wine_fn_depend_rules Make.rules.in
7370 wine_fn_clean_rules $ac_clean
7371 else
7372 wine_fn_disabled_rules $ac_clean
7373 return
7375 else
7376 wine_fn_all_rules Make.rules.in
7377 wine_fn_clean_rules $ac_clean
7378 wine_fn_append_rule \
7379 "$ac_dir: __builddeps__
7380 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7381 @cd $ac_dir && \$(MAKE) \$@
7382 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7383 install install-lib:: $ac_dir/install-lib
7384 __uninstall__: $ac_dir/uninstall"
7385 if test -n "$DLLEXT"
7386 then
7387 wine_fn_append_rule \
7388 "$ac_dir/install-lib:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
7389 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7390 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7391 $ac_dir/uninstall::
7392 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7393 else
7394 wine_fn_append_rule \
7395 "$ac_dir/install-lib:: $ac_dir \$(DESTDIR)\$(dlldir)
7396 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7397 $ac_dir/uninstall::
7398 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7401 wine_fn_pot_rules
7404 if wine_fn_has_flag staticimplib
7405 then
7406 wine_fn_append_rule \
7407 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7408 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7409 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7410 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7411 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7412 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7413 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7414 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
7415 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7416 $ac_dir/uninstall::
7417 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7418 install install-dev:: $ac_dir/install-dev
7419 __uninstall__: $ac_dir/uninstall"
7421 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7422 then
7423 wine_fn_append_rule \
7424 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
7425 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7426 $ac_dir/uninstall::
7427 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7430 if test -n "$CROSSTARGET"
7431 then
7432 wine_fn_append_rule \
7433 "__builddeps__: $ac_file.cross.a
7434 $ac_file.cross.a: $ac_dir/Makefile dummy
7435 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7438 elif wine_fn_has_flag implib
7439 then
7440 wine_fn_append_rule \
7441 "__builddeps__: $ac_file.$IMPLIBEXT
7442 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7443 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7444 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7445 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7446 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7447 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
7448 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7449 $ac_dir/uninstall::
7450 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7451 install install-dev:: $ac_dir/install-dev
7452 __uninstall__: $ac_dir/uninstall"
7453 if test -n "$CROSSTARGET"
7454 then
7455 wine_fn_append_rule \
7456 "__builddeps__: $ac_file.cross.a
7457 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7458 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7461 if test "$ac_name" != "$ac_implib"
7462 then
7463 wine_fn_append_rule \
7464 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7465 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7466 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7467 clean::
7468 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7469 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7470 if test -n "$CROSSTARGET"
7471 then
7472 wine_fn_append_rule \
7473 "__builddeps__: dlls/lib$ac_implib.cross.a
7474 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7475 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7476 clean::
7477 \$(RM) dlls/lib$ac_implib.cross.a"
7478 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7484 wine_fn_config_program ()
7486 ac_name=$1
7487 ac_dir=programs/$ac_name
7488 ac_enable=$2
7489 ac_flags=$3
7490 ac_program=$ac_name
7492 case $ac_name in
7493 *.*) ;;
7494 *) ac_program=$ac_program.exe ;;
7495 esac
7497 ac_clean=
7498 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7499 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7500 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7501 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7503 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7504 wine_fn_disabled_rules $ac_clean; return
7507 wine_fn_all_rules Make.rules.in
7508 wine_fn_clean_rules $ac_clean
7509 wine_fn_append_rule "$ac_dir: __builddeps__"
7510 wine_fn_pot_rules
7512 wine_fn_has_flag install || return
7513 wine_fn_append_rule \
7514 ".PHONY: $ac_dir/install $ac_dir/uninstall
7515 install install-lib:: $ac_dir/install
7516 __uninstall__: $ac_dir/uninstall"
7518 if test -n "$DLLEXT"
7519 then
7520 wine_fn_append_rule \
7521 "$ac_dir/install:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
7522 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7523 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7524 $ac_dir/uninstall::
7525 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7527 if test -z "$with_wine64" && wine_fn_has_flag installbin
7528 then
7529 wine_fn_append_rule \
7530 "$ac_dir/install:: __tooldeps__ \$(DESTDIR)\$(bindir)
7531 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7532 $ac_dir/uninstall::
7533 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7535 else
7536 wine_fn_append_rule \
7537 "$ac_dir/install:: $ac_dir \$(DESTDIR)\$(bindir)
7538 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7539 $ac_dir/uninstall::
7540 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7543 if test -z "$with_wine64" && wine_fn_has_flag manpage
7544 then
7545 wine_fn_append_rule \
7546 "$ac_dir/install:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
7547 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7548 $ac_dir/uninstall::
7549 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7553 wine_fn_config_test ()
7555 ac_dir=$1
7556 ac_name=$2
7557 ac_flags=$3
7559 ac_clean=
7560 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7561 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7562 ac_clean="$ac_clean $ac_dir/testlist.c"
7564 if test "x$enable_tests" = xno; then :
7565 wine_fn_disabled_rules $ac_clean; return
7568 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7569 wine_fn_all_rules Make.rules.in
7570 wine_fn_clean_rules $ac_clean
7572 wine_fn_append_rule \
7573 "$ac_dir: programs/winetest/Makefile __builddeps__
7574 programs/winetest: $ac_dir
7575 check test: $ac_dir/test
7576 .PHONY: $ac_dir/test
7577 $ac_dir/test: dummy
7578 @cd $ac_dir && \$(MAKE) test
7579 testclean::
7580 \$(RM) $ac_dir/*.ok"
7582 if test -n "$CROSSTARGET"
7583 then
7584 wine_fn_append_rule \
7585 "crosstest: $ac_dir/crosstest
7586 .PHONY: $ac_dir/crosstest
7587 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7588 @cd $ac_dir && \$(MAKE) crosstest"
7592 wine_fn_config_tool ()
7594 ac_dir=$1
7595 ac_flags=$2
7596 if test "x$enable_tools" = xno; then :
7597 return
7600 wine_fn_all_rules
7601 wine_fn_install_rules
7602 wine_fn_clean_rules
7604 wine_fn_append_rule "__tooldeps__: $ac_dir"
7605 wine_fn_append_rule "$ac_dir: libs/port"
7606 case $ac_dir in
7607 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7608 esac
7609 case $ac_dir in
7610 tools/*) wine_fn_ignore_file $ac_dir/`expr $ac_dir : tools/"\\(.*\\)"`$ac_exeext ;;
7611 esac
7614 wine_fn_config_makerules ()
7616 ac_rules=$1
7617 ac_deps=$2
7618 wine_fn_append_rule \
7619 "$ac_rules: $srcdir/$ac_rules.in $ac_deps config.status
7620 @./config.status $ac_rules
7621 distclean::
7622 \$(RM) $ac_rules"
7623 wine_fn_ignore_file $ac_rules
7626 wine_fn_config_symlink ()
7628 ac_linkdir=
7629 if test "x$1" = "x-d"
7630 then
7631 ac_linkdir=$2
7632 shift; shift
7634 ac_links=$@
7635 wine_fn_append_rule \
7636 "$ac_links:
7637 @./config.status \$@
7638 distclean::
7639 \$(RM) $ac_links"
7640 for f in $ac_links; do wine_fn_ignore_file $f; done
7641 test -n "$ac_linkdir" || return
7642 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7644 wine_fn_ignore_file "loader/wine"
7645 test "$wine_binary" = wine || wine_fn_ignore_file "loader/$wine_binary"
7646 wine_fn_ignore_file "loader/wine-installed"
7647 wine_fn_ignore_file "libs/wine/version.c"
7649 LOADER_RULES="
7650 all: $wine_binary wine-installed
7652 install install-lib:: wine-installed \$(DESTDIR)\$(bindir)
7653 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7655 uninstall::
7656 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7660 case $host_os in
7661 cygwin*|mingw32*)
7662 if test -n "$ac_tool_prefix"; then
7663 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7664 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if ${ac_cv_prog_DLLTOOL+:} false; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 if test -n "$DLLTOOL"; then
7671 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7684 done
7685 done
7686 IFS=$as_save_IFS
7690 DLLTOOL=$ac_cv_prog_DLLTOOL
7691 if test -n "$DLLTOOL"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7693 $as_echo "$DLLTOOL" >&6; }
7694 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7701 if test -z "$ac_cv_prog_DLLTOOL"; then
7702 ac_ct_DLLTOOL=$DLLTOOL
7703 # Extract the first word of "dlltool", so it can be a program name with args.
7704 set dummy dlltool; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 if test -n "$ac_ct_DLLTOOL"; then
7711 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7724 done
7725 done
7726 IFS=$as_save_IFS
7730 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7731 if test -n "$ac_ct_DLLTOOL"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7733 $as_echo "$ac_ct_DLLTOOL" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7739 if test "x$ac_ct_DLLTOOL" = x; then
7740 DLLTOOL="false"
7741 else
7742 case $cross_compiling:$ac_tool_warned in
7743 yes:)
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7746 ac_tool_warned=yes ;;
7747 esac
7748 DLLTOOL=$ac_ct_DLLTOOL
7750 else
7751 DLLTOOL="$ac_cv_prog_DLLTOOL"
7754 LIBEXT="dll"
7755 DLLEXT=""
7756 IMPLIBEXT="a"
7757 STATIC_IMPLIBEXT="a"
7758 enable_iphlpapi=${enable_iphlpapi:-no}
7759 enable_kernel32=${enable_kernel32:-no}
7760 enable_msvcrt=${enable_msvcrt:-no}
7761 enable_ntdll=${enable_ntdll:-no}
7762 enable_ws2_32=${enable_ws2_32:-no}
7763 enable_loader=${enable_loader:-no}
7764 enable_server=${enable_server:-no}
7765 with_x=${with_x:-no}
7766 with_pthread=${with_pthread:-no}
7768 crtlibs=""
7769 case $host_os in
7770 mingw32*)
7771 crtlibs="-lmsvcrt"
7772 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7774 esac
7776 wine_fn_ignore_file "libs/wine/libwine.dll"
7777 wine_fn_ignore_file "libs/wine/libwine.a"
7778 LIBWINE_RULES="
7779 all: libwine.dll libwine.a
7781 libwine.a: \$(srcdir)/wine.def
7782 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7784 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7785 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7787 install install-lib:: libwine.dll \$(DESTDIR)\$(libdir) dummy
7788 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7790 install install-dev:: libwine.a \$(DESTDIR)\$(libdir) dummy
7791 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7793 uninstall::
7794 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7796 clean::
7797 \$(RM) libwine.dll version.c
7802 darwin*|macosx*)
7803 LIBEXT="dylib"
7804 DLLFLAGS="$DLLFLAGS -fPIC"
7805 LIBWINE_LDFLAGS="-multiply_defined suppress"
7806 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7807 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7808 COREFOUNDATIONLIB="-framework CoreFoundation"
7810 IOKITLIB="-framework IOKit -framework CoreFoundation"
7812 FORCEFEEDBACKLIB="-framework ForceFeedback -framework CoreFoundation"
7814 APPLICATIONSERVICESLIB="-framework ApplicationServices"
7816 CORESERVICESLIB="-framework CoreServices"
7818 APPKITLIB="-framework AppKit"
7820 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7821 case $host_os in
7822 darwin11*) LDEXECFLAGS="-Wl,-macosx_version_min,10.6 $LDEXECFLAGS" ;;
7823 esac
7824 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7825 then
7826 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
7829 if test "$ac_cv_header_Security_Security_h" = "yes"
7830 then
7831 SECURITYLIB="-framework Security -framework CoreFoundation"
7833 ac_save_LIBS="$LIBS"
7834 LIBS="$LIBS $SECURITYLIB"
7835 for ac_func in SSLCopyPeerCertificates
7836 do :
7837 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7838 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7839 cat >>confdefs.h <<_ACEOF
7840 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7841 _ACEOF
7844 done
7846 LIBS="$ac_save_LIBS"
7847 with_gnutls=${with_gnutls:-no}
7849 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7850 then
7851 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7852 then
7853 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7855 else
7856 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7859 ac_save_LIBS="$LIBS"
7860 LIBS="$LIBS $COREAUDIO"
7861 for ac_func in AUGraphAddNode
7862 do :
7863 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7864 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7865 cat >>confdefs.h <<_ACEOF
7866 #define HAVE_AUGRAPHADDNODE 1
7867 _ACEOF
7870 done
7872 LIBS="$ac_save_LIBS"
7874 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7875 then
7876 FRAMEWORK_OPENAL="-framework OpenAL"
7879 cat >>confdefs.h <<_ACEOF
7880 #define HAVE_OPENAL 1
7881 _ACEOF
7883 ac_cv_lib_openal=yes
7885 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7886 then
7887 LIBOPENCL="-framework OpenCL"
7889 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7891 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7892 then
7893 ac_save_LIBS="$LIBS"
7894 LIBS="$LIBS $IOKITLIB"
7895 for ac_func in IOHIDManagerCreate
7896 do :
7897 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7898 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7899 cat >>confdefs.h <<_ACEOF
7900 #define HAVE_IOHIDMANAGERCREATE 1
7901 _ACEOF
7904 done
7906 LIBS="$ac_save_LIBS"
7908 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7909 then
7910 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7912 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7913 else
7914 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7916 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7917 then
7918 CARBONLIB="-framework Carbon"
7922 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
7923 then
7924 ac_save_LIBS="$LIBS"
7925 LIBS="$LIBS $APPLICATIONSERVICESLIB"
7926 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
7927 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
7928 enable_winemac_drv=${enable_winemac_drv:-yes}
7931 LIBS="$ac_save_LIBS"
7934 if test "x$enable_win16" = "xyes"
7935 then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
7937 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
7938 if test "$cross_compiling" = yes; then :
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
7940 $as_echo "cross-compiling, assuming yes" >&6; }
7941 else
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7944 asm(".text\n"
7945 "bad:\tnop;nop\n"
7946 "good:\tnop;nop\n\t"
7947 ".globl _testfunc\n"
7948 "_testfunc:\tcallw good");
7949 extern void testfunc();
7951 main ()
7953 unsigned short *p = (unsigned short *)testfunc;
7954 return p[0] != 0xe866 || p[1] != 0xfffa
7956 return 0;
7958 _ACEOF
7959 if ac_fn_c_try_run "$LINENO"; then :
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7961 $as_echo "yes" >&6; }
7962 else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 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
7967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7968 conftest.$ac_objext conftest.beam conftest.$ac_ext
7973 wine_fn_ignore_file "libs/wine/libwine*.dylib"
7974 LIBWINE_RULES="
7975 all: libwine.dylib
7977 libwine.\$(VERSION).dylib: \$(OBJS)
7978 \$(CC) -dynamiclib -install_name @rpath/libwine.\$(SOVERSION).dylib -Wl,-rpath,@loader_path/ -compatibility_version \$(SOVERSION) -current_version \$(VERSION) \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7980 libwine.\$(SOVERSION).dylib: libwine.\$(VERSION).dylib
7981 \$(RM) \$@ && \$(LN_S) libwine.\$(VERSION).dylib \$@
7983 libwine.dylib: libwine.\$(SOVERSION).dylib
7984 \$(RM) \$@ && \$(LN_S) libwine.\$(SOVERSION).dylib \$@
7986 install install-lib:: libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir) dummy
7987 \$(INSTALL_PROGRAM) libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir)/libwine.\$(VERSION).dylib
7988 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.\$(SOVERSION).dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
7990 install install-dev:: \$(DESTDIR)\$(libdir) dummy
7991 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.dylib
7993 uninstall::
7994 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
7996 clean::
7997 \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib version.c
8001 as_fn_append LOADER_RULES "
8002 $wine_binary: main.o wine_info.plist
8003 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8005 wine-installed: main.o wine_info.plist
8006 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8010 linux-android*)
8011 DLLFLAGS="$DLLFLAGS -fPIC"
8012 DLLPREFIX="lib"
8013 LDEXECFLAGS=""
8014 dlldir="\${libdir}"
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8016 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8017 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 ac_wine_try_cflags_saved=$CFLAGS
8021 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 int main(int argc, char **argv) { return 0; }
8025 _ACEOF
8026 if ac_fn_c_try_link "$LINENO"; then :
8027 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8028 else
8029 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8031 rm -f core conftest.err conftest.$ac_objext \
8032 conftest$ac_exeext conftest.$ac_ext
8033 CFLAGS=$ac_wine_try_cflags_saved
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8036 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8037 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
8038 LDEXECFLAGS="-Wl,--export-dynamic"
8040 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8042 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8043 if eval \${$as_ac_var+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 ac_wine_try_cflags_saved=$CFLAGS
8047 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 int main(int argc, char **argv) { return 0; }
8051 _ACEOF
8052 if ac_fn_c_try_link "$LINENO"; then :
8053 eval "$as_ac_var=yes"
8054 else
8055 eval "$as_ac_var=no"
8057 rm -f core conftest.err conftest.$ac_objext \
8058 conftest$ac_exeext conftest.$ac_ext
8059 CFLAGS=$ac_wine_try_cflags_saved
8061 eval ac_res=\$$as_ac_var
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8063 $as_echo "$ac_res" >&6; }
8064 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8065 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8066 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8067 else
8068 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8070 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8071 if eval \${$as_ac_var+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 ac_wine_try_cflags_saved=$CFLAGS
8075 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8078 int main(int argc, char **argv) { return 0; }
8079 _ACEOF
8080 if ac_fn_c_try_link "$LINENO"; then :
8081 eval "$as_ac_var=yes"
8082 else
8083 eval "$as_ac_var=no"
8085 rm -f core conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087 CFLAGS=$ac_wine_try_cflags_saved
8089 eval ac_res=\$$as_ac_var
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8091 $as_echo "$ac_res" >&6; }
8092 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8093 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8094 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8099 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8100 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 ac_wine_try_cflags_saved=$CFLAGS
8104 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 int main(int argc, char **argv) { return 0; }
8108 _ACEOF
8109 if ac_fn_c_try_link "$LINENO"; then :
8110 ac_cv_cflags__Wl___enable_new_dtags=yes
8111 else
8112 ac_cv_cflags__Wl___enable_new_dtags=no
8114 rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
8116 CFLAGS=$ac_wine_try_cflags_saved
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8119 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8120 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8121 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8124 case $host_cpu in
8125 *i[3456789]86* | x86_64)
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8127 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8128 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 ac_wine_try_cflags_saved=$CFLAGS
8132 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135 int main(int argc, char **argv) { return 0; }
8136 _ACEOF
8137 if ac_fn_c_try_link "$LINENO"; then :
8138 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8139 else
8140 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8142 rm -f core conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8144 CFLAGS=$ac_wine_try_cflags_saved
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8147 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8148 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8149 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8152 esac
8154 wine_fn_ignore_file "libs/wine/libwine.so"
8155 LIBWINE_RULES="
8156 all: libwine.so
8158 libwine.so: \$(OBJS)
8159 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8161 install install-lib:: libwine.so \$(DESTDIR)\$(libdir) dummy
8162 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8164 uninstall::
8165 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8167 clean::
8168 \$(RM) libwine.so version.c
8172 as_fn_append LOADER_RULES "
8173 $wine_binary: main.o
8174 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8176 wine-installed: main.o
8177 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8182 DLLFLAGS="$DLLFLAGS -fPIC"
8183 LDEXECFLAGS=""
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8185 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8186 if ${ac_cv_c_dll_gnuelf+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 ac_wine_try_cflags_saved=$CFLAGS
8190 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193 void myfunc() {}
8194 _ACEOF
8195 if ac_fn_c_try_link "$LINENO"; then :
8196 ac_cv_c_dll_gnuelf="yes"
8197 else
8198 ac_cv_c_dll_gnuelf="no"
8200 rm -f core conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8202 CFLAGS=$ac_wine_try_cflags_saved
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8205 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8206 if test "$ac_cv_c_dll_gnuelf" = "yes"
8207 then
8208 LDSHARED="\$(CC) -shared"
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8210 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8211 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 ac_wine_try_cflags_saved=$CFLAGS
8215 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 int main(int argc, char **argv) { return 0; }
8219 _ACEOF
8220 if ac_fn_c_try_link "$LINENO"; then :
8221 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8222 else
8223 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8225 rm -f core conftest.err conftest.$ac_objext \
8226 conftest$ac_exeext conftest.$ac_ext
8227 CFLAGS=$ac_wine_try_cflags_saved
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8230 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8231 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
8232 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.\$(SOVERSION)"
8233 else
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8235 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8236 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 ac_wine_try_cflags_saved=$CFLAGS
8240 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8243 int main(int argc, char **argv) { return 0; }
8244 _ACEOF
8245 if ac_fn_c_try_link "$LINENO"; then :
8246 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8247 else
8248 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8250 rm -f core conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
8252 CFLAGS=$ac_wine_try_cflags_saved
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8255 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8256 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
8257 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.\$(SOVERSION)"
8261 echo '{ global: *; };' >conftest.map
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8263 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8264 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 ac_wine_try_cflags_saved=$CFLAGS
8268 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 int main(int argc, char **argv) { return 0; }
8272 _ACEOF
8273 if ac_fn_c_try_link "$LINENO"; then :
8274 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8275 else
8276 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8278 rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280 CFLAGS=$ac_wine_try_cflags_saved
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8283 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8284 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
8285 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8287 rm -f conftest.map
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8290 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8291 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 ac_wine_try_cflags_saved=$CFLAGS
8295 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8298 int main(int argc, char **argv) { return 0; }
8299 _ACEOF
8300 if ac_fn_c_try_link "$LINENO"; then :
8301 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8302 else
8303 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8305 rm -f core conftest.err conftest.$ac_objext \
8306 conftest$ac_exeext conftest.$ac_ext
8307 CFLAGS=$ac_wine_try_cflags_saved
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8310 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8311 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
8312 LDEXECFLAGS="-Wl,--export-dynamic"
8315 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8317 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8318 if eval \${$as_ac_var+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 ac_wine_try_cflags_saved=$CFLAGS
8322 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 int main(int argc, char **argv) { return 0; }
8326 _ACEOF
8327 if ac_fn_c_try_link "$LINENO"; then :
8328 eval "$as_ac_var=yes"
8329 else
8330 eval "$as_ac_var=no"
8332 rm -f core conftest.err conftest.$ac_objext \
8333 conftest$ac_exeext conftest.$ac_ext
8334 CFLAGS=$ac_wine_try_cflags_saved
8336 eval ac_res=\$$as_ac_var
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8338 $as_echo "$ac_res" >&6; }
8339 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8340 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8341 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8342 else
8343 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8345 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8346 if eval \${$as_ac_var+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 ac_wine_try_cflags_saved=$CFLAGS
8350 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 int main(int argc, char **argv) { return 0; }
8354 _ACEOF
8355 if ac_fn_c_try_link "$LINENO"; then :
8356 eval "$as_ac_var=yes"
8357 else
8358 eval "$as_ac_var=no"
8360 rm -f core conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8362 CFLAGS=$ac_wine_try_cflags_saved
8364 eval ac_res=\$$as_ac_var
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8366 $as_echo "$ac_res" >&6; }
8367 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8368 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8369 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8374 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8375 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 ac_wine_try_cflags_saved=$CFLAGS
8379 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382 int main(int argc, char **argv) { return 0; }
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385 ac_cv_cflags__Wl___enable_new_dtags=yes
8386 else
8387 ac_cv_cflags__Wl___enable_new_dtags=no
8389 rm -f core conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391 CFLAGS=$ac_wine_try_cflags_saved
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8394 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8395 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8396 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8399 case $host_cpu in
8400 *i[3456789]86* | x86_64)
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8402 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8403 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 ac_wine_try_cflags_saved=$CFLAGS
8407 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410 int main(int argc, char **argv) { return 0; }
8411 _ACEOF
8412 if ac_fn_c_try_link "$LINENO"; then :
8413 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8414 else
8415 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8417 rm -f core conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8419 CFLAGS=$ac_wine_try_cflags_saved
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8422 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8423 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8424 case $host_os in
8425 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8426 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8427 esac
8430 # Extract the first word of "prelink", so it can be a program name with args.
8431 set dummy prelink; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if ${ac_cv_path_PRELINK+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 case $PRELINK in
8438 [\\/]* | ?:[\\/]*)
8439 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443 for as_dir in /sbin /usr/sbin $PATH
8445 IFS=$as_save_IFS
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8449 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 break 2
8453 done
8454 done
8455 IFS=$as_save_IFS
8457 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8459 esac
8461 PRELINK=$ac_cv_path_PRELINK
8462 if test -n "$PRELINK"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8464 $as_echo "$PRELINK" >&6; }
8465 else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8471 if test "x$PRELINK" = xfalse
8472 then
8473 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8476 esac
8478 else
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8480 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8481 if ${ac_cv_c_dll_unixware+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 ac_wine_try_cflags_saved=$CFLAGS
8485 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 void myfunc() {}
8489 _ACEOF
8490 if ac_fn_c_try_link "$LINENO"; then :
8491 ac_cv_c_dll_unixware="yes"
8492 else
8493 ac_cv_c_dll_unixware="no"
8495 rm -f core conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8497 CFLAGS=$ac_wine_try_cflags_saved
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8500 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8501 if test "$ac_cv_c_dll_unixware" = "yes"
8502 then
8503 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.\$(SOVERSION)"
8506 wine_fn_ignore_file "libs/wine/libwine.so*"
8507 LIBWINE_RULES="
8508 all: libwine.so
8510 libwine.so.\$(VERSION): \$(OBJS) \$(srcdir)/wine.map
8511 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8513 libwine.so.\$(SOVERSION): libwine.so.\$(VERSION)
8514 \$(RM) \$@ && \$(LN_S) libwine.so.\$(VERSION) \$@
8516 libwine.so: libwine.so.\$(SOVERSION)
8517 \$(RM) \$@ && \$(LN_S) libwine.so.\$(SOVERSION) \$@
8519 install install-lib:: libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir) dummy
8520 \$(INSTALL_PROGRAM) libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir)/libwine.so.\$(VERSION)
8521 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.\$(SOVERSION) && \$(LN_S) libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
8523 install install-dev:: \$(DESTDIR)\$(libdir) dummy
8524 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.\$(VERSION) libwine.so
8526 uninstall::
8527 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
8529 clean::
8530 \$(RM) libwine.so.\$(SOVERSION) libwine.so.\$(VERSION) version.c
8534 as_fn_append LOADER_RULES "
8535 $wine_binary: main.o
8536 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8538 wine-installed: main.o
8539 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8542 esac
8544 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8545 enable_winemac_drv=${enable_winemac_drv:-no}
8547 CROSSTARGET=""
8549 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8550 then
8551 case "$host_cpu" in
8552 i[3456789]86*)
8553 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
8554 mingw32-gcc" ;;
8555 x86_64)
8556 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 " ;;
8558 ac_prefix_list="" ;;
8559 esac
8560 for ac_prog in $ac_prefix_list
8562 # Extract the first word of "$ac_prog", so it can be a program name with args.
8563 set dummy $ac_prog; ac_word=$2
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8565 $as_echo_n "checking for $ac_word... " >&6; }
8566 if ${ac_cv_prog_CROSSCC+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 if test -n "$CROSSCC"; then
8570 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8571 else
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8575 IFS=$as_save_IFS
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
8578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8579 ac_cv_prog_CROSSCC="$ac_prog"
8580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 break 2
8583 done
8584 done
8585 IFS=$as_save_IFS
8589 CROSSCC=$ac_cv_prog_CROSSCC
8590 if test -n "$CROSSCC"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8592 $as_echo "$CROSSCC" >&6; }
8593 else
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
8599 test -n "$CROSSCC" && break
8600 done
8601 test -n "$CROSSCC" || CROSSCC="false"
8603 if test "$CROSSCC" != "false"
8604 then
8605 ac_save_CC="$CC"
8606 CC="$CROSSCC"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8608 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8613 main ()
8617 return 0;
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8622 $as_echo "yes" >&6; }
8623 set x $CROSSCC
8624 shift
8625 while test $# -ge 1
8627 case "$1" in
8628 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8629 esac
8630 shift
8631 done
8632 else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 CC="$ac_save_CC"
8642 if test "$ac_cv_header_pthread_h" = "yes"
8643 then
8644 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8645 if test "x$ac_cv_func_pthread_create" = xyes; then :
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8649 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8650 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 ac_check_lib_save_LIBS=$LIBS
8654 LIBS="-lpthread $LIBS"
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8658 /* Override any GCC internal prototype to avoid an error.
8659 Use char because int might match the return type of a GCC
8660 builtin and then its argument prototype would still apply. */
8661 #ifdef __cplusplus
8662 extern "C"
8663 #endif
8664 char pthread_create ();
8666 main ()
8668 return pthread_create ();
8670 return 0;
8672 _ACEOF
8673 if ac_fn_c_try_link "$LINENO"; then :
8674 ac_cv_lib_pthread_pthread_create=yes
8675 else
8676 ac_cv_lib_pthread_pthread_create=no
8678 rm -f core conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
8680 LIBS=$ac_check_lib_save_LIBS
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8683 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8684 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8685 LIBPTHREAD="-lpthread"
8692 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
8693 case "x$with_pthread" in
8694 xno) ;;
8695 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8696 Wine cannot support threads without libpthread.
8697 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8698 esac
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8703 $as_echo_n "checking for X... " >&6; }
8706 # Check whether --with-x was given.
8707 if test "${with_x+set}" = set; then :
8708 withval=$with_x;
8711 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8712 if test "x$with_x" = xno; then
8713 # The user explicitly disabled X.
8714 have_x=disabled
8715 else
8716 case $x_includes,$x_libraries in #(
8717 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8718 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 # One or both of the vars are not set, and there is no cached value.
8722 ac_x_includes=no ac_x_libraries=no
8723 rm -f -r conftest.dir
8724 if mkdir conftest.dir; then
8725 cd conftest.dir
8726 cat >Imakefile <<'_ACEOF'
8727 incroot:
8728 @echo incroot='${INCROOT}'
8729 usrlibdir:
8730 @echo usrlibdir='${USRLIBDIR}'
8731 libdir:
8732 @echo libdir='${LIBDIR}'
8733 _ACEOF
8734 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8735 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8736 for ac_var in incroot usrlibdir libdir; do
8737 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8738 done
8739 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8740 for ac_extension in a so sl dylib la dll; do
8741 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8742 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8743 ac_im_usrlibdir=$ac_im_libdir; break
8745 done
8746 # Screen out bogus values from the imake configuration. They are
8747 # bogus both because they are the default anyway, and because
8748 # using them would break gcc on systems where it needs fixed includes.
8749 case $ac_im_incroot in
8750 /usr/include) ac_x_includes= ;;
8751 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8752 esac
8753 case $ac_im_usrlibdir in
8754 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8755 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8756 esac
8758 cd ..
8759 rm -f -r conftest.dir
8762 # Standard set of common directories for X headers.
8763 # Check X11 before X11Rn because it is often a symlink to the current release.
8764 ac_x_header_dirs='
8765 /usr/X11/include
8766 /usr/X11R7/include
8767 /usr/X11R6/include
8768 /usr/X11R5/include
8769 /usr/X11R4/include
8771 /usr/include/X11
8772 /usr/include/X11R7
8773 /usr/include/X11R6
8774 /usr/include/X11R5
8775 /usr/include/X11R4
8777 /usr/local/X11/include
8778 /usr/local/X11R7/include
8779 /usr/local/X11R6/include
8780 /usr/local/X11R5/include
8781 /usr/local/X11R4/include
8783 /usr/local/include/X11
8784 /usr/local/include/X11R7
8785 /usr/local/include/X11R6
8786 /usr/local/include/X11R5
8787 /usr/local/include/X11R4
8789 /usr/X386/include
8790 /usr/x386/include
8791 /usr/XFree86/include/X11
8793 /usr/include
8794 /usr/local/include
8795 /usr/unsupported/include
8796 /usr/athena/include
8797 /usr/local/x11r5/include
8798 /usr/lpp/Xamples/include
8800 /usr/openwin/include
8801 /usr/openwin/share/include'
8803 if test "$ac_x_includes" = no; then
8804 # Guess where to find include files, by looking for Xlib.h.
8805 # First, try using that file with no special directory specified.
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 #include <X11/Xlib.h>
8809 _ACEOF
8810 if ac_fn_c_try_cpp "$LINENO"; then :
8811 # We can compile using X headers with no special include directory.
8812 ac_x_includes=
8813 else
8814 for ac_dir in $ac_x_header_dirs; do
8815 if test -r "$ac_dir/X11/Xlib.h"; then
8816 ac_x_includes=$ac_dir
8817 break
8819 done
8821 rm -f conftest.err conftest.i conftest.$ac_ext
8822 fi # $ac_x_includes = no
8824 if test "$ac_x_libraries" = no; then
8825 # Check for the libraries.
8826 # See if we find them without any special options.
8827 # Don't add to $LIBS permanently.
8828 ac_save_LIBS=$LIBS
8829 LIBS="-lX11 $LIBS"
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 #include <X11/Xlib.h>
8834 main ()
8836 XrmInitialize ()
8838 return 0;
8840 _ACEOF
8841 if ac_fn_c_try_link "$LINENO"; then :
8842 LIBS=$ac_save_LIBS
8843 # We can link X programs with no special library path.
8844 ac_x_libraries=
8845 else
8846 LIBS=$ac_save_LIBS
8847 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8849 # Don't even attempt the hair of trying to link an X program!
8850 for ac_extension in a so sl dylib la dll; do
8851 if test -r "$ac_dir/libX11.$ac_extension"; then
8852 ac_x_libraries=$ac_dir
8853 break 2
8855 done
8856 done
8858 rm -f core conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext conftest.$ac_ext
8860 fi # $ac_x_libraries = no
8862 case $ac_x_includes,$ac_x_libraries in #(
8863 no,* | *,no | *\'*)
8864 # Didn't find X, or a directory has "'" in its name.
8865 ac_cv_have_x="have_x=no";; #(
8867 # Record where we found X for the cache.
8868 ac_cv_have_x="have_x=yes\
8869 ac_x_includes='$ac_x_includes'\
8870 ac_x_libraries='$ac_x_libraries'"
8871 esac
8873 ;; #(
8874 *) have_x=yes;;
8875 esac
8876 eval "$ac_cv_have_x"
8877 fi # $with_x != no
8879 if test "$have_x" != yes; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8881 $as_echo "$have_x" >&6; }
8882 no_x=yes
8883 else
8884 # If each of the values was on the command line, it overrides each guess.
8885 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8886 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8887 # Update the cache value to reflect the command line values.
8888 ac_cv_have_x="have_x=yes\
8889 ac_x_includes='$x_includes'\
8890 ac_x_libraries='$x_libraries'"
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8892 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8895 if test "$no_x" = yes; then
8896 # Not all programs may use this symbol, but it does not hurt to define it.
8898 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8900 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8901 else
8902 if test -n "$x_includes"; then
8903 X_CFLAGS="$X_CFLAGS -I$x_includes"
8906 # It would also be nice to do this for all -L options, not just this one.
8907 if test -n "$x_libraries"; then
8908 X_LIBS="$X_LIBS -L$x_libraries"
8909 # For Solaris; some versions of Sun CC require a space after -R and
8910 # others require no space. Words are not sufficient . . . .
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8912 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8913 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8914 ac_xsave_c_werror_flag=$ac_c_werror_flag
8915 ac_c_werror_flag=yes
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8920 main ()
8924 return 0;
8926 _ACEOF
8927 if ac_fn_c_try_link "$LINENO"; then :
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930 X_LIBS="$X_LIBS -R$x_libraries"
8931 else
8932 LIBS="$ac_xsave_LIBS -R $x_libraries"
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8937 main ()
8941 return 0;
8943 _ACEOF
8944 if ac_fn_c_try_link "$LINENO"; then :
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8946 $as_echo "yes" >&6; }
8947 X_LIBS="$X_LIBS -R $x_libraries"
8948 else
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8950 $as_echo "neither works" >&6; }
8952 rm -f core conftest.err conftest.$ac_objext \
8953 conftest$ac_exeext conftest.$ac_ext
8955 rm -f core conftest.err conftest.$ac_objext \
8956 conftest$ac_exeext conftest.$ac_ext
8957 ac_c_werror_flag=$ac_xsave_c_werror_flag
8958 LIBS=$ac_xsave_LIBS
8961 # Check for system-dependent libraries X programs must link with.
8962 # Do this before checking for the system-independent R6 libraries
8963 # (-lICE), since we may need -lsocket or whatever for X linking.
8965 if test "$ISC" = yes; then
8966 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8967 else
8968 # Martyn Johnson says this is needed for Ultrix, if the X
8969 # libraries were built with DECnet support. And Karl Berry says
8970 # the Alpha needs dnet_stub (dnet does not exist).
8971 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8975 /* Override any GCC internal prototype to avoid an error.
8976 Use char because int might match the return type of a GCC
8977 builtin and then its argument prototype would still apply. */
8978 #ifdef __cplusplus
8979 extern "C"
8980 #endif
8981 char XOpenDisplay ();
8983 main ()
8985 return XOpenDisplay ();
8987 return 0;
8989 _ACEOF
8990 if ac_fn_c_try_link "$LINENO"; then :
8992 else
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8994 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8995 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 ac_check_lib_save_LIBS=$LIBS
8999 LIBS="-ldnet $LIBS"
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9003 /* Override any GCC internal prototype to avoid an error.
9004 Use char because int might match the return type of a GCC
9005 builtin and then its argument prototype would still apply. */
9006 #ifdef __cplusplus
9007 extern "C"
9008 #endif
9009 char dnet_ntoa ();
9011 main ()
9013 return dnet_ntoa ();
9015 return 0;
9017 _ACEOF
9018 if ac_fn_c_try_link "$LINENO"; then :
9019 ac_cv_lib_dnet_dnet_ntoa=yes
9020 else
9021 ac_cv_lib_dnet_dnet_ntoa=no
9023 rm -f core conftest.err conftest.$ac_objext \
9024 conftest$ac_exeext conftest.$ac_ext
9025 LIBS=$ac_check_lib_save_LIBS
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9028 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9029 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9030 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9033 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
9035 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
9036 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 ac_check_lib_save_LIBS=$LIBS
9040 LIBS="-ldnet_stub $LIBS"
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9044 /* Override any GCC internal prototype to avoid an error.
9045 Use char because int might match the return type of a GCC
9046 builtin and then its argument prototype would still apply. */
9047 #ifdef __cplusplus
9048 extern "C"
9049 #endif
9050 char dnet_ntoa ();
9052 main ()
9054 return dnet_ntoa ();
9056 return 0;
9058 _ACEOF
9059 if ac_fn_c_try_link "$LINENO"; then :
9060 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9061 else
9062 ac_cv_lib_dnet_stub_dnet_ntoa=no
9064 rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_lib_save_LIBS
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9069 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
9070 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
9071 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9076 rm -f core conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9078 LIBS="$ac_xsave_LIBS"
9080 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9081 # to get the SysV transport functions.
9082 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9083 # needs -lnsl.
9084 # The nsl library prevents programs from opening the X display
9085 # on Irix 5.2, according to T.E. Dickey.
9086 # The functions gethostbyname, getservbyname, and inet_addr are
9087 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9088 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9089 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9093 if test $ac_cv_func_gethostbyname = no; then
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9095 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9096 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 ac_check_lib_save_LIBS=$LIBS
9100 LIBS="-lnsl $LIBS"
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9104 /* Override any GCC internal prototype to avoid an error.
9105 Use char because int might match the return type of a GCC
9106 builtin and then its argument prototype would still apply. */
9107 #ifdef __cplusplus
9108 extern "C"
9109 #endif
9110 char gethostbyname ();
9112 main ()
9114 return gethostbyname ();
9116 return 0;
9118 _ACEOF
9119 if ac_fn_c_try_link "$LINENO"; then :
9120 ac_cv_lib_nsl_gethostbyname=yes
9121 else
9122 ac_cv_lib_nsl_gethostbyname=no
9124 rm -f core conftest.err conftest.$ac_objext \
9125 conftest$ac_exeext conftest.$ac_ext
9126 LIBS=$ac_check_lib_save_LIBS
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9129 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9130 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9134 if test $ac_cv_lib_nsl_gethostbyname = no; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
9136 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9137 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 ac_check_lib_save_LIBS=$LIBS
9141 LIBS="-lbsd $LIBS"
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9145 /* Override any GCC internal prototype to avoid an error.
9146 Use char because int might match the return type of a GCC
9147 builtin and then its argument prototype would still apply. */
9148 #ifdef __cplusplus
9149 extern "C"
9150 #endif
9151 char gethostbyname ();
9153 main ()
9155 return gethostbyname ();
9157 return 0;
9159 _ACEOF
9160 if ac_fn_c_try_link "$LINENO"; then :
9161 ac_cv_lib_bsd_gethostbyname=yes
9162 else
9163 ac_cv_lib_bsd_gethostbyname=no
9165 rm -f core conftest.err conftest.$ac_objext \
9166 conftest$ac_exeext conftest.$ac_ext
9167 LIBS=$ac_check_lib_save_LIBS
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9170 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9171 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9178 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9179 # socket/setsockopt and other routines are undefined under SCO ODT
9180 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9181 # on later versions), says Simon Leinen: it contains gethostby*
9182 # variants that don't use the name server (or something). -lsocket
9183 # must be given before -lnsl if both are needed. We assume that
9184 # if connect needs -lnsl, so does gethostbyname.
9185 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9186 if test "x$ac_cv_func_connect" = xyes; then :
9190 if test $ac_cv_func_connect = no; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9192 $as_echo_n "checking for connect in -lsocket... " >&6; }
9193 if ${ac_cv_lib_socket_connect+:} false; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 ac_check_lib_save_LIBS=$LIBS
9197 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9201 /* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
9204 #ifdef __cplusplus
9205 extern "C"
9206 #endif
9207 char connect ();
9209 main ()
9211 return connect ();
9213 return 0;
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9217 ac_cv_lib_socket_connect=yes
9218 else
9219 ac_cv_lib_socket_connect=no
9221 rm -f core conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 LIBS=$ac_check_lib_save_LIBS
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9226 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9227 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9228 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9233 # Guillermo Gomez says -lposix is necessary on A/UX.
9234 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9235 if test "x$ac_cv_func_remove" = xyes; then :
9239 if test $ac_cv_func_remove = no; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9241 $as_echo_n "checking for remove in -lposix... " >&6; }
9242 if ${ac_cv_lib_posix_remove+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 ac_check_lib_save_LIBS=$LIBS
9246 LIBS="-lposix $LIBS"
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9250 /* Override any GCC internal prototype to avoid an error.
9251 Use char because int might match the return type of a GCC
9252 builtin and then its argument prototype would still apply. */
9253 #ifdef __cplusplus
9254 extern "C"
9255 #endif
9256 char remove ();
9258 main ()
9260 return remove ();
9262 return 0;
9264 _ACEOF
9265 if ac_fn_c_try_link "$LINENO"; then :
9266 ac_cv_lib_posix_remove=yes
9267 else
9268 ac_cv_lib_posix_remove=no
9270 rm -f core conftest.err conftest.$ac_objext \
9271 conftest$ac_exeext conftest.$ac_ext
9272 LIBS=$ac_check_lib_save_LIBS
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9275 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9276 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9277 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9282 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9283 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9284 if test "x$ac_cv_func_shmat" = xyes; then :
9288 if test $ac_cv_func_shmat = no; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9290 $as_echo_n "checking for shmat in -lipc... " >&6; }
9291 if ${ac_cv_lib_ipc_shmat+:} false; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 ac_check_lib_save_LIBS=$LIBS
9295 LIBS="-lipc $LIBS"
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9299 /* Override any GCC internal prototype to avoid an error.
9300 Use char because int might match the return type of a GCC
9301 builtin and then its argument prototype would still apply. */
9302 #ifdef __cplusplus
9303 extern "C"
9304 #endif
9305 char shmat ();
9307 main ()
9309 return shmat ();
9311 return 0;
9313 _ACEOF
9314 if ac_fn_c_try_link "$LINENO"; then :
9315 ac_cv_lib_ipc_shmat=yes
9316 else
9317 ac_cv_lib_ipc_shmat=no
9319 rm -f core conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321 LIBS=$ac_check_lib_save_LIBS
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9324 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9325 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9332 # Check for libraries that X11R6 Xt/Xaw programs need.
9333 ac_save_LDFLAGS=$LDFLAGS
9334 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9335 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9336 # check for ICE first), but we must link in the order -lSM -lICE or
9337 # we get undefined symbols. So assume we have SM if we have ICE.
9338 # These have to be linked with before -lX11, unlike the other
9339 # libraries we check for below, so use a different variable.
9340 # John Interrante, Karl Berry
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9342 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9343 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 ac_check_lib_save_LIBS=$LIBS
9347 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9351 /* Override any GCC internal prototype to avoid an error.
9352 Use char because int might match the return type of a GCC
9353 builtin and then its argument prototype would still apply. */
9354 #ifdef __cplusplus
9355 extern "C"
9356 #endif
9357 char IceConnectionNumber ();
9359 main ()
9361 return IceConnectionNumber ();
9363 return 0;
9365 _ACEOF
9366 if ac_fn_c_try_link "$LINENO"; then :
9367 ac_cv_lib_ICE_IceConnectionNumber=yes
9368 else
9369 ac_cv_lib_ICE_IceConnectionNumber=no
9371 rm -f core conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
9373 LIBS=$ac_check_lib_save_LIBS
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9376 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9377 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9378 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9381 LDFLAGS=$ac_save_LDFLAGS
9386 if test "$have_x" = "yes"
9387 then
9388 XLIB="-lX11"
9389 ac_save_CPPFLAGS="$CPPFLAGS"
9390 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9393 $as_echo_n "checking for -lX11... " >&6; }
9394 if ${ac_cv_lib_soname_X11+:} false; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 ac_check_soname_save_LIBS=$LIBS
9398 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9402 /* Override any GCC internal prototype to avoid an error.
9403 Use char because int might match the return type of a GCC
9404 builtin and then its argument prototype would still apply. */
9405 #ifdef __cplusplus
9406 extern "C"
9407 #endif
9408 char XCreateWindow ();
9410 main ()
9412 return XCreateWindow ();
9414 return 0;
9416 _ACEOF
9417 if ac_fn_c_try_link "$LINENO"; then :
9418 case "$LIBEXT" in
9419 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9420 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'` ;;
9421 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9422 if test "x$ac_cv_lib_soname_X11" = x; then :
9423 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9424 fi ;;
9425 esac
9427 rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429 LIBS=$ac_check_soname_save_LIBS
9431 if test "x$ac_cv_lib_soname_X11" = "x"; then :
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9433 $as_echo "not found" >&6; }
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9437 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9439 cat >>confdefs.h <<_ACEOF
9440 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9441 _ACEOF
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9446 $as_echo_n "checking for -lXext... " >&6; }
9447 if ${ac_cv_lib_soname_Xext+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 ac_check_soname_save_LIBS=$LIBS
9451 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9455 /* Override any GCC internal prototype to avoid an error.
9456 Use char because int might match the return type of a GCC
9457 builtin and then its argument prototype would still apply. */
9458 #ifdef __cplusplus
9459 extern "C"
9460 #endif
9461 char XextCreateExtension ();
9463 main ()
9465 return XextCreateExtension ();
9467 return 0;
9469 _ACEOF
9470 if ac_fn_c_try_link "$LINENO"; then :
9471 case "$LIBEXT" in
9472 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9473 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'` ;;
9474 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9475 if test "x$ac_cv_lib_soname_Xext" = x; then :
9476 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9477 fi ;;
9478 esac
9480 rm -f core conftest.err conftest.$ac_objext \
9481 conftest$ac_exeext conftest.$ac_ext
9482 LIBS=$ac_check_soname_save_LIBS
9484 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9486 $as_echo "not found" >&6; }
9488 else
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9490 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9492 cat >>confdefs.h <<_ACEOF
9493 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9494 _ACEOF
9496 XLIB="-lXext $XLIB"
9499 for ac_header in X11/Xlib.h \
9500 X11/XKBlib.h \
9501 X11/Xutil.h \
9502 X11/Xcursor/Xcursor.h \
9503 X11/extensions/shape.h \
9504 X11/extensions/XInput.h \
9505 X11/extensions/XInput2.h \
9506 X11/extensions/XShm.h \
9507 X11/extensions/Xcomposite.h \
9508 X11/extensions/Xinerama.h \
9509 X11/extensions/Xrandr.h \
9510 X11/extensions/Xrender.h \
9511 X11/extensions/xf86vmode.h \
9512 X11/extensions/xf86vmproto.h
9513 do :
9514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9515 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9516 # include <X11/Xlib.h>
9517 #endif
9518 #ifdef HAVE_X11_XUTIL_H
9519 # include <X11/Xutil.h>
9520 #endif
9522 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9523 cat >>confdefs.h <<_ACEOF
9524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9525 _ACEOF
9529 done
9532 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9533 then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9535 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9536 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 ac_check_lib_save_LIBS=$LIBS
9540 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9544 /* Override any GCC internal prototype to avoid an error.
9545 Use char because int might match the return type of a GCC
9546 builtin and then its argument prototype would still apply. */
9547 #ifdef __cplusplus
9548 extern "C"
9549 #endif
9550 char XkbQueryExtension ();
9552 main ()
9554 return XkbQueryExtension ();
9556 return 0;
9558 _ACEOF
9559 if ac_fn_c_try_link "$LINENO"; then :
9560 ac_cv_lib_X11_XkbQueryExtension=yes
9561 else
9562 ac_cv_lib_X11_XkbQueryExtension=no
9564 rm -f core conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9566 LIBS=$ac_check_lib_save_LIBS
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9569 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9570 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9572 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9578 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9579 then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9581 $as_echo_n "checking for -lXcursor... " >&6; }
9582 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 ac_check_soname_save_LIBS=$LIBS
9586 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9590 /* Override any GCC internal prototype to avoid an error.
9591 Use char because int might match the return type of a GCC
9592 builtin and then its argument prototype would still apply. */
9593 #ifdef __cplusplus
9594 extern "C"
9595 #endif
9596 char XcursorImageLoadCursor ();
9598 main ()
9600 return XcursorImageLoadCursor ();
9602 return 0;
9604 _ACEOF
9605 if ac_fn_c_try_link "$LINENO"; then :
9606 case "$LIBEXT" in
9607 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9608 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'` ;;
9609 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9610 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
9611 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9612 fi ;;
9613 esac
9615 rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_soname_save_LIBS
9619 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9621 $as_echo "not found" >&6; }
9623 else
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9625 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9627 cat >>confdefs.h <<_ACEOF
9628 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9629 _ACEOF
9634 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9635 case "x$with_xcursor" in
9636 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9637 xno) ;;
9638 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9639 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9640 esac
9643 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9644 then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9646 $as_echo_n "checking for -lXi... " >&6; }
9647 if ${ac_cv_lib_soname_Xi+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 ac_check_soname_save_LIBS=$LIBS
9651 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9655 /* Override any GCC internal prototype to avoid an error.
9656 Use char because int might match the return type of a GCC
9657 builtin and then its argument prototype would still apply. */
9658 #ifdef __cplusplus
9659 extern "C"
9660 #endif
9661 char XOpenDevice ();
9663 main ()
9665 return XOpenDevice ();
9667 return 0;
9669 _ACEOF
9670 if ac_fn_c_try_link "$LINENO"; then :
9671 case "$LIBEXT" in
9672 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9673 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'` ;;
9674 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9675 if test "x$ac_cv_lib_soname_Xi" = x; then :
9676 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9677 fi ;;
9678 esac
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 LIBS=$ac_check_soname_save_LIBS
9684 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9686 $as_echo "not found" >&6; }
9688 else
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9690 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9692 cat >>confdefs.h <<_ACEOF
9693 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9694 _ACEOF
9699 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9700 case "x$with_xinput" in
9701 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9702 xno) ;;
9703 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9704 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9705 esac
9708 if test "x$ac_cv_lib_soname_Xi" != x
9709 then
9710 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9711 case "x$with_xinput2" in
9712 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9713 xno) ;;
9714 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9715 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9716 esac
9720 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9721 then
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9723 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9724 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 ac_check_lib_save_LIBS=$LIBS
9728 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9732 /* Override any GCC internal prototype to avoid an error.
9733 Use char because int might match the return type of a GCC
9734 builtin and then its argument prototype would still apply. */
9735 #ifdef __cplusplus
9736 extern "C"
9737 #endif
9738 char XShmQueryExtension ();
9740 main ()
9742 return XShmQueryExtension ();
9744 return 0;
9746 _ACEOF
9747 if ac_fn_c_try_link "$LINENO"; then :
9748 ac_cv_lib_Xext_XShmQueryExtension=yes
9749 else
9750 ac_cv_lib_Xext_XShmQueryExtension=no
9752 rm -f core conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9754 LIBS=$ac_check_lib_save_LIBS
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9757 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9758 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9760 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9765 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9766 case "x$with_xshm" in
9767 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9768 xno) ;;
9769 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9770 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9771 esac
9774 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9775 then
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9777 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9778 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 ac_check_lib_save_LIBS=$LIBS
9782 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9786 /* Override any GCC internal prototype to avoid an error.
9787 Use char because int might match the return type of a GCC
9788 builtin and then its argument prototype would still apply. */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 char XShapeQueryExtension ();
9794 main ()
9796 return XShapeQueryExtension ();
9798 return 0;
9800 _ACEOF
9801 if ac_fn_c_try_link "$LINENO"; then :
9802 ac_cv_lib_Xext_XShapeQueryExtension=yes
9803 else
9804 ac_cv_lib_Xext_XShapeQueryExtension=no
9806 rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 LIBS=$ac_check_lib_save_LIBS
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9811 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9812 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9814 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9819 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9820 case "x$with_xshape" in
9821 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9822 xno) ;;
9823 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9824 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9825 esac
9828 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9829 then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9831 $as_echo_n "checking for -lXxf86vm... " >&6; }
9832 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 ac_check_soname_save_LIBS=$LIBS
9836 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9840 /* Override any GCC internal prototype to avoid an error.
9841 Use char because int might match the return type of a GCC
9842 builtin and then its argument prototype would still apply. */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 char XF86VidModeQueryExtension ();
9848 main ()
9850 return XF86VidModeQueryExtension ();
9852 return 0;
9854 _ACEOF
9855 if ac_fn_c_try_link "$LINENO"; then :
9856 case "$LIBEXT" in
9857 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9858 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'` ;;
9859 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9860 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
9861 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9862 fi ;;
9863 esac
9865 rm -f core conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867 LIBS=$ac_check_soname_save_LIBS
9869 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9871 $as_echo "not found" >&6; }
9873 else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9875 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9877 cat >>confdefs.h <<_ACEOF
9878 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9879 _ACEOF
9884 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9885 case "x$with_xxf86vm" in
9886 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9887 xno) ;;
9888 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9889 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9890 esac
9893 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"
9894 then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9896 $as_echo_n "checking for -lXrender... " >&6; }
9897 if ${ac_cv_lib_soname_Xrender+:} false; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 ac_check_soname_save_LIBS=$LIBS
9901 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9905 /* Override any GCC internal prototype to avoid an error.
9906 Use char because int might match the return type of a GCC
9907 builtin and then its argument prototype would still apply. */
9908 #ifdef __cplusplus
9909 extern "C"
9910 #endif
9911 char XRenderQueryExtension ();
9913 main ()
9915 return XRenderQueryExtension ();
9917 return 0;
9919 _ACEOF
9920 if ac_fn_c_try_link "$LINENO"; then :
9921 case "$LIBEXT" in
9922 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9923 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'` ;;
9924 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9925 if test "x$ac_cv_lib_soname_Xrender" = x; then :
9926 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9927 fi ;;
9928 esac
9930 rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_soname_save_LIBS
9934 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9936 $as_echo "not found" >&6; }
9938 else
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
9940 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
9942 cat >>confdefs.h <<_ACEOF
9943 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9944 _ACEOF
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
9947 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9948 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 ac_check_lib_save_LIBS=$LIBS
9952 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9956 /* Override any GCC internal prototype to avoid an error.
9957 Use char because int might match the return type of a GCC
9958 builtin and then its argument prototype would still apply. */
9959 #ifdef __cplusplus
9960 extern "C"
9961 #endif
9962 char XRenderSetPictureTransform ();
9964 main ()
9966 return XRenderSetPictureTransform ();
9968 return 0;
9970 _ACEOF
9971 if ac_fn_c_try_link "$LINENO"; then :
9972 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9973 else
9974 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9976 rm -f core conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978 LIBS=$ac_check_lib_save_LIBS
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9981 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9982 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
9984 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
9989 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
9990 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
9991 $as_echo_n "(cached) " >&6
9992 else
9993 ac_check_lib_save_LIBS=$LIBS
9994 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996 /* end confdefs.h. */
9998 /* Override any GCC internal prototype to avoid an error.
9999 Use char because int might match the return type of a GCC
10000 builtin and then its argument prototype would still apply. */
10001 #ifdef __cplusplus
10002 extern "C"
10003 #endif
10004 char XRenderCreateLinearGradient ();
10006 main ()
10008 return XRenderCreateLinearGradient ();
10010 return 0;
10012 _ACEOF
10013 if ac_fn_c_try_link "$LINENO"; then :
10014 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
10015 else
10016 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
10018 rm -f core conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020 LIBS=$ac_check_lib_save_LIBS
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
10023 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
10024 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
10026 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
10033 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
10034 case "x$with_xrender" in
10035 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
10036 xno) ;;
10037 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
10038 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
10039 esac
10042 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
10043 then
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 #include <X11/Xlib.h>
10047 #include <X11/extensions/Xrandr.h>
10049 main ()
10051 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
10053 return 0;
10055 _ACEOF
10056 if ac_fn_c_try_compile "$LINENO"; then :
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
10058 $as_echo_n "checking for -lXrandr... " >&6; }
10059 if ${ac_cv_lib_soname_Xrandr+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 ac_check_soname_save_LIBS=$LIBS
10063 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10067 /* Override any GCC internal prototype to avoid an error.
10068 Use char because int might match the return type of a GCC
10069 builtin and then its argument prototype would still apply. */
10070 #ifdef __cplusplus
10071 extern "C"
10072 #endif
10073 char XRRQueryExtension ();
10075 main ()
10077 return XRRQueryExtension ();
10079 return 0;
10081 _ACEOF
10082 if ac_fn_c_try_link "$LINENO"; then :
10083 case "$LIBEXT" in
10084 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10085 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'` ;;
10086 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10087 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
10088 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10089 fi ;;
10090 esac
10092 rm -f core conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_soname_save_LIBS
10096 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10098 $as_echo "not found" >&6; }
10100 else
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
10102 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
10104 cat >>confdefs.h <<_ACEOF
10105 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
10106 _ACEOF
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 #include <X11/Xlib.h>
10111 #include <X11/extensions/Xrandr.h>
10113 main ()
10115 static typeof(XRRGetScreenResources) *f; if (f) return 0;
10117 return 0;
10119 _ACEOF
10120 if ac_fn_c_try_compile "$LINENO"; then :
10122 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
10131 case "x$with_xrandr" in
10132 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
10133 xno) ;;
10134 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
10135 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
10136 esac
10139 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10140 then
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 #include <X11/Xlib.h>
10144 #include <X11/extensions/Xinerama.h>
10146 main ()
10148 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10150 return 0;
10152 _ACEOF
10153 if ac_fn_c_try_compile "$LINENO"; then :
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10155 $as_echo_n "checking for -lXinerama... " >&6; }
10156 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 ac_check_soname_save_LIBS=$LIBS
10160 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char XineramaQueryScreens ();
10172 main ()
10174 return XineramaQueryScreens ();
10176 return 0;
10178 _ACEOF
10179 if ac_fn_c_try_link "$LINENO"; then :
10180 case "$LIBEXT" in
10181 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10182 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'` ;;
10183 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10184 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
10185 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10186 fi ;;
10187 esac
10189 rm -f core conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10191 LIBS=$ac_check_soname_save_LIBS
10193 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10195 $as_echo "not found" >&6; }
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10199 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10201 cat >>confdefs.h <<_ACEOF
10202 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10203 _ACEOF
10208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10211 case "x$with_xinerama" in
10212 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10213 xno) ;;
10214 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10215 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10216 esac
10219 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10220 then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10222 $as_echo_n "checking for -lXcomposite... " >&6; }
10223 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 ac_check_soname_save_LIBS=$LIBS
10227 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 char XCompositeRedirectWindow ();
10239 main ()
10241 return XCompositeRedirectWindow ();
10243 return 0;
10245 _ACEOF
10246 if ac_fn_c_try_link "$LINENO"; then :
10247 case "$LIBEXT" in
10248 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10249 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'` ;;
10250 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10251 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
10252 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10253 fi ;;
10254 esac
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LIBS=$ac_check_soname_save_LIBS
10260 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10262 $as_echo "not found" >&6; }
10264 else
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10266 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10268 cat >>confdefs.h <<_ACEOF
10269 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10270 _ACEOF
10275 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10276 case "x$with_xcomposite" in
10277 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10278 xno) ;;
10279 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10280 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10281 esac
10284 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10285 #include <X11/Xlib.h>
10286 #endif
10288 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10290 cat >>confdefs.h <<_ACEOF
10291 #define HAVE_XICCALLBACK_CALLBACK 1
10292 _ACEOF
10296 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10297 #include <X11/Xlib.h>
10298 #endif
10300 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10302 cat >>confdefs.h <<_ACEOF
10303 #define HAVE_XEVENT_XCOOKIE 1
10304 _ACEOF
10311 opengl_msg=""
10312 if test "x$with_opengl" != "xno"
10313 then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10315 $as_echo_n "checking for -lGL... " >&6; }
10316 if ${ac_cv_lib_soname_GL+:} false; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 ac_check_soname_save_LIBS=$LIBS
10320 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10324 /* Override any GCC internal prototype to avoid an error.
10325 Use char because int might match the return type of a GCC
10326 builtin and then its argument prototype would still apply. */
10327 #ifdef __cplusplus
10328 extern "C"
10329 #endif
10330 char glXCreateContext ();
10332 main ()
10334 return glXCreateContext ();
10336 return 0;
10338 _ACEOF
10339 if ac_fn_c_try_link "$LINENO"; then :
10340 case "$LIBEXT" in
10341 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10342 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'` ;;
10343 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10344 if test "x$ac_cv_lib_soname_GL" = x; then :
10345 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10346 fi ;;
10347 esac
10349 rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10351 LIBS=$ac_check_soname_save_LIBS
10353 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10355 $as_echo "not found" >&6; }
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10357 $as_echo_n "checking for -lGL... " >&6; }
10358 if ${ac_cv_lib_soname_GL+:} false; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 ac_check_soname_save_LIBS=$LIBS
10362 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"
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10366 /* Override any GCC internal prototype to avoid an error.
10367 Use char because int might match the return type of a GCC
10368 builtin and then its argument prototype would still apply. */
10369 #ifdef __cplusplus
10370 extern "C"
10371 #endif
10372 char glXCreateContext ();
10374 main ()
10376 return glXCreateContext ();
10378 return 0;
10380 _ACEOF
10381 if ac_fn_c_try_link "$LINENO"; then :
10382 case "$LIBEXT" in
10383 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10384 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'` ;;
10385 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10386 if test "x$ac_cv_lib_soname_GL" = x; then :
10387 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10388 fi ;;
10389 esac
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10393 LIBS=$ac_check_soname_save_LIBS
10395 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10397 $as_echo "not found" >&6; }
10398 if test -f /usr/X11R6/lib/libGL.a
10399 then
10400 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10401 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10402 else
10403 opengl_msg="No OpenGL library found on this system."
10405 else
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10407 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10409 cat >>confdefs.h <<_ACEOF
10410 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10411 _ACEOF
10413 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"
10415 else
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10417 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10419 cat >>confdefs.h <<_ACEOF
10420 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10421 _ACEOF
10423 OPENGL_LIBS="-lGL"
10425 if test "x$with_glu" != "xno"
10426 then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10428 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10429 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 ac_check_lib_save_LIBS=$LIBS
10433 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10437 /* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 char gluLookAt ();
10445 main ()
10447 return gluLookAt ();
10449 return 0;
10451 _ACEOF
10452 if ac_fn_c_try_link "$LINENO"; then :
10453 ac_cv_lib_GLU_gluLookAt=yes
10454 else
10455 ac_cv_lib_GLU_gluLookAt=no
10457 rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LIBS=$ac_check_lib_save_LIBS
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10462 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10463 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10467 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10468 case "x$with_glu" in
10469 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10470 xno) ;;
10471 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10472 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10473 esac
10477 if test "x$with_osmesa" != "xno"
10478 then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10480 $as_echo_n "checking for -lOSMesa... " >&6; }
10481 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 ac_check_soname_save_LIBS=$LIBS
10485 LIBS="-lOSMesa $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10489 /* Override any GCC internal prototype to avoid an error.
10490 Use char because int might match the return type of a GCC
10491 builtin and then its argument prototype would still apply. */
10492 #ifdef __cplusplus
10493 extern "C"
10494 #endif
10495 char glAccum ();
10497 main ()
10499 return glAccum ();
10501 return 0;
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 case "$LIBEXT" in
10506 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10507 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'` ;;
10508 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10509 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
10510 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10511 fi ;;
10512 esac
10514 rm -f core conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10516 LIBS=$ac_check_soname_save_LIBS
10518 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10520 $as_echo "not found" >&6; }
10522 else
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10524 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10526 cat >>confdefs.h <<_ACEOF
10527 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10528 _ACEOF
10532 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10533 case "x$with_osmesa" in
10534 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10535 xno) ;;
10536 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10537 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10538 esac
10542 if test -n "$opengl_msg"; then :
10543 case "x$with_opengl" in
10544 x) as_fn_append wine_warnings "|$opengl_msg
10545 OpenGL and Direct3D won't be supported." ;;
10546 xno) ;;
10547 *) as_fn_error $? "$opengl_msg
10548 OpenGL and Direct3D won't be supported.
10549 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10550 esac
10553 CPPFLAGS="$ac_save_CPPFLAGS"
10554 else
10555 XLIB=""
10556 X_CFLAGS=""
10557 X_LIBS=""
10558 enable_winex11_drv=${enable_winex11_drv:-no}
10560 if test "x$XLIB" = "x"; then :
10561 case "x$with_x" in
10562 xno) ;;
10563 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10564 without X support, which probably isn't what you want. You will need
10565 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10566 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10567 esac
10570 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10572 if test "$ac_cv_header_CL_cl_h" = "yes"
10573 then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10575 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10576 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10577 $as_echo_n "(cached) " >&6
10578 else
10579 ac_check_lib_save_LIBS=$LIBS
10580 LIBS="-lOpenCL $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 clGetPlatformInfo ();
10592 main ()
10594 return clGetPlatformInfo ();
10596 return 0;
10598 _ACEOF
10599 if ac_fn_c_try_link "$LINENO"; then :
10600 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10601 else
10602 ac_cv_lib_OpenCL_clGetPlatformInfo=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_OpenCL_clGetPlatformInfo" >&5
10609 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10610 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10611 LIBOPENCL="-lOpenCL"
10616 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10617 case "x$with_opencl" in
10618 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10619 xno) ;;
10620 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10621 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10622 esac
10624 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10627 if test "x$with_xml" != "xno"
10628 then
10629 if test -n "$XML2_CFLAGS"; then :
10631 elif test -n "$PKG_CONFIG"; then :
10632 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10634 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10635 if test -n "$XML2_LIBS"; then :
10637 elif test -n "$PKG_CONFIG"; then :
10638 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10640 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10641 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10642 ac_save_CPPFLAGS=$CPPFLAGS
10643 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10644 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10645 do :
10646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10647 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10648 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10649 cat >>confdefs.h <<_ACEOF
10650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10651 _ACEOF
10655 done
10657 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"
10658 then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10660 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10661 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 ac_check_lib_save_LIBS=$LIBS
10665 LIBS="-lxml2 $XML2_LIBS $LIBS"
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10669 /* Override any GCC internal prototype to avoid an error.
10670 Use char because int might match the return type of a GCC
10671 builtin and then its argument prototype would still apply. */
10672 #ifdef __cplusplus
10673 extern "C"
10674 #endif
10675 char xmlParseMemory ();
10677 main ()
10679 return xmlParseMemory ();
10681 return 0;
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"; then :
10685 ac_cv_lib_xml2_xmlParseMemory=yes
10686 else
10687 ac_cv_lib_xml2_xmlParseMemory=no
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10694 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10695 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10697 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10699 else
10700 XML2_LIBS=""
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10704 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10705 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 ac_check_lib_save_LIBS=$LIBS
10709 LIBS="-lxml2 $XML2_LIBS $LIBS"
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 char xmlReadMemory ();
10721 main ()
10723 return xmlReadMemory ();
10725 return 0;
10727 _ACEOF
10728 if ac_fn_c_try_link "$LINENO"; then :
10729 ac_cv_lib_xml2_xmlReadMemory=yes
10730 else
10731 ac_cv_lib_xml2_xmlReadMemory=no
10733 rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735 LIBS=$ac_check_lib_save_LIBS
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10738 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10739 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10741 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10746 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10747 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-lxml2 $XML2_LIBS $LIBS"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 char xmlNewDocPI ();
10763 main ()
10765 return xmlNewDocPI ();
10767 return 0;
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10771 ac_cv_lib_xml2_xmlNewDocPI=yes
10772 else
10773 ac_cv_lib_xml2_xmlNewDocPI=no
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10777 LIBS=$ac_check_lib_save_LIBS
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10780 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10781 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10783 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10788 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10789 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10790 $as_echo_n "(cached) " >&6
10791 else
10792 ac_check_lib_save_LIBS=$LIBS
10793 LIBS="-lxml2 $XML2_LIBS $LIBS"
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10797 /* Override any GCC internal prototype to avoid an error.
10798 Use char because int might match the return type of a GCC
10799 builtin and then its argument prototype would still apply. */
10800 #ifdef __cplusplus
10801 extern "C"
10802 #endif
10803 char xmlSchemaSetParserStructuredErrors ();
10805 main ()
10807 return xmlSchemaSetParserStructuredErrors ();
10809 return 0;
10811 _ACEOF
10812 if ac_fn_c_try_link "$LINENO"; then :
10813 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10814 else
10815 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10817 rm -f core conftest.err conftest.$ac_objext \
10818 conftest$ac_exeext conftest.$ac_ext
10819 LIBS=$ac_check_lib_save_LIBS
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10822 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10823 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10825 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10830 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10831 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 ac_check_lib_save_LIBS=$LIBS
10835 LIBS="-lxml2 $XML2_LIBS $LIBS"
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10839 /* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
10842 #ifdef __cplusplus
10843 extern "C"
10844 #endif
10845 char xmlSchemaSetValidStructuredErrors ();
10847 main ()
10849 return xmlSchemaSetValidStructuredErrors ();
10851 return 0;
10853 _ACEOF
10854 if ac_fn_c_try_link "$LINENO"; then :
10855 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10856 else
10857 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
10859 rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
10864 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
10865 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
10867 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
10872 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
10873 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 ac_check_lib_save_LIBS=$LIBS
10877 LIBS="-lxml2 $XML2_LIBS $LIBS"
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10881 /* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10884 #ifdef __cplusplus
10885 extern "C"
10886 #endif
10887 char xmlFirstElementChild ();
10889 main ()
10891 return xmlFirstElementChild ();
10893 return 0;
10895 _ACEOF
10896 if ac_fn_c_try_link "$LINENO"; then :
10897 ac_cv_lib_xml2_xmlFirstElementChild=yes
10898 else
10899 ac_cv_lib_xml2_xmlFirstElementChild=no
10901 rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10903 LIBS=$ac_check_lib_save_LIBS
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
10906 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
10907 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
10909 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
10913 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
10915 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
10917 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
10921 else
10922 XML2_CFLAGS=""
10923 XML2_LIBS=""
10925 CPPFLAGS=$ac_save_CPPFLAGS
10926 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10927 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10930 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
10931 case "x$with_xml" in
10932 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
10933 xno) ;;
10934 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
10935 This is an error since --with-xml was requested." "$LINENO" 5 ;;
10936 esac
10939 if test "x$with_xslt" != "xno"
10940 then
10941 if test -n "$XSLT_CFLAGS"; then :
10943 elif test -n "$PKG_CONFIG"; then :
10944 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
10946 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
10947 if test -n "$XSLT_LIBS"; then :
10949 elif test -n "$PKG_CONFIG"; then :
10950 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10952 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10953 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10954 ac_save_CPPFLAGS=$CPPFLAGS
10955 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10956 for ac_header in libxslt/pattern.h libxslt/transform.h
10957 do :
10958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10959 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10960 # include <libxslt/pattern.h>
10961 #endif
10963 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10964 cat >>confdefs.h <<_ACEOF
10965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10966 _ACEOF
10970 done
10972 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10973 then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10975 $as_echo_n "checking for -lxslt... " >&6; }
10976 if ${ac_cv_lib_soname_xslt+:} false; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 ac_check_soname_save_LIBS=$LIBS
10980 LIBS="-lxslt $XSLT_LIBS $LIBS"
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char xsltCompilePattern ();
10992 main ()
10994 return xsltCompilePattern ();
10996 return 0;
10998 _ACEOF
10999 if ac_fn_c_try_link "$LINENO"; then :
11000 case "$LIBEXT" in
11001 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11002 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'` ;;
11003 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11004 if test "x$ac_cv_lib_soname_xslt" = x; then :
11005 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11006 fi ;;
11007 esac
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_soname_save_LIBS
11013 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11015 $as_echo "not found" >&6; }
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
11019 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
11021 cat >>confdefs.h <<_ACEOF
11022 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
11023 _ACEOF
11027 else
11028 XSLT_CFLAGS=""
11030 CPPFLAGS=$ac_save_CPPFLAGS
11031 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11032 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11035 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
11036 case "x$with_xslt" in
11037 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
11038 xno) ;;
11039 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
11040 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
11041 esac
11044 if test "x$with_dbus" != "xno"
11045 then
11046 if test -n "$DBUS_CFLAGS"; then :
11048 elif test -n "$PKG_CONFIG"; then :
11049 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
11052 if test -n "$DBUS_LIBS"; then :
11054 elif test -n "$PKG_CONFIG"; then :
11055 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
11059 ac_save_CPPFLAGS=$CPPFLAGS
11060 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
11061 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
11062 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
11064 $as_echo_n "checking for -ldbus-1... " >&6; }
11065 if ${ac_cv_lib_soname_dbus_1+:} false; then :
11066 $as_echo_n "(cached) " >&6
11067 else
11068 ac_check_soname_save_LIBS=$LIBS
11069 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11073 /* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11076 #ifdef __cplusplus
11077 extern "C"
11078 #endif
11079 char dbus_connection_close ();
11081 main ()
11083 return dbus_connection_close ();
11085 return 0;
11087 _ACEOF
11088 if ac_fn_c_try_link "$LINENO"; then :
11089 case "$LIBEXT" in
11090 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11091 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'` ;;
11092 *) 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'`
11093 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
11094 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11095 fi ;;
11096 esac
11098 rm -f core conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100 LIBS=$ac_check_soname_save_LIBS
11102 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11104 $as_echo "not found" >&6; }
11105 DBUS_CFLAGS=""
11106 else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
11108 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
11110 cat >>confdefs.h <<_ACEOF
11111 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
11112 _ACEOF
11116 else
11117 DBUS_CFLAGS=""
11121 CPPFLAGS=$ac_save_CPPFLAGS
11122 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11123 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11126 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
11127 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11128 case "x$with_dbus" in
11129 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
11130 xno) ;;
11131 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
11132 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
11133 esac
11136 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
11137 then
11138 if test -n "$HAL_CFLAGS"; then :
11140 elif test -n "$PKG_CONFIG"; then :
11141 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11144 if test -n "$HAL_LIBS"; then :
11146 elif test -n "$PKG_CONFIG"; then :
11147 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11150 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11151 ac_save_CPPFLAGS=$CPPFLAGS
11152 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11153 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11154 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11156 $as_echo_n "checking for -lhal... " >&6; }
11157 if ${ac_cv_lib_soname_hal+:} false; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 ac_check_soname_save_LIBS=$LIBS
11161 LIBS="-lhal $HAL_LIBS $LIBS"
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11168 #ifdef __cplusplus
11169 extern "C"
11170 #endif
11171 char libhal_ctx_new ();
11173 main ()
11175 return libhal_ctx_new ();
11177 return 0;
11179 _ACEOF
11180 if ac_fn_c_try_link "$LINENO"; then :
11181 case "$LIBEXT" in
11182 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11183 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'` ;;
11184 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11185 if test "x$ac_cv_lib_soname_hal" = x; then :
11186 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11187 fi ;;
11188 esac
11190 rm -f core conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11192 LIBS=$ac_check_soname_save_LIBS
11194 if test "x$ac_cv_lib_soname_hal" = "x"; then :
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11196 $as_echo "not found" >&6; }
11197 HAL_CFLAGS=""
11198 else
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11200 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11202 cat >>confdefs.h <<_ACEOF
11203 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11204 _ACEOF
11208 else
11209 HAL_CFLAGS=""
11213 CPPFLAGS=$ac_save_CPPFLAGS
11214 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11215 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11217 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11218 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11219 case "x$with_hal" in
11220 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11221 xno) ;;
11222 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11223 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11224 esac
11228 if test "x$with_gnutls" != "xno"
11229 then
11230 if test -n "$GNUTLS_CFLAGS"; then :
11232 elif test -n "$PKG_CONFIG"; then :
11233 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11236 if test -n "$GNUTLS_LIBS"; then :
11238 elif test -n "$PKG_CONFIG"; then :
11239 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11243 ac_save_CPPFLAGS=$CPPFLAGS
11244 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11245 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11246 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <gnutls/gnutls.h>
11250 #include <gnutls/crypto.h>
11252 main ()
11254 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11256 return 0;
11258 _ACEOF
11259 if ac_fn_c_try_compile "$LINENO"; then :
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11261 $as_echo_n "checking for -lgnutls... " >&6; }
11262 if ${ac_cv_lib_soname_gnutls+:} false; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 ac_check_soname_save_LIBS=$LIBS
11266 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11270 /* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 char gnutls_global_init ();
11278 main ()
11280 return gnutls_global_init ();
11282 return 0;
11284 _ACEOF
11285 if ac_fn_c_try_link "$LINENO"; then :
11286 case "$LIBEXT" in
11287 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11288 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'` ;;
11289 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11290 if test "x$ac_cv_lib_soname_gnutls" = x; then :
11291 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11292 fi ;;
11293 esac
11295 rm -f core conftest.err conftest.$ac_objext \
11296 conftest$ac_exeext conftest.$ac_ext
11297 LIBS=$ac_check_soname_save_LIBS
11299 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11301 $as_echo "not found" >&6; }
11302 GNUTLS_CFLAGS=""
11303 else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11305 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11307 cat >>confdefs.h <<_ACEOF
11308 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11309 _ACEOF
11314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 else
11316 GNUTLS_CFLAGS=""
11320 CPPFLAGS=$ac_save_CPPFLAGS
11321 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11322 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11325 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11326 case "x$with_gnutls" in
11327 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11328 xno) ;;
11329 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11330 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11331 esac
11334 CURSESLIBS=""
11335 if test "$ac_cv_header_ncurses_h" = "yes"
11336 then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11338 $as_echo_n "checking for -lncurses... " >&6; }
11339 if ${ac_cv_lib_soname_ncurses+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 ac_check_soname_save_LIBS=$LIBS
11343 LIBS="-lncurses $LIBS"
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11347 /* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 char waddch ();
11355 main ()
11357 return waddch ();
11359 return 0;
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"; then :
11363 case "$LIBEXT" in
11364 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11365 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'` ;;
11366 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11367 if test "x$ac_cv_lib_soname_ncurses" = x; then :
11368 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11369 fi ;;
11370 esac
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374 LIBS=$ac_check_soname_save_LIBS
11376 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11378 $as_echo "not found" >&6; }
11380 else
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11382 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11384 cat >>confdefs.h <<_ACEOF
11385 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11386 _ACEOF
11388 CURSESLIBS="-lncurses"
11390 elif test "$ac_cv_header_curses_h" = "yes"
11391 then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11393 $as_echo_n "checking for -lcurses... " >&6; }
11394 if ${ac_cv_lib_soname_curses+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 ac_check_soname_save_LIBS=$LIBS
11398 LIBS="-lcurses $LIBS"
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char waddch ();
11410 main ()
11412 return waddch ();
11414 return 0;
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 case "$LIBEXT" in
11419 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11420 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'` ;;
11421 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11422 if test "x$ac_cv_lib_soname_curses" = x; then :
11423 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11424 fi ;;
11425 esac
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_soname_save_LIBS
11431 if test "x$ac_cv_lib_soname_curses" = "x"; then :
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11433 $as_echo "not found" >&6; }
11435 else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11437 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11439 cat >>confdefs.h <<_ACEOF
11440 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11441 _ACEOF
11443 CURSESLIBS="-lcurses"
11446 ac_save_LIBS="$LIBS"
11447 LIBS="$LIBS $CURSESLIBS"
11448 for ac_func in mousemask
11449 do :
11450 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11451 if test "x$ac_cv_func_mousemask" = xyes; then :
11452 cat >>confdefs.h <<_ACEOF
11453 #define HAVE_MOUSEMASK 1
11454 _ACEOF
11457 done
11459 LIBS="$ac_save_LIBS"
11460 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11461 case "x$with_curses" in
11462 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11463 xno) ;;
11464 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11465 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11466 esac
11469 if test "x$with_sane" != "xno"
11470 then
11471 if test -n "$SANE_CFLAGS"; then :
11473 elif test -n "$PKG_CONFIG"; then :
11474 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11476 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11477 if test -n "$SANE_LIBS"; then :
11479 elif test -n "$PKG_CONFIG"; then :
11480 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11482 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11484 ac_save_CPPFLAGS=$CPPFLAGS
11485 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11486 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11487 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11489 $as_echo_n "checking for -lsane... " >&6; }
11490 if ${ac_cv_lib_soname_sane+:} false; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 ac_check_soname_save_LIBS=$LIBS
11494 LIBS="-lsane $SANE_LIBS $LIBS"
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11501 #ifdef __cplusplus
11502 extern "C"
11503 #endif
11504 char sane_init ();
11506 main ()
11508 return sane_init ();
11510 return 0;
11512 _ACEOF
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 case "$LIBEXT" in
11515 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11516 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'` ;;
11517 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11518 if test "x$ac_cv_lib_soname_sane" = x; then :
11519 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11520 fi ;;
11521 esac
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_soname_save_LIBS
11527 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11529 $as_echo "not found" >&6; }
11530 SANE_CFLAGS=""
11531 else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11533 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11535 cat >>confdefs.h <<_ACEOF
11536 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11537 _ACEOF
11541 else
11542 SANE_CFLAGS=""
11546 CPPFLAGS=$ac_save_CPPFLAGS
11547 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11548 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11551 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11552 case "x$with_sane" in
11553 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11554 xno) ;;
11555 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11556 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11557 esac
11560 if test "x$with_v4l" != "xno"
11561 then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11563 $as_echo_n "checking for -lv4l1... " >&6; }
11564 if ${ac_cv_lib_soname_v4l1+:} false; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 ac_check_soname_save_LIBS=$LIBS
11568 LIBS="-lv4l1 $LIBS"
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11572 /* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 char v4l1_open ();
11580 main ()
11582 return v4l1_open ();
11584 return 0;
11586 _ACEOF
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 case "$LIBEXT" in
11589 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11590 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'` ;;
11591 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11592 if test "x$ac_cv_lib_soname_v4l1" = x; then :
11593 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11594 fi ;;
11595 esac
11597 rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_soname_save_LIBS
11601 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11603 $as_echo "not found" >&6; }
11605 else
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11607 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11609 cat >>confdefs.h <<_ACEOF
11610 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11611 _ACEOF
11616 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11617 case "x$with_v4l" in
11618 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11619 xno) ;;
11620 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11621 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11622 esac
11625 if test "x$with_gphoto" != "xno"
11626 then
11627 if test -n "$GPHOTO2_CFLAGS"; then :
11629 elif test -n "$PKG_CONFIG"; then :
11630 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11632 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11633 if test -n "$GPHOTO2_LIBS"; then :
11635 elif test -n "$PKG_CONFIG"; then :
11636 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11638 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11639 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11640 ac_save_CPPFLAGS=$CPPFLAGS
11641 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11642 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11643 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11645 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11646 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11654 /* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11657 #ifdef __cplusplus
11658 extern "C"
11659 #endif
11660 char gp_camera_new ();
11662 main ()
11664 return gp_camera_new ();
11666 return 0;
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"; then :
11670 ac_cv_lib_gphoto2_gp_camera_new=yes
11671 else
11672 ac_cv_lib_gphoto2_gp_camera_new=no
11674 rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11679 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11680 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11682 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11684 else
11685 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11688 else
11689 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11693 CPPFLAGS=$ac_save_CPPFLAGS
11694 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11695 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11697 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
11699 elif test -n "$PKG_CONFIG"; then :
11700 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11702 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11703 if test -n "$GPHOTO2_PORT_LIBS"; then :
11705 elif test -n "$PKG_CONFIG"; then :
11706 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11708 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11709 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11710 ac_save_CPPFLAGS=$CPPFLAGS
11711 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11712 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11713 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11715 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11716 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 ac_check_lib_save_LIBS=$LIBS
11720 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11724 /* Override any GCC internal prototype to avoid an error.
11725 Use char because int might match the return type of a GCC
11726 builtin and then its argument prototype would still apply. */
11727 #ifdef __cplusplus
11728 extern "C"
11729 #endif
11730 char gp_port_info_list_new ();
11732 main ()
11734 return gp_port_info_list_new ();
11736 return 0;
11738 _ACEOF
11739 if ac_fn_c_try_link "$LINENO"; then :
11740 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11741 else
11742 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11744 rm -f core conftest.err conftest.$ac_objext \
11745 conftest$ac_exeext conftest.$ac_ext
11746 LIBS=$ac_check_lib_save_LIBS
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11749 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11750 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11752 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11754 else
11755 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11758 else
11759 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11763 CPPFLAGS=$ac_save_CPPFLAGS
11764 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11765 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11768 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11769 case "x$with_gphoto" in
11770 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11771 xno) ;;
11772 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11773 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11774 esac
11776 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11777 case "x$with_gphoto" in
11778 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11779 xno) ;;
11780 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11781 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11782 esac
11786 if test "$ac_cv_header_resolv_h" = "yes"
11787 then
11788 ac_save_LIBS="$LIBS"
11789 for lib in '' -lresolv
11791 LIBS="$lib $ac_save_LIBS"
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11794 #ifdef HAVE_NETINET_IN_H
11795 #include <netinet/in.h>
11796 #endif
11797 #include <resolv.h>
11799 main ()
11801 res_query("foo",ns_c_in,0,0,0);
11803 return 0;
11805 _ACEOF
11806 if ac_fn_c_try_link "$LINENO"; then :
11808 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11810 RESOLVLIBS="$lib"
11813 rm -f core conftest.err conftest.$ac_objext \
11814 conftest$ac_exeext conftest.$ac_ext
11815 if test "${RESOLVLIBS+set}" = set; then
11816 break
11818 done
11819 LIBS="$ac_save_LIBS"
11822 if test "x$with_lcms2" != "xno"
11823 then
11824 if test -n "$LCMS2_CFLAGS"; then :
11826 elif test -n "$PKG_CONFIG"; then :
11827 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11830 if test -n "$LCMS2_LIBS"; then :
11832 elif test -n "$PKG_CONFIG"; then :
11833 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
11836 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
11837 ac_save_CPPFLAGS=$CPPFLAGS
11838 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
11839 for ac_header in lcms2.h
11840 do :
11841 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
11842 if test "x$ac_cv_header_lcms2_h" = xyes; then :
11843 cat >>confdefs.h <<_ACEOF
11844 #define HAVE_LCMS2_H 1
11845 _ACEOF
11849 done
11851 if test "$ac_cv_header_lcms2_h" = "yes"
11852 then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
11854 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
11855 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 ac_check_lib_save_LIBS=$LIBS
11859 LIBS="-llcms2 $LIBS"
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11863 /* Override any GCC internal prototype to avoid an error.
11864 Use char because int might match the return type of a GCC
11865 builtin and then its argument prototype would still apply. */
11866 #ifdef __cplusplus
11867 extern "C"
11868 #endif
11869 char cmsOpenProfileFromFile ();
11871 main ()
11873 return cmsOpenProfileFromFile ();
11875 return 0;
11877 _ACEOF
11878 if ac_fn_c_try_link "$LINENO"; then :
11879 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
11880 else
11881 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
11883 rm -f core conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11885 LIBS=$ac_check_lib_save_LIBS
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
11888 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
11889 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
11891 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
11893 else
11894 LCMS2_LIBS=""
11897 else
11898 LCMS2_CFLAGS=""
11899 LCMS2_LIBS=""
11901 CPPFLAGS=$ac_save_CPPFLAGS
11902 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11903 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11906 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
11907 case "x$with_cms" in
11908 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
11909 xno) ;;
11910 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
11911 This is an error since --with-cms was requested." "$LINENO" 5 ;;
11912 esac
11915 if test "x$with_freetype" != "xno"
11916 then
11917 if test -n "$FREETYPE_CFLAGS"; then :
11919 elif test -n "$PKG_CONFIG"; then :
11920 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
11922 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
11923 if test -n "$FREETYPE_LIBS"; then :
11925 elif test -n "$PKG_CONFIG"; then :
11926 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
11928 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
11929 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
11930 ac_save_CPPFLAGS=$CPPFLAGS
11931 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
11932 for ac_header in ft2build.h
11933 do :
11934 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
11935 if test "x$ac_cv_header_ft2build_h" = xyes; then :
11936 cat >>confdefs.h <<_ACEOF
11937 #define HAVE_FT2BUILD_H 1
11938 _ACEOF
11942 done
11944 if test "$ac_cv_header_ft2build_h" = "yes"
11945 then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
11947 $as_echo_n "checking for -lfreetype... " >&6; }
11948 if ${ac_cv_lib_soname_freetype+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 ac_check_soname_save_LIBS=$LIBS
11952 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char FT_Init_FreeType ();
11964 main ()
11966 return FT_Init_FreeType ();
11968 return 0;
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972 case "$LIBEXT" in
11973 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11974 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'` ;;
11975 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11976 if test "x$ac_cv_lib_soname_freetype" = x; then :
11977 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11978 fi ;;
11979 esac
11981 rm -f core conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983 LIBS=$ac_check_soname_save_LIBS
11985 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11987 $as_echo "not found" >&6; }
11988 FREETYPE_LIBS=""
11989 else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11991 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11993 cat >>confdefs.h <<_ACEOF
11994 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11995 _ACEOF
11998 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12000 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
12001 #include FT_MODULE_H
12003 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
12005 cat >>confdefs.h <<_ACEOF
12006 #define HAVE_FT_TRUETYPEENGINETYPE 1
12007 _ACEOF
12013 else
12014 FREETYPE_CFLAGS=""
12015 FREETYPE_LIBS=""
12017 CPPFLAGS=$ac_save_CPPFLAGS
12018 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12019 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12022 if test "x$ac_cv_lib_soname_freetype" = x; then :
12023 case "x$with_freetype" in
12024 xno) ;;
12025 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
12026 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
12027 esac
12029 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
12032 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
12033 if ${ac_cv_c_ppdev+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12038 #ifdef HAVE_SYS_IOCTL_H
12039 # include <sys/ioctl.h>
12040 #endif
12041 #include <linux/ppdev.h>
12043 main ()
12045 ioctl (1,PPCLAIM,0)
12047 return 0;
12049 _ACEOF
12050 if ac_fn_c_try_compile "$LINENO"; then :
12051 ac_cv_c_ppdev="yes"
12052 else
12053 ac_cv_c_ppdev="no"
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
12058 $as_echo "$ac_cv_c_ppdev" >&6; }
12059 if test "$ac_cv_c_ppdev" = "yes"
12060 then
12062 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
12066 ac_wine_check_funcs_save_LIBS="$LIBS"
12067 LIBS="$LIBS $LIBPTHREAD"
12068 for ac_func in \
12069 pthread_attr_get_np \
12070 pthread_getattr_np \
12071 pthread_getthreadid_np \
12072 pthread_get_stackaddr_np \
12073 pthread_get_stacksize_np
12074 do :
12075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12076 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12077 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12078 cat >>confdefs.h <<_ACEOF
12079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12080 _ACEOF
12083 done
12085 LIBS="$ac_wine_check_funcs_save_LIBS"
12087 if test "$ac_cv_header_zlib_h" = "yes"
12088 then
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12090 $as_echo_n "checking for inflate in -lz... " >&6; }
12091 if ${ac_cv_lib_z_inflate+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 ac_check_lib_save_LIBS=$LIBS
12095 LIBS="-lz $LIBS"
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12099 /* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12102 #ifdef __cplusplus
12103 extern "C"
12104 #endif
12105 char inflate ();
12107 main ()
12109 return inflate ();
12111 return 0;
12113 _ACEOF
12114 if ac_fn_c_try_link "$LINENO"; then :
12115 ac_cv_lib_z_inflate=yes
12116 else
12117 ac_cv_lib_z_inflate=no
12119 rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121 LIBS=$ac_check_lib_save_LIBS
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12124 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12125 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12127 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12129 ZLIB="-lz"
12134 if test "x$ZLIB" = "x"; then :
12135 case "x$with_zlib" in
12136 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12137 xno) ;;
12138 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12139 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12140 esac
12143 if test "x$enable_tools" != xno
12144 then
12145 if test "$ac_cv_header_gettext_po_h" = "yes"
12146 then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12148 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12149 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-lgettextpo $LIBS"
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char po_message_msgctxt ();
12165 main ()
12167 return po_message_msgctxt ();
12169 return 0;
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12174 else
12175 ac_cv_lib_gettextpo_po_message_msgctxt=no
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12182 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12183 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12185 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12187 LIBGETTEXTPO="-lgettextpo"
12192 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
12193 case "x$with_gettextpo" in
12194 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12195 xno) ;;
12196 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12197 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12198 esac
12202 if test "x$with_gstreamer" != "xno"
12203 then
12204 if test -n "$GSTREAMER_CFLAGS"; then :
12206 elif test -n "$PKG_CONFIG"; then :
12207 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12210 if test -n "$GSTREAMER_LIBS"; then :
12212 elif test -n "$PKG_CONFIG"; then :
12213 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12217 ac_save_CPPFLAGS=$CPPFLAGS
12218 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12219 ac_gst_incl=""
12220 for i in $GSTREAMER_CFLAGS
12222 case "$i" in
12223 -I*) ac_gst_incl="$ac_gst_incl $i";;
12224 esac
12225 done
12226 GSTREAMER_CFLAGS=$ac_gst_incl
12227 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12228 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12229 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12230 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12231 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12233 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236 #include <gst/app/gstappsink.h>
12238 main ()
12240 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12242 return 0;
12244 _ACEOF
12245 if ac_fn_c_try_compile "$LINENO"; then :
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12247 $as_echo "yes" >&6; }
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12249 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12250 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-lgstreamer-0.10 $LIBS"
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char gst_pad_get_caps_reffed ();
12266 main ()
12268 return gst_pad_get_caps_reffed ();
12270 return 0;
12272 _ACEOF
12273 if ac_fn_c_try_link "$LINENO"; then :
12274 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12275 else
12276 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12278 rm -f core conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12283 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12284 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12286 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12287 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 ac_check_lib_save_LIBS=$LIBS
12291 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 char gst_app_buffer_new ();
12303 main ()
12305 return gst_app_buffer_new ();
12307 return 0;
12309 _ACEOF
12310 if ac_fn_c_try_link "$LINENO"; then :
12311 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12312 else
12313 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12320 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12321 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12327 else
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335 else
12336 GSTREAMER_CFLAGS=""
12340 CPPFLAGS=$ac_save_CPPFLAGS
12341 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12342 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12345 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12346 case "x$with_gstreamer" in
12347 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12348 xno) ;;
12349 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12350 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12351 esac
12353 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12355 ALSALIBS=""
12357 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12358 then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12360 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12361 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 ac_check_lib_save_LIBS=$LIBS
12365 LIBS="-lasound $LIBS"
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12369 /* Override any GCC internal prototype to avoid an error.
12370 Use char because int might match the return type of a GCC
12371 builtin and then its argument prototype would still apply. */
12372 #ifdef __cplusplus
12373 extern "C"
12374 #endif
12375 char snd_pcm_hw_params_get_access_mask ();
12377 main ()
12379 return snd_pcm_hw_params_get_access_mask ();
12381 return 0;
12383 _ACEOF
12384 if ac_fn_c_try_link "$LINENO"; then :
12385 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12386 else
12387 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12389 rm -f core conftest.err conftest.$ac_objext \
12390 conftest$ac_exeext conftest.$ac_ext
12391 LIBS=$ac_check_lib_save_LIBS
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12394 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12395 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398 #ifdef HAVE_ALSA_ASOUNDLIB_H
12399 #include <alsa/asoundlib.h>
12400 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12401 #include <sys/asoundlib.h>
12402 #endif
12404 main ()
12406 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12408 return 0;
12410 _ACEOF
12411 if ac_fn_c_try_compile "$LINENO"; then :
12412 ALSALIBS="-lasound"
12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 if test "x$with_oss" != xno
12420 then
12421 ac_save_CPPFLAGS="$CPPFLAGS"
12422 if test -f /etc/oss.conf
12423 then
12424 . /etc/oss.conf
12426 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12427 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12428 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12429 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12430 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12432 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12434 cat >>confdefs.h <<_ACEOF
12435 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12436 _ACEOF
12438 OSS4INCL="$ac_oss_incl"
12445 CPPFLAGS="$ac_save_CPPFLAGS"
12446 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12447 then
12448 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12452 if test "x$with_capi" != "xno"
12453 then
12454 if test -n "$CAPI20_CFLAGS"; then :
12456 elif test -n "$PKG_CONFIG"; then :
12457 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12460 if test -n "$CAPI20_LIBS"; then :
12462 elif test -n "$PKG_CONFIG"; then :
12463 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12467 ac_save_CPPFLAGS=$CPPFLAGS
12468 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12469 for ac_header in capi20.h linux/capi.h
12470 do :
12471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12472 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12475 cat >>confdefs.h <<_ACEOF
12476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12477 _ACEOF
12481 done
12483 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12484 then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12486 $as_echo_n "checking for -lcapi20... " >&6; }
12487 if ${ac_cv_lib_soname_capi20+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 ac_check_soname_save_LIBS=$LIBS
12491 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12495 /* Override any GCC internal prototype to avoid an error.
12496 Use char because int might match the return type of a GCC
12497 builtin and then its argument prototype would still apply. */
12498 #ifdef __cplusplus
12499 extern "C"
12500 #endif
12501 char capi20_register ();
12503 main ()
12505 return capi20_register ();
12507 return 0;
12509 _ACEOF
12510 if ac_fn_c_try_link "$LINENO"; then :
12511 case "$LIBEXT" in
12512 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12513 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'` ;;
12514 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12515 if test "x$ac_cv_lib_soname_capi20" = x; then :
12516 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12517 fi ;;
12518 esac
12520 rm -f core conftest.err conftest.$ac_objext \
12521 conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_soname_save_LIBS
12524 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12526 $as_echo "not found" >&6; }
12528 else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12530 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12532 cat >>confdefs.h <<_ACEOF
12533 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12534 _ACEOF
12539 CPPFLAGS=$ac_save_CPPFLAGS
12540 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12541 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12544 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12545 case "x$with_capi" in
12546 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12547 xno) ;;
12548 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12549 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12550 esac
12553 CUPSINCL=""
12555 if test "x$with_cups" != "xno"
12556 then
12557 ac_save_CPPFLAGS="$CPPFLAGS"
12558 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12559 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12560 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12561 for ac_header in cups/cups.h
12562 do :
12563 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12564 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12565 cat >>confdefs.h <<_ACEOF
12566 #define HAVE_CUPS_CUPS_H 1
12567 _ACEOF
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12569 $as_echo_n "checking for -lcups... " >&6; }
12570 if ${ac_cv_lib_soname_cups+:} false; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12573 ac_check_soname_save_LIBS=$LIBS
12574 LIBS="-lcups $ac_cups_libs $LIBS"
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12578 /* Override any GCC internal prototype to avoid an error.
12579 Use char because int might match the return type of a GCC
12580 builtin and then its argument prototype would still apply. */
12581 #ifdef __cplusplus
12582 extern "C"
12583 #endif
12584 char cupsGetDefault ();
12586 main ()
12588 return cupsGetDefault ();
12590 return 0;
12592 _ACEOF
12593 if ac_fn_c_try_link "$LINENO"; then :
12594 case "$LIBEXT" in
12595 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12596 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'` ;;
12597 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12598 if test "x$ac_cv_lib_soname_cups" = x; then :
12599 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12600 fi ;;
12601 esac
12603 rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605 LIBS=$ac_check_soname_save_LIBS
12607 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12609 $as_echo "not found" >&6; }
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12613 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12615 cat >>confdefs.h <<_ACEOF
12616 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12617 _ACEOF
12619 CUPSINCL="$ac_cups_cflags"
12623 done
12625 CPPFLAGS="$ac_save_CPPFLAGS"
12627 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12628 case "x$with_cups" in
12629 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12630 xno) ;;
12631 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12632 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12633 esac
12636 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12637 then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12639 $as_echo_n "checking for -lfontconfig... " >&6; }
12640 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642 else
12643 ac_check_soname_save_LIBS=$LIBS
12644 LIBS="-lfontconfig $LIBS"
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12648 /* Override any GCC internal prototype to avoid an error.
12649 Use char because int might match the return type of a GCC
12650 builtin and then its argument prototype would still apply. */
12651 #ifdef __cplusplus
12652 extern "C"
12653 #endif
12654 char FcInit ();
12656 main ()
12658 return FcInit ();
12660 return 0;
12662 _ACEOF
12663 if ac_fn_c_try_link "$LINENO"; then :
12664 case "$LIBEXT" in
12665 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12666 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'` ;;
12667 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12668 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12669 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12670 fi ;;
12671 esac
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 LIBS=$ac_check_soname_save_LIBS
12677 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12679 $as_echo "not found" >&6; }
12681 else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12683 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12685 cat >>confdefs.h <<_ACEOF
12686 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12687 _ACEOF
12691 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
12692 then
12693 ac_save_CPPFLAGS="$CPPFLAGS"
12694 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12695 $as_unset ac_cv_header_fontconfig_fontconfig_h
12696 for ac_header in fontconfig/fontconfig.h
12697 do :
12698 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12699 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12700 cat >>confdefs.h <<_ACEOF
12701 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12702 _ACEOF
12706 done
12708 CPPFLAGS="$ac_save_CPPFLAGS"
12709 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12710 then
12711 FONTCONFIGINCL="$X_CFLAGS"
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12714 $as_echo_n "checking for -lfontconfig... " >&6; }
12715 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 ac_check_soname_save_LIBS=$LIBS
12719 LIBS="-lfontconfig $X_LIBS $LIBS"
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12723 /* Override any GCC internal prototype to avoid an error.
12724 Use char because int might match the return type of a GCC
12725 builtin and then its argument prototype would still apply. */
12726 #ifdef __cplusplus
12727 extern "C"
12728 #endif
12729 char FcInit ();
12731 main ()
12733 return FcInit ();
12735 return 0;
12737 _ACEOF
12738 if ac_fn_c_try_link "$LINENO"; then :
12739 case "$LIBEXT" in
12740 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12741 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'` ;;
12742 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12743 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12744 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12745 fi ;;
12746 esac
12748 rm -f core conftest.err conftest.$ac_objext \
12749 conftest$ac_exeext conftest.$ac_ext
12750 LIBS=$ac_check_soname_save_LIBS
12752 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12754 $as_echo "not found" >&6; }
12756 else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12758 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12760 cat >>confdefs.h <<_ACEOF
12761 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12762 _ACEOF
12768 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12769 case "x$with_fontconfig" in
12770 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12771 xno) ;;
12772 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12773 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12774 esac
12777 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12778 then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12780 $as_echo_n "checking for -lgsm... " >&6; }
12781 if ${ac_cv_lib_soname_gsm+:} false; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784 ac_check_soname_save_LIBS=$LIBS
12785 LIBS="-lgsm $LIBS"
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12789 /* Override any GCC internal prototype to avoid an error.
12790 Use char because int might match the return type of a GCC
12791 builtin and then its argument prototype would still apply. */
12792 #ifdef __cplusplus
12793 extern "C"
12794 #endif
12795 char gsm_create ();
12797 main ()
12799 return gsm_create ();
12801 return 0;
12803 _ACEOF
12804 if ac_fn_c_try_link "$LINENO"; then :
12805 case "$LIBEXT" in
12806 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12807 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'` ;;
12808 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12809 if test "x$ac_cv_lib_soname_gsm" = x; then :
12810 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12811 fi ;;
12812 esac
12814 rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816 LIBS=$ac_check_soname_save_LIBS
12818 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12820 $as_echo "not found" >&6; }
12822 else
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12824 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12826 cat >>confdefs.h <<_ACEOF
12827 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12828 _ACEOF
12833 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12834 case "x$with_gsm" in
12835 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12836 xno) ;;
12837 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12838 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12839 esac
12842 if test "x$with_jpeg" != "xno"
12843 then
12844 if test -n "$JPEG_CFLAGS"; then :
12846 elif test -n "$PKG_CONFIG"; then :
12847 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12850 if test -n "$JPEG_LIBS"; then :
12852 elif test -n "$PKG_CONFIG"; then :
12853 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12857 ac_save_CPPFLAGS=$CPPFLAGS
12858 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
12859 for ac_header in jpeglib.h
12860 do :
12861 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12862 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12863 cat >>confdefs.h <<_ACEOF
12864 #define HAVE_JPEGLIB_H 1
12865 _ACEOF
12869 done
12871 if test "$ac_cv_header_jpeglib_h" = "yes"
12872 then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
12874 $as_echo_n "checking for -ljpeg... " >&6; }
12875 if ${ac_cv_lib_soname_jpeg+:} false; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878 ac_check_soname_save_LIBS=$LIBS
12879 LIBS="-ljpeg $JPEG_LIBS $LIBS"
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12886 #ifdef __cplusplus
12887 extern "C"
12888 #endif
12889 char jpeg_start_decompress ();
12891 main ()
12893 return jpeg_start_decompress ();
12895 return 0;
12897 _ACEOF
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 case "$LIBEXT" in
12900 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12901 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'` ;;
12902 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12903 if test "x$ac_cv_lib_soname_jpeg" = x; then :
12904 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12905 fi ;;
12906 esac
12908 rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 LIBS=$ac_check_soname_save_LIBS
12912 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12914 $as_echo "not found" >&6; }
12915 JPEG_CFLAGS=""
12916 else
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
12918 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
12920 cat >>confdefs.h <<_ACEOF
12921 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
12922 _ACEOF
12926 else
12927 JPEG_CFLAGS=""
12929 CPPFLAGS=$ac_save_CPPFLAGS
12930 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12931 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12934 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12935 case "x$with_jpeg" in
12936 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
12937 xno) ;;
12938 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
12939 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
12940 esac
12943 if test "x$with_png" != "xno"
12944 then
12945 if test -n "$PNG_CFLAGS"; then :
12947 elif test -n "$PKG_CONFIG"; then :
12948 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
12950 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
12951 if test -n "$PNG_LIBS"; then :
12953 elif test -n "$PKG_CONFIG"; then :
12954 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
12956 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
12958 ac_save_CPPFLAGS=$CPPFLAGS
12959 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
12960 for ac_header in png.h
12961 do :
12962 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12963 if test "x$ac_cv_header_png_h" = xyes; then :
12964 cat >>confdefs.h <<_ACEOF
12965 #define HAVE_PNG_H 1
12966 _ACEOF
12970 done
12972 if test "$ac_cv_header_png_h" = "yes"
12973 then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12975 $as_echo_n "checking for -lpng... " >&6; }
12976 if ${ac_cv_lib_soname_png+:} false; then :
12977 $as_echo_n "(cached) " >&6
12978 else
12979 ac_check_soname_save_LIBS=$LIBS
12980 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12984 /* Override any GCC internal prototype to avoid an error.
12985 Use char because int might match the return type of a GCC
12986 builtin and then its argument prototype would still apply. */
12987 #ifdef __cplusplus
12988 extern "C"
12989 #endif
12990 char png_create_read_struct ();
12992 main ()
12994 return png_create_read_struct ();
12996 return 0;
12998 _ACEOF
12999 if ac_fn_c_try_link "$LINENO"; then :
13000 case "$LIBEXT" in
13001 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13002 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'` ;;
13003 *) 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'`
13004 if test "x$ac_cv_lib_soname_png" = x; then :
13005 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13006 fi ;;
13007 esac
13009 rm -f core conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_soname_save_LIBS
13013 if test "x$ac_cv_lib_soname_png" = "x"; then :
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13015 $as_echo "not found" >&6; }
13016 PNG_CFLAGS=""
13017 else
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
13019 $as_echo "$ac_cv_lib_soname_png" >&6; }
13021 cat >>confdefs.h <<_ACEOF
13022 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
13023 _ACEOF
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13027 #include <png.h>
13029 main ()
13031 typeof(png_set_expand_gray_1_2_4_to_8) *p
13033 return 0;
13035 _ACEOF
13036 if ac_fn_c_try_compile "$LINENO"; then :
13038 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043 else
13044 PNG_CFLAGS=""
13046 CPPFLAGS=$ac_save_CPPFLAGS
13047 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13048 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13051 if test "x$ac_cv_lib_soname_png" = "x"; then :
13052 case "x$with_png" in
13053 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
13054 xno) ;;
13055 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
13056 This is an error since --with-png was requested." "$LINENO" 5 ;;
13057 esac
13060 if test "x$with_tiff" != "xno"
13061 then
13062 if test -n "$TIFF_CFLAGS"; then :
13064 elif test -n "$PKG_CONFIG"; then :
13065 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
13068 if test -n "$TIFF_LIBS"; then :
13070 elif test -n "$PKG_CONFIG"; then :
13071 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
13075 ac_save_CPPFLAGS=$CPPFLAGS
13076 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
13077 for ac_header in tiffio.h
13078 do :
13079 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13080 if test "x$ac_cv_header_tiffio_h" = xyes; then :
13081 cat >>confdefs.h <<_ACEOF
13082 #define HAVE_TIFFIO_H 1
13083 _ACEOF
13087 done
13089 if test "$ac_cv_header_tiffio_h" = "yes"
13090 then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
13092 $as_echo_n "checking for -ltiff... " >&6; }
13093 if ${ac_cv_lib_soname_tiff+:} false; then :
13094 $as_echo_n "(cached) " >&6
13095 else
13096 ac_check_soname_save_LIBS=$LIBS
13097 LIBS="-ltiff $TIFF_LIBS $LIBS"
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13104 #ifdef __cplusplus
13105 extern "C"
13106 #endif
13107 char TIFFClientOpen ();
13109 main ()
13111 return TIFFClientOpen ();
13113 return 0;
13115 _ACEOF
13116 if ac_fn_c_try_link "$LINENO"; then :
13117 case "$LIBEXT" in
13118 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13119 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'` ;;
13120 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13121 if test "x$ac_cv_lib_soname_tiff" = x; then :
13122 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13123 fi ;;
13124 esac
13126 rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128 LIBS=$ac_check_soname_save_LIBS
13130 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13132 $as_echo "not found" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
13136 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
13138 cat >>confdefs.h <<_ACEOF
13139 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
13140 _ACEOF
13145 CPPFLAGS=$ac_save_CPPFLAGS
13146 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13147 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13150 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13151 case "x$with_tiff" in
13152 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
13153 xno) ;;
13154 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13155 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13156 esac
13159 if test "x$with_mpg123" != "xno"
13160 then
13161 if test -n "$MPG123_CFLAGS"; then :
13163 elif test -n "$PKG_CONFIG"; then :
13164 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13167 if test -n "$MPG123_LIBS"; then :
13169 elif test -n "$PKG_CONFIG"; then :
13170 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13173 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13174 ac_save_CPPFLAGS=$CPPFLAGS
13175 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13176 for ac_header in mpg123.h
13177 do :
13178 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13179 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13180 cat >>confdefs.h <<_ACEOF
13181 #define HAVE_MPG123_H 1
13182 _ACEOF
13186 done
13188 if test "$ac_cv_header_mpg123_h" = "yes"
13189 then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13191 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13192 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 ac_check_lib_save_LIBS=$LIBS
13196 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13203 #ifdef __cplusplus
13204 extern "C"
13205 #endif
13206 char mpg123_feed ();
13208 main ()
13210 return mpg123_feed ();
13212 return 0;
13214 _ACEOF
13215 if ac_fn_c_try_link "$LINENO"; then :
13216 ac_cv_lib_mpg123_mpg123_feed=yes
13217 else
13218 ac_cv_lib_mpg123_mpg123_feed=no
13220 rm -f core conftest.err conftest.$ac_objext \
13221 conftest$ac_exeext conftest.$ac_ext
13222 LIBS=$ac_check_lib_save_LIBS
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13225 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13226 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13228 else
13229 MPG123_LIBS=""
13232 else
13233 MPG123_CFLAGS=""
13234 MPG123_LIBS=""
13236 CPPFLAGS=$ac_save_CPPFLAGS
13237 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13238 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13241 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13242 case "x$with_mpg123" in
13243 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13244 xno) ;;
13245 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13246 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13247 esac
13249 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}
13251 if test "$ac_cv_header_AL_al_h" = "yes"
13252 then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13254 $as_echo_n "checking for -lopenal... " >&6; }
13255 if ${ac_cv_lib_soname_openal+:} false; then :
13256 $as_echo_n "(cached) " >&6
13257 else
13258 ac_check_soname_save_LIBS=$LIBS
13259 LIBS="-lopenal $LIBS"
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13263 /* Override any GCC internal prototype to avoid an error.
13264 Use char because int might match the return type of a GCC
13265 builtin and then its argument prototype would still apply. */
13266 #ifdef __cplusplus
13267 extern "C"
13268 #endif
13269 char alGetSource3i ();
13271 main ()
13273 return alGetSource3i ();
13275 return 0;
13277 _ACEOF
13278 if ac_fn_c_try_link "$LINENO"; then :
13279 case "$LIBEXT" in
13280 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13281 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'` ;;
13282 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13283 if test "x$ac_cv_lib_soname_openal" = x; then :
13284 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13285 fi ;;
13286 esac
13288 rm -f core conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13290 LIBS=$ac_check_soname_save_LIBS
13292 if test "x$ac_cv_lib_soname_openal" = "x"; then :
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13294 $as_echo "not found" >&6; }
13296 else
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13298 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13300 cat >>confdefs.h <<_ACEOF
13301 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13302 _ACEOF
13304 LIBOPENAL="-lopenal"
13306 ac_cv_lib_openal=yes
13308 cat >>confdefs.h <<_ACEOF
13309 #define HAVE_OPENAL 1
13310 _ACEOF
13314 if test "x$ac_cv_lib_openal" != xyes; then :
13315 case "x$with_openal" in
13316 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13317 xno) ;;
13318 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13319 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13320 esac
13322 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13324 if test "$ac_cv_header_kstat_h" = "yes"
13325 then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13327 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13328 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 ac_check_lib_save_LIBS=$LIBS
13332 LIBS="-lkstat $LIBS"
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13336 /* Override any GCC internal prototype to avoid an error.
13337 Use char because int might match the return type of a GCC
13338 builtin and then its argument prototype would still apply. */
13339 #ifdef __cplusplus
13340 extern "C"
13341 #endif
13342 char kstat_open ();
13344 main ()
13346 return kstat_open ();
13348 return 0;
13350 _ACEOF
13351 if ac_fn_c_try_link "$LINENO"; then :
13352 ac_cv_lib_kstat_kstat_open=yes
13353 else
13354 ac_cv_lib_kstat_kstat_open=no
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358 LIBS=$ac_check_lib_save_LIBS
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13361 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13362 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13364 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13366 LIBKSTAT="-lkstat"
13372 if test "$ac_cv_header_libprocstat_h" = "yes"
13373 then
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13375 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13376 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 ac_check_lib_save_LIBS=$LIBS
13380 LIBS="-lprocstat $LIBS"
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13384 /* Override any GCC internal prototype to avoid an error.
13385 Use char because int might match the return type of a GCC
13386 builtin and then its argument prototype would still apply. */
13387 #ifdef __cplusplus
13388 extern "C"
13389 #endif
13390 char procstat_open_sysctl ();
13392 main ()
13394 return procstat_open_sysctl ();
13396 return 0;
13398 _ACEOF
13399 if ac_fn_c_try_link "$LINENO"; then :
13400 ac_cv_lib_procstat_procstat_open_sysctl=yes
13401 else
13402 ac_cv_lib_procstat_procstat_open_sysctl=no
13404 rm -f core conftest.err conftest.$ac_objext \
13405 conftest$ac_exeext conftest.$ac_ext
13406 LIBS=$ac_check_lib_save_LIBS
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13409 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13410 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13412 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13414 LIBPROCSTAT="-lprocstat"
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13421 $as_echo_n "checking for -lodbc... " >&6; }
13422 if ${ac_cv_lib_soname_odbc+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 ac_check_soname_save_LIBS=$LIBS
13426 LIBS="-lodbc $LIBS"
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char SQLConnect ();
13438 main ()
13440 return SQLConnect ();
13442 return 0;
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 case "$LIBEXT" in
13447 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13448 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'` ;;
13449 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13450 if test "x$ac_cv_lib_soname_odbc" = x; then :
13451 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13452 fi ;;
13453 esac
13455 rm -f core conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_soname_save_LIBS
13459 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13461 $as_echo "not found" >&6; }
13462 cat >>confdefs.h <<_ACEOF
13463 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13464 _ACEOF
13466 else
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13468 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13470 cat >>confdefs.h <<_ACEOF
13471 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13472 _ACEOF
13477 if test "x$with_netapi" != "xno"
13478 then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13480 $as_echo_n "checking for -lnetapi... " >&6; }
13481 if ${ac_cv_lib_soname_netapi+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 ac_check_soname_save_LIBS=$LIBS
13485 LIBS="-lnetapi $LIBS"
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13489 /* Override any GCC internal prototype to avoid an error.
13490 Use char because int might match the return type of a GCC
13491 builtin and then its argument prototype would still apply. */
13492 #ifdef __cplusplus
13493 extern "C"
13494 #endif
13495 char libnetapi_init ();
13497 main ()
13499 return libnetapi_init ();
13501 return 0;
13503 _ACEOF
13504 if ac_fn_c_try_link "$LINENO"; then :
13505 case "$LIBEXT" in
13506 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13507 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'` ;;
13508 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13509 if test "x$ac_cv_lib_soname_netapi" = x; then :
13510 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13511 fi ;;
13512 esac
13514 rm -f core conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
13516 LIBS=$ac_check_soname_save_LIBS
13518 if test "x$ac_cv_lib_soname_netapi" = "x"; then :
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13520 $as_echo "not found" >&6; }
13521 cat >>confdefs.h <<_ACEOF
13522 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13523 _ACEOF
13525 else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13527 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13529 cat >>confdefs.h <<_ACEOF
13530 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13531 _ACEOF
13537 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13538 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13539 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13540 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13542 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
13543 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13544 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13545 then
13546 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13550 EXTRACFLAGS=""
13552 if test "x${GCC}" = "xyes"
13553 then
13554 EXTRACFLAGS="-Wall -pipe"
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13557 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13558 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 if test "$cross_compiling" = yes; then :
13562 ac_cv_c_gcc_strength_bug="yes"
13563 else
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566 int L[4] = {0,1,2,3};
13568 main ()
13570 static int Array[3];
13571 unsigned int B = 3;
13572 int i;
13573 for(i=0; i<B; i++) Array[i] = i - 3;
13574 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13575 L[i] = 4;
13576 return (Array[1] != -2 || L[2] != 3)
13578 return 0;
13580 _ACEOF
13581 if ac_fn_c_try_run "$LINENO"; then :
13582 ac_cv_c_gcc_strength_bug="no"
13583 else
13584 ac_cv_c_gcc_strength_bug="yes"
13586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13587 conftest.$ac_objext conftest.beam conftest.$ac_ext
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13592 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13593 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13594 then
13595 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13599 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13600 if ${ac_cv_cflags__fno_builtin+:} false; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 ac_wine_try_cflags_saved=$CFLAGS
13604 CFLAGS="$CFLAGS -fno-builtin"
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13607 int main(int argc, char **argv) { return 0; }
13608 _ACEOF
13609 if ac_fn_c_try_link "$LINENO"; then :
13610 ac_cv_cflags__fno_builtin=yes
13611 else
13612 ac_cv_cflags__fno_builtin=no
13614 rm -f core conftest.err conftest.$ac_objext \
13615 conftest$ac_exeext conftest.$ac_ext
13616 CFLAGS=$ac_wine_try_cflags_saved
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13619 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13620 if test $ac_cv_cflags__fno_builtin = yes; then :
13621 BUILTINFLAG="-fno-builtin"
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13625 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13626 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13627 $as_echo_n "(cached) " >&6
13628 else
13629 ac_wine_try_cflags_saved=$CFLAGS
13630 CFLAGS="$CFLAGS -fno-strict-aliasing"
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13633 int main(int argc, char **argv) { return 0; }
13634 _ACEOF
13635 if ac_fn_c_try_link "$LINENO"; then :
13636 ac_cv_cflags__fno_strict_aliasing=yes
13637 else
13638 ac_cv_cflags__fno_strict_aliasing=no
13640 rm -f core conftest.err conftest.$ac_objext \
13641 conftest$ac_exeext conftest.$ac_ext
13642 CFLAGS=$ac_wine_try_cflags_saved
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13645 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13646 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
13647 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13649 saved_CFLAGS=$CFLAGS
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13651 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13652 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 ac_wine_try_cflags_saved=$CFLAGS
13656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 int main(int argc, char **argv) { return 0; }
13660 _ACEOF
13661 if ac_fn_c_try_link "$LINENO"; then :
13662 ac_cv_cflags__Werror_unknown_warning_option=yes
13663 else
13664 ac_cv_cflags__Werror_unknown_warning_option=no
13666 rm -f core conftest.err conftest.$ac_objext \
13667 conftest$ac_exeext conftest.$ac_ext
13668 CFLAGS=$ac_wine_try_cflags_saved
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13671 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13672 if test $ac_cv_cflags__Werror_unknown_warning_option = yes; then :
13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13676 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13677 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 ac_wine_try_cflags_saved=$CFLAGS
13681 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13684 int main(int argc, char **argv) { return 0; }
13685 _ACEOF
13686 if ac_fn_c_try_link "$LINENO"; then :
13687 ac_cv_cflags__Wdeclaration_after_statement=yes
13688 else
13689 ac_cv_cflags__Wdeclaration_after_statement=no
13691 rm -f core conftest.err conftest.$ac_objext \
13692 conftest$ac_exeext conftest.$ac_ext
13693 CFLAGS=$ac_wine_try_cflags_saved
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13696 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13697 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
13698 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13701 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13702 if ${ac_cv_cflags__Wempty_body+:} false; then :
13703 $as_echo_n "(cached) " >&6
13704 else
13705 ac_wine_try_cflags_saved=$CFLAGS
13706 CFLAGS="$CFLAGS -Wempty-body"
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13709 int main(int argc, char **argv) { return 0; }
13710 _ACEOF
13711 if ac_fn_c_try_link "$LINENO"; then :
13712 ac_cv_cflags__Wempty_body=yes
13713 else
13714 ac_cv_cflags__Wempty_body=no
13716 rm -f core conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext conftest.$ac_ext
13718 CFLAGS=$ac_wine_try_cflags_saved
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13721 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13722 if test $ac_cv_cflags__Wempty_body = yes; then :
13723 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13726 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13727 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 ac_wine_try_cflags_saved=$CFLAGS
13731 CFLAGS="$CFLAGS -Wignored-qualifiers"
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 int main(int argc, char **argv) { return 0; }
13735 _ACEOF
13736 if ac_fn_c_try_link "$LINENO"; then :
13737 ac_cv_cflags__Wignored_qualifiers=yes
13738 else
13739 ac_cv_cflags__Wignored_qualifiers=no
13741 rm -f core conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext conftest.$ac_ext
13743 CFLAGS=$ac_wine_try_cflags_saved
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13746 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13747 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
13748 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13751 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13752 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 ac_wine_try_cflags_saved=$CFLAGS
13756 CFLAGS="$CFLAGS -Wstrict-prototypes"
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759 int main(int argc, char **argv) { return 0; }
13760 _ACEOF
13761 if ac_fn_c_try_link "$LINENO"; then :
13762 ac_cv_cflags__Wstrict_prototypes=yes
13763 else
13764 ac_cv_cflags__Wstrict_prototypes=no
13766 rm -f core conftest.err conftest.$ac_objext \
13767 conftest$ac_exeext conftest.$ac_ext
13768 CFLAGS=$ac_wine_try_cflags_saved
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13771 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13772 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
13773 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13776 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13777 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13778 $as_echo_n "(cached) " >&6
13779 else
13780 ac_wine_try_cflags_saved=$CFLAGS
13781 CFLAGS="$CFLAGS -Wtype-limits"
13782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h. */
13784 int main(int argc, char **argv) { return 0; }
13785 _ACEOF
13786 if ac_fn_c_try_link "$LINENO"; then :
13787 ac_cv_cflags__Wtype_limits=yes
13788 else
13789 ac_cv_cflags__Wtype_limits=no
13791 rm -f core conftest.err conftest.$ac_objext \
13792 conftest$ac_exeext conftest.$ac_ext
13793 CFLAGS=$ac_wine_try_cflags_saved
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13796 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13797 if test $ac_cv_cflags__Wtype_limits = yes; then :
13798 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13801 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13802 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 ac_wine_try_cflags_saved=$CFLAGS
13806 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 int main(int argc, char **argv) { return 0; }
13810 _ACEOF
13811 if ac_fn_c_try_link "$LINENO"; then :
13812 ac_cv_cflags__Wunused_but_set_parameter=yes
13813 else
13814 ac_cv_cflags__Wunused_but_set_parameter=no
13816 rm -f core conftest.err conftest.$ac_objext \
13817 conftest$ac_exeext conftest.$ac_ext
13818 CFLAGS=$ac_wine_try_cflags_saved
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13821 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13822 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
13823 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13826 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13827 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
13828 $as_echo_n "(cached) " >&6
13829 else
13830 ac_wine_try_cflags_saved=$CFLAGS
13831 CFLAGS="$CFLAGS -Wwrite-strings"
13832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h. */
13834 int main(int argc, char **argv) { return 0; }
13835 _ACEOF
13836 if ac_fn_c_try_link "$LINENO"; then :
13837 ac_cv_cflags__Wwrite_strings=yes
13838 else
13839 ac_cv_cflags__Wwrite_strings=no
13841 rm -f core conftest.err conftest.$ac_objext \
13842 conftest$ac_exeext conftest.$ac_ext
13843 CFLAGS=$ac_wine_try_cflags_saved
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
13846 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
13847 if test $ac_cv_cflags__Wwrite_strings = yes; then :
13848 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
13852 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
13853 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 ac_wine_try_cflags_saved=$CFLAGS
13857 CFLAGS="$CFLAGS -Wpointer-arith"
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860 int main(int argc, char **argv) { return 0; }
13861 _ACEOF
13862 if ac_fn_c_try_link "$LINENO"; then :
13863 ac_cv_cflags__Wpointer_arith=yes
13864 else
13865 ac_cv_cflags__Wpointer_arith=no
13867 rm -f core conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext conftest.$ac_ext
13869 CFLAGS=$ac_wine_try_cflags_saved
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
13872 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
13873 if test $ac_cv_cflags__Wpointer_arith = yes; then :
13874 saved_string_h_CFLAGS=$CFLAGS
13875 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
13877 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
13878 if ${ac_cv_c_string_h_warnings+:} false; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13883 #include <string.h>
13885 main ()
13889 return 0;
13891 _ACEOF
13892 if ac_fn_c_try_compile "$LINENO"; then :
13893 ac_cv_c_string_h_warnings=no
13894 else
13895 ac_cv_c_string_h_warnings=yes
13897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
13900 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
13901 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13902 CFLAGS=$saved_string_h_CFLAGS
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
13906 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
13907 if ${ac_cv_cflags__Wlogical_op+:} false; then :
13908 $as_echo_n "(cached) " >&6
13909 else
13910 ac_wine_try_cflags_saved=$CFLAGS
13911 CFLAGS="$CFLAGS -Wlogical-op"
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13914 int main(int argc, char **argv) { return 0; }
13915 _ACEOF
13916 if ac_fn_c_try_link "$LINENO"; then :
13917 ac_cv_cflags__Wlogical_op=yes
13918 else
13919 ac_cv_cflags__Wlogical_op=no
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 CFLAGS=$ac_wine_try_cflags_saved
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
13926 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
13927 if test $ac_cv_cflags__Wlogical_op = yes; then :
13928 saved_string_h_CFLAGS=$CFLAGS
13929 CFLAGS="$CFLAGS -Wlogical-op -Werror"
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
13931 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
13932 if ${ac_cv_c_logicalop_noisy+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13937 #include <string.h>
13938 char*f(const char *h,char n) {return strchr(h,n);}
13940 main ()
13944 return 0;
13946 _ACEOF
13947 if ac_fn_c_try_compile "$LINENO"; then :
13948 ac_cv_c_logicalop_noisy=no
13949 else
13950 ac_cv_c_logicalop_noisy=yes
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
13955 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
13956 CFLAGS=$saved_string_h_CFLAGS
13957 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
13960 CFLAGS=$saved_CFLAGS
13962 for ac_flag in $CFLAGS; do
13963 case $ac_flag in
13964 -g) case $host_os in
13965 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
13966 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
13967 if ${ac_cv_cflags__gstabsp+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 ac_wine_try_cflags_saved=$CFLAGS
13971 CFLAGS="$CFLAGS -gstabs+"
13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973 /* end confdefs.h. */
13974 int main(int argc, char **argv) { return 0; }
13975 _ACEOF
13976 if ac_fn_c_try_link "$LINENO"; then :
13977 ac_cv_cflags__gstabsp=yes
13978 else
13979 ac_cv_cflags__gstabsp=no
13981 rm -f core conftest.err conftest.$ac_objext \
13982 conftest$ac_exeext conftest.$ac_ext
13983 CFLAGS=$ac_wine_try_cflags_saved
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
13986 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
13987 if test $ac_cv_cflags__gstabsp = yes; then :
13988 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13989 fi ;;
13990 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
13991 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
13992 if ${ac_cv_cflags__gdwarf_2+:} false; then :
13993 $as_echo_n "(cached) " >&6
13994 else
13995 ac_wine_try_cflags_saved=$CFLAGS
13996 CFLAGS="$CFLAGS -gdwarf-2"
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999 int main(int argc, char **argv) { return 0; }
14000 _ACEOF
14001 if ac_fn_c_try_link "$LINENO"; then :
14002 ac_cv_cflags__gdwarf_2=yes
14003 else
14004 ac_cv_cflags__gdwarf_2=no
14006 rm -f core conftest.err conftest.$ac_objext \
14007 conftest$ac_exeext conftest.$ac_ext
14008 CFLAGS=$ac_wine_try_cflags_saved
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
14011 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
14012 if test $ac_cv_cflags__gdwarf_2 = yes; then :
14013 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
14016 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
14017 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
14018 $as_echo_n "(cached) " >&6
14019 else
14020 ac_wine_try_cflags_saved=$CFLAGS
14021 CFLAGS="$CFLAGS -gstrict-dwarf"
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14024 int main(int argc, char **argv) { return 0; }
14025 _ACEOF
14026 if ac_fn_c_try_link "$LINENO"; then :
14027 ac_cv_cflags__gstrict_dwarf=yes
14028 else
14029 ac_cv_cflags__gstrict_dwarf=no
14031 rm -f core conftest.err conftest.$ac_objext \
14032 conftest$ac_exeext conftest.$ac_ext
14033 CFLAGS=$ac_wine_try_cflags_saved
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
14036 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
14037 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
14038 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
14039 fi ;;
14040 esac ;;
14041 esac
14042 done
14044 case $host_cpu in
14045 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
14046 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
14047 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
14048 $as_echo_n "(cached) " >&6
14049 else
14050 ac_wine_try_cflags_saved=$CFLAGS
14051 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h. */
14054 int main(int argc, char **argv) { return 0; }
14055 _ACEOF
14056 if ac_fn_c_try_link "$LINENO"; then :
14057 ac_cv_cflags__fno_omit_frame_pointer=yes
14058 else
14059 ac_cv_cflags__fno_omit_frame_pointer=no
14061 rm -f core conftest.err conftest.$ac_objext \
14062 conftest$ac_exeext conftest.$ac_ext
14063 CFLAGS=$ac_wine_try_cflags_saved
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
14066 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
14067 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
14068 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
14069 fi ;;
14070 esac
14072 case $host in
14073 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
14074 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
14075 if ${ac_cv_cflags__Wno_format+:} false; then :
14076 $as_echo_n "(cached) " >&6
14077 else
14078 ac_wine_try_cflags_saved=$CFLAGS
14079 CFLAGS="$CFLAGS -Wno-format"
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082 int main(int argc, char **argv) { return 0; }
14083 _ACEOF
14084 if ac_fn_c_try_link "$LINENO"; then :
14085 ac_cv_cflags__Wno_format=yes
14086 else
14087 ac_cv_cflags__Wno_format=no
14089 rm -f core conftest.err conftest.$ac_objext \
14090 conftest$ac_exeext conftest.$ac_ext
14091 CFLAGS=$ac_wine_try_cflags_saved
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
14094 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
14095 if test $ac_cv_cflags__Wno_format = yes; then :
14096 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
14097 fi ;;
14098 esac
14100 if test "x$enable_maintainer_mode" = "xyes"
14101 then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
14103 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
14104 if ${ac_cv_cflags__Werror+:} false; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 ac_wine_try_cflags_saved=$CFLAGS
14108 CFLAGS="$CFLAGS -Werror"
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111 int main(int argc, char **argv) { return 0; }
14112 _ACEOF
14113 if ac_fn_c_try_link "$LINENO"; then :
14114 ac_cv_cflags__Werror=yes
14115 else
14116 ac_cv_cflags__Werror=no
14118 rm -f core conftest.err conftest.$ac_objext \
14119 conftest$ac_exeext conftest.$ac_ext
14120 CFLAGS=$ac_wine_try_cflags_saved
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
14123 $as_echo "$ac_cv_cflags__Werror" >&6; }
14124 if test $ac_cv_cflags__Werror = yes; then :
14125 EXTRACFLAGS="$EXTRACFLAGS -Werror"
14129 saved_CFLAGS="$CFLAGS"
14130 CFLAGS="$CFLAGS -Werror"
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
14132 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
14133 if ${ac_cv_have_ms_hook_prologue+:} false; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14138 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
14140 main ()
14144 return 0;
14146 _ACEOF
14147 if ac_fn_c_try_compile "$LINENO"; then :
14148 ac_cv_have_ms_hook_prologue="yes"
14149 else
14150 ac_cv_have_ms_hook_prologue="no"
14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14155 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14156 CFLAGS="$saved_CFLAGS"
14157 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14158 then
14160 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14162 else
14163 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14170 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14171 if ${ac_cv_c_fortify_enabled+:} false; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176 #include <string.h>
14178 main ()
14180 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14181 #error Fortify enabled
14182 #endif
14184 return 0;
14186 _ACEOF
14187 if ac_fn_c_try_compile "$LINENO"; then :
14188 ac_cv_c_fortify_enabled=no
14189 else
14190 ac_cv_c_fortify_enabled=yes
14192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14195 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14196 if test "$ac_cv_c_fortify_enabled" = yes
14197 then
14198 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14203 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14204 if ${ac_cv_c_extern_prefix+:} false; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14209 extern int ac_test;
14211 main ()
14213 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14215 return 0;
14217 _ACEOF
14218 if ac_fn_c_try_link "$LINENO"; then :
14219 ac_cv_c_extern_prefix="yes"
14220 else
14221 ac_cv_c_extern_prefix="no"
14223 rm -f core conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14227 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14229 case $host_cpu in
14230 *i[3456789]86*)
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14232 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14233 if ${ac_cv_c_stdcall_suffix+:} false; then :
14234 $as_echo_n "(cached) " >&6
14235 else
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238 #ifndef _MSC_VER
14239 #define __stdcall __attribute__((__stdcall__))
14240 #endif
14241 int __stdcall ac_test(int i) { return i; }
14243 main ()
14245 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14247 return 0;
14249 _ACEOF
14250 if ac_fn_c_try_link "$LINENO"; then :
14251 ac_cv_c_stdcall_suffix="yes"
14252 else
14253 ac_cv_c_stdcall_suffix="no"
14255 rm -f core conftest.err conftest.$ac_objext \
14256 conftest$ac_exeext conftest.$ac_ext
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14259 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14260 *) ac_cv_c_stdcall_suffix="no" ;;
14261 esac
14264 if test "$ac_cv_c_extern_prefix" = "yes"
14265 then
14266 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14268 asm_name_prefix="_"
14269 else
14270 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14272 asm_name_prefix=""
14276 if test "$ac_cv_c_stdcall_suffix" = "yes"
14277 then
14278 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14280 else
14281 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14287 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14288 if ${ac_cv_asm_func_def+:} false; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14295 main ()
14297 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14299 return 0;
14301 _ACEOF
14302 if ac_fn_c_try_link "$LINENO"; then :
14303 ac_cv_asm_func_def=".def"
14304 else
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14309 main ()
14311 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14313 return 0;
14315 _ACEOF
14316 if ac_fn_c_try_link "$LINENO"; then :
14317 ac_cv_asm_func_def=".type @function"
14318 else
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14323 main ()
14325 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14327 return 0;
14329 _ACEOF
14330 if ac_fn_c_try_link "$LINENO"; then :
14331 ac_cv_asm_func_def=".type 2"
14332 else
14333 ac_cv_asm_func_def="unknown"
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14338 rm -f core conftest.err conftest.$ac_objext \
14339 conftest$ac_exeext conftest.$ac_ext
14341 rm -f core conftest.err conftest.$ac_objext \
14342 conftest$ac_exeext conftest.$ac_ext
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14345 $as_echo "$ac_cv_asm_func_def" >&6; }
14348 case "$ac_cv_asm_func_def" in
14349 ".def")
14350 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14352 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14353 ".type @function")
14354 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14356 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14357 ".type 2")
14358 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14360 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14362 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14364 asm_func_header="" ;;
14365 esac
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14368 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14369 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14370 $as_echo_n "(cached) " >&6
14371 else
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14374 asm(".text\n\t.long 0");
14376 main ()
14380 return 0;
14382 _ACEOF
14383 if ac_fn_c_try_compile "$LINENO"; then :
14384 ac_cv_c_asm_outside_funcs="yes"
14385 else
14386 ac_cv_c_asm_outside_funcs="no"
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14391 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14394 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14395 if ${ac_cv_c_dot_previous+:} false; then :
14396 $as_echo_n "(cached) " >&6
14397 else
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14402 main ()
14404 asm(".text\nac_test:\t.long 0\n\t.previous");
14406 return 0;
14408 _ACEOF
14409 if ac_fn_c_try_link "$LINENO"; then :
14410 ac_cv_c_dot_previous="yes"
14411 else
14412 ac_cv_c_dot_previous="no"
14414 rm -f core conftest.err conftest.$ac_objext \
14415 conftest$ac_exeext conftest.$ac_ext
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14418 $as_echo "$ac_cv_c_dot_previous" >&6; }
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14421 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14422 if ${ac_cv_c_cfi_support+:} false; then :
14423 $as_echo_n "(cached) " >&6
14424 else
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14427 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14429 main ()
14433 return 0;
14435 _ACEOF
14436 if ac_fn_c_try_compile "$LINENO"; then :
14437 ac_cv_c_cfi_support="yes"
14438 else
14439 ac_cv_c_cfi_support="no"
14441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14444 $as_echo "$ac_cv_c_cfi_support" >&6; }
14446 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14447 asm_func_trailer=""
14448 if test "$ac_cv_c_dot_previous" = "yes"
14449 then
14450 asm_func_trailer="\\n\\t.previous"
14452 if test "$ac_cv_c_cfi_support" = "yes"
14453 then
14454 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14455 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14457 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14459 UNWINDFLAGS=-fasynchronous-unwind-tables
14461 else
14462 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14466 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14469 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14470 then
14471 cat >>confdefs.h <<_ACEOF
14472 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14473 _ACEOF
14475 else
14476 cat >>confdefs.h <<_ACEOF
14477 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14478 _ACEOF
14482 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14485 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14489 case $build_os in
14490 cygwin*|mingw32*) TOOLSEXT=".exe"
14492 esac
14494 case $host_os in
14495 linux*)
14496 case $host_cpu in
14497 *i[3456789]86*|x86_64*)
14498 wine_fn_ignore_file "loader/wine-preloader"
14499 test "$wine_binary" = wine || wine_fn_ignore_file "loader/$wine_binary-preloader"
14500 as_fn_append LOADER_RULES "
14501 all: $wine_binary-preloader
14503 $wine_binary-preloader: preloader.o
14504 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14506 install install-lib:: $wine_binary-preloader \$(DESTDIR)\$(bindir)
14507 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14509 uninstall::
14510 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14511 " ;;
14512 esac
14514 esac
14517 ac_save_CFLAGS="$CFLAGS"
14518 CFLAGS="$CFLAGS $BUILTINFLAG"
14519 for ac_func in \
14520 __res_get_state \
14521 __res_getservers \
14522 _finite \
14523 _isnan \
14524 _pclose \
14525 _popen \
14526 _snprintf \
14527 _spawnvp \
14528 _strdup \
14529 _stricmp \
14530 _strnicmp \
14531 _strtoi64 \
14532 _strtoui64 \
14533 _vsnprintf \
14534 asctime_r \
14535 chsize \
14536 dlopen \
14537 epoll_create \
14538 ffs \
14539 fnmatch \
14540 fork \
14541 fpclass \
14542 fstatfs \
14543 fstatvfs \
14544 ftruncate \
14545 futimens \
14546 futimes \
14547 futimesat \
14548 getattrlist \
14549 getdirentries \
14550 getopt_long_only \
14551 getpwuid \
14552 gettimeofday \
14553 getuid \
14554 if_nameindex \
14555 kqueue \
14556 lstat \
14557 memmove \
14558 mmap \
14559 pclose \
14560 pipe2 \
14561 poll \
14562 popen \
14563 port_create \
14564 prctl \
14565 pread \
14566 proc_pidinfo \
14567 pwrite \
14568 readdir \
14569 readlink \
14570 sched_yield \
14571 select \
14572 setproctitle \
14573 setrlimit \
14574 settimeofday \
14575 sigaltstack \
14576 sigprocmask \
14577 snprintf \
14578 statfs \
14579 statvfs \
14580 strcasecmp \
14581 strdup \
14582 strerror \
14583 strncasecmp \
14584 strtold \
14585 strtoll \
14586 strtoull \
14587 symlink \
14588 tcdrain \
14589 thr_kill2 \
14590 timegm \
14591 usleep \
14592 vsnprintf
14594 do :
14595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14596 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14597 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14598 cat >>confdefs.h <<_ACEOF
14599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14600 _ACEOF
14603 done
14605 CFLAGS="$ac_save_CFLAGS"
14607 if test "$ac_cv_func_dlopen" = no
14608 then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14610 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14611 if ${ac_cv_lib_dl_dlopen+:} false; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 ac_check_lib_save_LIBS=$LIBS
14615 LIBS="-ldl $LIBS"
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14619 /* Override any GCC internal prototype to avoid an error.
14620 Use char because int might match the return type of a GCC
14621 builtin and then its argument prototype would still apply. */
14622 #ifdef __cplusplus
14623 extern "C"
14624 #endif
14625 char dlopen ();
14627 main ()
14629 return dlopen ();
14631 return 0;
14633 _ACEOF
14634 if ac_fn_c_try_link "$LINENO"; then :
14635 ac_cv_lib_dl_dlopen=yes
14636 else
14637 ac_cv_lib_dl_dlopen=no
14639 rm -f core conftest.err conftest.$ac_objext \
14640 conftest$ac_exeext conftest.$ac_ext
14641 LIBS=$ac_check_lib_save_LIBS
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14644 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14645 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14646 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14647 LIBDL="-ldl"
14652 ac_wine_check_funcs_save_LIBS="$LIBS"
14653 LIBS="$LIBS $LIBDL"
14654 for ac_func in dladdr
14655 do :
14656 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14657 if test "x$ac_cv_func_dladdr" = xyes; then :
14658 cat >>confdefs.h <<_ACEOF
14659 #define HAVE_DLADDR 1
14660 _ACEOF
14663 done
14665 LIBS="$ac_wine_check_funcs_save_LIBS"
14667 if test "$ac_cv_func_poll" = no
14668 then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14670 $as_echo_n "checking for poll in -lpoll... " >&6; }
14671 if ${ac_cv_lib_poll_poll+:} false; then :
14672 $as_echo_n "(cached) " >&6
14673 else
14674 ac_check_lib_save_LIBS=$LIBS
14675 LIBS="-lpoll $LIBS"
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14679 /* Override any GCC internal prototype to avoid an error.
14680 Use char because int might match the return type of a GCC
14681 builtin and then its argument prototype would still apply. */
14682 #ifdef __cplusplus
14683 extern "C"
14684 #endif
14685 char poll ();
14687 main ()
14689 return poll ();
14691 return 0;
14693 _ACEOF
14694 if ac_fn_c_try_link "$LINENO"; then :
14695 ac_cv_lib_poll_poll=yes
14696 else
14697 ac_cv_lib_poll_poll=no
14699 rm -f core conftest.err conftest.$ac_objext \
14700 conftest$ac_exeext conftest.$ac_ext
14701 LIBS=$ac_check_lib_save_LIBS
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14704 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14705 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14706 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14707 LIBPOLL="-lpoll"
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14714 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14715 if ${ac_cv_search_gethostbyname+:} false; then :
14716 $as_echo_n "(cached) " >&6
14717 else
14718 ac_func_search_save_LIBS=$LIBS
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14722 /* Override any GCC internal prototype to avoid an error.
14723 Use char because int might match the return type of a GCC
14724 builtin and then its argument prototype would still apply. */
14725 #ifdef __cplusplus
14726 extern "C"
14727 #endif
14728 char gethostbyname ();
14730 main ()
14732 return gethostbyname ();
14734 return 0;
14736 _ACEOF
14737 for ac_lib in '' nsl; do
14738 if test -z "$ac_lib"; then
14739 ac_res="none required"
14740 else
14741 ac_res=-l$ac_lib
14742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14744 if ac_fn_c_try_link "$LINENO"; then :
14745 ac_cv_search_gethostbyname=$ac_res
14747 rm -f core conftest.err conftest.$ac_objext \
14748 conftest$ac_exeext
14749 if ${ac_cv_search_gethostbyname+:} false; then :
14750 break
14752 done
14753 if ${ac_cv_search_gethostbyname+:} false; then :
14755 else
14756 ac_cv_search_gethostbyname=no
14758 rm conftest.$ac_ext
14759 LIBS=$ac_func_search_save_LIBS
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14762 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14763 ac_res=$ac_cv_search_gethostbyname
14764 if test "$ac_res" != no; then :
14765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14771 $as_echo_n "checking for library containing connect... " >&6; }
14772 if ${ac_cv_search_connect+:} false; then :
14773 $as_echo_n "(cached) " >&6
14774 else
14775 ac_func_search_save_LIBS=$LIBS
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14779 /* Override any GCC internal prototype to avoid an error.
14780 Use char because int might match the return type of a GCC
14781 builtin and then its argument prototype would still apply. */
14782 #ifdef __cplusplus
14783 extern "C"
14784 #endif
14785 char connect ();
14787 main ()
14789 return connect ();
14791 return 0;
14793 _ACEOF
14794 for ac_lib in '' socket; do
14795 if test -z "$ac_lib"; then
14796 ac_res="none required"
14797 else
14798 ac_res=-l$ac_lib
14799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14801 if ac_fn_c_try_link "$LINENO"; then :
14802 ac_cv_search_connect=$ac_res
14804 rm -f core conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext
14806 if ${ac_cv_search_connect+:} false; then :
14807 break
14809 done
14810 if ${ac_cv_search_connect+:} false; then :
14812 else
14813 ac_cv_search_connect=no
14815 rm conftest.$ac_ext
14816 LIBS=$ac_func_search_save_LIBS
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14819 $as_echo "$ac_cv_search_connect" >&6; }
14820 ac_res=$ac_cv_search_connect
14821 if test "$ac_res" != no; then :
14822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14828 $as_echo_n "checking for library containing inet_aton... " >&6; }
14829 if ${ac_cv_search_inet_aton+:} false; then :
14830 $as_echo_n "(cached) " >&6
14831 else
14832 ac_func_search_save_LIBS=$LIBS
14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14836 /* Override any GCC internal prototype to avoid an error.
14837 Use char because int might match the return type of a GCC
14838 builtin and then its argument prototype would still apply. */
14839 #ifdef __cplusplus
14840 extern "C"
14841 #endif
14842 char inet_aton ();
14844 main ()
14846 return inet_aton ();
14848 return 0;
14850 _ACEOF
14851 for ac_lib in '' resolv; do
14852 if test -z "$ac_lib"; then
14853 ac_res="none required"
14854 else
14855 ac_res=-l$ac_lib
14856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14858 if ac_fn_c_try_link "$LINENO"; then :
14859 ac_cv_search_inet_aton=$ac_res
14861 rm -f core conftest.err conftest.$ac_objext \
14862 conftest$ac_exeext
14863 if ${ac_cv_search_inet_aton+:} false; then :
14864 break
14866 done
14867 if ${ac_cv_search_inet_aton+:} false; then :
14869 else
14870 ac_cv_search_inet_aton=no
14872 rm conftest.$ac_ext
14873 LIBS=$ac_func_search_save_LIBS
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14876 $as_echo "$ac_cv_search_inet_aton" >&6; }
14877 ac_res=$ac_cv_search_inet_aton
14878 if test "$ac_res" != no; then :
14879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14884 for ac_func in \
14885 getaddrinfo \
14886 getnameinfo \
14887 getnetbyname \
14888 getprotobyname \
14889 getprotobynumber \
14890 getservbyport \
14891 inet_addr \
14892 inet_network \
14893 inet_ntop \
14894 inet_pton \
14895 sendmsg \
14896 socketpair \
14898 do :
14899 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14900 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14901 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14902 cat >>confdefs.h <<_ACEOF
14903 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14904 _ACEOF
14907 done
14910 ac_save_LIBS=$LIBS
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14912 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14913 if ${ac_cv_search_clock_gettime+:} false; then :
14914 $as_echo_n "(cached) " >&6
14915 else
14916 ac_func_search_save_LIBS=$LIBS
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14920 /* Override any GCC internal prototype to avoid an error.
14921 Use char because int might match the return type of a GCC
14922 builtin and then its argument prototype would still apply. */
14923 #ifdef __cplusplus
14924 extern "C"
14925 #endif
14926 char clock_gettime ();
14928 main ()
14930 return clock_gettime ();
14932 return 0;
14934 _ACEOF
14935 for ac_lib in '' rt; do
14936 if test -z "$ac_lib"; then
14937 ac_res="none required"
14938 else
14939 ac_res=-l$ac_lib
14940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14942 if ac_fn_c_try_link "$LINENO"; then :
14943 ac_cv_search_clock_gettime=$ac_res
14945 rm -f core conftest.err conftest.$ac_objext \
14946 conftest$ac_exeext
14947 if ${ac_cv_search_clock_gettime+:} false; then :
14948 break
14950 done
14951 if ${ac_cv_search_clock_gettime+:} false; then :
14953 else
14954 ac_cv_search_clock_gettime=no
14956 rm conftest.$ac_ext
14957 LIBS=$ac_func_search_save_LIBS
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14960 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14961 ac_res=$ac_cv_search_clock_gettime
14962 if test "$ac_res" != no; then :
14963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14965 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14967 test "$ac_res" = "none required" || LIBRT="$ac_res"
14971 LIBS=$ac_save_LIBS
14973 LDAPLIBS=""
14975 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
14976 then
14977 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
14979 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
14981 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
14982 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
14983 $as_echo_n "(cached) " >&6
14984 else
14985 ac_check_lib_save_LIBS=$LIBS
14986 LIBS="-lldap_r $LIBPTHREAD $LIBS"
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14990 /* Override any GCC internal prototype to avoid an error.
14991 Use char because int might match the return type of a GCC
14992 builtin and then its argument prototype would still apply. */
14993 #ifdef __cplusplus
14994 extern "C"
14995 #endif
14996 char ldap_initialize ();
14998 main ()
15000 return ldap_initialize ();
15002 return 0;
15004 _ACEOF
15005 if ac_fn_c_try_link "$LINENO"; then :
15006 ac_cv_lib_ldap_r_ldap_initialize=yes
15007 else
15008 ac_cv_lib_ldap_r_ldap_initialize=no
15010 rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15012 LIBS=$ac_check_lib_save_LIBS
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
15015 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
15016 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
15018 $as_echo_n "checking for ber_init in -llber... " >&6; }
15019 if ${ac_cv_lib_lber_ber_init+:} false; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15022 ac_check_lib_save_LIBS=$LIBS
15023 LIBS="-llber $LIBPTHREAD $LIBS"
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15027 /* Override any GCC internal prototype to avoid an error.
15028 Use char because int might match the return type of a GCC
15029 builtin and then its argument prototype would still apply. */
15030 #ifdef __cplusplus
15031 extern "C"
15032 #endif
15033 char ber_init ();
15035 main ()
15037 return ber_init ();
15039 return 0;
15041 _ACEOF
15042 if ac_fn_c_try_link "$LINENO"; then :
15043 ac_cv_lib_lber_ber_init=yes
15044 else
15045 ac_cv_lib_lber_ber_init=no
15047 rm -f core conftest.err conftest.$ac_objext \
15048 conftest$ac_exeext conftest.$ac_ext
15049 LIBS=$ac_check_lib_save_LIBS
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
15052 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
15053 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
15055 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
15057 LDAPLIBS="-lldap_r -llber"
15064 ac_wine_check_funcs_save_LIBS="$LIBS"
15065 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
15066 for ac_func in \
15067 ldap_count_references \
15068 ldap_first_reference \
15069 ldap_next_reference \
15070 ldap_parse_reference \
15071 ldap_parse_sort_control \
15072 ldap_parse_sortresponse_control \
15073 ldap_parse_vlv_control \
15074 ldap_parse_vlvresponse_control
15075 do :
15076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15077 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15078 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15079 cat >>confdefs.h <<_ACEOF
15080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15081 _ACEOF
15084 done
15086 LIBS="$ac_wine_check_funcs_save_LIBS"
15088 if test "x$LDAPLIBS" = "x"; then :
15089 case "x$with_ldap" in
15090 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
15091 xno) ;;
15092 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
15093 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
15094 esac
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
15098 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
15099 if ${wine_cv_one_arg_mkdir+:} false; then :
15100 $as_echo_n "(cached) " >&6
15101 else
15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15104 #include <sys/stat.h>
15106 main ()
15108 mkdir("foo");
15110 return 0;
15112 _ACEOF
15113 if ac_fn_c_try_compile "$LINENO"; then :
15114 wine_cv_one_arg_mkdir=yes
15115 else
15116 wine_cv_one_arg_mkdir=no
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
15121 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
15122 if test "$wine_cv_one_arg_mkdir" = "yes"
15123 then
15125 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
15130 $as_echo_n "checking for sched_setaffinity... " >&6; }
15131 if ${wine_cv_have_sched_setaffinity+:} false; then :
15132 $as_echo_n "(cached) " >&6
15133 else
15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h. */
15136 #define _GNU_SOURCE
15137 #include <sched.h>
15139 main ()
15141 sched_setaffinity(0, 0, 0);
15143 return 0;
15145 _ACEOF
15146 if ac_fn_c_try_link "$LINENO"; then :
15147 wine_cv_have_sched_setaffinity=yes
15148 else
15149 wine_cv_have_sched_setaffinity=no
15151 rm -f core conftest.err conftest.$ac_objext \
15152 conftest$ac_exeext conftest.$ac_ext
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
15155 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15156 if test "$wine_cv_have_sched_setaffinity" = "yes"
15157 then
15159 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15164 $as_echo_n "checking for fallocate... " >&6; }
15165 if ${wine_cv_have_fallocate+:} false; then :
15166 $as_echo_n "(cached) " >&6
15167 else
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15170 #define _GNU_SOURCE
15171 #include <fcntl.h>
15173 main ()
15175 fallocate(-1, 0, 0, 0);
15177 return 0;
15179 _ACEOF
15180 if ac_fn_c_try_link "$LINENO"; then :
15181 wine_cv_have_fallocate=yes
15182 else
15183 wine_cv_have_fallocate=no
15185 rm -f core conftest.err conftest.$ac_objext \
15186 conftest$ac_exeext conftest.$ac_ext
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15189 $as_echo "$wine_cv_have_fallocate" >&6; }
15190 if test "$wine_cv_have_fallocate" = "yes"
15191 then
15193 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15199 $as_echo_n "checking for inline... " >&6; }
15200 if ${ac_cv_c_inline+:} false; then :
15201 $as_echo_n "(cached) " >&6
15202 else
15203 ac_cv_c_inline=no
15204 for ac_kw in inline __inline__ __inline; do
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15207 #ifndef __cplusplus
15208 typedef int foo_t;
15209 static $ac_kw foo_t static_foo () {return 0; }
15210 $ac_kw foo_t foo () {return 0; }
15211 #endif
15213 _ACEOF
15214 if ac_fn_c_try_compile "$LINENO"; then :
15215 ac_cv_c_inline=$ac_kw
15217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15218 test "$ac_cv_c_inline" != no && break
15219 done
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15223 $as_echo "$ac_cv_c_inline" >&6; }
15225 case $ac_cv_c_inline in
15226 inline | yes) ;;
15228 case $ac_cv_c_inline in
15229 no) ac_val=;;
15230 *) ac_val=$ac_cv_c_inline;;
15231 esac
15232 cat >>confdefs.h <<_ACEOF
15233 #ifndef __cplusplus
15234 #define inline $ac_val
15235 #endif
15236 _ACEOF
15238 esac
15240 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15241 if test "x$ac_cv_type_mode_t" = xyes; then :
15243 cat >>confdefs.h <<_ACEOF
15244 #define HAVE_MODE_T 1
15245 _ACEOF
15249 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15250 if test "x$ac_cv_type_off_t" = xyes; then :
15252 cat >>confdefs.h <<_ACEOF
15253 #define HAVE_OFF_T 1
15254 _ACEOF
15258 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15259 if test "x$ac_cv_type_pid_t" = xyes; then :
15261 cat >>confdefs.h <<_ACEOF
15262 #define HAVE_PID_T 1
15263 _ACEOF
15267 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15268 if test "x$ac_cv_type_size_t" = xyes; then :
15270 cat >>confdefs.h <<_ACEOF
15271 #define HAVE_SIZE_T 1
15272 _ACEOF
15276 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15277 if test "x$ac_cv_type_ssize_t" = xyes; then :
15279 cat >>confdefs.h <<_ACEOF
15280 #define HAVE_SSIZE_T 1
15281 _ACEOF
15285 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15286 if test "x$ac_cv_type_long_long" = xyes; then :
15288 cat >>confdefs.h <<_ACEOF
15289 #define HAVE_LONG_LONG 1
15290 _ACEOF
15294 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15295 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15297 cat >>confdefs.h <<_ACEOF
15298 #define HAVE_FSBLKCNT_T 1
15299 _ACEOF
15303 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15304 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15306 cat >>confdefs.h <<_ACEOF
15307 #define HAVE_FSFILCNT_T 1
15308 _ACEOF
15313 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15314 #include <signal.h>
15316 if test "x$ac_cv_type_sigset_t" = xyes; then :
15318 cat >>confdefs.h <<_ACEOF
15319 #define HAVE_SIGSET_T 1
15320 _ACEOF
15325 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15327 if test "x$ac_cv_type_request_sense" = xyes; then :
15329 cat >>confdefs.h <<_ACEOF
15330 #define HAVE_REQUEST_SENSE 1
15331 _ACEOF
15337 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15338 #ifdef HAVE_SYS_SOCKET_H
15339 #include <sys/socket.h>
15340 #endif
15341 #ifdef HAVE_SYS_SOCKETVAR_H
15342 #include <sys/socketvar.h>
15343 #endif
15344 #ifdef HAVE_NET_ROUTE_H
15345 #include <net/route.h>
15346 #endif
15347 #ifdef HAVE_NETINET_IN_H
15348 #include <netinet/in.h>
15349 #endif
15350 #ifdef HAVE_NETINET_IN_SYSTM_H
15351 #include <netinet/in_systm.h>
15352 #endif
15353 #ifdef HAVE_NETINET_IP_H
15354 #include <netinet/ip.h>
15355 #endif
15356 #ifdef HAVE_NETINET_IN_PCB_H
15357 #include <netinet/in_pcb.h>
15358 #endif
15360 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15362 cat >>confdefs.h <<_ACEOF
15363 #define HAVE_STRUCT_XINPGEN 1
15364 _ACEOF
15370 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15371 #include <link.h>
15372 #endif
15373 #ifdef HAVE_SYS_LINK_H
15374 #include <sys/link.h>
15375 #endif
15377 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15379 cat >>confdefs.h <<_ACEOF
15380 #define HAVE_STRUCT_R_DEBUG 1
15381 _ACEOF
15385 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15386 #include <link.h>
15387 #endif
15388 #ifdef HAVE_SYS_LINK_H
15389 #include <sys/link.h>
15390 #endif
15392 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15394 cat >>confdefs.h <<_ACEOF
15395 #define HAVE_STRUCT_LINK_MAP 1
15396 _ACEOF
15402 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15403 #include <linux/input.h>
15404 #endif
15406 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15408 cat >>confdefs.h <<_ACEOF
15409 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15410 _ACEOF
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15417 $as_echo_n "checking for sigaddset... " >&6; }
15418 if ${wine_cv_have_sigaddset+:} false; then :
15419 $as_echo_n "(cached) " >&6
15420 else
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15423 #include <signal.h>
15425 main ()
15427 sigset_t set; sigaddset(&set,SIGTERM);
15429 return 0;
15431 _ACEOF
15432 if ac_fn_c_try_link "$LINENO"; then :
15433 wine_cv_have_sigaddset=yes
15434 else
15435 wine_cv_have_sigaddset=no
15437 rm -f core conftest.err conftest.$ac_objext \
15438 conftest$ac_exeext conftest.$ac_ext
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15441 $as_echo "$wine_cv_have_sigaddset" >&6; }
15442 if test "$wine_cv_have_sigaddset" = "yes"
15443 then
15445 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15451 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15452 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457 #include <netdb.h>
15459 main ()
15462 char *name=0;
15463 struct hostent he;
15464 struct hostent *result;
15465 char *buf=0;
15466 int bufsize=0;
15467 int errnr;
15468 char *addr=0;
15469 int addrlen=0;
15470 int addrtype=0;
15471 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15472 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15475 return 0;
15477 _ACEOF
15478 if ac_fn_c_try_link "$LINENO"; then :
15479 wine_cv_linux_gethostbyname_r_6=yes
15480 else
15481 wine_cv_linux_gethostbyname_r_6=no
15484 rm -f core conftest.err conftest.$ac_objext \
15485 conftest$ac_exeext conftest.$ac_ext
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15489 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15490 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15491 then
15493 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15497 if test "$ac_cv_header_linux_joystick_h" = "yes"
15498 then
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15500 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15501 if ${wine_cv_linux_joystick_22_api+:} false; then :
15502 $as_echo_n "(cached) " >&6
15503 else
15504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15507 #include <sys/ioctl.h>
15508 #include <sys/types.h>
15509 #include <linux/joystick.h>
15511 struct js_event blub;
15512 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15513 #error "no 2.2 header"
15514 #endif
15517 main ()
15519 /*empty*/
15521 return 0;
15523 _ACEOF
15524 if ac_fn_c_try_compile "$LINENO"; then :
15525 wine_cv_linux_joystick_22_api=yes
15526 else
15527 wine_cv_linux_joystick_22_api=no
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15533 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15534 if test "$wine_cv_linux_joystick_22_api" = "yes"
15535 then
15537 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15543 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15544 #ifdef HAVE_SYS_PARAM_H
15545 # include <sys/param.h>
15546 #endif
15547 #ifdef HAVE_SYS_MOUNT_H
15548 # include <sys/mount.h>
15549 #endif
15550 #ifdef HAVE_SYS_VFS_H
15551 # include <sys/vfs.h>
15552 #endif
15553 #ifdef HAVE_SYS_STATFS_H
15554 # include <sys/statfs.h>
15555 #endif
15557 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15559 cat >>confdefs.h <<_ACEOF
15560 #define HAVE_STRUCT_STATFS_F_BFREE 1
15561 _ACEOF
15565 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15566 #ifdef HAVE_SYS_PARAM_H
15567 # include <sys/param.h>
15568 #endif
15569 #ifdef HAVE_SYS_MOUNT_H
15570 # include <sys/mount.h>
15571 #endif
15572 #ifdef HAVE_SYS_VFS_H
15573 # include <sys/vfs.h>
15574 #endif
15575 #ifdef HAVE_SYS_STATFS_H
15576 # include <sys/statfs.h>
15577 #endif
15579 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15581 cat >>confdefs.h <<_ACEOF
15582 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15583 _ACEOF
15587 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15588 #ifdef HAVE_SYS_PARAM_H
15589 # include <sys/param.h>
15590 #endif
15591 #ifdef HAVE_SYS_MOUNT_H
15592 # include <sys/mount.h>
15593 #endif
15594 #ifdef HAVE_SYS_VFS_H
15595 # include <sys/vfs.h>
15596 #endif
15597 #ifdef HAVE_SYS_STATFS_H
15598 # include <sys/statfs.h>
15599 #endif
15601 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15603 cat >>confdefs.h <<_ACEOF
15604 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15605 _ACEOF
15609 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15610 #ifdef HAVE_SYS_PARAM_H
15611 # include <sys/param.h>
15612 #endif
15613 #ifdef HAVE_SYS_MOUNT_H
15614 # include <sys/mount.h>
15615 #endif
15616 #ifdef HAVE_SYS_VFS_H
15617 # include <sys/vfs.h>
15618 #endif
15619 #ifdef HAVE_SYS_STATFS_H
15620 # include <sys/statfs.h>
15621 #endif
15623 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15625 cat >>confdefs.h <<_ACEOF
15626 #define HAVE_STRUCT_STATFS_F_FFREE 1
15627 _ACEOF
15631 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15632 #ifdef HAVE_SYS_PARAM_H
15633 # include <sys/param.h>
15634 #endif
15635 #ifdef HAVE_SYS_MOUNT_H
15636 # include <sys/mount.h>
15637 #endif
15638 #ifdef HAVE_SYS_VFS_H
15639 # include <sys/vfs.h>
15640 #endif
15641 #ifdef HAVE_SYS_STATFS_H
15642 # include <sys/statfs.h>
15643 #endif
15645 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15647 cat >>confdefs.h <<_ACEOF
15648 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15649 _ACEOF
15653 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15654 #ifdef HAVE_SYS_PARAM_H
15655 # include <sys/param.h>
15656 #endif
15657 #ifdef HAVE_SYS_MOUNT_H
15658 # include <sys/mount.h>
15659 #endif
15660 #ifdef HAVE_SYS_VFS_H
15661 # include <sys/vfs.h>
15662 #endif
15663 #ifdef HAVE_SYS_STATFS_H
15664 # include <sys/statfs.h>
15665 #endif
15667 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15669 cat >>confdefs.h <<_ACEOF
15670 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15671 _ACEOF
15677 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15678 #include <sys/statvfs.h>
15679 #endif
15681 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15683 cat >>confdefs.h <<_ACEOF
15684 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15685 _ACEOF
15691 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15692 #include <dirent.h>
15693 #endif
15695 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15697 cat >>confdefs.h <<_ACEOF
15698 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15699 _ACEOF
15705 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15706 #ifdef HAVE_SYS_SOCKET_H
15707 # include <sys/socket.h>
15708 #endif
15709 #ifdef HAVE_SYS_UN_H
15710 # include <sys/un.h>
15711 #endif
15713 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15715 cat >>confdefs.h <<_ACEOF
15716 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15717 _ACEOF
15721 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15722 #ifdef HAVE_SYS_SOCKET_H
15723 # include <sys/socket.h>
15724 #endif
15725 #ifdef HAVE_SYS_UN_H
15726 # include <sys/un.h>
15727 #endif
15729 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15731 cat >>confdefs.h <<_ACEOF
15732 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15733 _ACEOF
15737 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15738 #ifdef HAVE_SYS_SOCKET_H
15739 # include <sys/socket.h>
15740 #endif
15741 #ifdef HAVE_SYS_UN_H
15742 # include <sys/un.h>
15743 #endif
15745 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15747 cat >>confdefs.h <<_ACEOF
15748 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15749 _ACEOF
15755 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15756 #ifdef HAVE_SCSI_SG_H
15757 #include <scsi/sg.h>
15758 #endif
15760 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15762 cat >>confdefs.h <<_ACEOF
15763 #define HAVE_SCSIREQ_T_CMD 1
15764 _ACEOF
15768 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>
15769 #ifdef HAVE_SCSI_SG_H
15770 #include <scsi/sg.h>
15771 #endif
15773 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15775 cat >>confdefs.h <<_ACEOF
15776 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15777 _ACEOF
15783 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15785 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15787 cat >>confdefs.h <<_ACEOF
15788 #define HAVE_SIGINFO_T_SI_FD 1
15789 _ACEOF
15795 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15796 #ifdef HAVE_SYS_MTIO_H
15797 #include <sys/mtio.h>
15798 #endif
15800 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15802 cat >>confdefs.h <<_ACEOF
15803 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15804 _ACEOF
15808 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15809 #ifdef HAVE_SYS_MTIO_H
15810 #include <sys/mtio.h>
15811 #endif
15813 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15815 cat >>confdefs.h <<_ACEOF
15816 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15817 _ACEOF
15821 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15822 #ifdef HAVE_SYS_MTIO_H
15823 #include <sys/mtio.h>
15824 #endif
15826 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
15828 cat >>confdefs.h <<_ACEOF
15829 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
15830 _ACEOF
15836 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
15837 #include <getopt.h>
15838 #endif
15840 if test "x$ac_cv_member_struct_option_name" = xyes; then :
15842 cat >>confdefs.h <<_ACEOF
15843 #define HAVE_STRUCT_OPTION_NAME 1
15844 _ACEOF
15850 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15851 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15853 cat >>confdefs.h <<_ACEOF
15854 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15855 _ACEOF
15859 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15860 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
15862 cat >>confdefs.h <<_ACEOF
15863 #define HAVE_STRUCT_STAT_ST_MTIM 1
15864 _ACEOF
15868 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15869 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
15871 cat >>confdefs.h <<_ACEOF
15872 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
15873 _ACEOF
15877 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
15878 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
15880 cat >>confdefs.h <<_ACEOF
15881 #define HAVE_STRUCT_STAT_ST_CTIM 1
15882 _ACEOF
15886 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
15887 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
15889 cat >>confdefs.h <<_ACEOF
15890 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
15891 _ACEOF
15895 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
15896 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
15898 cat >>confdefs.h <<_ACEOF
15899 #define HAVE_STRUCT_STAT_ST_ATIM 1
15900 _ACEOF
15904 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
15905 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
15907 cat >>confdefs.h <<_ACEOF
15908 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
15909 _ACEOF
15913 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15914 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15916 cat >>confdefs.h <<_ACEOF
15917 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15918 _ACEOF
15922 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
15923 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
15925 cat >>confdefs.h <<_ACEOF
15926 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
15927 _ACEOF
15931 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
15932 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
15934 cat >>confdefs.h <<_ACEOF
15935 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
15936 _ACEOF
15940 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
15941 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
15943 cat >>confdefs.h <<_ACEOF
15944 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
15945 _ACEOF
15949 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
15950 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
15952 cat >>confdefs.h <<_ACEOF
15953 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
15954 _ACEOF
15960 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
15961 #include <sys/types.h>
15962 #endif
15963 #ifdef HAVE_NETINET_IN_H
15964 #include <netinet/in.h>
15965 #endif
15967 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15969 cat >>confdefs.h <<_ACEOF
15970 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15971 _ACEOF
15977 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
15978 #include <resolv.h>
15979 #endif
15981 if test "x$ac_cv_type_struct___res_state" = xyes; then :
15983 cat >>confdefs.h <<_ACEOF
15984 #define HAVE_STRUCT___RES_STATE 1
15985 _ACEOF
15991 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
15992 #include <resolv.h>
15993 #endif
15995 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
15997 cat >>confdefs.h <<_ACEOF
15998 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
15999 _ACEOF
16005 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
16006 #include <sys/types.h>
16007 #endif
16008 #ifdef HAVE_NETINET_IN_H
16009 # include <netinet/in.h>
16010 #endif
16011 #ifdef HAVE_ARPA_NAMESER_H
16012 # include <arpa/nameser.h>
16013 #endif
16015 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
16017 cat >>confdefs.h <<_ACEOF
16018 #define HAVE_NS_MSG__MSG_PTR 1
16019 _ACEOF
16025 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
16026 #include <sys/types.h>
16027 #endif
16028 #ifdef HAVE_NETINET_IP_H
16029 #include <netinet/ip.h>
16030 #endif
16031 #ifdef HAVE_NETINET_IP_ICMP_H
16032 #include <netinet/ip_icmp.h>
16033 #endif
16034 #ifdef HAVE_NETINET_ICMP_VAR_H
16035 #include <netinet/icmp_var.h>
16036 #endif
16038 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
16040 cat >>confdefs.h <<_ACEOF
16041 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
16042 _ACEOF
16048 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
16049 #include <sys/types.h>
16050 #endif
16051 #ifdef HAVE_ALIAS_H
16052 #include <alias.h>
16053 #endif
16054 #ifdef HAVE_SYS_SOCKET_H
16055 #include <sys/socket.h>
16056 #endif
16057 #ifdef HAVE_SYS_SOCKETVAR_H
16058 #include <sys/socketvar.h>
16059 #endif
16060 #ifdef HAVE_SYS_TIMEOUT_H
16061 #include <sys/timeout.h>
16062 #endif
16063 #ifdef HAVE_NETINET_IN_H
16064 #include <netinet/in.h>
16065 #endif
16066 #ifdef HAVE_NETINET_IN_SYSTM_H
16067 #include <netinet/in_systm.h>
16068 #endif
16069 #ifdef HAVE_NETINET_IP_H
16070 #include <netinet/ip.h>
16071 #endif
16072 #ifdef HAVE_NETINET_IP_VAR_H
16073 #include <netinet/ip_var.h>
16074 #endif
16075 #ifdef HAVE_NETINET_IP_ICMP_H
16076 #include <netinet/ip_icmp.h>
16077 #endif
16078 #ifdef HAVE_NETINET_ICMP_VAR_H
16079 #include <netinet/icmp_var.h>
16080 #endif
16082 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
16084 cat >>confdefs.h <<_ACEOF
16085 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
16086 _ACEOF
16092 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
16093 #include <sys/types.h>
16094 #endif
16095 #ifdef HAVE_SYS_SOCKETVAR_H
16096 #include <sys/socketvar.h>
16097 #endif
16098 #ifdef HAVE_NETINET_IN_H
16099 #include <netinet/in.h>
16100 #endif
16101 #ifdef HAVE_NETINET_IP_VAR_H
16102 #include <netinet/ip_var.h>
16103 #endif
16105 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
16107 cat >>confdefs.h <<_ACEOF
16108 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
16109 _ACEOF
16115 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
16116 #include <netinet/ip_var.h>
16117 #endif
16119 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
16121 cat >>confdefs.h <<_ACEOF
16122 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
16123 _ACEOF
16129 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
16130 #include <sys/types.h>
16131 #endif
16132 #ifdef HAVE_SYS_SOCKETVAR_H
16133 #include <sys/socketvar.h>
16134 #endif
16135 #ifdef HAVE_NETINET_IN_H
16136 #include <netinet/in.h>
16137 #endif
16138 #ifdef HAVE_NETINET_TCP_H
16139 #include <netinet/tcp.h>
16140 #endif
16141 #ifdef HAVE_NETINET_TCP_VAR_H
16142 #include <netinet/tcp_var.h>
16143 #endif
16145 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
16147 cat >>confdefs.h <<_ACEOF
16148 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
16149 _ACEOF
16155 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
16156 #include <netinet/tcp_var.h>
16157 #endif
16159 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16161 cat >>confdefs.h <<_ACEOF
16162 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16163 _ACEOF
16169 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16170 #include <sys/types.h>
16171 #endif
16172 #ifdef HAVE_NETINET_IN_H
16173 #include <netinet/in.h>
16174 #endif
16175 #ifdef HAVE_NETINET_IP_VAR_H
16176 #include <netinet/ip_var.h>
16177 #endif
16178 #ifdef HAVE_NETINET_UDP_H
16179 #include <netinet/udp.h>
16180 #endif
16181 #ifdef HAVE_NETINET_UDP_VAR_H
16182 #include <netinet/udp_var.h>
16183 #endif
16185 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16187 cat >>confdefs.h <<_ACEOF
16188 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16189 _ACEOF
16195 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16196 #include <sys/types.h>
16197 #endif
16198 #ifdef HAVE_NET_IF_H
16199 # include <net/if.h>
16200 #endif
16202 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16204 cat >>confdefs.h <<_ACEOF
16205 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16206 _ACEOF
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16213 $as_echo_n "checking for timezone variable... " >&6; }
16214 if ${ac_cv_have_timezone+:} false; then :
16215 $as_echo_n "(cached) " >&6
16216 else
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16219 #include <time.h>
16221 main ()
16223 timezone = 1
16225 return 0;
16227 _ACEOF
16228 if ac_fn_c_try_link "$LINENO"; then :
16229 ac_cv_have_timezone="yes"
16230 else
16231 ac_cv_have_timezone="no"
16233 rm -f core conftest.err conftest.$ac_objext \
16234 conftest$ac_exeext conftest.$ac_ext
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16237 $as_echo "$ac_cv_have_timezone" >&6; }
16238 if test "$ac_cv_have_timezone" = "yes"
16239 then
16241 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16245 $as_echo_n "checking for daylight variable... " >&6; }
16246 if ${ac_cv_have_daylight+:} false; then :
16247 $as_echo_n "(cached) " >&6
16248 else
16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h. */
16251 #include <time.h>
16253 main ()
16255 daylight = 1
16257 return 0;
16259 _ACEOF
16260 if ac_fn_c_try_link "$LINENO"; then :
16261 ac_cv_have_daylight="yes"
16262 else
16263 ac_cv_have_daylight="no"
16265 rm -f core conftest.err conftest.$ac_objext \
16266 conftest$ac_exeext conftest.$ac_ext
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16269 $as_echo "$ac_cv_have_daylight" >&6; }
16270 if test "$ac_cv_have_daylight" = "yes"
16271 then
16273 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16277 ac_save_LIBS="$LIBS"
16278 LIBS="$LIBS -lm"
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16280 $as_echo_n "checking for isfinite... " >&6; }
16281 if ${ac_cv_have_isfinite+:} false; then :
16282 $as_echo_n "(cached) " >&6
16283 else
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16286 #define _GNU_SOURCE
16287 #include <math.h>
16289 main ()
16291 float f = 0.0; return isfinite(f)
16293 return 0;
16295 _ACEOF
16296 if ac_fn_c_try_link "$LINENO"; then :
16297 ac_cv_have_isfinite="yes"
16298 else
16299 ac_cv_have_isfinite="no"
16301 rm -f core conftest.err conftest.$ac_objext \
16302 conftest$ac_exeext conftest.$ac_ext
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16305 $as_echo "$ac_cv_have_isfinite" >&6; }
16306 if test "$ac_cv_have_isfinite" = "yes"
16307 then
16309 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16313 ac_save_LIBS="$LIBS"
16314 LIBS="$LIBS -lm"
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16316 $as_echo_n "checking for isinf... " >&6; }
16317 if ${ac_cv_have_isinf+:} false; then :
16318 $as_echo_n "(cached) " >&6
16319 else
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16322 #include <math.h>
16324 main ()
16326 float f = 0.0; return isinf(f)
16328 return 0;
16330 _ACEOF
16331 if ac_fn_c_try_link "$LINENO"; then :
16332 ac_cv_have_isinf="yes"
16333 else
16334 ac_cv_have_isinf="no"
16336 rm -f core conftest.err conftest.$ac_objext \
16337 conftest$ac_exeext conftest.$ac_ext
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16340 $as_echo "$ac_cv_have_isinf" >&6; }
16341 if test "$ac_cv_have_isinf" = "yes"
16342 then
16344 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16349 $as_echo_n "checking for isnan... " >&6; }
16350 if ${ac_cv_have_isnan+:} false; then :
16351 $as_echo_n "(cached) " >&6
16352 else
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16355 #include <math.h>
16357 main ()
16359 float f = 0.0; return isnan(f)
16361 return 0;
16363 _ACEOF
16364 if ac_fn_c_try_link "$LINENO"; then :
16365 ac_cv_have_isnan="yes"
16366 else
16367 ac_cv_have_isnan="no"
16369 rm -f core conftest.err conftest.$ac_objext \
16370 conftest$ac_exeext conftest.$ac_ext
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16373 $as_echo "$ac_cv_have_isnan" >&6; }
16374 if test "$ac_cv_have_isnan" = "yes"
16375 then
16377 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16380 LIBS="$ac_save_LIBS"
16383 case $host_cpu in
16384 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16385 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16386 if ${ac_cv_cpp_def___i386__+:} false; then :
16387 $as_echo_n "(cached) " >&6
16388 else
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 #ifndef __i386__
16393 #endif
16394 _ACEOF
16395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16396 $EGREP "yes" >/dev/null 2>&1; then :
16397 ac_cv_cpp_def___i386__=yes
16398 else
16399 ac_cv_cpp_def___i386__=no
16401 rm -f conftest*
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16405 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16406 if test $ac_cv_cpp_def___i386__ = yes; then :
16407 CFLAGS="$CFLAGS -D__i386__"
16408 LINTFLAGS="$LINTFLAGS -D__i386__"
16409 fi ;;
16410 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16411 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16412 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16413 $as_echo_n "(cached) " >&6
16414 else
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 #ifndef __x86_64__
16419 #endif
16420 _ACEOF
16421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16422 $EGREP "yes" >/dev/null 2>&1; then :
16423 ac_cv_cpp_def___x86_64__=yes
16424 else
16425 ac_cv_cpp_def___x86_64__=no
16427 rm -f conftest*
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16431 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16432 if test $ac_cv_cpp_def___x86_64__ = yes; then :
16433 CFLAGS="$CFLAGS -D__x86_64__"
16434 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16435 fi ;;
16436 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16437 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16438 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16439 $as_echo_n "(cached) " >&6
16440 else
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16443 #ifndef __sparc64__
16445 #endif
16446 _ACEOF
16447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16448 $EGREP "yes" >/dev/null 2>&1; then :
16449 ac_cv_cpp_def___sparc64__=yes
16450 else
16451 ac_cv_cpp_def___sparc64__=no
16453 rm -f conftest*
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16457 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16458 if test $ac_cv_cpp_def___sparc64__ = yes; then :
16459 CFLAGS="$CFLAGS -D__sparc64__"
16460 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16461 fi ;;
16462 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16463 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16464 if ${ac_cv_cpp_def___sparc__+:} false; then :
16465 $as_echo_n "(cached) " >&6
16466 else
16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h. */
16469 #ifndef __sparc__
16471 #endif
16472 _ACEOF
16473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16474 $EGREP "yes" >/dev/null 2>&1; then :
16475 ac_cv_cpp_def___sparc__=yes
16476 else
16477 ac_cv_cpp_def___sparc__=no
16479 rm -f conftest*
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16483 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16484 if test $ac_cv_cpp_def___sparc__ = yes; then :
16485 CFLAGS="$CFLAGS -D__sparc__"
16486 LINTFLAGS="$LINTFLAGS -D__sparc__"
16487 fi ;;
16488 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16489 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16490 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16491 $as_echo_n "(cached) " >&6
16492 else
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16495 #ifndef __powerpc64__
16497 #endif
16498 _ACEOF
16499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16500 $EGREP "yes" >/dev/null 2>&1; then :
16501 ac_cv_cpp_def___powerpc64__=yes
16502 else
16503 ac_cv_cpp_def___powerpc64__=no
16505 rm -f conftest*
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16509 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16510 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
16511 CFLAGS="$CFLAGS -D__powerpc64__"
16512 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16513 fi ;;
16514 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16515 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16516 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16517 $as_echo_n "(cached) " >&6
16518 else
16519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16520 /* end confdefs.h. */
16521 #ifndef __powerpc__
16523 #endif
16524 _ACEOF
16525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16526 $EGREP "yes" >/dev/null 2>&1; then :
16527 ac_cv_cpp_def___powerpc__=yes
16528 else
16529 ac_cv_cpp_def___powerpc__=no
16531 rm -f conftest*
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16535 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16536 if test $ac_cv_cpp_def___powerpc__ = yes; then :
16537 CFLAGS="$CFLAGS -D__powerpc__"
16538 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16539 fi ;;
16540 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16541 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16542 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16543 $as_echo_n "(cached) " >&6
16544 else
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16547 #ifndef __aarch64__
16549 #endif
16550 _ACEOF
16551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16552 $EGREP "yes" >/dev/null 2>&1; then :
16553 ac_cv_cpp_def___aarch64__=yes
16554 else
16555 ac_cv_cpp_def___aarch64__=no
16557 rm -f conftest*
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16561 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16562 if test $ac_cv_cpp_def___aarch64__ = yes; then :
16563 CFLAGS="$CFLAGS -D__aarch64__"
16564 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16565 fi ;;
16566 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16567 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16568 if ${ac_cv_cpp_def___arm__+:} false; then :
16569 $as_echo_n "(cached) " >&6
16570 else
16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573 #ifndef __arm__
16575 #endif
16576 _ACEOF
16577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16578 $EGREP "yes" >/dev/null 2>&1; then :
16579 ac_cv_cpp_def___arm__=yes
16580 else
16581 ac_cv_cpp_def___arm__=no
16583 rm -f conftest*
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16587 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16588 if test $ac_cv_cpp_def___arm__ = yes; then :
16589 CFLAGS="$CFLAGS -D__arm__"
16590 LINTFLAGS="$LINTFLAGS -D__arm__"
16591 fi ;;
16592 esac
16594 case $host_vendor in
16595 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16596 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16597 if ${ac_cv_cpp_def___sun__+:} false; then :
16598 $as_echo_n "(cached) " >&6
16599 else
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16602 #ifndef __sun__
16604 #endif
16605 _ACEOF
16606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16607 $EGREP "yes" >/dev/null 2>&1; then :
16608 ac_cv_cpp_def___sun__=yes
16609 else
16610 ac_cv_cpp_def___sun__=no
16612 rm -f conftest*
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16616 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16617 if test $ac_cv_cpp_def___sun__ = yes; then :
16618 CFLAGS="$CFLAGS -D__sun__"
16619 LINTFLAGS="$LINTFLAGS -D__sun__"
16620 fi ;;
16621 esac
16627 ac_config_commands="$ac_config_commands include/stamp-h"
16629 $as_echo_n "creating Makefile rules..." >&6
16632 MAKE_IMPLIB_RULES="DLLFLAGS = $DLLFLAGS
16635 if test -n "$CROSSTARGET"
16636 then
16637 as_fn_append MAKE_IMPLIB_RULES "MAKEDEPFLAGS = -xo -xcross.o
16638 all: \$(STATICLIB:.a=.cross.a)
16643 if test -n "$DLLEXT"
16644 then
16645 deps="\$(MODULE)$DLLEXT \$(MODULE).fake"
16646 else
16647 deps="\$(MODULE)"
16650 MAKE_DLL_RULES="
16651 DLLFLAGS = $DLLFLAGS
16652 MAINSPEC = \$(srcdir)/\$(MODULE:%.dll=%).spec
16653 IDL_TLB_RES = \$(IDL_TLB_SRCS:.idl=_t.res)
16654 MODULEFLAGS = -shared \$(MAINSPEC) \$(EXTRADLLFLAGS)
16656 all: $deps
16658 manpages:: dummy
16659 \$(C2MAN) -o \$(top_builddir)/documentation/man\$(api_manext) -R\$(top_builddir) -C\$(srcdir) \$(PARENTSRC:%=-P%) -I\$(top_srcdir)/include \$(MAINSPEC:%=-w %) \$(C_SRCS)
16660 htmlpages:: dummy
16661 \$(C2MAN) -o \$(top_builddir)/documentation/html -R\$(top_builddir) -C\$(srcdir) \$(PARENTSRC:%=-P%) -I\$(top_srcdir)/include -Th \$(MAINSPEC:%=-w %) \$(C_SRCS)
16662 sgmlpages:: dummy
16663 \$(C2MAN) -o \$(top_builddir)/documentation/api-guide -R\$(top_builddir) -C\$(srcdir) \$(PARENTSRC:%=-P%) -I\$(top_srcdir)/include -Ts \$(MAINSPEC:%=-w %) \$(C_SRCS)
16664 xmlpages:: dummy
16665 \$(C2MAN) -o \$(top_builddir)/documentation/api-guide-xml -R\$(top_builddir) -C\$(srcdir) \$(PARENTSRC:%=-P%) -I\$(top_srcdir)/include -Tx \$(MAINSPEC:%=-w %) \$(C_SRCS)
16666 .PHONY: manpages htmlpages sgmlpages xmlpages
16670 MAKE_PROG_RULES="
16671 DLLFLAGS = $DLLFLAGS
16673 all: $deps
16678 MAKE_TEST_RULES="
16679 DLLFLAGS = $DLLFLAGS
16680 TESTMODULE = \$(TESTDLL:%.dll=%)_test.exe
16681 TESTMODULE_STRIPPED = \$(TESTDLL:%.dll=%)_test-stripped.exe$DLLEXT
16682 WINETEST_RES = \$(top_builddir)/programs/winetest/\$(TESTDLL:%.dll=%)_test.res
16683 RUNTESTFLAGS = -q -P wine -T \$(top_builddir) -M \$(TESTDLL) -p \$(TESTMODULE)$DLLEXT
16684 EXTRA_OBJS = testlist.o
16686 all: \$(TESTMODULE)$DLLEXT \$(WINETEST_RES)
16688 \$(C_SRCS:.c=.ok): \$(TESTMODULE)$DLLEXT \$(TESTDLL:%=../%$DLLEXT)
16690 .PHONY: check test testclean crosstest
16693 if test -n "$CROSSTARGET"
16694 then
16695 as_fn_append MAKE_TEST_RULES "
16696 MAKEDEPFLAGS = -xo -xcross.o
16697 CROSSTESTMODULE = \$(TESTDLL:%.dll=%)_crosstest.exe
16699 crosstest: \$(CROSSTESTMODULE)
16704 wine_fn_append_rule "
16705 # Rules automatically generated by configure
16707 .INIT: Makefile
16708 .MAKEFILEDEPS:
16709 all: Makefile
16710 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status
16711 @./config.status Make.tmp Makefile"
16713 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16714 .gitignore: config.status
16715 @./config.status .gitignore"
16717 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16718 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16720 if test "x$enable_fonts" != xno; then
16721 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16722 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16723 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16724 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16725 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16727 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16728 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16729 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16730 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16731 ac_config_links="$ac_config_links wine:tools/winewrapper"
16732 wine_fn_config_symlink wine
16733 if test "x$enable_win64" != xno; then
16734 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16735 wine_fn_config_symlink wine64
16738 wine_fn_config_makerules Make.rules
16739 MAKE_RULES=Make.rules
16740 ac_config_files="$ac_config_files Make.rules"
16743 wine_fn_config_dll acledit enable_acledit
16744 wine_fn_config_dll aclui enable_aclui implib
16745 wine_fn_config_dll activeds enable_activeds implib
16746 wine_fn_config_dll actxprxy enable_actxprxy clean
16747 wine_fn_config_lib adsiid
16748 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16749 wine_fn_config_test dlls/advapi32/tests advapi32_test
16750 wine_fn_config_dll advpack enable_advpack implib
16751 wine_fn_config_test dlls/advpack/tests advpack_test
16752 wine_fn_config_dll amstream enable_amstream clean
16753 wine_fn_config_test dlls/amstream/tests amstream_test
16754 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16755 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16756 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16757 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16758 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16759 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16760 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16761 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16762 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16763 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16764 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16765 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16766 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16767 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16768 wine_fn_config_dll apphelp enable_apphelp
16769 wine_fn_config_test dlls/apphelp/tests apphelp_test
16770 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16771 wine_fn_config_dll atl enable_atl clean,implib
16772 wine_fn_config_test dlls/atl/tests atl_test
16773 wine_fn_config_dll atl100 enable_atl100 implib
16774 wine_fn_config_test dlls/atl100/tests atl100_test
16775 wine_fn_config_dll atl110 enable_atl110
16776 wine_fn_config_dll atl80 enable_atl80 implib
16777 wine_fn_config_test dlls/atl80/tests atl80_test
16778 wine_fn_config_dll atl90 enable_atl90
16779 wine_fn_config_dll authz enable_authz
16780 wine_fn_config_dll avicap32 enable_avicap32 implib
16781 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
16782 wine_fn_config_test dlls/avifil32/tests avifil32_test
16783 wine_fn_config_dll avifile.dll16 enable_win16
16784 wine_fn_config_dll avrt enable_avrt implib
16785 wine_fn_config_dll bcrypt enable_bcrypt
16786 wine_fn_config_dll browseui enable_browseui clean,po
16787 wine_fn_config_test dlls/browseui/tests browseui_test
16788 wine_fn_config_dll cabinet enable_cabinet implib
16789 wine_fn_config_test dlls/cabinet/tests cabinet_test
16790 wine_fn_config_dll capi2032 enable_capi2032 implib
16791 wine_fn_config_dll cards enable_cards implib
16792 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16793 wine_fn_config_dll clusapi enable_clusapi implib
16794 wine_fn_config_dll comcat enable_comcat
16795 wine_fn_config_test dlls/comcat/tests comcat_test
16796 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16797 wine_fn_config_test dlls/comctl32/tests comctl32_test
16798 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
16799 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16800 wine_fn_config_dll comm.drv16 enable_win16
16801 wine_fn_config_dll commdlg.dll16 enable_win16
16802 wine_fn_config_dll compobj.dll16 enable_win16
16803 wine_fn_config_dll compstui enable_compstui implib
16804 wine_fn_config_dll comsvcs enable_comsvcs implib
16805 wine_fn_config_dll credui enable_credui implib,po
16806 wine_fn_config_test dlls/credui/tests credui_test
16807 wine_fn_config_dll crtdll enable_crtdll implib
16808 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16809 wine_fn_config_test dlls/crypt32/tests crypt32_test
16810 wine_fn_config_dll cryptdlg enable_cryptdlg po
16811 wine_fn_config_dll cryptdll enable_cryptdll implib
16812 wine_fn_config_dll cryptnet enable_cryptnet implib
16813 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16814 wine_fn_config_dll cryptui enable_cryptui implib,po
16815 wine_fn_config_test dlls/cryptui/tests cryptui_test
16816 wine_fn_config_dll ctapi32 enable_ctapi32
16817 wine_fn_config_dll ctl3d.dll16 enable_win16
16818 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16819 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16820 wine_fn_config_dll d3d10 enable_d3d10 implib
16821 wine_fn_config_test dlls/d3d10/tests d3d10_test
16822 wine_fn_config_dll d3d10core enable_d3d10core implib
16823 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16824 wine_fn_config_dll d3d11 enable_d3d11
16825 wine_fn_config_dll d3d8 enable_d3d8 implib
16826 wine_fn_config_test dlls/d3d8/tests d3d8_test
16827 wine_fn_config_dll d3d9 enable_d3d9 implib
16828 wine_fn_config_test dlls/d3d9/tests d3d9_test
16829 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16830 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16831 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16832 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16833 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16834 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16835 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16836 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16837 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16838 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16839 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16840 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16841 wine_fn_config_dll d3dim enable_d3dim implib
16842 wine_fn_config_dll d3drm enable_d3drm implib
16843 wine_fn_config_test dlls/d3drm/tests d3drm_test
16844 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16845 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16846 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16847 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16848 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16849 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16850 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16851 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16852 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16853 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16854 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16855 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
16856 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
16857 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16858 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16859 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16860 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16861 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16862 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16863 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16864 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16865 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16866 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16867 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16868 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16869 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16870 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16871 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16872 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16873 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16874 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16875 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16876 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16877 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16878 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
16879 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16880 wine_fn_config_dll dbgeng enable_dbgeng implib
16881 wine_fn_config_dll dbghelp enable_dbghelp implib
16882 wine_fn_config_dll dciman32 enable_dciman32 implib
16883 wine_fn_config_dll ddeml.dll16 enable_win16
16884 wine_fn_config_dll ddraw enable_ddraw clean,implib
16885 wine_fn_config_test dlls/ddraw/tests ddraw_test
16886 wine_fn_config_dll ddrawex enable_ddrawex clean
16887 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16888 wine_fn_config_dll devenum enable_devenum clean,po
16889 wine_fn_config_test dlls/devenum/tests devenum_test
16890 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16891 wine_fn_config_dll difxapi enable_difxapi
16892 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
16893 wine_fn_config_test dlls/dinput/tests dinput_test
16894 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
16895 wine_fn_config_test dlls/dinput8/tests dinput8_test
16896 wine_fn_config_dll dispdib.dll16 enable_win16
16897 wine_fn_config_dll dispex enable_dispex clean
16898 wine_fn_config_test dlls/dispex/tests dispex_test
16899 wine_fn_config_dll display.drv16 enable_win16
16900 wine_fn_config_dll dmband enable_dmband clean
16901 wine_fn_config_test dlls/dmband/tests dmband_test
16902 wine_fn_config_dll dmcompos enable_dmcompos clean
16903 wine_fn_config_dll dmime enable_dmime clean
16904 wine_fn_config_test dlls/dmime/tests dmime_test
16905 wine_fn_config_dll dmloader enable_dmloader clean
16906 wine_fn_config_test dlls/dmloader/tests dmloader_test
16907 wine_fn_config_dll dmscript enable_dmscript clean
16908 wine_fn_config_dll dmstyle enable_dmstyle clean
16909 wine_fn_config_dll dmsynth enable_dmsynth clean
16910 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16911 wine_fn_config_dll dmusic enable_dmusic clean
16912 wine_fn_config_test dlls/dmusic/tests dmusic_test
16913 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16914 wine_fn_config_dll dnsapi enable_dnsapi implib
16915 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16916 wine_fn_config_dll dplay enable_dplay implib
16917 wine_fn_config_dll dplayx enable_dplayx clean,implib
16918 wine_fn_config_test dlls/dplayx/tests dplayx_test
16919 wine_fn_config_dll dpnaddr enable_dpnaddr
16920 wine_fn_config_dll dpnet enable_dpnet clean,implib
16921 wine_fn_config_test dlls/dpnet/tests dpnet_test
16922 wine_fn_config_dll dpnhpast enable_dpnhpast
16923 wine_fn_config_dll dpnlobby enable_dpnlobby
16924 wine_fn_config_dll dpwsockx enable_dpwsockx
16925 wine_fn_config_dll drmclien enable_drmclien
16926 wine_fn_config_dll dsound enable_dsound clean,implib
16927 wine_fn_config_test dlls/dsound/tests dsound_test
16928 wine_fn_config_dll dssenh enable_dssenh
16929 wine_fn_config_test dlls/dssenh/tests dssenh_test
16930 wine_fn_config_dll dswave enable_dswave clean
16931 wine_fn_config_dll dwmapi enable_dwmapi implib
16932 wine_fn_config_dll dwrite enable_dwrite implib
16933 wine_fn_config_test dlls/dwrite/tests dwrite_test
16934 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
16935 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16936 wine_fn_config_lib dxerr8
16937 wine_fn_config_lib dxerr9
16938 wine_fn_config_dll dxgi enable_dxgi implib
16939 wine_fn_config_test dlls/dxgi/tests dxgi_test
16940 wine_fn_config_lib dxguid
16941 wine_fn_config_dll explorerframe enable_explorerframe clean
16942 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16943 wine_fn_config_dll faultrep enable_faultrep implib
16944 wine_fn_config_test dlls/faultrep/tests faultrep_test
16945 wine_fn_config_dll fltlib enable_fltlib
16946 wine_fn_config_dll fusion enable_fusion
16947 wine_fn_config_test dlls/fusion/tests fusion_test
16948 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16949 wine_fn_config_dll gameux enable_gameux clean
16950 wine_fn_config_test dlls/gameux/tests gameux_test
16951 wine_fn_config_dll gdi.exe16 enable_win16
16952 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
16953 wine_fn_config_test dlls/gdi32/tests gdi32_test
16954 wine_fn_config_dll gdiplus enable_gdiplus implib
16955 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16956 wine_fn_config_dll glu32 enable_glu32 implib
16957 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16958 wine_fn_config_dll gpkcsp enable_gpkcsp
16959 wine_fn_config_dll hal enable_hal
16960 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
16961 wine_fn_config_dll hid enable_hid implib
16962 wine_fn_config_dll hlink enable_hlink clean,implib
16963 wine_fn_config_test dlls/hlink/tests hlink_test
16964 wine_fn_config_dll hnetcfg enable_hnetcfg clean
16965 wine_fn_config_dll httpapi enable_httpapi
16966 wine_fn_config_dll iccvid enable_iccvid po
16967 wine_fn_config_dll icmp enable_icmp
16968 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
16969 wine_fn_config_test dlls/ieframe/tests ieframe_test
16970 wine_fn_config_dll ifsmgr.vxd enable_win16
16971 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16972 wine_fn_config_dll imagehlp enable_imagehlp implib
16973 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16974 wine_fn_config_dll imm.dll16 enable_win16
16975 wine_fn_config_dll imm32 enable_imm32 implib
16976 wine_fn_config_test dlls/imm32/tests imm32_test
16977 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
16978 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16979 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16980 wine_fn_config_dll inetmib1 enable_inetmib1
16981 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16982 wine_fn_config_dll infosoft enable_infosoft clean
16983 wine_fn_config_test dlls/infosoft/tests infosoft_test
16984 wine_fn_config_dll initpki enable_initpki
16985 wine_fn_config_dll inkobj enable_inkobj
16986 wine_fn_config_dll inseng enable_inseng clean
16987 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16988 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16989 wine_fn_config_dll itircl enable_itircl
16990 wine_fn_config_dll itss enable_itss clean
16991 wine_fn_config_test dlls/itss/tests itss_test
16992 wine_fn_config_dll joy.cpl enable_joy_cpl po
16993 wine_fn_config_dll jscript enable_jscript clean,po
16994 wine_fn_config_test dlls/jscript/tests jscript_test
16995 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
16996 wine_fn_config_test dlls/kernel32/tests kernel32_test
16997 wine_fn_config_dll keyboard.drv16 enable_win16
16998 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16999 wine_fn_config_dll ktmw32 enable_ktmw32
17000 wine_fn_config_dll loadperf enable_loadperf implib
17001 wine_fn_config_dll localspl enable_localspl po
17002 wine_fn_config_test dlls/localspl/tests localspl_test
17003 wine_fn_config_dll localui enable_localui po
17004 wine_fn_config_test dlls/localui/tests localui_test
17005 wine_fn_config_dll lz32 enable_lz32 implib
17006 wine_fn_config_test dlls/lz32/tests lz32_test
17007 wine_fn_config_dll lzexpand.dll16 enable_win16
17008 wine_fn_config_dll mapi32 enable_mapi32 implib,po
17009 wine_fn_config_test dlls/mapi32/tests mapi32_test
17010 wine_fn_config_dll mapistub enable_mapistub
17011 wine_fn_config_dll mciavi32 enable_mciavi32
17012 wine_fn_config_dll mcicda enable_mcicda
17013 wine_fn_config_dll mciqtz32 enable_mciqtz32
17014 wine_fn_config_dll mciseq enable_mciseq
17015 wine_fn_config_dll mciwave enable_mciwave
17016 wine_fn_config_dll mgmtapi enable_mgmtapi
17017 wine_fn_config_dll midimap enable_midimap
17018 wine_fn_config_dll mlang enable_mlang clean,implib
17019 wine_fn_config_test dlls/mlang/tests mlang_test
17020 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
17021 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
17022 wine_fn_config_dll mmdevapi enable_mmdevapi clean
17023 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
17024 wine_fn_config_dll mmdevldr.vxd enable_win16
17025 wine_fn_config_dll mmsystem.dll16 enable_win16
17026 wine_fn_config_dll monodebg.vxd enable_win16
17027 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
17028 wine_fn_config_dll mouse.drv16 enable_win16
17029 wine_fn_config_dll mpr enable_mpr implib,po
17030 wine_fn_config_test dlls/mpr/tests mpr_test
17031 wine_fn_config_dll mprapi enable_mprapi implib
17032 wine_fn_config_dll msacm.dll16 enable_win16
17033 wine_fn_config_dll msacm32.drv enable_msacm32_drv
17034 wine_fn_config_dll msacm32 enable_msacm32 implib,po
17035 wine_fn_config_test dlls/msacm32/tests msacm32_test
17036 wine_fn_config_dll msadp32.acm enable_msadp32_acm
17037 wine_fn_config_dll mscat32 enable_mscat32
17038 wine_fn_config_dll mscms enable_mscms implib
17039 wine_fn_config_test dlls/mscms/tests mscms_test
17040 wine_fn_config_dll mscoree enable_mscoree clean
17041 wine_fn_config_test dlls/mscoree/tests mscoree_test
17042 wine_fn_config_dll msctf enable_msctf clean
17043 wine_fn_config_test dlls/msctf/tests msctf_test
17044 wine_fn_config_dll msdaps enable_msdaps clean
17045 wine_fn_config_dll msdmo enable_msdmo implib
17046 wine_fn_config_dll msftedit enable_msftedit
17047 wine_fn_config_dll msg711.acm enable_msg711_acm
17048 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
17049 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
17050 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
17051 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
17052 wine_fn_config_dll msi enable_msi clean,implib,po
17053 wine_fn_config_test dlls/msi/tests msi_test
17054 wine_fn_config_dll msident enable_msident clean
17055 wine_fn_config_dll msimg32 enable_msimg32 implib
17056 wine_fn_config_dll msimsg enable_msimsg
17057 wine_fn_config_dll msimtf enable_msimtf clean
17058 wine_fn_config_dll msisip enable_msisip
17059 wine_fn_config_dll msisys.ocx enable_msisys_ocx
17060 wine_fn_config_dll msls31 enable_msls31
17061 wine_fn_config_dll msnet32 enable_msnet32
17062 wine_fn_config_dll mspatcha enable_mspatcha
17063 wine_fn_config_dll msrle32 enable_msrle32 po
17064 wine_fn_config_dll mssign32 enable_mssign32
17065 wine_fn_config_dll mssip32 enable_mssip32
17066 wine_fn_config_dll mstask enable_mstask clean
17067 wine_fn_config_test dlls/mstask/tests mstask_test
17068 wine_fn_config_dll msvcirt enable_msvcirt
17069 wine_fn_config_dll msvcm80 enable_msvcm80
17070 wine_fn_config_dll msvcm90 enable_msvcm90
17071 wine_fn_config_dll msvcp100 enable_msvcp100
17072 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
17073 wine_fn_config_dll msvcp110 enable_msvcp110
17074 wine_fn_config_dll msvcp60 enable_msvcp60
17075 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
17076 wine_fn_config_dll msvcp70 enable_msvcp70
17077 wine_fn_config_dll msvcp71 enable_msvcp71
17078 wine_fn_config_dll msvcp80 enable_msvcp80
17079 wine_fn_config_dll msvcp90 enable_msvcp90
17080 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
17081 wine_fn_config_dll msvcr100 enable_msvcr100
17082 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
17083 wine_fn_config_dll msvcr110 enable_msvcr110
17084 wine_fn_config_dll msvcr70 enable_msvcr70 implib
17085 wine_fn_config_dll msvcr71 enable_msvcr71 implib
17086 wine_fn_config_dll msvcr80 enable_msvcr80
17087 wine_fn_config_dll msvcr90 enable_msvcr90
17088 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
17089 wine_fn_config_dll msvcrt enable_msvcrt implib
17090 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
17091 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
17092 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
17093 wine_fn_config_dll msvcrtd enable_msvcrtd implib
17094 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
17095 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
17096 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
17097 wine_fn_config_dll msvidc32 enable_msvidc32 po
17098 wine_fn_config_dll msvideo.dll16 enable_win16
17099 wine_fn_config_dll mswsock enable_mswsock implib
17100 wine_fn_config_dll msxml enable_msxml clean
17101 wine_fn_config_dll msxml2 enable_msxml2 clean
17102 wine_fn_config_dll msxml3 enable_msxml3 clean
17103 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
17104 wine_fn_config_dll msxml4 enable_msxml4 clean
17105 wine_fn_config_dll msxml6 enable_msxml6 clean
17106 wine_fn_config_dll nddeapi enable_nddeapi implib
17107 wine_fn_config_dll netapi32 enable_netapi32 implib
17108 wine_fn_config_test dlls/netapi32/tests netapi32_test
17109 wine_fn_config_dll netcfgx enable_netcfgx
17110 wine_fn_config_dll newdev enable_newdev implib
17111 wine_fn_config_dll normaliz enable_normaliz implib
17112 wine_fn_config_dll npmshtml enable_npmshtml
17113 wine_fn_config_dll ntdll enable_ntdll implib
17114 wine_fn_config_test dlls/ntdll/tests ntdll_test
17115 wine_fn_config_dll ntdsapi enable_ntdsapi implib
17116 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
17117 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
17118 wine_fn_config_dll ntprint enable_ntprint
17119 wine_fn_config_test dlls/ntprint/tests ntprint_test
17120 wine_fn_config_dll objsel enable_objsel clean
17121 wine_fn_config_dll odbc32 enable_odbc32 implib
17122 wine_fn_config_dll odbccp32 enable_odbccp32 implib
17123 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
17124 wine_fn_config_dll odbccu32 enable_odbccu32
17125 wine_fn_config_dll ole2.dll16 enable_win16
17126 wine_fn_config_dll ole2conv.dll16 enable_win16
17127 wine_fn_config_dll ole2disp.dll16 enable_win16
17128 wine_fn_config_dll ole2nls.dll16 enable_win16
17129 wine_fn_config_dll ole2prox.dll16 enable_win16
17130 wine_fn_config_dll ole2thk.dll16 enable_win16
17131 wine_fn_config_dll ole32 enable_ole32 clean,implib
17132 wine_fn_config_test dlls/ole32/tests ole32_test
17133 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
17134 wine_fn_config_test dlls/oleacc/tests oleacc_test
17135 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
17136 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
17137 wine_fn_config_dll olecli.dll16 enable_win16
17138 wine_fn_config_dll olecli32 enable_olecli32 implib
17139 wine_fn_config_dll oledb32 enable_oledb32 clean
17140 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
17141 wine_fn_config_dll oledlg enable_oledlg implib,po
17142 wine_fn_config_dll olepro32 enable_olepro32 implib
17143 wine_fn_config_dll olesvr.dll16 enable_win16
17144 wine_fn_config_dll olesvr32 enable_olesvr32 implib
17145 wine_fn_config_dll olethk32 enable_olethk32
17146 wine_fn_config_dll openal32 enable_openal32
17147 wine_fn_config_dll opencl enable_opencl
17148 wine_fn_config_dll opengl32 enable_opengl32 implib
17149 wine_fn_config_test dlls/opengl32/tests opengl32_test
17150 wine_fn_config_dll pdh enable_pdh implib
17151 wine_fn_config_test dlls/pdh/tests pdh_test
17152 wine_fn_config_dll photometadatahandler enable_photometadatahandler
17153 wine_fn_config_dll pidgen enable_pidgen
17154 wine_fn_config_dll powrprof enable_powrprof implib
17155 wine_fn_config_dll printui enable_printui
17156 wine_fn_config_dll propsys enable_propsys clean,implib
17157 wine_fn_config_test dlls/propsys/tests propsys_test
17158 wine_fn_config_dll psapi enable_psapi implib
17159 wine_fn_config_test dlls/psapi/tests psapi_test
17160 wine_fn_config_dll pstorec enable_pstorec clean
17161 wine_fn_config_dll qcap enable_qcap
17162 wine_fn_config_test dlls/qcap/tests qcap_test
17163 wine_fn_config_dll qedit enable_qedit clean
17164 wine_fn_config_test dlls/qedit/tests qedit_test
17165 wine_fn_config_dll qmgr enable_qmgr clean
17166 wine_fn_config_test dlls/qmgr/tests qmgr_test
17167 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
17168 wine_fn_config_dll quartz enable_quartz clean,implib
17169 wine_fn_config_test dlls/quartz/tests quartz_test clean
17170 wine_fn_config_dll query enable_query
17171 wine_fn_config_dll rasapi16.dll16 enable_win16
17172 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17173 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17174 wine_fn_config_dll rasdlg enable_rasdlg implib
17175 wine_fn_config_dll regapi enable_regapi
17176 wine_fn_config_dll resutils enable_resutils implib
17177 wine_fn_config_dll riched20 enable_riched20 implib
17178 wine_fn_config_test dlls/riched20/tests riched20_test
17179 wine_fn_config_dll riched32 enable_riched32
17180 wine_fn_config_test dlls/riched32/tests riched32_test
17181 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17182 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17183 wine_fn_config_dll rsabase enable_rsabase
17184 wine_fn_config_dll rsaenh enable_rsaenh implib
17185 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17186 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17187 wine_fn_config_dll rtutils enable_rtutils implib
17188 wine_fn_config_dll samlib enable_samlib
17189 wine_fn_config_dll sane.ds enable_sane_ds po
17190 wine_fn_config_dll scarddlg enable_scarddlg
17191 wine_fn_config_dll sccbase enable_sccbase
17192 wine_fn_config_dll schannel enable_schannel
17193 wine_fn_config_test dlls/schannel/tests schannel_test
17194 wine_fn_config_dll scrrun enable_scrrun clean
17195 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17196 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17197 wine_fn_config_dll secur32 enable_secur32 implib
17198 wine_fn_config_test dlls/secur32/tests secur32_test
17199 wine_fn_config_dll security enable_security
17200 wine_fn_config_dll sensapi enable_sensapi implib
17201 wine_fn_config_dll serialui enable_serialui implib,po
17202 wine_fn_config_test dlls/serialui/tests serialui_test
17203 wine_fn_config_dll setupapi enable_setupapi implib,po
17204 wine_fn_config_test dlls/setupapi/tests setupapi_test
17205 wine_fn_config_dll setupx.dll16 enable_win16
17206 wine_fn_config_dll sfc enable_sfc implib
17207 wine_fn_config_dll sfc_os enable_sfc_os implib
17208 wine_fn_config_dll shdoclc enable_shdoclc po
17209 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17210 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17211 wine_fn_config_dll shell.dll16 enable_win16
17212 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17213 wine_fn_config_test dlls/shell32/tests shell32_test
17214 wine_fn_config_dll shfolder enable_shfolder implib
17215 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17216 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17217 wine_fn_config_dll slbcsp enable_slbcsp
17218 wine_fn_config_dll slc enable_slc implib
17219 wine_fn_config_dll snmpapi enable_snmpapi implib
17220 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17221 wine_fn_config_dll softpub enable_softpub
17222 wine_fn_config_dll sound.drv16 enable_win16
17223 wine_fn_config_dll spoolss enable_spoolss implib
17224 wine_fn_config_test dlls/spoolss/tests spoolss_test
17225 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17226 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17227 wine_fn_config_dll sti enable_sti clean,implib
17228 wine_fn_config_test dlls/sti/tests sti_test
17229 wine_fn_config_dll storage.dll16 enable_win16
17230 wine_fn_config_dll stress.dll16 enable_win16
17231 wine_fn_config_lib strmbase
17232 wine_fn_config_lib strmiids
17233 wine_fn_config_dll svrapi enable_svrapi
17234 wine_fn_config_dll sxs enable_sxs implib
17235 wine_fn_config_test dlls/sxs/tests sxs_test
17236 wine_fn_config_dll system.drv16 enable_win16
17237 wine_fn_config_dll t2embed enable_t2embed
17238 wine_fn_config_dll tapi32 enable_tapi32 implib
17239 wine_fn_config_dll toolhelp.dll16 enable_win16
17240 wine_fn_config_dll traffic enable_traffic
17241 wine_fn_config_dll twain.dll16 enable_win16
17242 wine_fn_config_dll twain_32 enable_twain_32
17243 wine_fn_config_test dlls/twain_32/tests twain_32_test
17244 wine_fn_config_dll typelib.dll16 enable_win16
17245 wine_fn_config_dll unicows enable_unicows implib
17246 wine_fn_config_dll updspapi enable_updspapi
17247 wine_fn_config_dll url enable_url implib
17248 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17249 wine_fn_config_test dlls/urlmon/tests urlmon_test
17250 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17251 wine_fn_config_dll user.exe16 enable_win16
17252 wine_fn_config_dll user32 enable_user32 clean,implib,po
17253 wine_fn_config_test dlls/user32/tests user32_test
17254 wine_fn_config_dll userenv enable_userenv implib
17255 wine_fn_config_test dlls/userenv/tests userenv_test
17256 wine_fn_config_dll usp10 enable_usp10 implib
17257 wine_fn_config_test dlls/usp10/tests usp10_test
17258 wine_fn_config_lib uuid
17259 wine_fn_config_dll uxtheme enable_uxtheme implib
17260 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17261 wine_fn_config_dll vbscript enable_vbscript clean
17262 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17263 wine_fn_config_dll vcomp enable_vcomp
17264 wine_fn_config_dll vcomp100 enable_vcomp100
17265 wine_fn_config_dll vcomp90 enable_vcomp90
17266 wine_fn_config_dll vdhcp.vxd enable_win16
17267 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17268 wine_fn_config_dll ver.dll16 enable_win16
17269 wine_fn_config_dll version enable_version implib
17270 wine_fn_config_test dlls/version/tests version_test
17271 wine_fn_config_dll vmm.vxd enable_win16
17272 wine_fn_config_dll vnbt.vxd enable_win16
17273 wine_fn_config_dll vnetbios.vxd enable_win16
17274 wine_fn_config_dll vtdapi.vxd enable_win16
17275 wine_fn_config_dll vwin32.vxd enable_win16
17276 wine_fn_config_dll w32skrnl enable_win16
17277 wine_fn_config_dll w32sys.dll16 enable_win16
17278 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17279 wine_fn_config_dll wbemprox enable_wbemprox clean
17280 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17281 wine_fn_config_dll webservices enable_webservices implib
17282 wine_fn_config_dll wer enable_wer implib
17283 wine_fn_config_test dlls/wer/tests wer_test
17284 wine_fn_config_dll wevtapi enable_wevtapi
17285 wine_fn_config_dll wiaservc enable_wiaservc clean
17286 wine_fn_config_dll win32s16.dll16 enable_win16
17287 wine_fn_config_dll win87em.dll16 enable_win16
17288 wine_fn_config_dll winaspi.dll16 enable_win16
17289 wine_fn_config_dll windebug.dll16 enable_win16
17290 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17291 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17292 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17293 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17294 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17295 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17296 wine_fn_config_lib winecrt0
17297 wine_fn_config_dll wined3d enable_wined3d implib
17298 wine_fn_config_dll winegstreamer enable_winegstreamer
17299 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17300 wine_fn_config_dll winemac.drv enable_winemac_drv
17301 wine_fn_config_dll winemapi enable_winemapi
17302 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17303 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17304 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17305 wine_fn_config_dll wineps16.drv16 enable_win16
17306 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17307 wine_fn_config_dll winex11.drv enable_winex11_drv
17308 wine_fn_config_dll wing.dll16 enable_win16
17309 wine_fn_config_dll wing32 enable_wing32
17310 wine_fn_config_dll winhttp enable_winhttp clean,implib
17311 wine_fn_config_test dlls/winhttp/tests winhttp_test
17312 wine_fn_config_dll wininet enable_wininet implib,po
17313 wine_fn_config_test dlls/wininet/tests wininet_test
17314 wine_fn_config_dll winmm enable_winmm implib,po
17315 wine_fn_config_test dlls/winmm/tests winmm_test
17316 wine_fn_config_dll winnls.dll16 enable_win16
17317 wine_fn_config_dll winnls32 enable_winnls32 implib
17318 wine_fn_config_dll winscard enable_winscard implib
17319 wine_fn_config_dll winsock.dll16 enable_win16
17320 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17321 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17322 wine_fn_config_dll winsta enable_winsta
17323 wine_fn_config_dll wintab.dll16 enable_win16
17324 wine_fn_config_dll wintab32 enable_wintab32 implib
17325 wine_fn_config_test dlls/wintab32/tests wintab32_test
17326 wine_fn_config_dll wintrust enable_wintrust implib
17327 wine_fn_config_test dlls/wintrust/tests wintrust_test
17328 wine_fn_config_dll wlanapi enable_wlanapi
17329 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17330 wine_fn_config_test dlls/wldap32/tests wldap32_test
17331 wine_fn_config_dll wmi enable_wmi
17332 wine_fn_config_dll wmiutils enable_wmiutils clean
17333 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17334 wine_fn_config_dll wmvcore enable_wmvcore
17335 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17336 wine_fn_config_dll wow32 enable_win16 implib
17337 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17338 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17339 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17340 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17341 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17342 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17343 wine_fn_config_dll wsock32 enable_wsock32 implib
17344 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17345 wine_fn_config_dll wuapi enable_wuapi clean
17346 wine_fn_config_dll wuaueng enable_wuaueng
17347 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17348 wine_fn_config_dll xinput1_1 enable_xinput1_1
17349 wine_fn_config_dll xinput1_2 enable_xinput1_2
17350 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17351 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17352 wine_fn_config_dll xinput1_4 enable_xinput1_4
17353 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17354 wine_fn_config_dll xmllite enable_xmllite
17355 wine_fn_config_test dlls/xmllite/tests xmllite_test
17356 wine_fn_config_dll xolehlp enable_xolehlp
17357 wine_fn_config_dll xpsprint enable_xpsprint
17358 wine_fn_config_dll xpssvcs enable_xpssvcs
17359 wine_fn_config_makefile documentation enable_documentation clean
17360 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17361 wine_fn_config_makefile include enable_include clean,install-dev
17362 wine_fn_config_makefile libs/port enable_libs_port
17363 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17364 wine_fn_config_makefile libs/wpp enable_libs_wpp
17365 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17366 wine_fn_config_program arp enable_arp install
17367 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17368 wine_fn_config_program attrib enable_attrib install,po
17369 wine_fn_config_program cabarc enable_cabarc install
17370 wine_fn_config_program cacls enable_cacls install
17371 wine_fn_config_program clock enable_clock install,po
17372 wine_fn_config_program cmd enable_cmd install,po
17373 wine_fn_config_test programs/cmd/tests cmd.exe_test
17374 wine_fn_config_program conhost enable_conhost install
17375 wine_fn_config_program control enable_control install
17376 wine_fn_config_program cscript enable_cscript install
17377 wine_fn_config_program dxdiag enable_dxdiag install,po
17378 wine_fn_config_program eject enable_eject install
17379 wine_fn_config_program expand enable_expand install
17380 wine_fn_config_program explorer enable_explorer install,po
17381 wine_fn_config_program extrac32 enable_extrac32 install
17382 wine_fn_config_program findstr enable_findstr install
17383 wine_fn_config_program hh enable_hh install
17384 wine_fn_config_program hostname enable_hostname install,po
17385 wine_fn_config_program icinfo enable_icinfo install
17386 wine_fn_config_program iexplore enable_iexplore install
17387 wine_fn_config_program ipconfig enable_ipconfig install,po
17388 wine_fn_config_program lodctr enable_lodctr install
17389 wine_fn_config_program mofcomp enable_mofcomp install
17390 wine_fn_config_program mshta enable_mshta install
17391 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17392 wine_fn_config_program net enable_net install,po
17393 wine_fn_config_program netsh enable_netsh install
17394 wine_fn_config_program netstat enable_netstat install,po
17395 wine_fn_config_program ngen enable_ngen install
17396 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17397 wine_fn_config_program oleview enable_oleview install,po
17398 wine_fn_config_program ping enable_ping install
17399 wine_fn_config_program plugplay enable_plugplay install
17400 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17401 wine_fn_config_program progman enable_progman install,po
17402 wine_fn_config_program reg enable_reg install,po
17403 wine_fn_config_program regasm enable_regasm install
17404 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17405 wine_fn_config_test programs/regedit/tests regedit.exe_test
17406 wine_fn_config_program regsvcs enable_regsvcs install
17407 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
17408 wine_fn_config_program rpcss enable_rpcss clean,install
17409 wine_fn_config_program rundll.exe16 enable_win16 install
17410 wine_fn_config_program rundll32 enable_rundll32 install
17411 wine_fn_config_program sc enable_sc install
17412 wine_fn_config_program schtasks enable_schtasks install
17413 wine_fn_config_program secedit enable_secedit install
17414 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17415 wine_fn_config_program services enable_services clean,install
17416 wine_fn_config_test programs/services/tests services.exe_test
17417 wine_fn_config_program spoolsv enable_spoolsv install
17418 wine_fn_config_program start enable_start install,po
17419 wine_fn_config_program svchost enable_svchost install
17420 wine_fn_config_program taskkill enable_taskkill install,po
17421 wine_fn_config_program tasklist enable_tasklist install
17422 wine_fn_config_program taskmgr enable_taskmgr install,po
17423 wine_fn_config_program termsv enable_termsv install
17424 wine_fn_config_program uninstaller enable_uninstaller install,po
17425 wine_fn_config_program unlodctr enable_unlodctr install
17426 wine_fn_config_program view enable_view install,po
17427 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17428 wine_fn_config_program winebrowser enable_winebrowser install
17429 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17430 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17431 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17432 wine_fn_config_program winedevice enable_winedevice install
17433 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17434 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17435 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17436 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17437 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17438 wine_fn_config_program winetest enable_winetest clean
17439 wine_fn_config_program winevdm enable_win16 install
17440 wine_fn_config_program winhelp.exe16 enable_win16 install
17441 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17442 wine_fn_config_program winoldap.mod16 enable_win16 install
17443 wine_fn_config_program winver enable_winver install
17444 wine_fn_config_program wmic enable_wmic install,po
17445 wine_fn_config_program wordpad enable_wordpad install,po
17446 wine_fn_config_program write enable_write install,po
17447 wine_fn_config_program wscript enable_wscript clean,install
17448 wine_fn_config_test programs/wscript/tests wscript.exe_test
17449 wine_fn_config_program wusa enable_wusa install
17450 wine_fn_config_program xcopy enable_xcopy install,po
17451 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17452 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17453 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17454 wine_fn_config_tool tools/widl clean,install-dev,manpage
17455 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17456 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17457 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17458 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17459 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17461 LINGUAS="\
17462 ar \
17463 bg \
17464 ca \
17465 cs \
17466 da \
17467 de \
17468 el \
17469 en \
17470 en_US \
17471 eo \
17472 es \
17473 fa \
17474 fi \
17475 fr \
17476 he \
17477 hi \
17478 hr \
17479 hu \
17480 it \
17481 ja \
17482 ko \
17483 lt \
17484 ml \
17485 nb_NO \
17486 nl \
17487 or \
17488 pa \
17489 pl \
17490 pt_BR \
17491 pt_PT \
17492 rm \
17493 ro \
17494 ru \
17495 sk \
17496 sl \
17497 sr_RS@cyrillic \
17498 sr_RS@latin \
17499 sv \
17500 te \
17501 th \
17502 tr \
17503 uk \
17504 wa \
17505 zh_CN \
17506 zh_TW"
17511 wine_fn_ignore_file "*.a"
17512 wine_fn_ignore_file "*.exe"
17513 test -n "$DLLEXT" && wine_fn_ignore_file "*$DLLEXT"
17514 test -n "$DLLEXT" && wine_fn_ignore_file "*.fake"
17515 wine_fn_ignore_file ".gitignore"
17516 wine_fn_ignore_file "Makefile"
17517 wine_fn_ignore_file "TAGS"
17518 wine_fn_ignore_file "tags"
17519 wine_fn_ignore_file "autom4te.cache"
17520 wine_fn_ignore_file "config.cache"
17521 wine_fn_ignore_file "config.log"
17522 wine_fn_ignore_file "config.status"
17523 wine_fn_ignore_file "configure.lineno"
17524 wine_fn_ignore_file "include/config.h"
17525 wine_fn_ignore_file "include/stamp-h"
17526 wine_fn_ignore_file "dlls/*/*.def"
17527 test "x$enable_fonts" = xno || wine_fn_ignore_file "fonts/*.fon"
17528 test "x$enable_winetest" = xno || wine_fn_ignore_file "programs/winetest/build.nfo"
17529 test "x$enable_winetest" = xno || wine_fn_ignore_file "programs/winetest/build.rc"
17530 test "x$enable_server" = xno || wine_fn_ignore_file "server/wineserver"
17531 test "x$enable_server" = xno || wine_fn_ignore_file "server/wineserver-installed"
17532 test "x$enable_tools" = xno || wine_fn_ignore_file "tools/fnt2fon$ac_exeext"
17533 test "x$enable_tools" = xno || wine_fn_ignore_file "tools/make_ctests$ac_exeext"
17534 test "x$enable_tools" = xno || wine_fn_ignore_file "tools/make_xftmpl$ac_exeext"
17535 test "x$enable_tools" = xno || wine_fn_ignore_file "tools/makedep$ac_exeext"
17536 test "x$enable_tools" = xno || wine_fn_ignore_file "tools/sfnt2fnt$ac_exeext"
17537 test "x$enable_tools" = xno || wine_fn_ignore_file "tools/wineapploader$ac_exeext"
17538 test "x$enable_tools" = xno || wine_fn_ignore_file "tools/winegcc/winecpp$ac_exeext"
17539 test "x$enable_tools" = xno || wine_fn_ignore_file "tools/winegcc/wineg++$ac_exeext"
17541 ac_config_commands="$ac_config_commands Makefile"
17544 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17548 if test "x$enable_maintainer_mode" = xyes
17549 then
17550 wine_fn_append_rule "configure: configure.ac aclocal.m4
17551 autoconf --warnings=all
17552 include/config.h.in: include/stamp-h.in
17553 include/stamp-h.in: configure.ac aclocal.m4
17554 autoheader --warnings=all
17555 @echo timestamp > \$@"
17558 if test "x$with_gettextpo" = xyes
17559 then
17560 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17561 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17562 \$(LINGUAS:%=po/%.po): po/wine.pot
17563 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17564 po/wine.pot: \$(ALL_POT_FILES)
17565 msgcat -o \$@ \$(ALL_POT_FILES)"
17568 if test "$MSGFMT" != false
17569 then
17570 PORCFLAGS="--po-dir=\$(top_builddir)/po"
17572 wine_fn_append_rule "__builddeps__: \$(ALL_MO_FILES)
17573 clean::
17574 \$(RM) \$(ALL_MO_FILES)"
17576 posrc="po"
17577 test "$srcdir" = . || posrc="$srcdir/po"
17578 for i in $LINGUAS
17580 wine_fn_ignore_file "po/$i.mo"
17581 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17582 \$(MSGFMT) -o \$@ $posrc/$i.po"
17583 done
17584 else
17585 LINGUAS=
17588 if test "x$enable_tools" != xno
17589 then
17590 ac_config_commands="$ac_config_commands tools"
17592 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h
17593 \$(CC) -Iinclude -I$srcdir/include -D__WINESRC__ \$(EXTRACFLAGS) \$(CPPFLAGS) \$(CFLAGS) -o \$@ $srcdir/tools/makedep.c \$(LDFLAGS)
17594 clean:: __clean__
17595 \$(RM) tools/makedep$ac_exeext"
17596 else
17597 wine_fn_append_rule "\$(MAKEDEP):
17598 @echo \"You need to run make in $TOOLSDIR first\" && false"
17601 if test -n "$with_wine64"
17602 then
17603 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17604 fonts server tools:
17605 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17606 $with_wine64/loader/wine:
17607 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17608 $with_wine64/loader/wine-preloader:
17609 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17610 clean::
17611 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17612 else
17613 as_fn_append LOADER_RULES "
17614 all: wine.inf
17616 install install-lib:: wine.inf \$(DESTDIR)\$(datadir)/wine install-man-pages
17617 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17618 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17620 uninstall::
17621 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17625 if test "$srcdir" = .
17626 then
17627 ac_config_commands="$ac_config_commands .gitignore"
17631 $as_echo " done" >&6
17632 cat >confcache <<\_ACEOF
17633 # This file is a shell script that caches the results of configure
17634 # tests run on this system so they can be shared between configure
17635 # scripts and configure runs, see configure's option --config-cache.
17636 # It is not useful on other systems. If it contains results you don't
17637 # want to keep, you may remove or edit it.
17639 # config.status only pays attention to the cache file if you give it
17640 # the --recheck option to rerun configure.
17642 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17643 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17644 # following values.
17646 _ACEOF
17648 # The following way of writing the cache mishandles newlines in values,
17649 # but we know of no workaround that is simple, portable, and efficient.
17650 # So, we kill variables containing newlines.
17651 # Ultrix sh set writes to stderr and can't be redirected directly,
17652 # and sets the high bit in the cache file unless we assign to the vars.
17654 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17655 eval ac_val=\$$ac_var
17656 case $ac_val in #(
17657 *${as_nl}*)
17658 case $ac_var in #(
17659 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17660 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17661 esac
17662 case $ac_var in #(
17663 _ | IFS | as_nl) ;; #(
17664 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17665 *) { eval $ac_var=; unset $ac_var;} ;;
17666 esac ;;
17667 esac
17668 done
17670 (set) 2>&1 |
17671 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17672 *${as_nl}ac_space=\ *)
17673 # `set' does not quote correctly, so add quotes: double-quote
17674 # substitution turns \\\\ into \\, and sed turns \\ into \.
17675 sed -n \
17676 "s/'/'\\\\''/g;
17677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17678 ;; #(
17680 # `set' quotes correctly as required by POSIX, so do not add quotes.
17681 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17683 esac |
17684 sort
17686 sed '
17687 /^ac_cv_env_/b end
17688 t clear
17689 :clear
17690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17691 t end
17692 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17693 :end' >>confcache
17694 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17695 if test -w "$cache_file"; then
17696 if test "x$cache_file" != "x/dev/null"; then
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17698 $as_echo "$as_me: updating cache $cache_file" >&6;}
17699 if test ! -f "$cache_file" || test -h "$cache_file"; then
17700 cat confcache >"$cache_file"
17701 else
17702 case $cache_file in #(
17703 */* | ?:*)
17704 mv -f confcache "$cache_file"$$ &&
17705 mv -f "$cache_file"$$ "$cache_file" ;; #(
17707 mv -f confcache "$cache_file" ;;
17708 esac
17711 else
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17713 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17716 rm -f confcache
17718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17719 # Let make expand exec_prefix.
17720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17722 DEFS=-DHAVE_CONFIG_H
17724 ac_libobjs=
17725 ac_ltlibobjs=
17727 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17728 # 1. Remove the extension, and $U if already installed.
17729 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17730 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17731 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17732 # will be set to the directory where LIBOBJS objects are built.
17733 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17734 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17735 done
17736 LIBOBJS=$ac_libobjs
17738 LTLIBOBJS=$ac_ltlibobjs
17742 : "${CONFIG_STATUS=./config.status}"
17743 ac_write_fail=0
17744 ac_clean_files_save=$ac_clean_files
17745 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17747 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17748 as_write_fail=0
17749 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17750 #! $SHELL
17751 # Generated by $as_me.
17752 # Run this file to recreate the current configuration.
17753 # Compiler output produced by configure, useful for debugging
17754 # configure, is in config.log if it exists.
17756 debug=false
17757 ac_cs_recheck=false
17758 ac_cs_silent=false
17760 SHELL=\${CONFIG_SHELL-$SHELL}
17761 export SHELL
17762 _ASEOF
17763 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17764 ## -------------------- ##
17765 ## M4sh Initialization. ##
17766 ## -------------------- ##
17768 # Be more Bourne compatible
17769 DUALCASE=1; export DUALCASE # for MKS sh
17770 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17771 emulate sh
17772 NULLCMD=:
17773 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17774 # is contrary to our usage. Disable this feature.
17775 alias -g '${1+"$@"}'='"$@"'
17776 setopt NO_GLOB_SUBST
17777 else
17778 case `(set -o) 2>/dev/null` in #(
17779 *posix*) :
17780 set -o posix ;; #(
17781 *) :
17783 esac
17787 as_nl='
17789 export as_nl
17790 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17791 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17792 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17793 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17794 # Prefer a ksh shell builtin over an external printf program on Solaris,
17795 # but without wasting forks for bash or zsh.
17796 if test -z "$BASH_VERSION$ZSH_VERSION" \
17797 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17798 as_echo='print -r --'
17799 as_echo_n='print -rn --'
17800 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17801 as_echo='printf %s\n'
17802 as_echo_n='printf %s'
17803 else
17804 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17805 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17806 as_echo_n='/usr/ucb/echo -n'
17807 else
17808 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17809 as_echo_n_body='eval
17810 arg=$1;
17811 case $arg in #(
17812 *"$as_nl"*)
17813 expr "X$arg" : "X\\(.*\\)$as_nl";
17814 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17815 esac;
17816 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17818 export as_echo_n_body
17819 as_echo_n='sh -c $as_echo_n_body as_echo'
17821 export as_echo_body
17822 as_echo='sh -c $as_echo_body as_echo'
17825 # The user is always right.
17826 if test "${PATH_SEPARATOR+set}" != set; then
17827 PATH_SEPARATOR=:
17828 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17829 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17830 PATH_SEPARATOR=';'
17835 # IFS
17836 # We need space, tab and new line, in precisely that order. Quoting is
17837 # there to prevent editors from complaining about space-tab.
17838 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17839 # splitting by setting IFS to empty value.)
17840 IFS=" "" $as_nl"
17842 # Find who we are. Look in the path if we contain no directory separator.
17843 as_myself=
17844 case $0 in #((
17845 *[\\/]* ) as_myself=$0 ;;
17846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17847 for as_dir in $PATH
17849 IFS=$as_save_IFS
17850 test -z "$as_dir" && as_dir=.
17851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17852 done
17853 IFS=$as_save_IFS
17856 esac
17857 # We did not find ourselves, most probably we were run as `sh COMMAND'
17858 # in which case we are not to be found in the path.
17859 if test "x$as_myself" = x; then
17860 as_myself=$0
17862 if test ! -f "$as_myself"; then
17863 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17864 exit 1
17867 # Unset variables that we do not need and which cause bugs (e.g. in
17868 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17869 # suppresses any "Segmentation fault" message there. '((' could
17870 # trigger a bug in pdksh 5.2.14.
17871 for as_var in BASH_ENV ENV MAIL MAILPATH
17872 do eval test x\${$as_var+set} = xset \
17873 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17874 done
17875 PS1='$ '
17876 PS2='> '
17877 PS4='+ '
17879 # NLS nuisances.
17880 LC_ALL=C
17881 export LC_ALL
17882 LANGUAGE=C
17883 export LANGUAGE
17885 # CDPATH.
17886 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17889 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17890 # ----------------------------------------
17891 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17892 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17893 # script with STATUS, using 1 if that was 0.
17894 as_fn_error ()
17896 as_status=$1; test $as_status -eq 0 && as_status=1
17897 if test "$4"; then
17898 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17899 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17901 $as_echo "$as_me: error: $2" >&2
17902 as_fn_exit $as_status
17903 } # as_fn_error
17906 # as_fn_set_status STATUS
17907 # -----------------------
17908 # Set $? to STATUS, without forking.
17909 as_fn_set_status ()
17911 return $1
17912 } # as_fn_set_status
17914 # as_fn_exit STATUS
17915 # -----------------
17916 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17917 as_fn_exit ()
17919 set +e
17920 as_fn_set_status $1
17921 exit $1
17922 } # as_fn_exit
17924 # as_fn_unset VAR
17925 # ---------------
17926 # Portably unset VAR.
17927 as_fn_unset ()
17929 { eval $1=; unset $1;}
17931 as_unset=as_fn_unset
17932 # as_fn_append VAR VALUE
17933 # ----------------------
17934 # Append the text in VALUE to the end of the definition contained in VAR. Take
17935 # advantage of any shell optimizations that allow amortized linear growth over
17936 # repeated appends, instead of the typical quadratic growth present in naive
17937 # implementations.
17938 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17939 eval 'as_fn_append ()
17941 eval $1+=\$2
17943 else
17944 as_fn_append ()
17946 eval $1=\$$1\$2
17948 fi # as_fn_append
17950 # as_fn_arith ARG...
17951 # ------------------
17952 # Perform arithmetic evaluation on the ARGs, and store the result in the
17953 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17954 # must be portable across $(()) and expr.
17955 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17956 eval 'as_fn_arith ()
17958 as_val=$(( $* ))
17960 else
17961 as_fn_arith ()
17963 as_val=`expr "$@" || test $? -eq 1`
17965 fi # as_fn_arith
17968 if expr a : '\(a\)' >/dev/null 2>&1 &&
17969 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17970 as_expr=expr
17971 else
17972 as_expr=false
17975 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17976 as_basename=basename
17977 else
17978 as_basename=false
17981 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17982 as_dirname=dirname
17983 else
17984 as_dirname=false
17987 as_me=`$as_basename -- "$0" ||
17988 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17989 X"$0" : 'X\(//\)$' \| \
17990 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17991 $as_echo X/"$0" |
17992 sed '/^.*\/\([^/][^/]*\)\/*$/{
17993 s//\1/
17996 /^X\/\(\/\/\)$/{
17997 s//\1/
18000 /^X\/\(\/\).*/{
18001 s//\1/
18004 s/.*/./; q'`
18006 # Avoid depending upon Character Ranges.
18007 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18008 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18009 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18010 as_cr_digits='0123456789'
18011 as_cr_alnum=$as_cr_Letters$as_cr_digits
18013 ECHO_C= ECHO_N= ECHO_T=
18014 case `echo -n x` in #(((((
18015 -n*)
18016 case `echo 'xy\c'` in
18017 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18018 xy) ECHO_C='\c';;
18019 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18020 ECHO_T=' ';;
18021 esac;;
18023 ECHO_N='-n';;
18024 esac
18026 rm -f conf$$ conf$$.exe conf$$.file
18027 if test -d conf$$.dir; then
18028 rm -f conf$$.dir/conf$$.file
18029 else
18030 rm -f conf$$.dir
18031 mkdir conf$$.dir 2>/dev/null
18033 if (echo >conf$$.file) 2>/dev/null; then
18034 if ln -s conf$$.file conf$$ 2>/dev/null; then
18035 as_ln_s='ln -s'
18036 # ... but there are two gotchas:
18037 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18038 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18039 # In both cases, we have to default to `cp -pR'.
18040 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18041 as_ln_s='cp -pR'
18042 elif ln conf$$.file conf$$ 2>/dev/null; then
18043 as_ln_s=ln
18044 else
18045 as_ln_s='cp -pR'
18047 else
18048 as_ln_s='cp -pR'
18050 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18051 rmdir conf$$.dir 2>/dev/null
18054 # as_fn_mkdir_p
18055 # -------------
18056 # Create "$as_dir" as a directory, including parents if necessary.
18057 as_fn_mkdir_p ()
18060 case $as_dir in #(
18061 -*) as_dir=./$as_dir;;
18062 esac
18063 test -d "$as_dir" || eval $as_mkdir_p || {
18064 as_dirs=
18065 while :; do
18066 case $as_dir in #(
18067 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18068 *) as_qdir=$as_dir;;
18069 esac
18070 as_dirs="'$as_qdir' $as_dirs"
18071 as_dir=`$as_dirname -- "$as_dir" ||
18072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18073 X"$as_dir" : 'X\(//\)[^/]' \| \
18074 X"$as_dir" : 'X\(//\)$' \| \
18075 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18076 $as_echo X"$as_dir" |
18077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18078 s//\1/
18081 /^X\(\/\/\)[^/].*/{
18082 s//\1/
18085 /^X\(\/\/\)$/{
18086 s//\1/
18089 /^X\(\/\).*/{
18090 s//\1/
18093 s/.*/./; q'`
18094 test -d "$as_dir" && break
18095 done
18096 test -z "$as_dirs" || eval "mkdir $as_dirs"
18097 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18100 } # as_fn_mkdir_p
18101 if mkdir -p . 2>/dev/null; then
18102 as_mkdir_p='mkdir -p "$as_dir"'
18103 else
18104 test -d ./-p && rmdir ./-p
18105 as_mkdir_p=false
18109 # as_fn_executable_p FILE
18110 # -----------------------
18111 # Test if FILE is an executable regular file.
18112 as_fn_executable_p ()
18114 test -f "$1" && test -x "$1"
18115 } # as_fn_executable_p
18116 as_test_x='test -x'
18117 as_executable_p=as_fn_executable_p
18119 # Sed expression to map a string onto a valid CPP name.
18120 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18122 # Sed expression to map a string onto a valid variable name.
18123 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18126 exec 6>&1
18127 ## ----------------------------------- ##
18128 ## Main body of $CONFIG_STATUS script. ##
18129 ## ----------------------------------- ##
18130 _ASEOF
18131 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18134 # Save the log message, to keep $0 and so on meaningful, and to
18135 # report actual input values of CONFIG_FILES etc. instead of their
18136 # values after options handling.
18137 ac_log="
18138 This file was extended by Wine $as_me 1.7.8, which was
18139 generated by GNU Autoconf 2.69. Invocation command line was
18141 CONFIG_FILES = $CONFIG_FILES
18142 CONFIG_HEADERS = $CONFIG_HEADERS
18143 CONFIG_LINKS = $CONFIG_LINKS
18144 CONFIG_COMMANDS = $CONFIG_COMMANDS
18145 $ $0 $@
18147 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18150 _ACEOF
18152 case $ac_config_files in *"
18153 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18154 esac
18156 case $ac_config_headers in *"
18157 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18158 esac
18161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18162 # Files that config.status was made for.
18163 config_files="$ac_config_files"
18164 config_headers="$ac_config_headers"
18165 config_links="$ac_config_links"
18166 config_commands="$ac_config_commands"
18168 _ACEOF
18170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18171 ac_cs_usage="\
18172 \`$as_me' instantiates files and other configuration actions
18173 from templates according to the current configuration. Unless the files
18174 and actions are specified as TAGs, all are instantiated by default.
18176 Usage: $0 [OPTION]... [TAG]...
18178 -h, --help print this help, then exit
18179 -V, --version print version number and configuration settings, then exit
18180 --config print configuration, then exit
18181 -q, --quiet, --silent
18182 do not print progress messages
18183 -d, --debug don't remove temporary files
18184 --recheck update $as_me by reconfiguring in the same conditions
18185 --file=FILE[:TEMPLATE]
18186 instantiate the configuration file FILE
18187 --header=FILE[:TEMPLATE]
18188 instantiate the configuration header FILE
18190 Configuration files:
18191 $config_files
18193 Configuration headers:
18194 $config_headers
18196 Configuration links:
18197 $config_links
18199 Configuration commands:
18200 $config_commands
18202 Report bugs to <wine-devel@winehq.org>.
18203 Wine home page: <http://www.winehq.org>."
18205 _ACEOF
18206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18207 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18208 ac_cs_version="\\
18209 Wine config.status 1.7.8
18210 configured by $0, generated by GNU Autoconf 2.69,
18211 with options \\"\$ac_cs_config\\"
18213 Copyright (C) 2012 Free Software Foundation, Inc.
18214 This config.status script is free software; the Free Software Foundation
18215 gives unlimited permission to copy, distribute and modify it."
18217 ac_pwd='$ac_pwd'
18218 srcdir='$srcdir'
18219 INSTALL='$INSTALL'
18220 MKDIR_P='$MKDIR_P'
18221 test -n "\$AWK" || AWK=awk
18222 _ACEOF
18224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18225 # The default lists apply if the user does not specify any file.
18226 ac_need_defaults=:
18227 while test $# != 0
18229 case $1 in
18230 --*=?*)
18231 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18232 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18233 ac_shift=:
18235 --*=)
18236 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18237 ac_optarg=
18238 ac_shift=:
18241 ac_option=$1
18242 ac_optarg=$2
18243 ac_shift=shift
18245 esac
18247 case $ac_option in
18248 # Handling of the options.
18249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18250 ac_cs_recheck=: ;;
18251 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18252 $as_echo "$ac_cs_version"; exit ;;
18253 --config | --confi | --conf | --con | --co | --c )
18254 $as_echo "$ac_cs_config"; exit ;;
18255 --debug | --debu | --deb | --de | --d | -d )
18256 debug=: ;;
18257 --file | --fil | --fi | --f )
18258 $ac_shift
18259 case $ac_optarg in
18260 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18261 '') as_fn_error $? "missing file argument" ;;
18262 esac
18263 as_fn_append CONFIG_FILES " '$ac_optarg'"
18264 ac_need_defaults=false;;
18265 --header | --heade | --head | --hea )
18266 $ac_shift
18267 case $ac_optarg in
18268 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18269 esac
18270 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18271 ac_need_defaults=false;;
18272 --he | --h)
18273 # Conflict between --help and --header
18274 as_fn_error $? "ambiguous option: \`$1'
18275 Try \`$0 --help' for more information.";;
18276 --help | --hel | -h )
18277 $as_echo "$ac_cs_usage"; exit ;;
18278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18279 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18280 ac_cs_silent=: ;;
18282 # This is an error.
18283 -*) as_fn_error $? "unrecognized option: \`$1'
18284 Try \`$0 --help' for more information." ;;
18286 *) as_fn_append ac_config_targets " $1"
18287 ac_need_defaults=false ;;
18289 esac
18290 shift
18291 done
18293 ac_configure_extra_args=
18295 if $ac_cs_silent; then
18296 exec 6>/dev/null
18297 ac_configure_extra_args="$ac_configure_extra_args --silent"
18300 _ACEOF
18301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18302 if \$ac_cs_recheck; then
18303 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18304 shift
18305 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18306 CONFIG_SHELL='$SHELL'
18307 export CONFIG_SHELL
18308 exec "\$@"
18311 _ACEOF
18312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18313 exec 5>>config.log
18315 echo
18316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18317 ## Running $as_me. ##
18318 _ASBOX
18319 $as_echo "$ac_log"
18320 } >&5
18322 _ACEOF
18323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18325 # INIT-COMMANDS
18327 wine_fn_output_makefile ()
18329 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
18330 `cat $wine_rules_file`
18331 _WINE_EOF
18332 as_fn_error $? "could not create Makefile" "$LINENO" 5
18334 wine_fn_output_gitignore ()
18336 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18337 $GITIGNORE
18338 _WINE_EOF
18339 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18342 _ACEOF
18344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18346 # Handling of arguments.
18347 for ac_config_target in $ac_config_targets
18349 case $ac_config_target in
18350 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18351 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18352 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18353 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18354 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18355 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18356 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18357 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18358 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18359 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18360 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
18361 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18362 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18363 "tools") CONFIG_COMMANDS="$CONFIG_COMMANDS tools" ;;
18364 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18366 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18367 esac
18368 done
18371 # If the user did not use the arguments to specify the items to instantiate,
18372 # then the envvar interface is used. Set only those that are not.
18373 # We use the long form for the default assignment because of an extremely
18374 # bizarre bug on SunOS 4.1.3.
18375 if $ac_need_defaults; then
18376 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18377 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18378 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18379 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18382 # Have a temporary directory for convenience. Make it in the build tree
18383 # simply because there is no reason against having it here, and in addition,
18384 # creating and moving files from /tmp can sometimes cause problems.
18385 # Hook for its removal unless debugging.
18386 # Note that there is a small window in which the directory will not be cleaned:
18387 # after its creation but before its name has been assigned to `$tmp'.
18388 $debug ||
18390 tmp= ac_tmp=
18391 trap 'exit_status=$?
18392 : "${ac_tmp:=$tmp}"
18393 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18395 trap 'as_fn_exit 1' 1 2 13 15
18397 # Create a (secure) tmp directory for tmp files.
18400 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18401 test -d "$tmp"
18402 } ||
18404 tmp=./conf$$-$RANDOM
18405 (umask 077 && mkdir "$tmp")
18406 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18407 ac_tmp=$tmp
18409 # Set up the scripts for CONFIG_FILES section.
18410 # No need to generate them if there are no CONFIG_FILES.
18411 # This happens for instance with `./config.status config.h'.
18412 if test -n "$CONFIG_FILES"; then
18414 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18415 ac_cs_awk_getline=:
18416 ac_cs_awk_pipe_init=
18417 ac_cs_awk_read_file='
18418 while ((getline aline < (F[key])) > 0)
18419 print(aline)
18420 close(F[key])'
18421 ac_cs_awk_pipe_fini=
18422 else
18423 ac_cs_awk_getline=false
18424 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18425 ac_cs_awk_read_file='
18426 print "|#_!!_#|"
18427 print "cat " F[key] " &&"
18428 '$ac_cs_awk_pipe_init
18429 # The final `:' finishes the AND list.
18430 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18432 ac_cr=`echo X | tr X '\015'`
18433 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18434 # But we know of no other shell where ac_cr would be empty at this
18435 # point, so we can use a bashism as a fallback.
18436 if test "x$ac_cr" = x; then
18437 eval ac_cr=\$\'\\r\'
18439 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18440 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18441 ac_cs_awk_cr='\\r'
18442 else
18443 ac_cs_awk_cr=$ac_cr
18446 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18447 _ACEOF
18449 # Create commands to substitute file output variables.
18451 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18452 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18453 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18454 echo "_ACAWK" &&
18455 echo "_ACEOF"
18456 } >conf$$files.sh &&
18457 . ./conf$$files.sh ||
18458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18459 rm -f conf$$files.sh
18462 echo "cat >conf$$subs.awk <<_ACEOF" &&
18463 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18464 echo "_ACEOF"
18465 } >conf$$subs.sh ||
18466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18467 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18468 ac_delim='%!_!# '
18469 for ac_last_try in false false false false false :; do
18470 . ./conf$$subs.sh ||
18471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18473 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18474 if test $ac_delim_n = $ac_delim_num; then
18475 break
18476 elif $ac_last_try; then
18477 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18478 else
18479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18481 done
18482 rm -f conf$$subs.sh
18484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18485 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18486 _ACEOF
18487 sed -n '
18489 s/^/S["/; s/!.*/"]=/
18492 s/^[^!]*!//
18493 :repl
18494 t repl
18495 s/'"$ac_delim"'$//
18496 t delim
18499 s/\(.\{148\}\)..*/\1/
18500 t more1
18501 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18504 b repl
18505 :more1
18506 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18509 s/.\{148\}//
18510 t nl
18511 :delim
18513 s/\(.\{148\}\)..*/\1/
18514 t more2
18515 s/["\\]/\\&/g; s/^/"/; s/$/"/
18518 :more2
18519 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18522 s/.\{148\}//
18523 t delim
18524 ' <conf$$subs.awk | sed '
18525 /^[^""]/{
18527 s/\n//
18529 ' >>$CONFIG_STATUS || ac_write_fail=1
18530 rm -f conf$$subs.awk
18531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18532 _ACAWK
18533 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18534 for (key in S) S_is_set[key] = 1
18535 FS = "\a"
18536 \$ac_cs_awk_pipe_init
18539 line = $ 0
18540 nfields = split(line, field, "@")
18541 substed = 0
18542 len = length(field[1])
18543 for (i = 2; i < nfields; i++) {
18544 key = field[i]
18545 keylen = length(key)
18546 if (S_is_set[key]) {
18547 value = S[key]
18548 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18549 len += length(value) + length(field[++i])
18550 substed = 1
18551 } else
18552 len += 1 + keylen
18554 if (nfields == 3 && !substed) {
18555 key = field[2]
18556 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18557 \$ac_cs_awk_read_file
18558 next
18561 print line
18563 \$ac_cs_awk_pipe_fini
18564 _ACAWK
18565 _ACEOF
18566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18567 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18568 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18569 else
18571 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18572 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18573 _ACEOF
18575 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18576 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18577 # trailing colons and then remove the whole line if VPATH becomes empty
18578 # (actually we leave an empty line to preserve line numbers).
18579 if test "x$srcdir" = x.; then
18580 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18582 s///
18583 s/^/:/
18584 s/[ ]*$/:/
18585 s/:\$(srcdir):/:/g
18586 s/:\${srcdir}:/:/g
18587 s/:@srcdir@:/:/g
18588 s/^:*//
18589 s/:*$//
18591 s/\(=[ ]*\).*/\1/
18593 s/\n//
18594 s/^[^=]*=[ ]*$//
18598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18599 fi # test -n "$CONFIG_FILES"
18601 # Set up the scripts for CONFIG_HEADERS section.
18602 # No need to generate them if there are no CONFIG_HEADERS.
18603 # This happens for instance with `./config.status Makefile'.
18604 if test -n "$CONFIG_HEADERS"; then
18605 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18606 BEGIN {
18607 _ACEOF
18609 # Transform confdefs.h into an awk script `defines.awk', embedded as
18610 # here-document in config.status, that substitutes the proper values into
18611 # config.h.in to produce config.h.
18613 # Create a delimiter string that does not exist in confdefs.h, to ease
18614 # handling of long lines.
18615 ac_delim='%!_!# '
18616 for ac_last_try in false false :; do
18617 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18618 if test -z "$ac_tt"; then
18619 break
18620 elif $ac_last_try; then
18621 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18622 else
18623 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18625 done
18627 # For the awk script, D is an array of macro values keyed by name,
18628 # likewise P contains macro parameters if any. Preserve backslash
18629 # newline sequences.
18631 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18632 sed -n '
18633 s/.\{148\}/&'"$ac_delim"'/g
18634 t rset
18635 :rset
18636 s/^[ ]*#[ ]*define[ ][ ]*/ /
18637 t def
18639 :def
18640 s/\\$//
18641 t bsnl
18642 s/["\\]/\\&/g
18643 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18644 D["\1"]=" \3"/p
18645 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18647 :bsnl
18648 s/["\\]/\\&/g
18649 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18650 D["\1"]=" \3\\\\\\n"\\/p
18651 t cont
18652 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18653 t cont
18655 :cont
18657 s/.\{148\}/&'"$ac_delim"'/g
18658 t clear
18659 :clear
18660 s/\\$//
18661 t bsnlc
18662 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18664 :bsnlc
18665 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18666 b cont
18667 ' <confdefs.h | sed '
18668 s/'"$ac_delim"'/"\\\
18669 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18672 for (key in D) D_is_set[key] = 1
18673 FS = "\a"
18675 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18676 line = \$ 0
18677 split(line, arg, " ")
18678 if (arg[1] == "#") {
18679 defundef = arg[2]
18680 mac1 = arg[3]
18681 } else {
18682 defundef = substr(arg[1], 2)
18683 mac1 = arg[2]
18685 split(mac1, mac2, "(") #)
18686 macro = mac2[1]
18687 prefix = substr(line, 1, index(line, defundef) - 1)
18688 if (D_is_set[macro]) {
18689 # Preserve the white space surrounding the "#".
18690 print prefix "define", macro P[macro] D[macro]
18691 next
18692 } else {
18693 # Replace #undef with comments. This is necessary, for example,
18694 # in the case of _POSIX_SOURCE, which is predefined and required
18695 # on some systems where configure will not decide to define it.
18696 if (defundef == "undef") {
18697 print "/*", prefix defundef, macro, "*/"
18698 next
18702 { print }
18703 _ACAWK
18704 _ACEOF
18705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18706 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18707 fi # test -n "$CONFIG_HEADERS"
18710 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18711 shift
18712 for ac_tag
18714 case $ac_tag in
18715 :[FHLC]) ac_mode=$ac_tag; continue;;
18716 esac
18717 case $ac_mode$ac_tag in
18718 :[FHL]*:*);;
18719 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18720 :[FH]-) ac_tag=-:-;;
18721 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18722 esac
18723 ac_save_IFS=$IFS
18724 IFS=:
18725 set x $ac_tag
18726 IFS=$ac_save_IFS
18727 shift
18728 ac_file=$1
18729 shift
18731 case $ac_mode in
18732 :L) ac_source=$1;;
18733 :[FH])
18734 ac_file_inputs=
18735 for ac_f
18737 case $ac_f in
18738 -) ac_f="$ac_tmp/stdin";;
18739 *) # Look for the file first in the build tree, then in the source tree
18740 # (if the path is not absolute). The absolute path cannot be DOS-style,
18741 # because $ac_f cannot contain `:'.
18742 test -f "$ac_f" ||
18743 case $ac_f in
18744 [\\/$]*) false;;
18745 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18746 esac ||
18747 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18748 esac
18749 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18750 as_fn_append ac_file_inputs " '$ac_f'"
18751 done
18753 # Let's still pretend it is `configure' which instantiates (i.e., don't
18754 # use $as_me), people would be surprised to read:
18755 # /* config.h. Generated by config.status. */
18756 configure_input='Generated from '`
18757 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18758 `' by configure.'
18759 if test x"$ac_file" != x-; then
18760 configure_input="$ac_file. $configure_input"
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18762 $as_echo "$as_me: creating $ac_file" >&6;}
18764 # Neutralize special characters interpreted by sed in replacement strings.
18765 case $configure_input in #(
18766 *\&* | *\|* | *\\* )
18767 ac_sed_conf_input=`$as_echo "$configure_input" |
18768 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18769 *) ac_sed_conf_input=$configure_input;;
18770 esac
18772 case $ac_tag in
18773 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18775 esac
18777 esac
18779 ac_dir=`$as_dirname -- "$ac_file" ||
18780 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18781 X"$ac_file" : 'X\(//\)[^/]' \| \
18782 X"$ac_file" : 'X\(//\)$' \| \
18783 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18784 $as_echo X"$ac_file" |
18785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18786 s//\1/
18789 /^X\(\/\/\)[^/].*/{
18790 s//\1/
18793 /^X\(\/\/\)$/{
18794 s//\1/
18797 /^X\(\/\).*/{
18798 s//\1/
18801 s/.*/./; q'`
18802 as_dir="$ac_dir"; as_fn_mkdir_p
18803 ac_builddir=.
18805 case "$ac_dir" in
18806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18808 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18809 # A ".." for each directory in $ac_dir_suffix.
18810 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18811 case $ac_top_builddir_sub in
18812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18814 esac ;;
18815 esac
18816 ac_abs_top_builddir=$ac_pwd
18817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18818 # for backward compatibility:
18819 ac_top_builddir=$ac_top_build_prefix
18821 case $srcdir in
18822 .) # We are building in place.
18823 ac_srcdir=.
18824 ac_top_srcdir=$ac_top_builddir_sub
18825 ac_abs_top_srcdir=$ac_pwd ;;
18826 [\\/]* | ?:[\\/]* ) # Absolute name.
18827 ac_srcdir=$srcdir$ac_dir_suffix;
18828 ac_top_srcdir=$srcdir
18829 ac_abs_top_srcdir=$srcdir ;;
18830 *) # Relative name.
18831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18832 ac_top_srcdir=$ac_top_build_prefix$srcdir
18833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18834 esac
18835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18838 case $ac_mode in
18841 # CONFIG_FILE
18844 case $INSTALL in
18845 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18846 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18847 esac
18848 ac_MKDIR_P=$MKDIR_P
18849 case $MKDIR_P in
18850 [\\/$]* | ?:[\\/]* ) ;;
18851 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18852 esac
18853 _ACEOF
18855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18856 # If the template does not know about datarootdir, expand it.
18857 # FIXME: This hack should be removed a few years after 2.60.
18858 ac_datarootdir_hack=; ac_datarootdir_seen=
18859 ac_sed_dataroot='
18860 /datarootdir/ {
18864 /@datadir@/p
18865 /@docdir@/p
18866 /@infodir@/p
18867 /@localedir@/p
18868 /@mandir@/p'
18869 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18870 *datarootdir*) ac_datarootdir_seen=yes;;
18871 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18873 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18874 _ACEOF
18875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18876 ac_datarootdir_hack='
18877 s&@datadir@&$datadir&g
18878 s&@docdir@&$docdir&g
18879 s&@infodir@&$infodir&g
18880 s&@localedir@&$localedir&g
18881 s&@mandir@&$mandir&g
18882 s&\\\${datarootdir}&$datarootdir&g' ;;
18883 esac
18884 _ACEOF
18886 # Neutralize VPATH when `$srcdir' = `.'.
18887 # Shell code in configure.ac might set extrasub.
18888 # FIXME: do we really want to maintain this feature?
18889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18890 ac_sed_extra="$ac_vpsub
18891 $extrasub
18892 _ACEOF
18893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18895 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18896 s|@configure_input@|$ac_sed_conf_input|;t t
18897 s&@top_builddir@&$ac_top_builddir_sub&;t t
18898 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18899 s&@srcdir@&$ac_srcdir&;t t
18900 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18901 s&@top_srcdir@&$ac_top_srcdir&;t t
18902 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18903 s&@builddir@&$ac_builddir&;t t
18904 s&@abs_builddir@&$ac_abs_builddir&;t t
18905 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18906 s&@INSTALL@&$ac_INSTALL&;t t
18907 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18908 $ac_datarootdir_hack
18910 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18911 if $ac_cs_awk_getline; then
18912 $AWK -f "$ac_tmp/subs.awk"
18913 else
18914 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18915 fi \
18916 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18918 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18919 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18920 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18921 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18923 which seems to be undefined. Please make sure it is defined" >&5
18924 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18925 which seems to be undefined. Please make sure it is defined" >&2;}
18927 rm -f "$ac_tmp/stdin"
18928 case $ac_file in
18929 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18930 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18931 esac \
18932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18936 # CONFIG_HEADER
18938 if test x"$ac_file" != x-; then
18940 $as_echo "/* $configure_input */" \
18941 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18942 } >"$ac_tmp/config.h" \
18943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18944 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18946 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18947 else
18948 rm -f "$ac_file"
18949 mv "$ac_tmp/config.h" "$ac_file" \
18950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18952 else
18953 $as_echo "/* $configure_input */" \
18954 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18955 || as_fn_error $? "could not create -" "$LINENO" 5
18960 # CONFIG_LINK
18963 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18965 else
18966 # Prefer the file from the source tree if names are identical.
18967 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18968 ac_source=$srcdir/$ac_source
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18972 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18974 if test ! -r "$ac_source"; then
18975 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18977 rm -f "$ac_file"
18979 # Try a relative symlink, then a hard link, then a copy.
18980 case $ac_source in
18981 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18982 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18983 esac
18984 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18985 ln "$ac_source" "$ac_file" 2>/dev/null ||
18986 cp -p "$ac_source" "$ac_file" ||
18987 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18990 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18991 $as_echo "$as_me: executing $ac_file commands" >&6;}
18993 esac
18996 case $ac_file$ac_mode in
18997 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18998 "Makefile":C) wine_fn_output_makefile Makefile ;;
18999 "tools":C) as_dir=tools; as_fn_mkdir_p ;;
19000 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
19002 esac
19003 done # for ac_tag
19006 as_fn_exit 0
19007 _ACEOF
19008 ac_clean_files=$ac_clean_files_save
19010 test $ac_write_fail = 0 ||
19011 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19014 # configure is writing to config.log, and then calls config.status.
19015 # config.status does its own redirection, appending to config.log.
19016 # Unfortunately, on DOS this fails, as config.log is still kept open
19017 # by configure, so config.status won't be able to write to it; its
19018 # output is simply discarded. So we exec the FD to /dev/null,
19019 # effectively closing config.log, so it can be properly (re)opened and
19020 # appended to by config.status. When coming back to configure, we
19021 # need to make the FD available again.
19022 if test "$no_create" != yes; then
19023 ac_cs_success=:
19024 ac_config_status_args=
19025 test "$silent" = yes &&
19026 ac_config_status_args="$ac_config_status_args --quiet"
19027 exec 5>/dev/null
19028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19029 exec 5>>config.log
19030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19031 # would make configure fail if this is the last instruction.
19032 $ac_cs_success || as_fn_exit 1
19034 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19036 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19040 if test "$no_create" = "yes"
19041 then
19042 exit 0
19045 ac_save_IFS="$IFS"
19046 if test "x$wine_notices != "x; then
19047 echo >&6
19048 IFS="|"
19049 for msg in $wine_notices; do
19050 IFS="$ac_save_IFS"
19051 if test -n "$msg"; then
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
19053 $as_echo "$as_me: $msg" >&6;}
19055 done
19057 IFS="|"
19058 for msg in $wine_warnings; do
19059 IFS="$ac_save_IFS"
19060 if test -n "$msg"; then
19061 echo >&2
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
19063 $as_echo "$as_me: WARNING: $msg" >&2;}
19065 done
19066 IFS="$ac_save_IFS"
19068 $as_echo "
19069 $as_me: Finished. Do '${ac_make}' to compile Wine.
19070 " >&6