makefiles: Output all the import lib dependencies explicitly for each module.
[wine/multimedia.git] / configure
blob11bc7b498ca2c25d210321a9eccb10a70dc838fc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Wine 1.1.41.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.1.41'
556 PACKAGE_STRING='Wine 1.1.41'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 ALL_PROGRAM_BIN_INSTALL_DIRS
600 ALL_PROGRAM_DIRS
601 ALL_TEST_BINARIES
602 ALL_TEST_DIRS
603 ALL_INSTALL_DIRS
604 ALL_STATICLIB_DIRS
605 ALL_TOOL_DIRS
606 ALL_DLL_DIRS
607 ALL_TOP_DIRS
608 ALL_DIRS
609 ALL_SYMLINKS
610 ALL_MAKERULES
611 ALL_WINETEST_DEPENDS
612 ALL_MAKEFILE_DEPENDS
613 LDAPLIBS
614 LIBPOLL
615 LIBDL
616 EXTRA_BINARIES
617 MAIN_BINARY
618 SOCKETLIBS
619 CRTLIBS
620 TOOLSEXT
621 LDPATH
622 BUILTINFLAG
623 EXTRACFLAGS
624 LIBKSTAT
625 LIBMPG123
626 PNGINCL
627 FONTCONFIGINCL
628 CUPSINCL
629 AUDIOIOLIBS
630 ALSALIBS
631 ESDLIBS
632 ESDINCL
633 ESDCONFIG
634 ZLIB
635 FREETYPEINCL
636 FREETYPELIBS
637 ft_devel
638 LCMSLIBS
639 RESOLVLIBS
640 GPHOTO2INCL
641 GPHOTO2LIBS
642 gphoto2port_devel
643 gphoto2_devel
644 SANEINCL
645 sane_devel
646 GNUTLSINCL
647 HALINCL
648 XSLTINCL
649 XML2INCL
650 XML2LIBS
651 NASLIBS
652 X_EXTRA_LIBS
653 X_LIBS
654 X_PRE_LIBS
655 X_CFLAGS
656 XMKMF
657 LIBPTHREAD
658 CROSSTARGET
659 CROSSTEST
660 CROSSCC
661 CARBONLIB
662 LIBOPENAL
663 COREAUDIO
664 DISKARBITRATIONLIB
665 LDEXECFLAGS
666 IOKITLIB
667 COREFOUNDATIONLIB
668 SECURITYLIB
669 DLLWRAP
670 DLLTOOL
672 LDRPATH_LOCAL
673 LDRPATH_INSTALL
674 IMPLIBEXT
675 LIBEXT
676 LDDLLFLAGS
677 LDSHARED
678 DLLFLAGS
679 DLLEXT
681 OPENGL_LIBS
682 XLIB
683 PRELINK
684 ICOTOOL
685 RSVG
686 PKG_CONFIG
687 FONTFORGE
688 LINTFLAGS
689 LINT
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 LDCONFIG
694 EGREP
695 GREP
696 LN_S
697 STRIP
698 RANLIB
699 ARFLAGS
700 ac_ct_AR
702 BISON
703 FLEX
704 TOOLSDIR
705 WOW64_DISABLE
706 TARGETFLAGS
707 CPPBIN
708 ac_ct_CXX
709 CXXFLAGS
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
718 SET_MAKE
719 host_os
720 host_vendor
721 host_cpu
722 host
723 build_os
724 build_vendor
725 build_cpu
726 build
727 MAINTAINER_MODE
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL'
766 ac_subst_files='MAKE_RULES
767 MAKE_TEST_RULES
768 MAKE_DLL_RULES
769 MAKE_IMPLIB_RULES
770 MAKE_PROG_RULES'
771 ac_user_opts='
772 enable_option_checking
773 enable_win16
774 enable_win64
775 enable_tests
776 enable_maintainer_mode
777 with_alsa
778 with_audioio
779 with_capi
780 with_cms
781 with_coreaudio
782 with_cups
783 with_curses
784 with_esd
785 with_fontconfig
786 with_freetype
787 with_gphoto
788 with_glu
789 with_gnutls
790 with_gsm
791 with_hal
792 with_jack
793 with_jpeg
794 with_ldap
795 with_mpg123
796 with_nas
797 with_openal
798 with_opengl
799 with_openssl
800 with_oss
801 with_png
802 with_pthread
803 with_sane
804 with_tiff
805 with_v4l
806 with_xcomposite
807 with_xcursor
808 with_xinerama
809 with_xinput
810 with_xml
811 with_xrandr
812 with_xrender
813 with_xshape
814 with_xshm
815 with_xslt
816 with_xxf86vm
817 with_wine_tools
818 with_wine64
819 enable_largefile
820 with_x
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
831 CXXFLAGS
834 XMKMF'
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
885 ac_prev=
886 ac_dashdash=
887 for ac_option
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
896 case $ac_option in
897 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *) ac_optarg=yes ;;
899 esac
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
905 ac_dashdash=yes ;;
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
924 --config-cache | -C)
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information."
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1241 esac
1242 done
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299 test "$silent" = yes && exec 6>/dev/null
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error "pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1328 /^X\(\/\/\)$/{
1329 s//\1/
1332 /^X\(\/\).*/{
1333 s//\1/
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1341 else
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1370 # Report the --help message.
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures Wine 1.1.41 to adapt to many kinds of systems.
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1383 Defaults for the options are specified in brackets.
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1407 For better control, use the options below.
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1431 cat <<\_ACEOF
1433 X features:
1434 --x-includes=DIR X include files are in DIR
1435 --x-libraries=DIR X library files are in DIR
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of Wine 1.1.41:";;
1446 esac
1447 cat <<\_ACEOF
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --disable-win16 do not include Win16 support
1454 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1455 binaries)
1456 --disable-tests do not build the regression tests
1457 --enable-maintainer-mode
1458 enable maintainer-specific build rules
1459 --disable-largefile omit support for large files
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --without-alsa do not use the Alsa sound support
1465 --without-audioio do not use the AudioIO sound support
1466 --without-capi do not use CAPI (ISDN support)
1467 --without-cms do not use CMS (color management support)
1468 --without-coreaudio do not use the CoreAudio sound support
1469 --without-cups do not use CUPS
1470 --without-curses do not use (n)curses
1471 --without-esd do not use the EsounD sound support
1472 --without-fontconfig do not use fontconfig
1473 --without-freetype do not use the FreeType library
1474 --without-gphoto do not use gphoto (Digital Camera support)
1475 --without-glu do not use the GLU library
1476 --without-gnutls do not use GnuTLS (schannel support)
1477 --without-gsm do not use libgsm (GSM 06.10 codec support)
1478 --without-hal do not use HAL (dynamic device support)
1479 --without-jack do not use the Jack sound support
1480 --without-jpeg do not use JPEG
1481 --without-ldap do not use LDAP
1482 --without-mpg123 do not use the mpg123 library
1483 --without-nas do not use the NAS sound support
1484 --without-openal do not use OpenAL
1485 --without-opengl do not use OpenGL
1486 --without-openssl do not use OpenSSL
1487 --without-oss do not use the OSS sound support
1488 --without-png do not use PNG
1489 --without-pthread do not use the pthread library
1490 --without-sane do not use SANE (scanner support)
1491 --without-tiff do not use TIFF
1492 --without-v4l do not use v4l1 (v4l support)
1493 --without-xcomposite do not use the Xcomposite extension
1494 --without-xcursor do not use the Xcursor extension
1495 --without-xinerama do not use Xinerama (multi-monitor support)
1496 --without-xinput do not use the Xinput extension
1497 --without-xml do not use XML
1498 --without-xrandr do not use Xrandr (resolution changes)
1499 --without-xrender do not use the Xrender extension
1500 --without-xshape do not use the Xshape extension
1501 --without-xshm do not use XShm (shared memory extension)
1502 --without-xslt do not use XSLT
1503 --without-xxf86vm do not use XFree video mode extension
1504 --with-wine-tools=DIR use Wine tools from directory DIR
1505 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1506 --with-x use the X Window System
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CXX C++ compiler command
1517 CXXFLAGS C++ compiler flags
1518 CPP C preprocessor
1519 XMKMF Path to xmkmf, Makefile generator for X Window System
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1524 Report bugs to <wine-devel@winehq.org>.
1525 Wine home page: <http://www.winehq.org>.
1526 _ACEOF
1527 ac_status=$?
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" ||
1534 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535 continue
1536 ac_builddir=.
1538 case "$ac_dir" in
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1542 # A ".." for each directory in $ac_dir_suffix.
1543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1544 case $ac_top_builddir_sub in
1545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 esac ;;
1548 esac
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1554 case $srcdir in
1555 .) # We are building in place.
1556 ac_srcdir=.
1557 ac_top_srcdir=$ac_top_builddir_sub
1558 ac_abs_top_srcdir=$ac_pwd ;;
1559 [\\/]* | ?:[\\/]* ) # Absolute name.
1560 ac_srcdir=$srcdir$ac_dir_suffix;
1561 ac_top_srcdir=$srcdir
1562 ac_abs_top_srcdir=$srcdir ;;
1563 *) # Relative name.
1564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565 ac_top_srcdir=$ac_top_build_prefix$srcdir
1566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 esac
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570 cd "$ac_dir" || { ac_status=$?; continue; }
1571 # Check for guested configure.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1578 else
1579 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 fi || ac_status=$?
1581 cd "$ac_pwd" || { ac_status=$?; break; }
1582 done
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1587 cat <<\_ACEOF
1588 Wine configure 1.1.41
1589 generated by GNU Autoconf 2.65
1591 Copyright (C) 2009 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594 _ACEOF
1595 exit
1598 ## ------------------------ ##
1599 ## Autoconf initialization. ##
1600 ## ------------------------ ##
1602 # ac_fn_c_try_compile LINENO
1603 # --------------------------
1604 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_compile ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext
1609 if { { ac_try="$ac_compile"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_compile") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest.$ac_objext; then :
1628 ac_retval=0
1629 else
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1633 ac_retval=1
1635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1636 as_fn_set_status $ac_retval
1638 } # ac_fn_c_try_compile
1640 # ac_fn_cxx_try_compile LINENO
1641 # ----------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_cxx_try_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext
1647 if { { ac_try="$ac_compile"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_cxx_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1671 ac_retval=1
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674 as_fn_set_status $ac_retval
1676 } # ac_fn_cxx_try_compile
1678 # ac_fn_c_try_link LINENO
1679 # -----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_link ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 $as_test_x conftest$ac_exeext
1706 }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1712 ac_retval=1
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 as_fn_set_status $ac_retval
1722 } # ac_fn_c_try_link
1724 # ac_fn_c_try_cpp LINENO
1725 # ----------------------
1726 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_cpp ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_cpp conftest.$ac_ext"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } >/dev/null && {
1746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=1
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 as_fn_set_status $ac_retval
1759 } # ac_fn_c_try_cpp
1761 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1764 # the include files in INCLUDES and setting the cache variable VAR
1765 # accordingly.
1766 ac_fn_c_check_header_mongrel ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 $as_echo_n "(cached) " >&6
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 else
1779 # Is the header compilable?
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1781 $as_echo_n "checking $2 usability... " >&6; }
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788 ac_header_compiler=yes
1789 else
1790 ac_header_compiler=no
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1794 $as_echo "$ac_header_compiler" >&6; }
1796 # Is the header present?
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1798 $as_echo_n "checking $2 presence... " >&6; }
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_cpp "$LINENO"; then :
1804 ac_header_preproc=yes
1805 else
1806 ac_header_preproc=no
1808 rm -f conftest.err conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1810 $as_echo "$ac_header_preproc" >&6; }
1812 # So? What about this header?
1813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1814 yes:no: )
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1816 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1818 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 no:yes:* )
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1822 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1824 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1826 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1828 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 ( cat <<\_ASBOX
1832 ## ------------------------------------ ##
1833 ## Report this to wine-devel@winehq.org ##
1834 ## ------------------------------------ ##
1835 _ASBOX
1836 ) | sed "s/^/$as_me: WARNING: /" >&2
1838 esac
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 eval "$3=\$ac_header_compiler"
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 } # ac_fn_c_check_header_mongrel
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857 # that executables *can* be run.
1858 ac_fn_c_try_run ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: program exited with status $ac_status" >&5
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=$ac_status
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 as_fn_set_status $ac_retval
1894 } # ac_fn_c_try_run
1896 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1897 # -------------------------------------------------------
1898 # Tests whether HEADER exists and can be compiled using the include files in
1899 # INCLUDES, setting the cache variable VAR accordingly.
1900 ac_fn_c_check_header_compile ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1906 $as_echo_n "(cached) " >&6
1907 else
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 eval "$3=yes"
1915 else
1916 eval "$3=no"
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 } # ac_fn_c_check_header_compile
1927 # ac_fn_c_check_func LINENO FUNC VAR
1928 # ----------------------------------
1929 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1930 ac_fn_c_check_func ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1942 #define $2 innocuous_$2
1944 /* System header to define __stub macros and hopefully few prototypes,
1945 which can conflict with char $2 (); below.
1946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1947 <limits.h> exists even on freestanding compilers. */
1949 #ifdef __STDC__
1950 # include <limits.h>
1951 #else
1952 # include <assert.h>
1953 #endif
1955 #undef $2
1957 /* Override any GCC internal prototype to avoid an error.
1958 Use char because int might match the return type of a GCC
1959 builtin and then its argument prototype would still apply. */
1960 #ifdef __cplusplus
1961 extern "C"
1962 #endif
1963 char $2 ();
1964 /* The GNU C library defines this for functions which it implements
1965 to always fail with ENOSYS. Some functions are actually named
1966 something starting with __ and the normal name is an alias. */
1967 #if defined __stub_$2 || defined __stub___$2
1968 choke me
1969 #endif
1972 main ()
1974 return $2 ();
1976 return 0;
1978 _ACEOF
1979 if ac_fn_c_try_link "$LINENO"; then :
1980 eval "$3=yes"
1981 else
1982 eval "$3=no"
1984 rm -f core conftest.err conftest.$ac_objext \
1985 conftest$ac_exeext conftest.$ac_ext
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 } # ac_fn_c_check_func
1994 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1995 # ----------------------------------------------------
1996 # Tries to find if the field MEMBER exists in type AGGR, after including
1997 # INCLUDES, setting cache variable VAR accordingly.
1998 ac_fn_c_check_member ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2002 $as_echo_n "checking for $2.$3... " >&6; }
2003 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2010 main ()
2012 static $2 ac_aggr;
2013 if (ac_aggr.$3)
2014 return 0;
2016 return 0;
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 eval "$4=yes"
2021 else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2026 main ()
2028 static $2 ac_aggr;
2029 if (sizeof ac_aggr.$3)
2030 return 0;
2032 return 0;
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$4=yes"
2037 else
2038 eval "$4=no"
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 eval ac_res=\$$4
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 } # ac_fn_c_check_member
2051 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2052 # -------------------------------------------
2053 # Tests whether TYPE exists after having included INCLUDES, setting cache
2054 # variable VAR accordingly.
2055 ac_fn_c_check_type ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2061 $as_echo_n "(cached) " >&6
2062 else
2063 eval "$3=no"
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 if (sizeof ($2))
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 if (sizeof (($2)))
2084 return 0;
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2091 else
2092 eval "$3=yes"
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 } # ac_fn_c_check_type
2104 cat >config.log <<_ACEOF
2105 This file contains any messages produced by compilers while
2106 running configure, to aid debugging if configure makes a mistake.
2108 It was created by Wine $as_me 1.1.41, which was
2109 generated by GNU Autoconf 2.65. Invocation command line was
2111 $ $0 $@
2113 _ACEOF
2114 exec 5>>config.log
2116 cat <<_ASUNAME
2117 ## --------- ##
2118 ## Platform. ##
2119 ## --------- ##
2121 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2122 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2123 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2124 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2125 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2128 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2130 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2131 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2132 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2133 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2134 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2135 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2136 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138 _ASUNAME
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 $as_echo "PATH: $as_dir"
2146 done
2147 IFS=$as_save_IFS
2149 } >&5
2151 cat >&5 <<_ACEOF
2154 ## ----------- ##
2155 ## Core tests. ##
2156 ## ----------- ##
2158 _ACEOF
2161 # Keep a trace of the command line.
2162 # Strip out --no-create and --no-recursion so they do not pile up.
2163 # Strip out --silent because we don't want to record it for future runs.
2164 # Also quote any args containing shell meta-characters.
2165 # Make two passes to allow for proper duplicate-argument suppression.
2166 ac_configure_args=
2167 ac_configure_args0=
2168 ac_configure_args1=
2169 ac_must_keep_next=false
2170 for ac_pass in 1 2
2172 for ac_arg
2174 case $ac_arg in
2175 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2177 | -silent | --silent | --silen | --sile | --sil)
2178 continue ;;
2179 *\'*)
2180 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 esac
2182 case $ac_pass in
2183 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185 as_fn_append ac_configure_args1 " '$ac_arg'"
2186 if test $ac_must_keep_next = true; then
2187 ac_must_keep_next=false # Got value, back to normal.
2188 else
2189 case $ac_arg in
2190 *=* | --config-cache | -C | -disable-* | --disable-* \
2191 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2192 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2193 | -with-* | --with-* | -without-* | --without-* | --x)
2194 case "$ac_configure_args0 " in
2195 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196 esac
2198 -* ) ac_must_keep_next=true ;;
2199 esac
2201 as_fn_append ac_configure_args " '$ac_arg'"
2203 esac
2204 done
2205 done
2206 { ac_configure_args0=; unset ac_configure_args0;}
2207 { ac_configure_args1=; unset ac_configure_args1;}
2209 # When interrupted or exit'd, cleanup temporary files, and complete
2210 # config.log. We remove comments because anyway the quotes in there
2211 # would cause problems or look ugly.
2212 # WARNING: Use '\'' to represent an apostrophe within the trap.
2213 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2214 trap 'exit_status=$?
2215 # Save into config.log some information that might help in debugging.
2217 echo
2219 cat <<\_ASBOX
2220 ## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##
2223 _ASBOX
2224 echo
2225 # The following way of writing the cache mishandles newlines in values,
2227 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228 eval ac_val=\$$ac_var
2229 case $ac_val in #(
2230 *${as_nl}*)
2231 case $ac_var in #(
2232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234 esac
2235 case $ac_var in #(
2236 _ | IFS | as_nl) ;; #(
2237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238 *) { eval $ac_var=; unset $ac_var;} ;;
2239 esac ;;
2240 esac
2241 done
2242 (set) 2>&1 |
2243 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244 *${as_nl}ac_space=\ *)
2245 sed -n \
2246 "s/'\''/'\''\\\\'\'''\''/g;
2247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248 ;; #(
2250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 esac |
2253 sort
2255 echo
2257 cat <<\_ASBOX
2258 ## ----------------- ##
2259 ## Output variables. ##
2260 ## ----------------- ##
2261 _ASBOX
2262 echo
2263 for ac_var in $ac_subst_vars
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2273 if test -n "$ac_subst_files"; then
2274 cat <<\_ASBOX
2275 ## ------------------- ##
2276 ## File substitutions. ##
2277 ## ------------------- ##
2278 _ASBOX
2279 echo
2280 for ac_var in $ac_subst_files
2282 eval ac_val=\$$ac_var
2283 case $ac_val in
2284 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285 esac
2286 $as_echo "$ac_var='\''$ac_val'\''"
2287 done | sort
2288 echo
2291 if test -s confdefs.h; then
2292 cat <<\_ASBOX
2293 ## ----------- ##
2294 ## confdefs.h. ##
2295 ## ----------- ##
2296 _ASBOX
2297 echo
2298 cat confdefs.h
2299 echo
2301 test "$ac_signal" != 0 &&
2302 $as_echo "$as_me: caught signal $ac_signal"
2303 $as_echo "$as_me: exit $exit_status"
2304 } >&5
2305 rm -f core *.core core.conftest.* &&
2306 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2307 exit $exit_status
2309 for ac_signal in 1 2 13 15; do
2310 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2311 done
2312 ac_signal=0
2314 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2315 rm -f -r conftest* confdefs.h
2317 $as_echo "/* confdefs.h */" > confdefs.h
2319 # Predefined preprocessor variables.
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_NAME "$PACKAGE_NAME"
2323 _ACEOF
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2327 _ACEOF
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2331 _ACEOF
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_STRING "$PACKAGE_STRING"
2335 _ACEOF
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2339 _ACEOF
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_URL "$PACKAGE_URL"
2343 _ACEOF
2346 # Let the site file select an alternate cache file if it wants to.
2347 # Prefer an explicitly selected file to automatically selected ones.
2348 ac_site_file1=NONE
2349 ac_site_file2=NONE
2350 if test -n "$CONFIG_SITE"; then
2351 ac_site_file1=$CONFIG_SITE
2352 elif test "x$prefix" != xNONE; then
2353 ac_site_file1=$prefix/share/config.site
2354 ac_site_file2=$prefix/etc/config.site
2355 else
2356 ac_site_file1=$ac_default_prefix/share/config.site
2357 ac_site_file2=$ac_default_prefix/etc/config.site
2359 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2361 test "x$ac_site_file" = xNONE && continue
2362 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2364 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2365 sed 's/^/| /' "$ac_site_file" >&5
2366 . "$ac_site_file"
2368 done
2370 if test -r "$cache_file"; then
2371 # Some versions of bash will fail to source /dev/null (special files
2372 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2373 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2375 $as_echo "$as_me: loading cache $cache_file" >&6;}
2376 case $cache_file in
2377 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2378 *) . "./$cache_file";;
2379 esac
2381 else
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2383 $as_echo "$as_me: creating cache $cache_file" >&6;}
2384 >$cache_file
2387 # Check that the precious variables saved in the cache have kept the same
2388 # value.
2389 ac_cache_corrupted=false
2390 for ac_var in $ac_precious_vars; do
2391 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2392 eval ac_new_set=\$ac_env_${ac_var}_set
2393 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2394 eval ac_new_val=\$ac_env_${ac_var}_value
2395 case $ac_old_set,$ac_new_set in
2396 set,)
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2398 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2399 ac_cache_corrupted=: ;;
2400 ,set)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2402 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2403 ac_cache_corrupted=: ;;
2404 ,);;
2406 if test "x$ac_old_val" != "x$ac_new_val"; then
2407 # differences in whitespace do not lead to failure.
2408 ac_old_val_w=`echo x $ac_old_val`
2409 ac_new_val_w=`echo x $ac_new_val`
2410 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2412 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2413 ac_cache_corrupted=:
2414 else
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2416 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2417 eval $ac_var=\$ac_old_val
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2420 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2422 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2423 fi;;
2424 esac
2425 # Pass precious variables to config.status.
2426 if test "$ac_new_set" = set; then
2427 case $ac_new_val in
2428 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2429 *) ac_arg=$ac_var=$ac_new_val ;;
2430 esac
2431 case " $ac_configure_args " in
2432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2433 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2434 esac
2436 done
2437 if $ac_cache_corrupted; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2441 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2442 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2444 ## -------------------- ##
2445 ## Main body of script. ##
2446 ## -------------------- ##
2448 ac_ext=c
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 ac_config_headers="$ac_config_headers include/config.h"
2458 ac_aux_dir=
2459 for ac_dir in tools "$srcdir"/tools; do
2460 for ac_t in install-sh install.sh shtool; do
2461 if test -f "$ac_dir/$ac_t"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/$ac_t -c"
2464 break 2
2466 done
2467 done
2468 if test -z "$ac_aux_dir"; then
2469 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2472 # These three variables are undocumented and unsupported,
2473 # and are intended to be withdrawn in a future Autoconf release.
2474 # They can cause serious problems if a builder's source tree is in a directory
2475 # whose full name contains unusual characters.
2476 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2477 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2478 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2484 # Check whether --enable-win16 was given.
2485 if test "${enable_win16+set}" = set; then :
2486 enableval=$enable_win16;
2489 # Check whether --enable-win64 was given.
2490 if test "${enable_win64+set}" = set; then :
2491 enableval=$enable_win64;
2494 # Check whether --enable-tests was given.
2495 if test "${enable_tests+set}" = set; then :
2496 enableval=$enable_tests;
2499 # Check whether --enable-maintainer-mode was given.
2500 if test "${enable_maintainer_mode+set}" = set; then :
2501 enableval=$enable_maintainer_mode;
2502 else
2503 MAINTAINER_MODE=\#
2509 # Check whether --with-alsa was given.
2510 if test "${with_alsa+set}" = set; then :
2511 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2515 # Check whether --with-audioio was given.
2516 if test "${with_audioio+set}" = set; then :
2517 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2521 # Check whether --with-capi was given.
2522 if test "${with_capi+set}" = set; then :
2523 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2527 # Check whether --with-cms was given.
2528 if test "${with_cms+set}" = set; then :
2529 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2533 # Check whether --with-coreaudio was given.
2534 if test "${with_coreaudio+set}" = set; then :
2535 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2539 # Check whether --with-cups was given.
2540 if test "${with_cups+set}" = set; then :
2541 withval=$with_cups;
2545 # Check whether --with-curses was given.
2546 if test "${with_curses+set}" = set; then :
2547 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2551 # Check whether --with-esd was given.
2552 if test "${with_esd+set}" = set; then :
2553 withval=$with_esd;
2557 # Check whether --with-fontconfig was given.
2558 if test "${with_fontconfig+set}" = set; then :
2559 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2563 # Check whether --with-freetype was given.
2564 if test "${with_freetype+set}" = set; then :
2565 withval=$with_freetype;
2569 # Check whether --with-gphoto was given.
2570 if test "${with_gphoto+set}" = set; then :
2571 withval=$with_gphoto;
2575 # Check whether --with-glu was given.
2576 if test "${with_glu+set}" = set; then :
2577 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2581 # Check whether --with-gnutls was given.
2582 if test "${with_gnutls+set}" = set; then :
2583 withval=$with_gnutls;
2587 # Check whether --with-gsm was given.
2588 if test "${with_gsm+set}" = set; then :
2589 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2593 # Check whether --with-hal was given.
2594 if test "${with_hal+set}" = set; then :
2595 withval=$with_hal;
2599 # Check whether --with-jack was given.
2600 if test "${with_jack+set}" = set; then :
2601 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2605 # Check whether --with-jpeg was given.
2606 if test "${with_jpeg+set}" = set; then :
2607 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2611 # Check whether --with-ldap was given.
2612 if test "${with_ldap+set}" = set; then :
2613 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2617 # Check whether --with-mpg123 was given.
2618 if test "${with_mpg123+set}" = set; then :
2619 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2623 # Check whether --with-nas was given.
2624 if test "${with_nas+set}" = set; then :
2625 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2629 # Check whether --with-openal was given.
2630 if test "${with_openal+set}" = set; then :
2631 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2635 # Check whether --with-opengl was given.
2636 if test "${with_opengl+set}" = set; then :
2637 withval=$with_opengl;
2641 # Check whether --with-openssl was given.
2642 if test "${with_openssl+set}" = set; then :
2643 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2647 # Check whether --with-oss was given.
2648 if test "${with_oss+set}" = set; then :
2649 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2653 # Check whether --with-png was given.
2654 if test "${with_png+set}" = set; then :
2655 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2659 # Check whether --with-pthread was given.
2660 if test "${with_pthread+set}" = set; then :
2661 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2665 # Check whether --with-sane was given.
2666 if test "${with_sane+set}" = set; then :
2667 withval=$with_sane;
2671 # Check whether --with-tiff was given.
2672 if test "${with_tiff+set}" = set; then :
2673 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2677 # Check whether --with-v4l was given.
2678 if test "${with_v4l+set}" = set; then :
2679 withval=$with_v4l;
2683 # Check whether --with-xcomposite was given.
2684 if test "${with_xcomposite+set}" = set; then :
2685 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2689 # Check whether --with-xcursor was given.
2690 if test "${with_xcursor+set}" = set; then :
2691 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2695 # Check whether --with-xinerama was given.
2696 if test "${with_xinerama+set}" = set; then :
2697 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2701 # Check whether --with-xinput was given.
2702 if test "${with_xinput+set}" = set; then :
2703 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2707 # Check whether --with-xml was given.
2708 if test "${with_xml+set}" = set; then :
2709 withval=$with_xml;
2713 # Check whether --with-xrandr was given.
2714 if test "${with_xrandr+set}" = set; then :
2715 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2719 # Check whether --with-xrender was given.
2720 if test "${with_xrender+set}" = set; then :
2721 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2725 # Check whether --with-xshape was given.
2726 if test "${with_xshape+set}" = set; then :
2727 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2731 # Check whether --with-xshm was given.
2732 if test "${with_xshm+set}" = set; then :
2733 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2737 # Check whether --with-xslt was given.
2738 if test "${with_xslt+set}" = set; then :
2739 withval=$with_xslt;
2743 # Check whether --with-xxf86vm was given.
2744 if test "${with_xxf86vm+set}" = set; then :
2745 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
2750 # Check whether --with-wine-tools was given.
2751 if test "${with_wine_tools+set}" = set; then :
2752 withval=$with_wine_tools;
2756 # Check whether --with-wine64 was given.
2757 if test "${with_wine64+set}" = set; then :
2758 withval=$with_wine64;
2762 # Make sure we can run config.sub.
2763 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2764 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2767 $as_echo_n "checking build system type... " >&6; }
2768 if test "${ac_cv_build+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 ac_build_alias=$build_alias
2772 test "x$ac_build_alias" = x &&
2773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2774 test "x$ac_build_alias" = x &&
2775 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2776 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2777 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2781 $as_echo "$ac_cv_build" >&6; }
2782 case $ac_cv_build in
2783 *-*-*) ;;
2784 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2785 esac
2786 build=$ac_cv_build
2787 ac_save_IFS=$IFS; IFS='-'
2788 set x $ac_cv_build
2789 shift
2790 build_cpu=$1
2791 build_vendor=$2
2792 shift; shift
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2795 build_os=$*
2796 IFS=$ac_save_IFS
2797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2801 $as_echo_n "checking host system type... " >&6; }
2802 if test "${ac_cv_host+set}" = set; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test "x$host_alias" = x; then
2806 ac_cv_host=$ac_cv_build
2807 else
2808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2809 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2814 $as_echo "$ac_cv_host" >&6; }
2815 case $ac_cv_host in
2816 *-*-*) ;;
2817 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2818 esac
2819 host=$ac_cv_host
2820 ac_save_IFS=$IFS; IFS='-'
2821 set x $ac_cv_host
2822 shift
2823 host_cpu=$1
2824 host_vendor=$2
2825 shift; shift
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2828 host_os=$*
2829 IFS=$ac_save_IFS
2830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2834 case "$srcdir" in
2835 .) ;;
2836 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2837 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2838 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2839 fi ;;
2840 esac
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2844 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2845 set x ${MAKE-make}
2846 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2847 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 cat >conftest.make <<\_ACEOF
2851 SHELL = /bin/sh
2852 all:
2853 @echo '@@@%%%=$(MAKE)=@@@%%%'
2854 _ACEOF
2855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2856 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2857 *@@@%%%=?*=@@@%%%*)
2858 eval ac_cv_prog_make_${ac_make}_set=yes;;
2860 eval ac_cv_prog_make_${ac_make}_set=no;;
2861 esac
2862 rm -f conftest.make
2864 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866 $as_echo "yes" >&6; }
2867 SET_MAKE=
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 SET_MAKE="MAKE=${MAKE-make}"
2874 ac_ext=c
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2901 done
2902 done
2903 IFS=$as_save_IFS
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2918 if test -z "$ac_cv_prog_CC"; then
2919 ac_ct_CC=$CC
2920 # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_ac_ct_CC="gcc"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2941 done
2942 done
2943 IFS=$as_save_IFS
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950 $as_echo "$ac_ct_CC" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2956 if test "x$ac_ct_CC" = x; then
2957 CC=""
2958 else
2959 case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965 CC=$ac_ct_CC
2967 else
2968 CC="$ac_cv_prog_CC"
2971 if test -z "$CC"; then
2972 if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}cc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if test "${ac_cv_prog_CC+set}" = set; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_CC="${ac_tool_prefix}cc"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2994 done
2995 done
2996 IFS=$as_save_IFS
3000 CC=$ac_cv_prog_CC
3001 if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3012 if test -z "$CC"; then
3013 # Extract the first word of "cc", so it can be a program name with args.
3014 set dummy cc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_CC+set}" = set; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023 ac_prog_rejected=no
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3032 ac_prog_rejected=yes
3033 continue
3035 ac_cv_prog_CC="cc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3039 done
3040 done
3041 IFS=$as_save_IFS
3043 if test $ac_prog_rejected = yes; then
3044 # We found a bogon in the path, so make sure we never use it.
3045 set dummy $ac_cv_prog_CC
3046 shift
3047 if test $# != 0; then
3048 # We chose a different compiler from the bogus one.
3049 # However, it has the same basename, so the bogon will be chosen
3050 # first if we set CC to just the basename; use the full file name.
3051 shift
3052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3068 if test -z "$CC"; then
3069 if test -n "$ac_tool_prefix"; then
3070 for ac_prog in cl.exe
3072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_CC+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3093 done
3094 done
3095 IFS=$as_save_IFS
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3109 test -n "$CC" && break
3110 done
3112 if test -z "$CC"; then
3113 ac_ct_CC=$CC
3114 for ac_prog in cl.exe
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test -n "$ac_ct_CC"; then
3124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 ac_cv_prog_ac_ct_CC="$ac_prog"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3137 done
3138 done
3139 IFS=$as_save_IFS
3143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3144 if test -n "$ac_ct_CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3146 $as_echo "$ac_ct_CC" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3153 test -n "$ac_ct_CC" && break
3154 done
3156 if test "x$ac_ct_CC" = x; then
3157 CC=""
3158 else
3159 case $cross_compiling:$ac_tool_warned in
3160 yes:)
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163 ac_tool_warned=yes ;;
3164 esac
3165 CC=$ac_ct_CC
3172 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error "no acceptable C compiler found in \$PATH
3175 See \`config.log' for more details." "$LINENO" 5; }
3177 # Provide some information about the compiler.
3178 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3179 set X $ac_compile
3180 ac_compiler=$2
3181 for ac_option in --version -v -V -qversion; do
3182 { { ac_try="$ac_compiler $ac_option >&5"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3190 ac_status=$?
3191 if test -s conftest.err; then
3192 sed '10a\
3193 ... rest of stderr output deleted ...
3194 10q' conftest.err >conftest.er1
3195 cat conftest.er1 >&5
3197 rm -f conftest.er1 conftest.err
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }
3200 done
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3206 main ()
3210 return 0;
3212 _ACEOF
3213 ac_clean_files_save=$ac_clean_files
3214 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3215 # Try to create an executable without -o first, disregard a.out.
3216 # It will help us diagnose broken compilers, and finding out an intuition
3217 # of exeext.
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3219 $as_echo_n "checking whether the C compiler works... " >&6; }
3220 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3222 # The possible output files:
3223 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3225 ac_rmfiles=
3226 for ac_file in $ac_files
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3231 esac
3232 done
3233 rm -f $ac_rmfiles
3235 if { { ac_try="$ac_link_default"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_link_default") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3248 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3249 # so that the user can short-circuit this test for compilers unknown to
3250 # Autoconf.
3251 for ac_file in $ac_files ''
3253 test -f "$ac_file" || continue
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3257 [ab].out )
3258 # We found the default executable, but exeext='' is most
3259 # certainly right.
3260 break;;
3261 *.* )
3262 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3263 then :; else
3264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3266 # We set ac_cv_exeext here because the later test for it is not
3267 # safe: cross compilers may not add the suffix if given an `-o'
3268 # argument, so we may need to know it at that point already.
3269 # Even if this section looks crufty: it has the advantage of
3270 # actually working.
3271 break;;
3273 break;;
3274 esac
3275 done
3276 test "$ac_cv_exeext" = no && ac_cv_exeext=
3278 else
3279 ac_file=''
3281 if test -z "$ac_file"; then :
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 { as_fn_set_status 77
3290 as_fn_error "C compiler cannot create executables
3291 See \`config.log' for more details." "$LINENO" 5; }; }
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3297 $as_echo_n "checking for C compiler default output file name... " >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3299 $as_echo "$ac_file" >&6; }
3300 ac_exeext=$ac_cv_exeext
3302 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3305 $as_echo_n "checking for suffix of executables... " >&6; }
3306 if { { ac_try="$ac_link"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_link") 2>&5
3314 ac_status=$?
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3318 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3319 # work properly (i.e., refer to `conftest.exe'), while it won't with
3320 # `rm'.
3321 for ac_file in conftest.exe conftest conftest.*; do
3322 test -f "$ac_file" || continue
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326 break;;
3327 * ) break;;
3328 esac
3329 done
3330 else
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error "cannot compute suffix of executables: cannot compile and link
3334 See \`config.log' for more details." "$LINENO" 5; }
3336 rm -f conftest conftest$ac_cv_exeext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3338 $as_echo "$ac_cv_exeext" >&6; }
3340 rm -f conftest.$ac_ext
3341 EXEEXT=$ac_cv_exeext
3342 ac_exeext=$EXEEXT
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345 #include <stdio.h>
3347 main ()
3349 FILE *f = fopen ("conftest.out", "w");
3350 return ferror (f) || fclose (f) != 0;
3353 return 0;
3355 _ACEOF
3356 ac_clean_files="$ac_clean_files conftest.out"
3357 # Check that the compiler produces executables we can run. If not, either
3358 # the compiler is broken, or we cross compile.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3360 $as_echo_n "checking whether we are cross compiling... " >&6; }
3361 if test "$cross_compiling" != yes; then
3362 { { ac_try="$ac_link"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }
3373 if { ac_try='./conftest$ac_cv_exeext'
3374 { { case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_try") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; }; then
3384 cross_compiling=no
3385 else
3386 if test "$cross_compiling" = maybe; then
3387 cross_compiling=yes
3388 else
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error "cannot run C compiled programs.
3392 If you meant to cross compile, use \`--host'.
3393 See \`config.log' for more details." "$LINENO" 5; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3398 $as_echo "$cross_compiling" >&6; }
3400 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3401 ac_clean_files=$ac_clean_files_save
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3403 $as_echo_n "checking for suffix of object files... " >&6; }
3404 if test "${ac_cv_objext+set}" = set; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3411 main ()
3415 return 0;
3417 _ACEOF
3418 rm -f conftest.o conftest.obj
3419 if { { ac_try="$ac_compile"
3420 case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_compile") 2>&5
3427 ac_status=$?
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; then :
3430 for ac_file in conftest.o conftest.obj conftest.*; do
3431 test -f "$ac_file" || continue;
3432 case $ac_file in
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435 break;;
3436 esac
3437 done
3438 else
3439 $as_echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error "cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details." "$LINENO" 5; }
3447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3450 $as_echo "$ac_cv_objext" >&6; }
3451 OBJEXT=$ac_cv_objext
3452 ac_objext=$OBJEXT
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3454 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3455 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3462 main ()
3464 #ifndef __GNUC__
3465 choke me
3466 #endif
3469 return 0;
3471 _ACEOF
3472 if ac_fn_c_try_compile "$LINENO"; then :
3473 ac_compiler_gnu=yes
3474 else
3475 ac_compiler_gnu=no
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3482 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3483 if test $ac_compiler_gnu = yes; then
3484 GCC=yes
3485 else
3486 GCC=
3488 ac_test_CFLAGS=${CFLAGS+set}
3489 ac_save_CFLAGS=$CFLAGS
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3491 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3492 if test "${ac_cv_prog_cc_g+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 ac_save_c_werror_flag=$ac_c_werror_flag
3496 ac_c_werror_flag=yes
3497 ac_cv_prog_cc_g=no
3498 CFLAGS="-g"
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3503 main ()
3507 return 0;
3509 _ACEOF
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511 ac_cv_prog_cc_g=yes
3512 else
3513 CFLAGS=""
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3518 main ()
3522 return 0;
3524 _ACEOF
3525 if ac_fn_c_try_compile "$LINENO"; then :
3527 else
3528 ac_c_werror_flag=$ac_save_c_werror_flag
3529 CFLAGS="-g"
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3534 main ()
3538 return 0;
3540 _ACEOF
3541 if ac_fn_c_try_compile "$LINENO"; then :
3542 ac_cv_prog_cc_g=yes
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_c_werror_flag=$ac_save_c_werror_flag
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3552 $as_echo "$ac_cv_prog_cc_g" >&6; }
3553 if test "$ac_test_CFLAGS" = set; then
3554 CFLAGS=$ac_save_CFLAGS
3555 elif test $ac_cv_prog_cc_g = yes; then
3556 if test "$GCC" = yes; then
3557 CFLAGS="-g -O2"
3558 else
3559 CFLAGS="-g"
3561 else
3562 if test "$GCC" = yes; then
3563 CFLAGS="-O2"
3564 else
3565 CFLAGS=
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3569 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3570 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 ac_cv_prog_cc_c89=no
3574 ac_save_CC=$CC
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577 #include <stdarg.h>
3578 #include <stdio.h>
3579 #include <sys/types.h>
3580 #include <sys/stat.h>
3581 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3582 struct buf { int x; };
3583 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3584 static char *e (p, i)
3585 char **p;
3586 int i;
3588 return p[i];
3590 static char *f (char * (*g) (char **, int), char **p, ...)
3592 char *s;
3593 va_list v;
3594 va_start (v,p);
3595 s = g (p, va_arg (v,int));
3596 va_end (v);
3597 return s;
3600 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3601 function prototypes and stuff, but not '\xHH' hex character constants.
3602 These don't provoke an error unfortunately, instead are silently treated
3603 as 'x'. The following induces an error, until -std is added to get
3604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3605 array size at least. It's necessary to write '\x00'==0 to get something
3606 that's true only with -std. */
3607 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3610 inside strings and character constants. */
3611 #define FOO(x) 'x'
3612 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3614 int test (int i, double x);
3615 struct s1 {int (*f) (int a);};
3616 struct s2 {int (*f) (double a);};
3617 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3618 int argc;
3619 char **argv;
3621 main ()
3623 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3625 return 0;
3627 _ACEOF
3628 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631 CC="$ac_save_CC $ac_arg"
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633 ac_cv_prog_cc_c89=$ac_arg
3635 rm -f core conftest.err conftest.$ac_objext
3636 test "x$ac_cv_prog_cc_c89" != "xno" && break
3637 done
3638 rm -f conftest.$ac_ext
3639 CC=$ac_save_CC
3642 # AC_CACHE_VAL
3643 case "x$ac_cv_prog_cc_c89" in
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3646 $as_echo "none needed" >&6; } ;;
3647 xno)
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3649 $as_echo "unsupported" >&6; } ;;
3651 CC="$CC $ac_cv_prog_cc_c89"
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3653 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3654 esac
3655 if test "x$ac_cv_prog_cc_c89" != xno; then :
3659 ac_ext=c
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665 ac_ext=cpp
3666 ac_cpp='$CXXCPP $CPPFLAGS'
3667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3670 if test -z "$CXX"; then
3671 if test -n "$CCC"; then
3672 CXX=$CCC
3673 else
3674 if test -n "$ac_tool_prefix"; then
3675 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if test "${ac_cv_prog_CXX+set}" = set; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 if test -n "$CXX"; then
3685 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3698 done
3699 done
3700 IFS=$as_save_IFS
3704 CXX=$ac_cv_prog_CXX
3705 if test -n "$CXX"; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3707 $as_echo "$CXX" >&6; }
3708 else
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3714 test -n "$CXX" && break
3715 done
3717 if test -z "$CXX"; then
3718 ac_ct_CXX=$CXX
3719 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3721 # Extract the first word of "$ac_prog", so it can be a program name with args.
3722 set dummy $ac_prog; ac_word=$2
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if test -n "$ac_ct_CXX"; then
3729 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 ac_cv_prog_ac_ct_CXX="$ac_prog"
3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3742 done
3743 done
3744 IFS=$as_save_IFS
3748 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3749 if test -n "$ac_ct_CXX"; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3751 $as_echo "$ac_ct_CXX" >&6; }
3752 else
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3754 $as_echo "no" >&6; }
3758 test -n "$ac_ct_CXX" && break
3759 done
3761 if test "x$ac_ct_CXX" = x; then
3762 CXX="g++"
3763 else
3764 case $cross_compiling:$ac_tool_warned in
3765 yes:)
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3768 ac_tool_warned=yes ;;
3769 esac
3770 CXX=$ac_ct_CXX
3776 # Provide some information about the compiler.
3777 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3778 set X $ac_compile
3779 ac_compiler=$2
3780 for ac_option in --version -v -V -qversion; do
3781 { { ac_try="$ac_compiler $ac_option >&5"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5
3788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3789 ac_status=$?
3790 if test -s conftest.err; then
3791 sed '10a\
3792 ... rest of stderr output deleted ...
3793 10q' conftest.err >conftest.er1
3794 cat conftest.er1 >&5
3796 rm -f conftest.er1 conftest.err
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }
3799 done
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3802 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3803 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3810 main ()
3812 #ifndef __GNUC__
3813 choke me
3814 #endif
3817 return 0;
3819 _ACEOF
3820 if ac_fn_cxx_try_compile "$LINENO"; then :
3821 ac_compiler_gnu=yes
3822 else
3823 ac_compiler_gnu=no
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3830 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3831 if test $ac_compiler_gnu = yes; then
3832 GXX=yes
3833 else
3834 GXX=
3836 ac_test_CXXFLAGS=${CXXFLAGS+set}
3837 ac_save_CXXFLAGS=$CXXFLAGS
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3839 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3840 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3844 ac_cxx_werror_flag=yes
3845 ac_cv_prog_cxx_g=no
3846 CXXFLAGS="-g"
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3851 main ()
3855 return 0;
3857 _ACEOF
3858 if ac_fn_cxx_try_compile "$LINENO"; then :
3859 ac_cv_prog_cxx_g=yes
3860 else
3861 CXXFLAGS=""
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3866 main ()
3870 return 0;
3872 _ACEOF
3873 if ac_fn_cxx_try_compile "$LINENO"; then :
3875 else
3876 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3877 CXXFLAGS="-g"
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3882 main ()
3886 return 0;
3888 _ACEOF
3889 if ac_fn_cxx_try_compile "$LINENO"; then :
3890 ac_cv_prog_cxx_g=yes
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3900 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3901 if test "$ac_test_CXXFLAGS" = set; then
3902 CXXFLAGS=$ac_save_CXXFLAGS
3903 elif test $ac_cv_prog_cxx_g = yes; then
3904 if test "$GXX" = yes; then
3905 CXXFLAGS="-g -O2"
3906 else
3907 CXXFLAGS="-g"
3909 else
3910 if test "$GXX" = yes; then
3911 CXXFLAGS="-O2"
3912 else
3913 CXXFLAGS=
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 if test -n "$ac_tool_prefix"; then
3923 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3924 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 if test -n "$CPPBIN"; then
3931 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3940 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3944 done
3945 done
3946 IFS=$as_save_IFS
3950 CPPBIN=$ac_cv_prog_CPPBIN
3951 if test -n "$CPPBIN"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3953 $as_echo "$CPPBIN" >&6; }
3954 else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3961 if test -z "$ac_cv_prog_CPPBIN"; then
3962 ac_ct_CPPBIN=$CPPBIN
3963 # Extract the first word of "cpp", so it can be a program name with args.
3964 set dummy cpp; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -n "$ac_ct_CPPBIN"; then
3971 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980 ac_cv_prog_ac_ct_CPPBIN="cpp"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3984 done
3985 done
3986 IFS=$as_save_IFS
3990 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3991 if test -n "$ac_ct_CPPBIN"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
3993 $as_echo "$ac_ct_CPPBIN" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3999 if test "x$ac_ct_CPPBIN" = x; then
4000 CPPBIN="cpp"
4001 else
4002 case $cross_compiling:$ac_tool_warned in
4003 yes:)
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4006 ac_tool_warned=yes ;;
4007 esac
4008 CPPBIN=$ac_ct_CPPBIN
4010 else
4011 CPPBIN="$ac_cv_prog_CPPBIN"
4015 cat >>confdefs.h <<_ACEOF
4016 #define EXEEXT "$ac_exeext"
4017 _ACEOF
4020 case $host in
4021 *-darwin*)
4022 if test "x$enable_win64" = "xyes"
4023 then
4024 CC="$CC -m64"
4025 CXX="$CXX -m64"
4026 LD="${LD:-ld} -arch x86_64"
4027 AS="${AS:-as} -arch x86_64"
4028 host_cpu="x86_64"
4029 notice_platform="64-bit "
4030 TARGETFLAGS="-m64"
4032 else
4033 CC="$CC -m32"
4034 CXX="$CXX -m32"
4035 LD="${LD:-ld} -arch i386"
4036 AS="${AS:-as} -arch i386"
4037 host_cpu="i386"
4038 notice_platform="32-bit "
4039 TARGETFLAGS="-m32"
4041 enable_win16=${enable_win16:-yes}
4044 x86_64*)
4045 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4046 then
4047 CC="$CC -m32"
4048 CXX="$CXX -m32"
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4050 $as_echo_n "checking whether $CC works... " >&6; }
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4056 main ()
4060 return 0;
4062 _ACEOF
4063 if ac_fn_c_try_link "$LINENO"; then :
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4065 $as_echo "yes" >&6; }
4066 else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4069 as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4071 rm -f core conftest.err conftest.$ac_objext \
4072 conftest$ac_exeext conftest.$ac_ext
4073 LD="${LD:-ld} -m elf_i386"
4074 AS="${AS:-as} --32"
4075 host_cpu="i386"
4076 notice_platform="32-bit "
4077 TARGETFLAGS="-m32"
4079 enable_win16=${enable_win16:-yes}
4080 else
4081 if test "x${GCC}" = "xyes"
4082 then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4084 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #include <stdarg.h>
4089 main ()
4091 void func(__builtin_ms_va_list *args);
4093 return 0;
4095 _ACEOF
4096 if ac_fn_c_try_compile "$LINENO"; then :
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4098 $as_echo "yes" >&6; }
4099 else
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4102 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 TARGETFLAGS="-m64"
4110 *-mingw32*|*-cygwin*)
4111 enable_win16=${enable_win16:-no}
4112 CFLAGS="$CFLAGS -D_WIN32"
4114 i[3456789]86*)
4115 enable_win16=${enable_win16:-yes}
4117 esac
4119 enable_win16=${enable_win16:-no}
4121 enable_winetest=${enable_winetest:-$enable_tests}
4123 if test -n "$with_wine64"
4124 then
4125 if test "x$enable_win64" = "xyes"
4126 then
4127 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4128 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4130 WOW64_DISABLE=\#
4132 enable_fonts=${enable_fonts:-no}
4133 enable_include=${enable_include:-no}
4134 enable_server=${enable_server:-no}
4135 enable_tools=${enable_tools:-no}
4136 enable_wineboot=${enable_wineboot:-no}
4137 enable_winedbg=${enable_winedbg:-no}
4138 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib32"
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4142 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4143 if test "${wine_cv_toolsdir+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 wine_cv_toolsdir="$with_wine_tools"
4147 if test -z "$with_wine_tools"; then
4148 if test "$cross_compiling" = "yes"; then
4149 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4150 elif test -n "$with_wine64"; then
4151 wine_cv_toolsdir="$with_wine64"
4154 if test -z "$wine_cv_toolsdir"; then
4155 wine_cv_toolsdir="\$(TOPOBJDIR)"
4156 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4157 case "$wine_cv_toolsdir" in
4158 /*) ;;
4159 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
4160 esac
4161 else
4162 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4166 $as_echo "$wine_cv_toolsdir" >&6; }
4167 TOOLSDIR=$wine_cv_toolsdir
4169 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4170 then
4171 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4175 for ac_prog in flex
4177 # Extract the first word of "$ac_prog", so it can be a program name with args.
4178 set dummy $ac_prog; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if test "${ac_cv_prog_FLEX+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 if test -n "$FLEX"; then
4185 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_FLEX="$ac_prog"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4198 done
4199 done
4200 IFS=$as_save_IFS
4204 FLEX=$ac_cv_prog_FLEX
4205 if test -n "$FLEX"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4207 $as_echo "$FLEX" >&6; }
4208 else
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4214 test -n "$FLEX" && break
4215 done
4216 test -n "$FLEX" || FLEX="none"
4218 if test "$FLEX" = "none"
4219 then
4220 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4223 $as_echo_n "checking whether flex is recent enough... " >&6; }
4224 cat >conftest.l <<EOF
4225 %top{
4226 #include "prediluvian.h"
4230 if $FLEX -t conftest.l >/dev/null 2>&1
4231 then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4233 $as_echo "yes" >&6; }
4234 else
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4237 as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4240 for ac_prog in bison
4242 # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy $ac_prog; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if test "${ac_cv_prog_BISON+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$BISON"; then
4250 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_BISON="$ac_prog"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4269 BISON=$ac_cv_prog_BISON
4270 if test -n "$BISON"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4272 $as_echo "$BISON" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4279 test -n "$BISON" && break
4280 done
4281 test -n "$BISON" || BISON="none"
4283 if test "$BISON" = "none"
4284 then
4285 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4288 if test -n "$ac_tool_prefix"; then
4289 for ac_prog in ar gar
4291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_AR+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 if test -n "$AR"; then
4299 ac_cv_prog_AR="$AR" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 break 2
4312 done
4313 done
4314 IFS=$as_save_IFS
4318 AR=$ac_cv_prog_AR
4319 if test -n "$AR"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4321 $as_echo "$AR" >&6; }
4322 else
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4328 test -n "$AR" && break
4329 done
4331 if test -z "$AR"; then
4332 ac_ct_AR=$AR
4333 for ac_prog in ar gar
4335 # Extract the first word of "$ac_prog", so it can be a program name with args.
4336 set dummy $ac_prog; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -n "$ac_ct_AR"; then
4343 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4344 else
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_prog_ac_ct_AR="$ac_prog"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4356 done
4357 done
4358 IFS=$as_save_IFS
4362 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4363 if test -n "$ac_ct_AR"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4365 $as_echo "$ac_ct_AR" >&6; }
4366 else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4372 test -n "$ac_ct_AR" && break
4373 done
4375 if test "x$ac_ct_AR" = x; then
4376 AR="ar"
4377 else
4378 case $cross_compiling:$ac_tool_warned in
4379 yes:)
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4382 ac_tool_warned=yes ;;
4383 esac
4384 AR=$ac_ct_AR
4388 ARFLAGS=rc
4390 if test -n "$ac_tool_prefix"; then
4391 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4392 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -n "$RANLIB"; then
4399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4412 done
4413 done
4414 IFS=$as_save_IFS
4418 RANLIB=$ac_cv_prog_RANLIB
4419 if test -n "$RANLIB"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4421 $as_echo "$RANLIB" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4429 if test -z "$ac_cv_prog_RANLIB"; then
4430 ac_ct_RANLIB=$RANLIB
4431 # Extract the first word of "ranlib", so it can be a program name with args.
4432 set dummy ranlib; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if test -n "$ac_ct_RANLIB"; then
4439 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 ac_cv_prog_ac_ct_RANLIB="ranlib"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4452 done
4453 done
4454 IFS=$as_save_IFS
4458 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4459 if test -n "$ac_ct_RANLIB"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4461 $as_echo "$ac_ct_RANLIB" >&6; }
4462 else
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4467 if test "x$ac_ct_RANLIB" = x; then
4468 RANLIB=":"
4469 else
4470 case $cross_compiling:$ac_tool_warned in
4471 yes:)
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4474 ac_tool_warned=yes ;;
4475 esac
4476 RANLIB=$ac_ct_RANLIB
4478 else
4479 RANLIB="$ac_cv_prog_RANLIB"
4482 if test -n "$ac_tool_prefix"; then
4483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4484 set dummy ${ac_tool_prefix}strip; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if test "${ac_cv_prog_STRIP+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -n "$STRIP"; then
4491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4504 done
4505 done
4506 IFS=$as_save_IFS
4510 STRIP=$ac_cv_prog_STRIP
4511 if test -n "$STRIP"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4513 $as_echo "$STRIP" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4521 if test -z "$ac_cv_prog_STRIP"; then
4522 ac_ct_STRIP=$STRIP
4523 # Extract the first word of "strip", so it can be a program name with args.
4524 set dummy strip; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$ac_ct_STRIP"; then
4531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_ac_ct_STRIP="strip"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4544 done
4545 done
4546 IFS=$as_save_IFS
4550 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4551 if test -n "$ac_ct_STRIP"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4553 $as_echo "$ac_ct_STRIP" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4559 if test "x$ac_ct_STRIP" = x; then
4560 STRIP="strip"
4561 else
4562 case $cross_compiling:$ac_tool_warned in
4563 yes:)
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566 ac_tool_warned=yes ;;
4567 esac
4568 STRIP=$ac_ct_STRIP
4570 else
4571 STRIP="$ac_cv_prog_STRIP"
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4575 $as_echo_n "checking whether ln -s works... " >&6; }
4576 LN_S=$as_ln_s
4577 if test "$LN_S" = "ln -s"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4579 $as_echo "yes" >&6; }
4580 else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4582 $as_echo "no, using $LN_S" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4586 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4587 if test "${ac_cv_path_GREP+set}" = set; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if test -z "$GREP"; then
4591 ac_path_GREP_found=false
4592 # Loop through the user's path and test for each of PROGNAME-LIST
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_prog in grep ggrep; do
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4601 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4602 # Check for GNU ac_path_GREP and select it if it is found.
4603 # Check for GNU $ac_path_GREP
4604 case `"$ac_path_GREP" --version 2>&1` in
4605 *GNU*)
4606 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4608 ac_count=0
4609 $as_echo_n 0123456789 >"conftest.in"
4610 while :
4612 cat "conftest.in" "conftest.in" >"conftest.tmp"
4613 mv "conftest.tmp" "conftest.in"
4614 cp "conftest.in" "conftest.nl"
4615 $as_echo 'GREP' >> "conftest.nl"
4616 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618 as_fn_arith $ac_count + 1 && ac_count=$as_val
4619 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4620 # Best one so far, save it but keep looking for a better one
4621 ac_cv_path_GREP="$ac_path_GREP"
4622 ac_path_GREP_max=$ac_count
4624 # 10*(2^10) chars as input seems more than enough
4625 test $ac_count -gt 10 && break
4626 done
4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628 esac
4630 $ac_path_GREP_found && break 3
4631 done
4632 done
4633 done
4634 IFS=$as_save_IFS
4635 if test -z "$ac_cv_path_GREP"; then
4636 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4638 else
4639 ac_cv_path_GREP=$GREP
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4644 $as_echo "$ac_cv_path_GREP" >&6; }
4645 GREP="$ac_cv_path_GREP"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4649 $as_echo_n "checking for egrep... " >&6; }
4650 if test "${ac_cv_path_EGREP+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4654 then ac_cv_path_EGREP="$GREP -E"
4655 else
4656 if test -z "$EGREP"; then
4657 ac_path_EGREP_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in egrep; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4667 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4668 # Check for GNU ac_path_EGREP and select it if it is found.
4669 # Check for GNU $ac_path_EGREP
4670 case `"$ac_path_EGREP" --version 2>&1` in
4671 *GNU*)
4672 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4674 ac_count=0
4675 $as_echo_n 0123456789 >"conftest.in"
4676 while :
4678 cat "conftest.in" "conftest.in" >"conftest.tmp"
4679 mv "conftest.tmp" "conftest.in"
4680 cp "conftest.in" "conftest.nl"
4681 $as_echo 'EGREP' >> "conftest.nl"
4682 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_EGREP="$ac_path_EGREP"
4688 ac_path_EGREP_max=$ac_count
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
4692 done
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694 esac
4696 $ac_path_EGREP_found && break 3
4697 done
4698 done
4699 done
4700 IFS=$as_save_IFS
4701 if test -z "$ac_cv_path_EGREP"; then
4702 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4704 else
4705 ac_cv_path_EGREP=$EGREP
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4711 $as_echo "$ac_cv_path_EGREP" >&6; }
4712 EGREP="$ac_cv_path_EGREP"
4715 # Extract the first word of "ldconfig", so it can be a program name with args.
4716 set dummy ldconfig; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 case $LDCONFIG in
4723 [\\/]* | ?:[\\/]*)
4724 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in /sbin /usr/sbin $PATH
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4738 done
4739 done
4740 IFS=$as_save_IFS
4742 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4744 esac
4746 LDCONFIG=$ac_cv_path_LDCONFIG
4747 if test -n "$LDCONFIG"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4749 $as_echo "$LDCONFIG" >&6; }
4750 else
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4756 # Find a good install program. We prefer a C program (faster),
4757 # so one script is as good as another. But avoid the broken or
4758 # incompatible versions:
4759 # SysV /etc/install, /usr/sbin/install
4760 # SunOS /usr/etc/install
4761 # IRIX /sbin/install
4762 # AIX /bin/install
4763 # AmigaOS /C/install, which installs bootblocks on floppy discs
4764 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4765 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4766 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4767 # OS/2's system install, which has a completely different semantic
4768 # ./install, which can be erroneously created by make from ./install.sh.
4769 # Reject install programs that cannot install multiple files.
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4771 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4772 if test -z "$INSTALL"; then
4773 if test "${ac_cv_path_install+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 # Account for people who put trailing slashes in PATH elements.
4782 case $as_dir/ in #((
4783 ./ | .// | /[cC]/* | \
4784 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4785 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4786 /usr/ucb/* ) ;;
4788 # OSF1 and SCO ODT 3.0 have their own names for install.
4789 # Don't use installbsd from OSF since it installs stuff as root
4790 # by default.
4791 for ac_prog in ginstall scoinst install; do
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4794 if test $ac_prog = install &&
4795 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4796 # AIX install. It has an incompatible calling convention.
4798 elif test $ac_prog = install &&
4799 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4800 # program-specific install script used by HP pwplus--don't use.
4802 else
4803 rm -rf conftest.one conftest.two conftest.dir
4804 echo one > conftest.one
4805 echo two > conftest.two
4806 mkdir conftest.dir
4807 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4808 test -s conftest.one && test -s conftest.two &&
4809 test -s conftest.dir/conftest.one &&
4810 test -s conftest.dir/conftest.two
4811 then
4812 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4813 break 3
4817 done
4818 done
4820 esac
4822 done
4823 IFS=$as_save_IFS
4825 rm -rf conftest.one conftest.two conftest.dir
4828 if test "${ac_cv_path_install+set}" = set; then
4829 INSTALL=$ac_cv_path_install
4830 else
4831 # As a last resort, use the slow shell script. Don't cache a
4832 # value for INSTALL within a source directory, because that will
4833 # break other packages using the cache if that directory is
4834 # removed, or if the value is a relative name.
4835 INSTALL=$ac_install_sh
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4839 $as_echo "$INSTALL" >&6; }
4841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4842 # It thinks the first close brace ends the variable substitution.
4843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4849 case "$INSTALL" in
4850 [\\/$]* | ?:[\\/]* ) ;;
4851 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4852 esac
4854 for ac_prog in lclint lint
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_LINT+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$LINT"; then
4864 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_LINT="$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 LINT=$ac_cv_prog_LINT
4884 if test -n "$LINT"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4886 $as_echo "$LINT" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 test -n "$LINT" && break
4894 done
4896 if test "$LINT" = "lint"
4897 then
4898 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4903 for ac_prog in fontforge
4905 # Extract the first word of "$ac_prog", so it can be a program name with args.
4906 set dummy $ac_prog; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -n "$FONTFORGE"; then
4913 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_FONTFORGE="$ac_prog"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4926 done
4927 done
4928 IFS=$as_save_IFS
4932 FONTFORGE=$ac_cv_prog_FONTFORGE
4933 if test -n "$FONTFORGE"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4935 $as_echo "$FONTFORGE" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4942 test -n "$FONTFORGE" && break
4943 done
4944 test -n "$FONTFORGE" || FONTFORGE="false"
4946 for ac_prog in pkg-config
4948 # Extract the first word of "$ac_prog", so it can be a program name with args.
4949 set dummy $ac_prog; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if test -n "$PKG_CONFIG"; then
4956 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_prog_PKG_CONFIG="$ac_prog"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4969 done
4970 done
4971 IFS=$as_save_IFS
4975 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4976 if test -n "$PKG_CONFIG"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4978 $as_echo "$PKG_CONFIG" >&6; }
4979 else
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4985 test -n "$PKG_CONFIG" && break
4986 done
4987 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4989 for ac_prog in rsvg
4991 # Extract the first word of "$ac_prog", so it can be a program name with args.
4992 set dummy $ac_prog; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if test "${ac_cv_prog_RSVG+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$RSVG"; then
4999 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_RSVG="$ac_prog"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5012 done
5013 done
5014 IFS=$as_save_IFS
5018 RSVG=$ac_cv_prog_RSVG
5019 if test -n "$RSVG"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5021 $as_echo "$RSVG" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5028 test -n "$RSVG" && break
5029 done
5030 test -n "$RSVG" || RSVG="false"
5032 for ac_prog in icotool
5034 # Extract the first word of "$ac_prog", so it can be a program name with args.
5035 set dummy $ac_prog; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 if test -n "$ICOTOOL"; then
5042 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_prog_ICOTOOL="$ac_prog"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5055 done
5056 done
5057 IFS=$as_save_IFS
5061 ICOTOOL=$ac_cv_prog_ICOTOOL
5062 if test -n "$ICOTOOL"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5064 $as_echo "$ICOTOOL" >&6; }
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5071 test -n "$ICOTOOL" && break
5072 done
5073 test -n "$ICOTOOL" || ICOTOOL="false"
5076 if test "${enable_maintainer_mode+set}" = set
5077 then
5078 if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5079 if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
5080 if test "$ICOTOOL" = "false"; then as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."; fi
5083 case $host_cpu in
5084 *i[3456789]86*)
5085 # Extract the first word of "prelink", so it can be a program name with args.
5086 set dummy prelink; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_path_PRELINK+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 case $PRELINK in
5093 [\\/]* | ?:[\\/]*)
5094 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in /sbin /usr/sbin $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5108 done
5109 done
5110 IFS=$as_save_IFS
5112 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5114 esac
5116 PRELINK=$ac_cv_path_PRELINK
5117 if test -n "$PRELINK"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
5119 $as_echo "$PRELINK" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5127 esac
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5131 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5132 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 ac_check_lib_save_LIBS=$LIBS
5136 LIBS="-li386 $LIBS"
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5140 /* Override any GCC internal prototype to avoid an error.
5141 Use char because int might match the return type of a GCC
5142 builtin and then its argument prototype would still apply. */
5143 #ifdef __cplusplus
5144 extern "C"
5145 #endif
5146 char i386_set_ldt ();
5148 main ()
5150 return i386_set_ldt ();
5152 return 0;
5154 _ACEOF
5155 if ac_fn_c_try_link "$LINENO"; then :
5156 ac_cv_lib_i386_i386_set_ldt=yes
5157 else
5158 ac_cv_lib_i386_i386_set_ldt=no
5160 rm -f core conftest.err conftest.$ac_objext \
5161 conftest$ac_exeext conftest.$ac_ext
5162 LIBS=$ac_check_lib_save_LIBS
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5165 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5166 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5167 cat >>confdefs.h <<_ACEOF
5168 #define HAVE_LIBI386 1
5169 _ACEOF
5171 LIBS="-li386 $LIBS"
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5176 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5177 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 ac_check_lib_save_LIBS=$LIBS
5181 LIBS="-lossaudio $LIBS"
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5185 /* Override any GCC internal prototype to avoid an error.
5186 Use char because int might match the return type of a GCC
5187 builtin and then its argument prototype would still apply. */
5188 #ifdef __cplusplus
5189 extern "C"
5190 #endif
5191 char _oss_ioctl ();
5193 main ()
5195 return _oss_ioctl ();
5197 return 0;
5199 _ACEOF
5200 if ac_fn_c_try_link "$LINENO"; then :
5201 ac_cv_lib_ossaudio__oss_ioctl=yes
5202 else
5203 ac_cv_lib_ossaudio__oss_ioctl=no
5205 rm -f core conftest.err conftest.$ac_objext \
5206 conftest$ac_exeext conftest.$ac_ext
5207 LIBS=$ac_check_lib_save_LIBS
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5210 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5211 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5212 cat >>confdefs.h <<_ACEOF
5213 #define HAVE_LIBOSSAUDIO 1
5214 _ACEOF
5216 LIBS="-lossaudio $LIBS"
5221 XLIB=""
5223 OPENGL_LIBS=""
5227 # Check whether --enable-largefile was given.
5228 if test "${enable_largefile+set}" = set; then :
5229 enableval=$enable_largefile;
5232 if test "$enable_largefile" != no; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5235 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5236 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 ac_cv_sys_largefile_CC=no
5240 if test "$GCC" != yes; then
5241 ac_save_CC=$CC
5242 while :; do
5243 # IRIX 6.2 and later do not support large files by default,
5244 # so use the C compiler's -n32 option if that helps.
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 #include <sys/types.h>
5248 /* Check that off_t can represent 2**63 - 1 correctly.
5249 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5250 since some C++ compilers masquerading as C compilers
5251 incorrectly reject 9223372036854775807. */
5252 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5253 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5254 && LARGE_OFF_T % 2147483647 == 1)
5255 ? 1 : -1];
5257 main ()
5261 return 0;
5263 _ACEOF
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265 break
5267 rm -f core conftest.err conftest.$ac_objext
5268 CC="$CC -n32"
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270 ac_cv_sys_largefile_CC=' -n32'; break
5272 rm -f core conftest.err conftest.$ac_objext
5273 break
5274 done
5275 CC=$ac_save_CC
5276 rm -f conftest.$ac_ext
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5280 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5281 if test "$ac_cv_sys_largefile_CC" != no; then
5282 CC=$CC$ac_cv_sys_largefile_CC
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5286 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5287 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 while :; do
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <sys/types.h>
5294 /* Check that off_t can represent 2**63 - 1 correctly.
5295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5296 since some C++ compilers masquerading as C compilers
5297 incorrectly reject 9223372036854775807. */
5298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5300 && LARGE_OFF_T % 2147483647 == 1)
5301 ? 1 : -1];
5303 main ()
5307 return 0;
5309 _ACEOF
5310 if ac_fn_c_try_compile "$LINENO"; then :
5311 ac_cv_sys_file_offset_bits=no; break
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #define _FILE_OFFSET_BITS 64
5317 #include <sys/types.h>
5318 /* Check that off_t can represent 2**63 - 1 correctly.
5319 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5320 since some C++ compilers masquerading as C compilers
5321 incorrectly reject 9223372036854775807. */
5322 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5324 && LARGE_OFF_T % 2147483647 == 1)
5325 ? 1 : -1];
5327 main ()
5331 return 0;
5333 _ACEOF
5334 if ac_fn_c_try_compile "$LINENO"; then :
5335 ac_cv_sys_file_offset_bits=64; break
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 ac_cv_sys_file_offset_bits=unknown
5339 break
5340 done
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5343 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5344 case $ac_cv_sys_file_offset_bits in #(
5345 no | unknown) ;;
5347 cat >>confdefs.h <<_ACEOF
5348 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5349 _ACEOF
5351 esac
5352 rm -rf conftest*
5353 if test $ac_cv_sys_file_offset_bits = unknown; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5355 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5356 if test "${ac_cv_sys_large_files+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 while :; do
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 #include <sys/types.h>
5363 /* Check that off_t can represent 2**63 - 1 correctly.
5364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5365 since some C++ compilers masquerading as C compilers
5366 incorrectly reject 9223372036854775807. */
5367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5369 && LARGE_OFF_T % 2147483647 == 1)
5370 ? 1 : -1];
5372 main ()
5376 return 0;
5378 _ACEOF
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_sys_large_files=no; break
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #define _LARGE_FILES 1
5386 #include <sys/types.h>
5387 /* Check that off_t can represent 2**63 - 1 correctly.
5388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5389 since some C++ compilers masquerading as C compilers
5390 incorrectly reject 9223372036854775807. */
5391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5393 && LARGE_OFF_T % 2147483647 == 1)
5394 ? 1 : -1];
5396 main ()
5400 return 0;
5402 _ACEOF
5403 if ac_fn_c_try_compile "$LINENO"; then :
5404 ac_cv_sys_large_files=1; break
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_cv_sys_large_files=unknown
5408 break
5409 done
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5412 $as_echo "$ac_cv_sys_large_files" >&6; }
5413 case $ac_cv_sys_large_files in #(
5414 no | unknown) ;;
5416 cat >>confdefs.h <<_ACEOF
5417 #define _LARGE_FILES $ac_cv_sys_large_files
5418 _ACEOF
5420 esac
5421 rm -rf conftest*
5426 ac_ext=c
5427 ac_cpp='$CPP $CPPFLAGS'
5428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5432 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5433 # On Suns, sometimes $CPP names a directory.
5434 if test -n "$CPP" && test -d "$CPP"; then
5435 CPP=
5437 if test -z "$CPP"; then
5438 if test "${ac_cv_prog_CPP+set}" = set; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 # Double quotes because CPP needs to be expanded
5442 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5444 ac_preproc_ok=false
5445 for ac_c_preproc_warn_flag in '' yes
5447 # Use a header file that comes with gcc, so configuring glibc
5448 # with a fresh cross-compiler works.
5449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5450 # <limits.h> exists even on freestanding compilers.
5451 # On the NeXT, cc -E runs the code through the compiler's parser,
5452 # not just through cpp. "Syntax error" is here to catch this case.
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 #ifdef __STDC__
5456 # include <limits.h>
5457 #else
5458 # include <assert.h>
5459 #endif
5460 Syntax error
5461 _ACEOF
5462 if ac_fn_c_try_cpp "$LINENO"; then :
5464 else
5465 # Broken: fails on valid input.
5466 continue
5468 rm -f conftest.err conftest.$ac_ext
5470 # OK, works on sane cases. Now check whether nonexistent headers
5471 # can be detected and how.
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 #include <ac_nonexistent.h>
5475 _ACEOF
5476 if ac_fn_c_try_cpp "$LINENO"; then :
5477 # Broken: success on invalid input.
5478 continue
5479 else
5480 # Passes both tests.
5481 ac_preproc_ok=:
5482 break
5484 rm -f conftest.err conftest.$ac_ext
5486 done
5487 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5488 rm -f conftest.err conftest.$ac_ext
5489 if $ac_preproc_ok; then :
5490 break
5493 done
5494 ac_cv_prog_CPP=$CPP
5497 CPP=$ac_cv_prog_CPP
5498 else
5499 ac_cv_prog_CPP=$CPP
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5502 $as_echo "$CPP" >&6; }
5503 ac_preproc_ok=false
5504 for ac_c_preproc_warn_flag in '' yes
5506 # Use a header file that comes with gcc, so configuring glibc
5507 # with a fresh cross-compiler works.
5508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5509 # <limits.h> exists even on freestanding compilers.
5510 # On the NeXT, cc -E runs the code through the compiler's parser,
5511 # not just through cpp. "Syntax error" is here to catch this case.
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 #ifdef __STDC__
5515 # include <limits.h>
5516 #else
5517 # include <assert.h>
5518 #endif
5519 Syntax error
5520 _ACEOF
5521 if ac_fn_c_try_cpp "$LINENO"; then :
5523 else
5524 # Broken: fails on valid input.
5525 continue
5527 rm -f conftest.err conftest.$ac_ext
5529 # OK, works on sane cases. Now check whether nonexistent headers
5530 # can be detected and how.
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #include <ac_nonexistent.h>
5534 _ACEOF
5535 if ac_fn_c_try_cpp "$LINENO"; then :
5536 # Broken: success on invalid input.
5537 continue
5538 else
5539 # Passes both tests.
5540 ac_preproc_ok=:
5541 break
5543 rm -f conftest.err conftest.$ac_ext
5545 done
5546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5547 rm -f conftest.err conftest.$ac_ext
5548 if $ac_preproc_ok; then :
5550 else
5551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5553 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5554 See \`config.log' for more details." "$LINENO" 5; }
5557 ac_ext=c
5558 ac_cpp='$CPP $CPPFLAGS'
5559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5565 $as_echo_n "checking for ANSI C header files... " >&6; }
5566 if test "${ac_cv_header_stdc+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #include <stdlib.h>
5572 #include <stdarg.h>
5573 #include <string.h>
5574 #include <float.h>
5577 main ()
5581 return 0;
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 ac_cv_header_stdc=yes
5586 else
5587 ac_cv_header_stdc=no
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 if test $ac_cv_header_stdc = yes; then
5592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #include <string.h>
5597 _ACEOF
5598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599 $EGREP "memchr" >/dev/null 2>&1; then :
5601 else
5602 ac_cv_header_stdc=no
5604 rm -f conftest*
5608 if test $ac_cv_header_stdc = yes; then
5609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <stdlib.h>
5614 _ACEOF
5615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5616 $EGREP "free" >/dev/null 2>&1; then :
5618 else
5619 ac_cv_header_stdc=no
5621 rm -f conftest*
5625 if test $ac_cv_header_stdc = yes; then
5626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5627 if test "$cross_compiling" = yes; then :
5629 else
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <ctype.h>
5633 #include <stdlib.h>
5634 #if ((' ' & 0x0FF) == 0x020)
5635 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5636 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5637 #else
5638 # define ISLOWER(c) \
5639 (('a' <= (c) && (c) <= 'i') \
5640 || ('j' <= (c) && (c) <= 'r') \
5641 || ('s' <= (c) && (c) <= 'z'))
5642 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5643 #endif
5645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5647 main ()
5649 int i;
5650 for (i = 0; i < 256; i++)
5651 if (XOR (islower (i), ISLOWER (i))
5652 || toupper (i) != TOUPPER (i))
5653 return 2;
5654 return 0;
5656 _ACEOF
5657 if ac_fn_c_try_run "$LINENO"; then :
5659 else
5660 ac_cv_header_stdc=no
5662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5663 conftest.$ac_objext conftest.beam conftest.$ac_ext
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5669 $as_echo "$ac_cv_header_stdc" >&6; }
5670 if test $ac_cv_header_stdc = yes; then
5672 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5676 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5677 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5678 inttypes.h stdint.h unistd.h
5679 do :
5680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5681 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5683 eval as_val=\$$as_ac_Header
5684 if test "x$as_val" = x""yes; then :
5685 cat >>confdefs.h <<_ACEOF
5686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5687 _ACEOF
5691 done
5694 for ac_header in \
5695 AL/al.h \
5696 AudioToolbox/AudioConverter.h \
5697 AudioToolbox/AudioFile.h \
5698 AudioToolbox/AudioFileStream.h \
5699 AudioUnit/AudioUnit.h \
5700 Carbon/Carbon.h \
5701 CoreAudio/CoreAudio.h \
5702 DiskArbitration/DiskArbitration.h \
5703 IOKit/IOKitLib.h \
5704 IOKit/hid/IOHIDLib.h \
5705 OpenAL/al.h \
5706 alias.h \
5707 alsa/asoundlib.h \
5708 arpa/inet.h \
5709 arpa/nameser.h \
5710 asm/types.h \
5711 capi20.h \
5712 curses.h \
5713 direct.h \
5714 dirent.h \
5715 dlfcn.h \
5716 elf.h \
5717 float.h \
5718 fnmatch.h \
5719 fontconfig/fontconfig.h \
5720 getopt.h \
5721 grp.h \
5722 gsm.h \
5723 gsm/gsm.h \
5724 ieeefp.h \
5725 inet/mib2.h \
5726 io.h \
5727 jack/jack.h \
5728 jpeglib.h \
5729 kstat.h \
5730 lber.h \
5731 lcms.h \
5732 lcms/lcms.h \
5733 ldap.h \
5734 libaudioio.h \
5735 link.h \
5736 linux/cdrom.h \
5737 linux/compiler.h \
5738 linux/hdreg.h \
5739 linux/input.h \
5740 linux/ioctl.h \
5741 linux/joystick.h \
5742 linux/major.h \
5743 linux/param.h \
5744 linux/serial.h \
5745 linux/types.h \
5746 linux/ucdrom.h \
5747 mach-o/nlist.h \
5748 mach/mach.h \
5749 mach/machine.h \
5750 machine/cpu.h \
5751 machine/limits.h \
5752 machine/soundcard.h \
5753 mntent.h \
5754 mpg123.h \
5755 ncurses.h \
5756 netdb.h \
5757 netinet/in.h \
5758 netinet/in_systm.h \
5759 netinet/tcp.h \
5760 netinet/tcp_fsm.h \
5761 openssl/err.h \
5762 openssl/ssl.h \
5763 png.h \
5764 poll.h \
5765 port.h \
5766 process.h \
5767 pthread.h \
5768 pwd.h \
5769 regex.h \
5770 sched.h \
5771 scsi/scsi.h \
5772 scsi/scsi_ioctl.h \
5773 scsi/sg.h \
5774 soundcard.h \
5775 stdbool.h \
5776 stdint.h \
5777 strings.h \
5778 stropts.h \
5779 sys/asoundlib.h \
5780 sys/cdio.h \
5781 sys/elf32.h \
5782 sys/epoll.h \
5783 sys/errno.h \
5784 sys/event.h \
5785 sys/exec_elf.h \
5786 sys/filio.h \
5787 sys/inotify.h \
5788 sys/ioctl.h \
5789 sys/ipc.h \
5790 sys/limits.h \
5791 sys/link.h \
5792 sys/mman.h \
5793 sys/modem.h \
5794 sys/msg.h \
5795 sys/mtio.h \
5796 sys/param.h \
5797 sys/poll.h \
5798 sys/prctl.h \
5799 sys/protosw.h \
5800 sys/ptrace.h \
5801 sys/resource.h \
5802 sys/scsiio.h \
5803 sys/shm.h \
5804 sys/signal.h \
5805 sys/socket.h \
5806 sys/socketvar.h \
5807 sys/sockio.h \
5808 sys/soundcard.h \
5809 sys/statvfs.h \
5810 sys/strtio.h \
5811 sys/syscall.h \
5812 sys/tihdr.h \
5813 sys/time.h \
5814 sys/timeout.h \
5815 sys/times.h \
5816 sys/uio.h \
5817 sys/un.h \
5818 sys/utsname.h \
5819 sys/vm86.h \
5820 sys/wait.h \
5821 syscall.h \
5822 termios.h \
5823 tiffio.h \
5824 unistd.h \
5825 utime.h \
5826 valgrind/memcheck.h \
5827 valgrind/valgrind.h \
5828 zlib.h
5830 do :
5831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5832 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5833 eval as_val=\$$as_ac_Header
5834 if test "x$as_val" = x""yes; then :
5835 cat >>confdefs.h <<_ACEOF
5836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5837 _ACEOF
5841 done
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5844 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5845 if test "${ac_cv_header_stat_broken+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850 #include <sys/types.h>
5851 #include <sys/stat.h>
5853 #if defined S_ISBLK && defined S_IFDIR
5854 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5855 #endif
5857 #if defined S_ISBLK && defined S_IFCHR
5858 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5859 #endif
5861 #if defined S_ISLNK && defined S_IFREG
5862 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5863 #endif
5865 #if defined S_ISSOCK && defined S_IFREG
5866 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5867 #endif
5869 _ACEOF
5870 if ac_fn_c_try_compile "$LINENO"; then :
5871 ac_cv_header_stat_broken=no
5872 else
5873 ac_cv_header_stat_broken=yes
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5878 $as_echo "$ac_cv_header_stat_broken" >&6; }
5879 if test $ac_cv_header_stat_broken = yes; then
5881 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5887 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5888 do :
5889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5891 #ifdef HAVE_SYS_PARAM_H
5892 # include <sys/param.h>
5893 #endif
5895 eval as_val=\$$as_ac_Header
5896 if test "x$as_val" = x""yes; then :
5897 cat >>confdefs.h <<_ACEOF
5898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5899 _ACEOF
5903 done
5906 for ac_header in \
5907 netinet/ip.h \
5908 net/if.h \
5909 net/if_arp.h \
5910 net/if_dl.h \
5911 net/if_types.h \
5912 net/route.h \
5913 netinet/if_ether.h \
5914 netinet/if_inarp.h \
5915 netinet/in_pcb.h \
5916 netinet/ip_icmp.h \
5917 netinet/ip_var.h \
5918 netinet/udp.h \
5919 netipx/ipx.h \
5921 do :
5922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5923 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5924 #ifdef HAVE_SYS_SOCKET_H
5925 # include <sys/socket.h>
5926 #endif
5927 #ifdef HAVE_SYS_SOCKETVAR_H
5928 # include <sys/socketvar.h>
5929 #endif
5930 #ifdef HAVE_NET_ROUTE_H
5931 # include <net/route.h>
5932 #endif
5933 #ifdef HAVE_NETINET_IN_H
5934 # include <netinet/in.h>
5935 #endif
5936 #ifdef HAVE_NETINET_IN_SYSTM_H
5937 # include <netinet/in_systm.h>
5938 #endif
5939 #ifdef HAVE_NET_IF_H
5940 # include <net/if.h>
5941 #endif
5942 #ifdef HAVE_NETINET_IP_H
5943 # include <netinet/ip.h>
5944 #endif
5946 eval as_val=\$$as_ac_Header
5947 if test "x$as_val" = x""yes; then :
5948 cat >>confdefs.h <<_ACEOF
5949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5950 _ACEOF
5954 done
5957 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5958 do :
5959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5960 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5961 #ifdef HAVE_ALIAS_H
5962 # include <alias.h>
5963 #endif
5964 #ifdef HAVE_SYS_SOCKET_H
5965 # include <sys/socket.h>
5966 #endif
5967 #ifdef HAVE_SYS_SOCKETVAR_H
5968 # include <sys/socketvar.h>
5969 #endif
5970 #ifdef HAVE_SYS_TIMEOUT_H
5971 # include <sys/timeout.h>
5972 #endif
5973 #ifdef HAVE_NETINET_IN_H
5974 # include <netinet/in.h>
5975 #endif
5976 #ifdef HAVE_NETINET_IN_SYSTM_H
5977 # include <netinet/in_systm.h>
5978 #endif
5979 #ifdef HAVE_NETINET_IP_H
5980 # include <netinet/ip.h>
5981 #endif
5982 #ifdef HAVE_NETINET_IP_VAR_H
5983 # include <netinet/ip_var.h>
5984 #endif
5985 #ifdef HAVE_NETINET_IP_ICMP_H
5986 # include <netinet/ip_icmp.h>
5987 #endif
5988 #ifdef HAVE_NETINET_UDP_H
5989 # include <netinet/udp.h>
5990 #endif
5991 #ifdef HAVE_NETINET_TCP_H
5992 # include <netinet/tcp.h>
5993 #endif
5994 #ifdef HAVE_NETINET_TCP_TIMER_H
5995 #include <netinet/tcp_timer.h>
5996 #endif
5998 eval as_val=\$$as_ac_Header
5999 if test "x$as_val" = x""yes; then :
6000 cat >>confdefs.h <<_ACEOF
6001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6002 _ACEOF
6006 done
6009 for ac_header in linux/ipx.h linux/irda.h
6010 do :
6011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6013 #ifdef HAVE_ASM_TYPES_H
6014 # include <asm/types.h>
6015 #endif
6016 #ifdef HAVE_SYS_SOCKET_H
6017 # include <sys/socket.h>
6018 #endif
6019 #ifdef HAVE_LINUX_TYPES_H
6020 # include <linux/types.h>
6021 #endif
6023 eval as_val=\$$as_ac_Header
6024 if test "x$as_val" = x""yes; then :
6025 cat >>confdefs.h <<_ACEOF
6026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6027 _ACEOF
6031 done
6034 for ac_header in mach-o/dyld_images.h
6035 do :
6036 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6037 # include <stdbool.h>
6038 #endif
6039 #ifdef HAVE_STDINT_H
6040 # include <stdint.h>
6041 #endif
6043 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6044 cat >>confdefs.h <<_ACEOF
6045 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6046 _ACEOF
6050 done
6053 for ac_header in resolv.h
6054 do :
6055 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6056 #ifdef HAVE_SYS_SOCKET_H
6057 # include <sys/socket.h>
6058 #endif
6059 #ifdef HAVE_NETINET_IN_H
6060 # include <netinet/in.h>
6061 #endif
6062 #ifdef HAVE_ARPA_NAMESER_H
6063 # include <arpa/nameser.h>
6064 #endif
6066 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6067 cat >>confdefs.h <<_ACEOF
6068 #define HAVE_RESOLV_H 1
6069 _ACEOF
6073 done
6076 for ac_header in ifaddrs.h
6077 do :
6078 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6080 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6081 cat >>confdefs.h <<_ACEOF
6082 #define HAVE_IFADDRS_H 1
6083 _ACEOF
6087 done
6090 for ac_header in ucontext.h
6091 do :
6092 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6094 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6095 cat >>confdefs.h <<_ACEOF
6096 #define HAVE_UCONTEXT_H 1
6097 _ACEOF
6101 done
6104 for ac_header in sys/thr.h
6105 do :
6106 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6107 #ifdef HAVE_UCONTEXT_H
6108 #include <ucontext.h>
6109 #endif
6111 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6112 cat >>confdefs.h <<_ACEOF
6113 #define HAVE_SYS_THR_H 1
6114 _ACEOF
6118 done
6121 for ac_header in pthread_np.h
6122 do :
6123 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6124 #include <pthread.h>
6125 #endif
6127 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6128 cat >>confdefs.h <<_ACEOF
6129 #define HAVE_PTHREAD_NP_H 1
6130 _ACEOF
6134 done
6137 for ac_header in linux/videodev.h
6138 do :
6139 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6140 #include <sys/time.h>
6141 #endif
6142 #include <sys/types.h>
6143 #ifdef HAVE_ASM_TYPES_H
6144 #include <asm/types.h>
6145 #endif
6147 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6148 cat >>confdefs.h <<_ACEOF
6149 #define HAVE_LINUX_VIDEODEV_H 1
6150 _ACEOF
6154 done
6157 for ac_header in linux/capi.h
6158 do :
6159 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6161 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6162 cat >>confdefs.h <<_ACEOF
6163 #define HAVE_LINUX_CAPI_H 1
6164 _ACEOF
6168 done
6172 DLLEXT=""
6174 DLLFLAGS="-D_REENTRANT"
6176 LDSHARED=""
6178 LDDLLFLAGS=""
6180 LIBEXT="so"
6182 IMPLIBEXT="def"
6184 LDRPATH_INSTALL=""
6186 LDRPATH_LOCAL=""
6188 STATIC_IMPLIBEXT="def.a"
6189 # Extract the first word of "ldd", so it can be a program name with args.
6190 set dummy ldd; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if test "${ac_cv_path_LDD+set}" = set; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 case $LDD in
6197 [\\/]* | ?:[\\/]*)
6198 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 as_dummy="/sbin:/usr/sbin:$PATH"
6203 for as_dir in $as_dummy
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6213 done
6214 done
6215 IFS=$as_save_IFS
6217 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6219 esac
6221 LDD=$ac_cv_path_LDD
6222 if test -n "$LDD"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6224 $as_echo "$LDD" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6232 case $host_os in
6233 cygwin*|mingw32*)
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$DLLTOOL"; then
6243 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6256 done
6257 done
6258 IFS=$as_save_IFS
6262 DLLTOOL=$ac_cv_prog_DLLTOOL
6263 if test -n "$DLLTOOL"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6265 $as_echo "$DLLTOOL" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6273 if test -z "$ac_cv_prog_DLLTOOL"; then
6274 ac_ct_DLLTOOL=$DLLTOOL
6275 # Extract the first word of "dlltool", so it can be a program name with args.
6276 set dummy dlltool; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$ac_ct_DLLTOOL"; then
6283 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6296 done
6297 done
6298 IFS=$as_save_IFS
6302 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6303 if test -n "$ac_ct_DLLTOOL"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6305 $as_echo "$ac_ct_DLLTOOL" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6311 if test "x$ac_ct_DLLTOOL" = x; then
6312 DLLTOOL="false"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315 yes:)
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318 ac_tool_warned=yes ;;
6319 esac
6320 DLLTOOL=$ac_ct_DLLTOOL
6322 else
6323 DLLTOOL="$ac_cv_prog_DLLTOOL"
6326 if test -n "$ac_tool_prefix"; then
6327 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6328 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$DLLWRAP"; then
6335 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6348 done
6349 done
6350 IFS=$as_save_IFS
6354 DLLWRAP=$ac_cv_prog_DLLWRAP
6355 if test -n "$DLLWRAP"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6357 $as_echo "$DLLWRAP" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6365 if test -z "$ac_cv_prog_DLLWRAP"; then
6366 ac_ct_DLLWRAP=$DLLWRAP
6367 # Extract the first word of "dllwrap", so it can be a program name with args.
6368 set dummy dllwrap; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 if test -n "$ac_ct_DLLWRAP"; then
6375 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6376 else
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6388 done
6389 done
6390 IFS=$as_save_IFS
6394 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6395 if test -n "$ac_ct_DLLWRAP"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6397 $as_echo "$ac_ct_DLLWRAP" >&6; }
6398 else
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6403 if test "x$ac_ct_DLLWRAP" = x; then
6404 DLLWRAP="false"
6405 else
6406 case $cross_compiling:$ac_tool_warned in
6407 yes:)
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410 ac_tool_warned=yes ;;
6411 esac
6412 DLLWRAP=$ac_ct_DLLWRAP
6414 else
6415 DLLWRAP="$ac_cv_prog_DLLWRAP"
6418 if test "$DLLWRAP" = "false"; then
6419 LIBEXT="a"
6420 else
6421 LIBEXT="dll"
6423 IMPLIBEXT="a"
6424 STATIC_IMPLIBEXT="a"
6425 enable_iphlpapi=${enable_iphlpapi:-no}
6426 enable_kernel32=${enable_kernel32:-no}
6427 enable_msvcrt=${enable_msvcrt:-no}
6428 enable_ntdll=${enable_ntdll:-no}
6429 enable_ws2_32=${enable_ws2_32:-no}
6430 enable_loader=${enable_loader:-no}
6431 enable_server=${enable_server:-no}
6432 with_x=${with_x:-no}
6433 with_pthread=${with_pthread:-no}
6435 darwin*|macosx*)
6436 DLLEXT=".so"
6437 LIBEXT="dylib"
6438 DLLFLAGS="$DLLFLAGS -fPIC"
6439 LDDLLFLAGS="-bundle -multiply_defined suppress"
6440 LIBWINE_LDFLAGS="-multiply_defined suppress"
6441 LDSHARED="\$(CC) -dynamiclib"
6442 STRIP="$STRIP -x"
6443 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6444 SECURITYLIB="-framework Security -framework CoreFoundation"
6446 COREFOUNDATIONLIB="-framework CoreFoundation"
6448 IOKITLIB="-framework IOKit -framework CoreFoundation"
6450 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6452 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6453 then
6454 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6457 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6458 then
6459 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6461 ac_save_LIBS="$LIBS"
6462 if test "$ac_cv_header_AudioToolbox_AudioFile_h" = "yes"
6463 then
6464 LIBS="$LIBS $COREAUDIO"
6465 for ac_func in AudioFileStreamOpen
6466 do :
6467 ac_fn_c_check_func "$LINENO" "AudioFileStreamOpen" "ac_cv_func_AudioFileStreamOpen"
6468 if test "x$ac_cv_func_AudioFileStreamOpen" = x""yes; then :
6469 cat >>confdefs.h <<_ACEOF
6470 #define HAVE_AUDIOFILESTREAMOPEN 1
6471 _ACEOF
6474 done
6476 LIBS="$ac_save_LIBS"
6478 test "x$ac_cv_func_AudioFileStreamOpen" = xyes || as_fn_append wine_notices "|AudioToolbox version too old, mp3 codec won't be supported."
6480 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6481 then
6482 LIBOPENAL="-framework OpenAL"
6484 ac_cv_lib_openal_alGetSource3i=yes
6486 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6487 then
6488 ac_save_LIBS="$LIBS"
6489 LIBS="$LIBS $IOKITLIB"
6490 for ac_func in IOHIDManagerCreate
6491 do :
6492 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6493 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6494 cat >>confdefs.h <<_ACEOF
6495 #define HAVE_IOHIDMANAGERCREATE 1
6496 _ACEOF
6499 done
6501 LIBS="$ac_save_LIBS"
6503 case $host_cpu in
6504 *powerpc*)
6505 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6506 esac
6507 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6508 then
6509 CARBONLIB="-framework Carbon"
6511 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6513 if test "x$enable_win16" = "xyes"
6514 then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6516 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6517 if test "$cross_compiling" = yes; then :
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6519 $as_echo "cross-compiling, assuming yes" >&6; }
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 asm(".text\n"
6524 "bad:\tnop;nop\n"
6525 "good:\tnop;nop\n\t"
6526 ".globl _testfunc\n"
6527 "_testfunc:\tcallw good");
6528 extern void testfunc();
6530 main ()
6532 unsigned short *p = (unsigned short *)testfunc;
6533 return p[0] != 0xe866 || p[1] != 0xfffa
6535 return 0;
6537 _ACEOF
6538 if ac_fn_c_try_run "$LINENO"; then :
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6540 $as_echo "yes" >&6; }
6541 else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6544 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
6546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6547 conftest.$ac_objext conftest.beam conftest.$ac_ext
6553 DLLFLAGS="$DLLFLAGS -fPIC"
6554 DLLEXT=".so"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6556 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6557 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 ac_wine_try_cflags_saved=$CFLAGS
6561 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6564 void myfunc() {}
6565 _ACEOF
6566 if ac_fn_c_try_link "$LINENO"; then :
6567 ac_cv_c_dll_gnuelf="yes"
6568 else
6569 ac_cv_c_dll_gnuelf="no"
6571 rm -f core conftest.err conftest.$ac_objext \
6572 conftest$ac_exeext conftest.$ac_ext
6573 CFLAGS=$ac_wine_try_cflags_saved
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6576 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6577 if test "$ac_cv_c_dll_gnuelf" = "yes"
6578 then
6579 LDSHARED="\$(CC) -shared"
6580 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6582 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6583 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 ac_wine_try_cflags_saved=$CFLAGS
6587 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 int main(int argc, char **argv) { return 0; }
6591 _ACEOF
6592 if ac_fn_c_try_link "$LINENO"; then :
6593 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6594 else
6595 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6597 rm -f core conftest.err conftest.$ac_objext \
6598 conftest$ac_exeext conftest.$ac_ext
6599 CFLAGS=$ac_wine_try_cflags_saved
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6602 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6603 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6604 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6607 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6608 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 ac_wine_try_cflags_saved=$CFLAGS
6612 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 int main(int argc, char **argv) { return 0; }
6616 _ACEOF
6617 if ac_fn_c_try_link "$LINENO"; then :
6618 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6619 else
6620 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6622 rm -f core conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
6624 CFLAGS=$ac_wine_try_cflags_saved
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6627 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6628 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6629 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6634 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6635 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 ac_wine_try_cflags_saved=$CFLAGS
6639 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642 int main(int argc, char **argv) { return 0; }
6643 _ACEOF
6644 if ac_fn_c_try_link "$LINENO"; then :
6645 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6646 else
6647 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6649 rm -f core conftest.err conftest.$ac_objext \
6650 conftest$ac_exeext conftest.$ac_ext
6651 CFLAGS=$ac_wine_try_cflags_saved
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6654 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6655 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6656 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
6660 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6661 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 ac_wine_try_cflags_saved=$CFLAGS
6665 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 int main(int argc, char **argv) { return 0; }
6669 _ACEOF
6670 if ac_fn_c_try_link "$LINENO"; then :
6671 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6672 else
6673 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6675 rm -f core conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext conftest.$ac_ext
6677 CFLAGS=$ac_wine_try_cflags_saved
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6680 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6681 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6682 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6685 echo '{ global: *; };' >conftest.map
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6687 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6688 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 ac_wine_try_cflags_saved=$CFLAGS
6692 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6695 int main(int argc, char **argv) { return 0; }
6696 _ACEOF
6697 if ac_fn_c_try_link "$LINENO"; then :
6698 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6699 else
6700 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6702 rm -f core conftest.err conftest.$ac_objext \
6703 conftest$ac_exeext conftest.$ac_ext
6704 CFLAGS=$ac_wine_try_cflags_saved
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6707 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6708 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6709 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6711 rm -f conftest.map
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6714 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6715 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 ac_wine_try_cflags_saved=$CFLAGS
6719 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 int main(int argc, char **argv) { return 0; }
6723 _ACEOF
6724 if ac_fn_c_try_link "$LINENO"; then :
6725 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6726 else
6727 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6729 rm -f core conftest.err conftest.$ac_objext \
6730 conftest$ac_exeext conftest.$ac_ext
6731 CFLAGS=$ac_wine_try_cflags_saved
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6734 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6735 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6736 LDEXECFLAGS="-Wl,--export-dynamic"
6740 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6742 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 ac_wine_try_cflags_saved=$CFLAGS
6747 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 int main(int argc, char **argv) { return 0; }
6751 _ACEOF
6752 if ac_fn_c_try_link "$LINENO"; then :
6753 eval "$as_ac_var=yes"
6754 else
6755 eval "$as_ac_var=no"
6757 rm -f core conftest.err conftest.$ac_objext \
6758 conftest$ac_exeext conftest.$ac_ext
6759 CFLAGS=$ac_wine_try_cflags_saved
6761 eval ac_res=\$$as_ac_var
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6763 $as_echo "$ac_res" >&6; }
6764 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6765 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6766 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6767 else
6768 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6770 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 ac_wine_try_cflags_saved=$CFLAGS
6775 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 int main(int argc, char **argv) { return 0; }
6779 _ACEOF
6780 if ac_fn_c_try_link "$LINENO"; then :
6781 eval "$as_ac_var=yes"
6782 else
6783 eval "$as_ac_var=no"
6785 rm -f core conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 CFLAGS=$ac_wine_try_cflags_saved
6789 eval ac_res=\$$as_ac_var
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6791 $as_echo "$ac_res" >&6; }
6792 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6793 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6794 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6799 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6800 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 ac_wine_try_cflags_saved=$CFLAGS
6804 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 int main(int argc, char **argv) { return 0; }
6808 _ACEOF
6809 if ac_fn_c_try_link "$LINENO"; then :
6810 ac_cv_cflags__Wl___enable_new_dtags=yes
6811 else
6812 ac_cv_cflags__Wl___enable_new_dtags=no
6814 rm -f core conftest.err conftest.$ac_objext \
6815 conftest$ac_exeext conftest.$ac_ext
6816 CFLAGS=$ac_wine_try_cflags_saved
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6819 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6820 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6821 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6824 case $host_cpu in
6825 *i[3456789]86* | x86_64)
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6827 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6828 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 ac_wine_try_cflags_saved=$CFLAGS
6832 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 int main(int argc, char **argv) { return 0; }
6836 _ACEOF
6837 if ac_fn_c_try_link "$LINENO"; then :
6838 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6839 else
6840 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6842 rm -f core conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
6844 CFLAGS=$ac_wine_try_cflags_saved
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6847 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6848 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6849 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6852 esac
6854 else
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6856 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6857 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 ac_wine_try_cflags_saved=$CFLAGS
6861 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 void myfunc() {}
6865 _ACEOF
6866 if ac_fn_c_try_link "$LINENO"; then :
6867 ac_cv_c_dll_unixware="yes"
6868 else
6869 ac_cv_c_dll_unixware="no"
6871 rm -f core conftest.err conftest.$ac_objext \
6872 conftest$ac_exeext conftest.$ac_ext
6873 CFLAGS=$ac_wine_try_cflags_saved
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6876 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6877 if test "$ac_cv_c_dll_unixware" = "yes"
6878 then
6879 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6880 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6884 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6885 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 ac_wine_try_cflags_saved=$CFLAGS
6889 CFLAGS="$CFLAGS -shared"
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 void myfunc() {}
6893 _ACEOF
6894 if ac_fn_c_try_link "$LINENO"; then :
6895 ac_cv_c_dll_hpux="yes"
6896 else
6897 ac_cv_c_dll_hpux="no"
6899 rm -f core conftest.err conftest.$ac_objext \
6900 conftest$ac_exeext conftest.$ac_ext
6901 CFLAGS=$ac_wine_try_cflags_saved
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6904 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6905 if test "$ac_cv_c_dll_hpux" = "yes"
6906 then
6907 LIBEXT="sl"
6908 DLLEXT=".sl"
6909 LDDLLFLAGS="-shared -fPIC"
6910 LDSHARED="\$(CC) -shared"
6915 esac
6917 enable_winequartz_drv=${enable_winequartz_drv:-no}
6919 if test "$LIBEXT" = "a"; then
6920 as_fn_error "could not find a way to build shared libraries.
6921 It is currently not possible to build Wine without shared library
6922 (.so) support to allow transparent switch between .so and .dll files.
6923 If you are using Linux, you will need a newer binutils.
6924 " "$LINENO" 5
6927 if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
6928 then
6929 case "$host_cpu" in
6930 i[3456789]86*)
6931 ac_prefix_list="i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
6932 x86_64)
6933 ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
6935 ac_prefix_list="" ;;
6936 esac
6937 for ac_prog in $ac_prefix_list
6939 # Extract the first word of "$ac_prog", so it can be a program name with args.
6940 set dummy $ac_prog; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$CROSSCC"; then
6947 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_CROSSCC="$ac_prog"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6960 done
6961 done
6962 IFS=$as_save_IFS
6966 CROSSCC=$ac_cv_prog_CROSSCC
6967 if test -n "$CROSSCC"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
6969 $as_echo "$CROSSCC" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6976 test -n "$CROSSCC" && break
6977 done
6978 test -n "$CROSSCC" || CROSSCC="false"
6980 if test "$CROSSCC" != "false"
6981 then
6982 CROSSTEST="\$(CROSSTEST)"
6984 set x $CROSSCC
6985 shift
6986 target=""
6987 while test $# -ge 1
6989 case "$1" in
6990 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
6991 esac
6992 shift
6993 done
6994 if test -n "$target"
6995 then
6996 CROSSTARGET="$target"
7003 if test "$ac_cv_header_pthread_h" = "yes"
7004 then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7006 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7007 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 ac_check_lib_save_LIBS=$LIBS
7011 LIBS="-lpthread $LIBS"
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7015 /* Override any GCC internal prototype to avoid an error.
7016 Use char because int might match the return type of a GCC
7017 builtin and then its argument prototype would still apply. */
7018 #ifdef __cplusplus
7019 extern "C"
7020 #endif
7021 char pthread_create ();
7023 main ()
7025 return pthread_create ();
7027 return 0;
7029 _ACEOF
7030 if ac_fn_c_try_link "$LINENO"; then :
7031 ac_cv_lib_pthread_pthread_create=yes
7032 else
7033 ac_cv_lib_pthread_pthread_create=no
7035 rm -f core conftest.err conftest.$ac_objext \
7036 conftest$ac_exeext conftest.$ac_ext
7037 LIBS=$ac_check_lib_save_LIBS
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7040 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7041 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7042 LIBPTHREAD="-lpthread"
7047 if test "x$LIBPTHREAD" = "x"; then :
7048 case "x$with_pthread" in
7049 xno) ;;
7050 *) as_fn_error "pthread ${notice_platform}development files not found.
7051 Wine cannot support threads without libpthread.
7052 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7053 esac
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7058 $as_echo_n "checking for X... " >&6; }
7061 # Check whether --with-x was given.
7062 if test "${with_x+set}" = set; then :
7063 withval=$with_x;
7066 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7067 if test "x$with_x" = xno; then
7068 # The user explicitly disabled X.
7069 have_x=disabled
7070 else
7071 case $x_includes,$x_libraries in #(
7072 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7073 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 # One or both of the vars are not set, and there is no cached value.
7077 ac_x_includes=no ac_x_libraries=no
7078 rm -f -r conftest.dir
7079 if mkdir conftest.dir; then
7080 cd conftest.dir
7081 cat >Imakefile <<'_ACEOF'
7082 incroot:
7083 @echo incroot='${INCROOT}'
7084 usrlibdir:
7085 @echo usrlibdir='${USRLIBDIR}'
7086 libdir:
7087 @echo libdir='${LIBDIR}'
7088 _ACEOF
7089 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7091 for ac_var in incroot usrlibdir libdir; do
7092 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7093 done
7094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7095 for ac_extension in a so sl dylib la dll; do
7096 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7097 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7098 ac_im_usrlibdir=$ac_im_libdir; break
7100 done
7101 # Screen out bogus values from the imake configuration. They are
7102 # bogus both because they are the default anyway, and because
7103 # using them would break gcc on systems where it needs fixed includes.
7104 case $ac_im_incroot in
7105 /usr/include) ac_x_includes= ;;
7106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7107 esac
7108 case $ac_im_usrlibdir in
7109 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7111 esac
7113 cd ..
7114 rm -f -r conftest.dir
7117 # Standard set of common directories for X headers.
7118 # Check X11 before X11Rn because it is often a symlink to the current release.
7119 ac_x_header_dirs='
7120 /usr/X11/include
7121 /usr/X11R7/include
7122 /usr/X11R6/include
7123 /usr/X11R5/include
7124 /usr/X11R4/include
7126 /usr/include/X11
7127 /usr/include/X11R7
7128 /usr/include/X11R6
7129 /usr/include/X11R5
7130 /usr/include/X11R4
7132 /usr/local/X11/include
7133 /usr/local/X11R7/include
7134 /usr/local/X11R6/include
7135 /usr/local/X11R5/include
7136 /usr/local/X11R4/include
7138 /usr/local/include/X11
7139 /usr/local/include/X11R7
7140 /usr/local/include/X11R6
7141 /usr/local/include/X11R5
7142 /usr/local/include/X11R4
7144 /usr/X386/include
7145 /usr/x386/include
7146 /usr/XFree86/include/X11
7148 /usr/include
7149 /usr/local/include
7150 /usr/unsupported/include
7151 /usr/athena/include
7152 /usr/local/x11r5/include
7153 /usr/lpp/Xamples/include
7155 /usr/openwin/include
7156 /usr/openwin/share/include'
7158 if test "$ac_x_includes" = no; then
7159 # Guess where to find include files, by looking for Xlib.h.
7160 # First, try using that file with no special directory specified.
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <X11/Xlib.h>
7164 _ACEOF
7165 if ac_fn_c_try_cpp "$LINENO"; then :
7166 # We can compile using X headers with no special include directory.
7167 ac_x_includes=
7168 else
7169 for ac_dir in $ac_x_header_dirs; do
7170 if test -r "$ac_dir/X11/Xlib.h"; then
7171 ac_x_includes=$ac_dir
7172 break
7174 done
7176 rm -f conftest.err conftest.$ac_ext
7177 fi # $ac_x_includes = no
7179 if test "$ac_x_libraries" = no; then
7180 # Check for the libraries.
7181 # See if we find them without any special options.
7182 # Don't add to $LIBS permanently.
7183 ac_save_LIBS=$LIBS
7184 LIBS="-lX11 $LIBS"
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 #include <X11/Xlib.h>
7189 main ()
7191 XrmInitialize ()
7193 return 0;
7195 _ACEOF
7196 if ac_fn_c_try_link "$LINENO"; then :
7197 LIBS=$ac_save_LIBS
7198 # We can link X programs with no special library path.
7199 ac_x_libraries=
7200 else
7201 LIBS=$ac_save_LIBS
7202 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7204 # Don't even attempt the hair of trying to link an X program!
7205 for ac_extension in a so sl dylib la dll; do
7206 if test -r "$ac_dir/libX11.$ac_extension"; then
7207 ac_x_libraries=$ac_dir
7208 break 2
7210 done
7211 done
7213 rm -f core conftest.err conftest.$ac_objext \
7214 conftest$ac_exeext conftest.$ac_ext
7215 fi # $ac_x_libraries = no
7217 case $ac_x_includes,$ac_x_libraries in #(
7218 no,* | *,no | *\'*)
7219 # Didn't find X, or a directory has "'" in its name.
7220 ac_cv_have_x="have_x=no";; #(
7222 # Record where we found X for the cache.
7223 ac_cv_have_x="have_x=yes\
7224 ac_x_includes='$ac_x_includes'\
7225 ac_x_libraries='$ac_x_libraries'"
7226 esac
7228 ;; #(
7229 *) have_x=yes;;
7230 esac
7231 eval "$ac_cv_have_x"
7232 fi # $with_x != no
7234 if test "$have_x" != yes; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7236 $as_echo "$have_x" >&6; }
7237 no_x=yes
7238 else
7239 # If each of the values was on the command line, it overrides each guess.
7240 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7241 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7242 # Update the cache value to reflect the command line values.
7243 ac_cv_have_x="have_x=yes\
7244 ac_x_includes='$x_includes'\
7245 ac_x_libraries='$x_libraries'"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7247 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7250 if test "$no_x" = yes; then
7251 # Not all programs may use this symbol, but it does not hurt to define it.
7253 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7255 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7256 else
7257 if test -n "$x_includes"; then
7258 X_CFLAGS="$X_CFLAGS -I$x_includes"
7261 # It would also be nice to do this for all -L options, not just this one.
7262 if test -n "$x_libraries"; then
7263 X_LIBS="$X_LIBS -L$x_libraries"
7264 # For Solaris; some versions of Sun CC require a space after -R and
7265 # others require no space. Words are not sufficient . . . .
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7267 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7268 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7269 ac_xsave_c_werror_flag=$ac_c_werror_flag
7270 ac_c_werror_flag=yes
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7275 main ()
7279 return 0;
7281 _ACEOF
7282 if ac_fn_c_try_link "$LINENO"; then :
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 X_LIBS="$X_LIBS -R$x_libraries"
7286 else
7287 LIBS="$ac_xsave_LIBS -R $x_libraries"
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7292 main ()
7296 return 0;
7298 _ACEOF
7299 if ac_fn_c_try_link "$LINENO"; then :
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7301 $as_echo "yes" >&6; }
7302 X_LIBS="$X_LIBS -R $x_libraries"
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7305 $as_echo "neither works" >&6; }
7307 rm -f core conftest.err conftest.$ac_objext \
7308 conftest$ac_exeext conftest.$ac_ext
7310 rm -f core conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
7312 ac_c_werror_flag=$ac_xsave_c_werror_flag
7313 LIBS=$ac_xsave_LIBS
7316 # Check for system-dependent libraries X programs must link with.
7317 # Do this before checking for the system-independent R6 libraries
7318 # (-lICE), since we may need -lsocket or whatever for X linking.
7320 if test "$ISC" = yes; then
7321 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7322 else
7323 # Martyn Johnson says this is needed for Ultrix, if the X
7324 # libraries were built with DECnet support. And Karl Berry says
7325 # the Alpha needs dnet_stub (dnet does not exist).
7326 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7330 /* Override any GCC internal prototype to avoid an error.
7331 Use char because int might match the return type of a GCC
7332 builtin and then its argument prototype would still apply. */
7333 #ifdef __cplusplus
7334 extern "C"
7335 #endif
7336 char XOpenDisplay ();
7338 main ()
7340 return XOpenDisplay ();
7342 return 0;
7344 _ACEOF
7345 if ac_fn_c_try_link "$LINENO"; then :
7347 else
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7349 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7350 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 ac_check_lib_save_LIBS=$LIBS
7354 LIBS="-ldnet $LIBS"
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7358 /* Override any GCC internal prototype to avoid an error.
7359 Use char because int might match the return type of a GCC
7360 builtin and then its argument prototype would still apply. */
7361 #ifdef __cplusplus
7362 extern "C"
7363 #endif
7364 char dnet_ntoa ();
7366 main ()
7368 return dnet_ntoa ();
7370 return 0;
7372 _ACEOF
7373 if ac_fn_c_try_link "$LINENO"; then :
7374 ac_cv_lib_dnet_dnet_ntoa=yes
7375 else
7376 ac_cv_lib_dnet_dnet_ntoa=no
7378 rm -f core conftest.err conftest.$ac_objext \
7379 conftest$ac_exeext conftest.$ac_ext
7380 LIBS=$ac_check_lib_save_LIBS
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7383 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7384 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7385 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7388 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7390 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7391 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 ac_check_lib_save_LIBS=$LIBS
7395 LIBS="-ldnet_stub $LIBS"
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7399 /* Override any GCC internal prototype to avoid an error.
7400 Use char because int might match the return type of a GCC
7401 builtin and then its argument prototype would still apply. */
7402 #ifdef __cplusplus
7403 extern "C"
7404 #endif
7405 char dnet_ntoa ();
7407 main ()
7409 return dnet_ntoa ();
7411 return 0;
7413 _ACEOF
7414 if ac_fn_c_try_link "$LINENO"; then :
7415 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7416 else
7417 ac_cv_lib_dnet_stub_dnet_ntoa=no
7419 rm -f core conftest.err conftest.$ac_objext \
7420 conftest$ac_exeext conftest.$ac_ext
7421 LIBS=$ac_check_lib_save_LIBS
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7424 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7425 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7426 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7431 rm -f core conftest.err conftest.$ac_objext \
7432 conftest$ac_exeext conftest.$ac_ext
7433 LIBS="$ac_xsave_LIBS"
7435 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7436 # to get the SysV transport functions.
7437 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7438 # needs -lnsl.
7439 # The nsl library prevents programs from opening the X display
7440 # on Irix 5.2, according to T.E. Dickey.
7441 # The functions gethostbyname, getservbyname, and inet_addr are
7442 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7443 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7444 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7448 if test $ac_cv_func_gethostbyname = no; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7450 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7451 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 ac_check_lib_save_LIBS=$LIBS
7455 LIBS="-lnsl $LIBS"
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7459 /* Override any GCC internal prototype to avoid an error.
7460 Use char because int might match the return type of a GCC
7461 builtin and then its argument prototype would still apply. */
7462 #ifdef __cplusplus
7463 extern "C"
7464 #endif
7465 char gethostbyname ();
7467 main ()
7469 return gethostbyname ();
7471 return 0;
7473 _ACEOF
7474 if ac_fn_c_try_link "$LINENO"; then :
7475 ac_cv_lib_nsl_gethostbyname=yes
7476 else
7477 ac_cv_lib_nsl_gethostbyname=no
7479 rm -f core conftest.err conftest.$ac_objext \
7480 conftest$ac_exeext conftest.$ac_ext
7481 LIBS=$ac_check_lib_save_LIBS
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7484 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7485 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7486 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7489 if test $ac_cv_lib_nsl_gethostbyname = no; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7491 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7492 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 ac_check_lib_save_LIBS=$LIBS
7496 LIBS="-lbsd $LIBS"
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7500 /* Override any GCC internal prototype to avoid an error.
7501 Use char because int might match the return type of a GCC
7502 builtin and then its argument prototype would still apply. */
7503 #ifdef __cplusplus
7504 extern "C"
7505 #endif
7506 char gethostbyname ();
7508 main ()
7510 return gethostbyname ();
7512 return 0;
7514 _ACEOF
7515 if ac_fn_c_try_link "$LINENO"; then :
7516 ac_cv_lib_bsd_gethostbyname=yes
7517 else
7518 ac_cv_lib_bsd_gethostbyname=no
7520 rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 LIBS=$ac_check_lib_save_LIBS
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7525 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7526 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7533 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7534 # socket/setsockopt and other routines are undefined under SCO ODT
7535 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7536 # on later versions), says Simon Leinen: it contains gethostby*
7537 # variants that don't use the name server (or something). -lsocket
7538 # must be given before -lnsl if both are needed. We assume that
7539 # if connect needs -lnsl, so does gethostbyname.
7540 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7541 if test "x$ac_cv_func_connect" = x""yes; then :
7545 if test $ac_cv_func_connect = no; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7547 $as_echo_n "checking for connect in -lsocket... " >&6; }
7548 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 ac_check_lib_save_LIBS=$LIBS
7552 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7556 /* Override any GCC internal prototype to avoid an error.
7557 Use char because int might match the return type of a GCC
7558 builtin and then its argument prototype would still apply. */
7559 #ifdef __cplusplus
7560 extern "C"
7561 #endif
7562 char connect ();
7564 main ()
7566 return connect ();
7568 return 0;
7570 _ACEOF
7571 if ac_fn_c_try_link "$LINENO"; then :
7572 ac_cv_lib_socket_connect=yes
7573 else
7574 ac_cv_lib_socket_connect=no
7576 rm -f core conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7578 LIBS=$ac_check_lib_save_LIBS
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7581 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7582 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7583 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7588 # Guillermo Gomez says -lposix is necessary on A/UX.
7589 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7590 if test "x$ac_cv_func_remove" = x""yes; then :
7594 if test $ac_cv_func_remove = no; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7596 $as_echo_n "checking for remove in -lposix... " >&6; }
7597 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 ac_check_lib_save_LIBS=$LIBS
7601 LIBS="-lposix $LIBS"
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7605 /* Override any GCC internal prototype to avoid an error.
7606 Use char because int might match the return type of a GCC
7607 builtin and then its argument prototype would still apply. */
7608 #ifdef __cplusplus
7609 extern "C"
7610 #endif
7611 char remove ();
7613 main ()
7615 return remove ();
7617 return 0;
7619 _ACEOF
7620 if ac_fn_c_try_link "$LINENO"; then :
7621 ac_cv_lib_posix_remove=yes
7622 else
7623 ac_cv_lib_posix_remove=no
7625 rm -f core conftest.err conftest.$ac_objext \
7626 conftest$ac_exeext conftest.$ac_ext
7627 LIBS=$ac_check_lib_save_LIBS
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7630 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7631 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7637 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7638 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7639 if test "x$ac_cv_func_shmat" = x""yes; then :
7643 if test $ac_cv_func_shmat = no; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7645 $as_echo_n "checking for shmat in -lipc... " >&6; }
7646 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 ac_check_lib_save_LIBS=$LIBS
7650 LIBS="-lipc $LIBS"
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7654 /* Override any GCC internal prototype to avoid an error.
7655 Use char because int might match the return type of a GCC
7656 builtin and then its argument prototype would still apply. */
7657 #ifdef __cplusplus
7658 extern "C"
7659 #endif
7660 char shmat ();
7662 main ()
7664 return shmat ();
7666 return 0;
7668 _ACEOF
7669 if ac_fn_c_try_link "$LINENO"; then :
7670 ac_cv_lib_ipc_shmat=yes
7671 else
7672 ac_cv_lib_ipc_shmat=no
7674 rm -f core conftest.err conftest.$ac_objext \
7675 conftest$ac_exeext conftest.$ac_ext
7676 LIBS=$ac_check_lib_save_LIBS
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7679 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7680 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7681 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7687 # Check for libraries that X11R6 Xt/Xaw programs need.
7688 ac_save_LDFLAGS=$LDFLAGS
7689 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7690 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7691 # check for ICE first), but we must link in the order -lSM -lICE or
7692 # we get undefined symbols. So assume we have SM if we have ICE.
7693 # These have to be linked with before -lX11, unlike the other
7694 # libraries we check for below, so use a different variable.
7695 # John Interrante, Karl Berry
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7697 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7698 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 ac_check_lib_save_LIBS=$LIBS
7702 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7706 /* Override any GCC internal prototype to avoid an error.
7707 Use char because int might match the return type of a GCC
7708 builtin and then its argument prototype would still apply. */
7709 #ifdef __cplusplus
7710 extern "C"
7711 #endif
7712 char IceConnectionNumber ();
7714 main ()
7716 return IceConnectionNumber ();
7718 return 0;
7720 _ACEOF
7721 if ac_fn_c_try_link "$LINENO"; then :
7722 ac_cv_lib_ICE_IceConnectionNumber=yes
7723 else
7724 ac_cv_lib_ICE_IceConnectionNumber=no
7726 rm -f core conftest.err conftest.$ac_objext \
7727 conftest$ac_exeext conftest.$ac_ext
7728 LIBS=$ac_check_lib_save_LIBS
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7731 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7732 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7733 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7736 LDFLAGS=$ac_save_LDFLAGS
7741 if test "$have_x" = "yes"
7742 then
7743 XLIB="-lX11"
7744 ac_save_CPPFLAGS="$CPPFLAGS"
7745 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7748 $as_echo_n "checking for -lX11... " >&6; }
7749 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 ac_check_soname_save_LIBS=$LIBS
7753 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7757 /* Override any GCC internal prototype to avoid an error.
7758 Use char because int might match the return type of a GCC
7759 builtin and then its argument prototype would still apply. */
7760 #ifdef __cplusplus
7761 extern "C"
7762 #endif
7763 char XCreateWindow ();
7765 main ()
7767 return XCreateWindow ();
7769 return 0;
7771 _ACEOF
7772 if ac_fn_c_try_link "$LINENO"; then :
7773 case "$LIBEXT" in
7774 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7775 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'` ;;
7776 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7777 esac
7779 rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext conftest.$ac_ext
7781 LIBS=$ac_check_soname_save_LIBS
7783 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7785 $as_echo "not found" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7789 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7791 cat >>confdefs.h <<_ACEOF
7792 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7793 _ACEOF
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7798 $as_echo_n "checking for -lXext... " >&6; }
7799 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 ac_check_soname_save_LIBS=$LIBS
7803 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7807 /* Override any GCC internal prototype to avoid an error.
7808 Use char because int might match the return type of a GCC
7809 builtin and then its argument prototype would still apply. */
7810 #ifdef __cplusplus
7811 extern "C"
7812 #endif
7813 char XextCreateExtension ();
7815 main ()
7817 return XextCreateExtension ();
7819 return 0;
7821 _ACEOF
7822 if ac_fn_c_try_link "$LINENO"; then :
7823 case "$LIBEXT" in
7824 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7825 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'` ;;
7826 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7827 esac
7829 rm -f core conftest.err conftest.$ac_objext \
7830 conftest$ac_exeext conftest.$ac_ext
7831 LIBS=$ac_check_soname_save_LIBS
7833 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7835 $as_echo "not found" >&6; }
7837 else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7839 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7841 cat >>confdefs.h <<_ACEOF
7842 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7843 _ACEOF
7845 XLIB="-lXext $XLIB"
7848 for ac_header in X11/Xlib.h \
7849 X11/XKBlib.h \
7850 X11/Xutil.h \
7851 X11/Xcursor/Xcursor.h \
7852 X11/extensions/shape.h \
7853 X11/extensions/XInput.h \
7854 X11/extensions/XShm.h \
7855 X11/extensions/Xcomposite.h \
7856 X11/extensions/Xinerama.h \
7857 X11/extensions/Xrandr.h \
7858 X11/extensions/Xrender.h \
7859 X11/extensions/xf86vmode.h \
7860 X11/extensions/xf86vmproto.h
7861 do :
7862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7863 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7864 # include <X11/Xlib.h>
7865 #endif
7866 #ifdef HAVE_X11_XUTIL_H
7867 # include <X11/Xutil.h>
7868 #endif
7870 eval as_val=\$$as_ac_Header
7871 if test "x$as_val" = x""yes; then :
7872 cat >>confdefs.h <<_ACEOF
7873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7874 _ACEOF
7878 done
7881 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7882 then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7884 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7885 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 ac_check_lib_save_LIBS=$LIBS
7889 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7893 /* Override any GCC internal prototype to avoid an error.
7894 Use char because int might match the return type of a GCC
7895 builtin and then its argument prototype would still apply. */
7896 #ifdef __cplusplus
7897 extern "C"
7898 #endif
7899 char XkbQueryExtension ();
7901 main ()
7903 return XkbQueryExtension ();
7905 return 0;
7907 _ACEOF
7908 if ac_fn_c_try_link "$LINENO"; then :
7909 ac_cv_lib_X11_XkbQueryExtension=yes
7910 else
7911 ac_cv_lib_X11_XkbQueryExtension=no
7913 rm -f core conftest.err conftest.$ac_objext \
7914 conftest$ac_exeext conftest.$ac_ext
7915 LIBS=$ac_check_lib_save_LIBS
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7918 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
7919 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
7921 $as_echo "#define HAVE_XKB 1" >>confdefs.h
7927 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
7928 then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
7930 $as_echo_n "checking for -lXcursor... " >&6; }
7931 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 ac_check_soname_save_LIBS=$LIBS
7935 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7939 /* Override any GCC internal prototype to avoid an error.
7940 Use char because int might match the return type of a GCC
7941 builtin and then its argument prototype would still apply. */
7942 #ifdef __cplusplus
7943 extern "C"
7944 #endif
7945 char XcursorImageLoadCursor ();
7947 main ()
7949 return XcursorImageLoadCursor ();
7951 return 0;
7953 _ACEOF
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 case "$LIBEXT" in
7956 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7957 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'` ;;
7958 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7959 esac
7961 rm -f core conftest.err conftest.$ac_objext \
7962 conftest$ac_exeext conftest.$ac_ext
7963 LIBS=$ac_check_soname_save_LIBS
7965 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7967 $as_echo "not found" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
7971 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
7973 cat >>confdefs.h <<_ACEOF
7974 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
7975 _ACEOF
7980 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7981 case "x$with_xcursor" in
7982 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
7983 xno) ;;
7984 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
7985 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
7986 esac
7989 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
7990 then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
7992 $as_echo_n "checking for -lXi... " >&6; }
7993 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 ac_check_soname_save_LIBS=$LIBS
7997 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h. */
8001 /* Override any GCC internal prototype to avoid an error.
8002 Use char because int might match the return type of a GCC
8003 builtin and then its argument prototype would still apply. */
8004 #ifdef __cplusplus
8005 extern "C"
8006 #endif
8007 char XOpenDevice ();
8009 main ()
8011 return XOpenDevice ();
8013 return 0;
8015 _ACEOF
8016 if ac_fn_c_try_link "$LINENO"; then :
8017 case "$LIBEXT" in
8018 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8019 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'` ;;
8020 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8021 esac
8023 rm -f core conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8025 LIBS=$ac_check_soname_save_LIBS
8027 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8029 $as_echo "not found" >&6; }
8031 else
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8033 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8035 cat >>confdefs.h <<_ACEOF
8036 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8037 _ACEOF
8042 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8043 case "x$with_xinput" in
8044 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8045 xno) ;;
8046 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8047 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8048 esac
8051 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8052 then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8054 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8055 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 ac_check_lib_save_LIBS=$LIBS
8059 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8063 /* Override any GCC internal prototype to avoid an error.
8064 Use char because int might match the return type of a GCC
8065 builtin and then its argument prototype would still apply. */
8066 #ifdef __cplusplus
8067 extern "C"
8068 #endif
8069 char XShmQueryExtension ();
8071 main ()
8073 return XShmQueryExtension ();
8075 return 0;
8077 _ACEOF
8078 if ac_fn_c_try_link "$LINENO"; then :
8079 ac_cv_lib_Xext_XShmQueryExtension=yes
8080 else
8081 ac_cv_lib_Xext_XShmQueryExtension=no
8083 rm -f core conftest.err conftest.$ac_objext \
8084 conftest$ac_exeext conftest.$ac_ext
8085 LIBS=$ac_check_lib_save_LIBS
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8088 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8089 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8091 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8096 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8097 case "x$with_xshm" in
8098 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8099 xno) ;;
8100 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8101 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8102 esac
8105 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8106 then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8108 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8109 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 ac_check_lib_save_LIBS=$LIBS
8113 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8117 /* Override any GCC internal prototype to avoid an error.
8118 Use char because int might match the return type of a GCC
8119 builtin and then its argument prototype would still apply. */
8120 #ifdef __cplusplus
8121 extern "C"
8122 #endif
8123 char XShapeQueryExtension ();
8125 main ()
8127 return XShapeQueryExtension ();
8129 return 0;
8131 _ACEOF
8132 if ac_fn_c_try_link "$LINENO"; then :
8133 ac_cv_lib_Xext_XShapeQueryExtension=yes
8134 else
8135 ac_cv_lib_Xext_XShapeQueryExtension=no
8137 rm -f core conftest.err conftest.$ac_objext \
8138 conftest$ac_exeext conftest.$ac_ext
8139 LIBS=$ac_check_lib_save_LIBS
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8142 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8143 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8145 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8150 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8151 case "x$with_xshape" in
8152 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8153 xno) ;;
8154 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8155 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8156 esac
8159 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8160 then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8162 $as_echo_n "checking for -lXxf86vm... " >&6; }
8163 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 ac_check_soname_save_LIBS=$LIBS
8167 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8171 /* Override any GCC internal prototype to avoid an error.
8172 Use char because int might match the return type of a GCC
8173 builtin and then its argument prototype would still apply. */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 char XF86VidModeQueryExtension ();
8179 main ()
8181 return XF86VidModeQueryExtension ();
8183 return 0;
8185 _ACEOF
8186 if ac_fn_c_try_link "$LINENO"; then :
8187 case "$LIBEXT" in
8188 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8189 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'` ;;
8190 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8191 esac
8193 rm -f core conftest.err conftest.$ac_objext \
8194 conftest$ac_exeext conftest.$ac_ext
8195 LIBS=$ac_check_soname_save_LIBS
8197 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8199 $as_echo "not found" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8203 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8205 cat >>confdefs.h <<_ACEOF
8206 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8207 _ACEOF
8212 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8213 case "x$with_xxf86vm" in
8214 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8215 xno) ;;
8216 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8217 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8218 esac
8221 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"
8222 then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8224 $as_echo_n "checking for -lXrender... " >&6; }
8225 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 ac_check_soname_save_LIBS=$LIBS
8229 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8233 /* Override any GCC internal prototype to avoid an error.
8234 Use char because int might match the return type of a GCC
8235 builtin and then its argument prototype would still apply. */
8236 #ifdef __cplusplus
8237 extern "C"
8238 #endif
8239 char XRenderQueryExtension ();
8241 main ()
8243 return XRenderQueryExtension ();
8245 return 0;
8247 _ACEOF
8248 if ac_fn_c_try_link "$LINENO"; then :
8249 case "$LIBEXT" in
8250 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8251 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'` ;;
8252 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8253 esac
8255 rm -f core conftest.err conftest.$ac_objext \
8256 conftest$ac_exeext conftest.$ac_ext
8257 LIBS=$ac_check_soname_save_LIBS
8259 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8261 $as_echo "not found" >&6; }
8263 else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8265 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8267 cat >>confdefs.h <<_ACEOF
8268 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8269 _ACEOF
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8272 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8273 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 ac_check_lib_save_LIBS=$LIBS
8277 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8281 /* Override any GCC internal prototype to avoid an error.
8282 Use char because int might match the return type of a GCC
8283 builtin and then its argument prototype would still apply. */
8284 #ifdef __cplusplus
8285 extern "C"
8286 #endif
8287 char XRenderSetPictureTransform ();
8289 main ()
8291 return XRenderSetPictureTransform ();
8293 return 0;
8295 _ACEOF
8296 if ac_fn_c_try_link "$LINENO"; then :
8297 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8298 else
8299 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8301 rm -f core conftest.err conftest.$ac_objext \
8302 conftest$ac_exeext conftest.$ac_ext
8303 LIBS=$ac_check_lib_save_LIBS
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8306 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8307 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8309 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8316 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8317 case "x$with_xrender" in
8318 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8319 xno) ;;
8320 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8321 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8322 esac
8325 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8326 then
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 #include <X11/Xlib.h>
8330 #include <X11/extensions/Xrandr.h>
8332 main ()
8334 static typeof(XRRSetScreenConfigAndRate) * func;
8336 return 0;
8338 _ACEOF
8339 if ac_fn_c_try_compile "$LINENO"; then :
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8341 $as_echo_n "checking for -lXrandr... " >&6; }
8342 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 ac_check_soname_save_LIBS=$LIBS
8346 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8350 /* Override any GCC internal prototype to avoid an error.
8351 Use char because int might match the return type of a GCC
8352 builtin and then its argument prototype would still apply. */
8353 #ifdef __cplusplus
8354 extern "C"
8355 #endif
8356 char XRRQueryExtension ();
8358 main ()
8360 return XRRQueryExtension ();
8362 return 0;
8364 _ACEOF
8365 if ac_fn_c_try_link "$LINENO"; then :
8366 case "$LIBEXT" in
8367 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8368 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'` ;;
8369 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8370 esac
8372 rm -f core conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
8374 LIBS=$ac_check_soname_save_LIBS
8376 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8378 $as_echo "not found" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8382 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8384 cat >>confdefs.h <<_ACEOF
8385 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8386 _ACEOF
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8394 case "x$with_xrandr" in
8395 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8396 xno) ;;
8397 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8398 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8399 esac
8402 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8403 then
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406 #include <X11/Xlib.h>
8407 #include <X11/extensions/Xinerama.h>
8409 main ()
8411 static typeof(XineramaQueryScreens) * func;
8413 return 0;
8415 _ACEOF
8416 if ac_fn_c_try_compile "$LINENO"; then :
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8418 $as_echo_n "checking for -lXinerama... " >&6; }
8419 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 ac_check_soname_save_LIBS=$LIBS
8423 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8427 /* Override any GCC internal prototype to avoid an error.
8428 Use char because int might match the return type of a GCC
8429 builtin and then its argument prototype would still apply. */
8430 #ifdef __cplusplus
8431 extern "C"
8432 #endif
8433 char XineramaQueryScreens ();
8435 main ()
8437 return XineramaQueryScreens ();
8439 return 0;
8441 _ACEOF
8442 if ac_fn_c_try_link "$LINENO"; then :
8443 case "$LIBEXT" in
8444 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8445 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'` ;;
8446 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8447 esac
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_soname_save_LIBS
8453 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8455 $as_echo "not found" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8459 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8461 cat >>confdefs.h <<_ACEOF
8462 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8463 _ACEOF
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8471 case "x$with_xinerama" in
8472 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8473 xno) ;;
8474 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8475 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8476 esac
8479 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8480 then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8482 $as_echo_n "checking for -lXcomposite... " >&6; }
8483 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 ac_check_soname_save_LIBS=$LIBS
8487 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8491 /* Override any GCC internal prototype to avoid an error.
8492 Use char because int might match the return type of a GCC
8493 builtin and then its argument prototype would still apply. */
8494 #ifdef __cplusplus
8495 extern "C"
8496 #endif
8497 char XCompositeRedirectWindow ();
8499 main ()
8501 return XCompositeRedirectWindow ();
8503 return 0;
8505 _ACEOF
8506 if ac_fn_c_try_link "$LINENO"; then :
8507 case "$LIBEXT" in
8508 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8509 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'` ;;
8510 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8511 esac
8513 rm -f core conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8515 LIBS=$ac_check_soname_save_LIBS
8517 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8519 $as_echo "not found" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8523 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8525 cat >>confdefs.h <<_ACEOF
8526 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8527 _ACEOF
8532 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8533 case "x$with_xcomposite" in
8534 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8535 xno) ;;
8536 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8537 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8538 esac
8541 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8542 #include <X11/Xlib.h>
8543 #endif
8545 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8547 cat >>confdefs.h <<_ACEOF
8548 #define HAVE_XICCALLBACK_CALLBACK 1
8549 _ACEOF
8556 opengl_msg=""
8557 if test "x$with_opengl" != "xno"
8558 then
8559 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8560 do :
8561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8562 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8563 # include <GL/glx.h>
8564 #endif
8566 eval as_val=\$$as_ac_Header
8567 if test "x$as_val" = x""yes; then :
8568 cat >>confdefs.h <<_ACEOF
8569 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8570 _ACEOF
8574 done
8576 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8577 then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8579 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8580 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585 #include <GL/gl.h>
8587 main ()
8589 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8591 return 0;
8593 _ACEOF
8594 if ac_fn_c_try_compile "$LINENO"; then :
8595 wine_cv_opengl_header_version_OK="yes"
8596 else
8597 wine_cv_opengl_header_version_OK="no"
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8602 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8604 if test "$wine_cv_opengl_header_version_OK" = "yes"
8605 then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8607 $as_echo_n "checking for -lGL... " >&6; }
8608 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 ac_check_soname_save_LIBS=$LIBS
8612 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8616 /* Override any GCC internal prototype to avoid an error.
8617 Use char because int might match the return type of a GCC
8618 builtin and then its argument prototype would still apply. */
8619 #ifdef __cplusplus
8620 extern "C"
8621 #endif
8622 char glXCreateContext ();
8624 main ()
8626 return glXCreateContext ();
8628 return 0;
8630 _ACEOF
8631 if ac_fn_c_try_link "$LINENO"; then :
8632 case "$LIBEXT" in
8633 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8634 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'` ;;
8635 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8636 esac
8638 rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 LIBS=$ac_check_soname_save_LIBS
8642 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8644 $as_echo "not found" >&6; }
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8646 $as_echo_n "checking for -lGL... " >&6; }
8647 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 ac_check_soname_save_LIBS=$LIBS
8651 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"
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8655 /* Override any GCC internal prototype to avoid an error.
8656 Use char because int might match the return type of a GCC
8657 builtin and then its argument prototype would still apply. */
8658 #ifdef __cplusplus
8659 extern "C"
8660 #endif
8661 char glXCreateContext ();
8663 main ()
8665 return glXCreateContext ();
8667 return 0;
8669 _ACEOF
8670 if ac_fn_c_try_link "$LINENO"; then :
8671 case "$LIBEXT" in
8672 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8673 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'` ;;
8674 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8675 esac
8677 rm -f core conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 LIBS=$ac_check_soname_save_LIBS
8681 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8683 $as_echo "not found" >&6; }
8684 if test -f /usr/X11R6/lib/libGL.a
8685 then
8686 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8687 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8688 else
8689 opengl_msg="No OpenGL library found on this system."
8691 else
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8693 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8695 cat >>confdefs.h <<_ACEOF
8696 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8697 _ACEOF
8699 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"
8701 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8704 else
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8706 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8708 cat >>confdefs.h <<_ACEOF
8709 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8710 _ACEOF
8712 OPENGL_LIBS="-lGL"
8714 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8717 if test "$ac_cv_header_GL_glu_h" = "yes"
8718 then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8720 $as_echo_n "checking for -lGLU... " >&6; }
8721 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 ac_check_soname_save_LIBS=$LIBS
8725 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8729 /* Override any GCC internal prototype to avoid an error.
8730 Use char because int might match the return type of a GCC
8731 builtin and then its argument prototype would still apply. */
8732 #ifdef __cplusplus
8733 extern "C"
8734 #endif
8735 char gluLookAt ();
8737 main ()
8739 return gluLookAt ();
8741 return 0;
8743 _ACEOF
8744 if ac_fn_c_try_link "$LINENO"; then :
8745 case "$LIBEXT" in
8746 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8747 dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8748 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8749 esac
8751 rm -f core conftest.err conftest.$ac_objext \
8752 conftest$ac_exeext conftest.$ac_ext
8753 LIBS=$ac_check_soname_save_LIBS
8755 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8757 $as_echo "not found" >&6; }
8759 else
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8761 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8763 cat >>confdefs.h <<_ACEOF
8764 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8765 _ACEOF
8770 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8771 case "x$with_glu" in
8772 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8773 xno) ;;
8774 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8775 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8776 esac
8778 else
8779 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8781 else
8782 opengl_msg="OpenGL development headers not found."
8784 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8785 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8786 else
8787 enable_opengl32=${enable_opengl32:-no}
8788 enable_glu32=${enable_glu32:-no}
8790 if test -n "$opengl_msg"; then :
8791 case "x$with_opengl" in
8792 x) as_fn_append wine_warnings "|$opengl_msg
8793 OpenGL and Direct3D won't be supported." ;;
8794 xno) ;;
8795 *) as_fn_error "$opengl_msg
8796 OpenGL and Direct3D won't be supported.
8797 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8798 esac
8801 NASLIBS=""
8803 for ac_header in audio/audiolib.h
8804 do :
8805 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8806 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8807 cat >>confdefs.h <<_ACEOF
8808 #define HAVE_AUDIO_AUDIOLIB_H 1
8809 _ACEOF
8810 for ac_header in audio/soundlib.h
8811 do :
8812 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8814 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8815 cat >>confdefs.h <<_ACEOF
8816 #define HAVE_AUDIO_SOUNDLIB_H 1
8817 _ACEOF
8821 done
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8824 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8825 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8826 $as_echo_n "(cached) " >&6
8827 else
8828 ac_check_lib_save_LIBS=$LIBS
8829 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8833 /* Override any GCC internal prototype to avoid an error.
8834 Use char because int might match the return type of a GCC
8835 builtin and then its argument prototype would still apply. */
8836 #ifdef __cplusplus
8837 extern "C"
8838 #endif
8839 char AuCreateFlow ();
8841 main ()
8843 return AuCreateFlow ();
8845 return 0;
8847 _ACEOF
8848 if ac_fn_c_try_link "$LINENO"; then :
8849 ac_cv_lib_audio_AuCreateFlow=yes
8850 else
8851 ac_cv_lib_audio_AuCreateFlow=no
8853 rm -f core conftest.err conftest.$ac_objext \
8854 conftest$ac_exeext conftest.$ac_ext
8855 LIBS=$ac_check_lib_save_LIBS
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8858 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8859 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8861 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8864 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8865 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 ac_check_lib_save_LIBS=$LIBS
8869 LIBS="-lXau $X_LIBS $LIBS"
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8873 /* Override any GCC internal prototype to avoid an error.
8874 Use char because int might match the return type of a GCC
8875 builtin and then its argument prototype would still apply. */
8876 #ifdef __cplusplus
8877 extern "C"
8878 #endif
8879 char XauGetBestAuthByAddr ();
8881 main ()
8883 return XauGetBestAuthByAddr ();
8885 return 0;
8887 _ACEOF
8888 if ac_fn_c_try_link "$LINENO"; then :
8889 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8890 else
8891 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
8893 rm -f core conftest.err conftest.$ac_objext \
8894 conftest$ac_exeext conftest.$ac_ext
8895 LIBS=$ac_check_lib_save_LIBS
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
8898 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
8899 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
8900 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8901 else
8902 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8910 done
8913 CPPFLAGS="$ac_save_CPPFLAGS"
8914 else
8915 XLIB=""
8916 X_CFLAGS=""
8917 X_LIBS=""
8918 enable_winex11_drv=${enable_winex11_drv:-no}
8919 enable_opengl32=${enable_opengl32:-no}
8920 enable_glu32=${enable_glu32:-no}
8922 if test "x$XLIB" = "x"; then :
8923 case "x$with_x" in
8924 xno) ;;
8925 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
8926 without X support, which probably isn't what you want. You will need to install
8927 ${notice_platform}development packages of Xlib/Xfree86 at the very least.
8928 Use the --without-x option if you really want this." "$LINENO" 5 ;;
8929 esac
8933 XML2LIBS=""
8935 XML2INCL=""
8937 XSLTINCL=""
8939 if test "x$with_xml" != "xno"
8940 then
8941 ac_save_CPPFLAGS="$CPPFLAGS"
8942 if test "$PKG_CONFIG" != "false"
8943 then
8944 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8945 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8946 else
8947 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
8948 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
8950 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8951 for ac_header in libxml/parser.h
8952 do :
8953 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
8954 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
8955 cat >>confdefs.h <<_ACEOF
8956 #define HAVE_LIBXML_PARSER_H 1
8957 _ACEOF
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
8959 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
8960 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 ac_check_lib_save_LIBS=$LIBS
8964 LIBS="-lxml2 $ac_xml_libs $LIBS"
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8968 /* Override any GCC internal prototype to avoid an error.
8969 Use char because int might match the return type of a GCC
8970 builtin and then its argument prototype would still apply. */
8971 #ifdef __cplusplus
8972 extern "C"
8973 #endif
8974 char xmlParseMemory ();
8976 main ()
8978 return xmlParseMemory ();
8980 return 0;
8982 _ACEOF
8983 if ac_fn_c_try_link "$LINENO"; then :
8984 ac_cv_lib_xml2_xmlParseMemory=yes
8985 else
8986 ac_cv_lib_xml2_xmlParseMemory=no
8988 rm -f core conftest.err conftest.$ac_objext \
8989 conftest$ac_exeext conftest.$ac_ext
8990 LIBS=$ac_check_lib_save_LIBS
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
8993 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
8994 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
8996 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
8998 XML2LIBS="$ac_xml_libs"
8999 XML2INCL="$ac_xml_cflags"
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9003 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9004 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 ac_check_lib_save_LIBS=$LIBS
9008 LIBS="-lxml2 $ac_xml_libs $LIBS"
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9012 /* Override any GCC internal prototype to avoid an error.
9013 Use char because int might match the return type of a GCC
9014 builtin and then its argument prototype would still apply. */
9015 #ifdef __cplusplus
9016 extern "C"
9017 #endif
9018 char xmlReadMemory ();
9020 main ()
9022 return xmlReadMemory ();
9024 return 0;
9026 _ACEOF
9027 if ac_fn_c_try_link "$LINENO"; then :
9028 ac_cv_lib_xml2_xmlReadMemory=yes
9029 else
9030 ac_cv_lib_xml2_xmlReadMemory=no
9032 rm -f core conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9034 LIBS=$ac_check_lib_save_LIBS
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9037 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9038 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9040 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9045 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9046 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 ac_check_lib_save_LIBS=$LIBS
9050 LIBS="-lxml2 $ac_xml_libs $LIBS"
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9054 /* Override any GCC internal prototype to avoid an error.
9055 Use char because int might match the return type of a GCC
9056 builtin and then its argument prototype would still apply. */
9057 #ifdef __cplusplus
9058 extern "C"
9059 #endif
9060 char xmlNewDocPI ();
9062 main ()
9064 return xmlNewDocPI ();
9066 return 0;
9068 _ACEOF
9069 if ac_fn_c_try_link "$LINENO"; then :
9070 ac_cv_lib_xml2_xmlNewDocPI=yes
9071 else
9072 ac_cv_lib_xml2_xmlNewDocPI=no
9074 rm -f core conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9076 LIBS=$ac_check_lib_save_LIBS
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9079 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9080 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9082 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9089 done
9091 CPPFLAGS="$ac_save_CPPFLAGS"
9093 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9094 case "x$with_xml" in
9095 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9096 xno) ;;
9097 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9098 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9099 esac
9102 if test "x$with_xslt" != "xno"
9103 then
9104 if test "$PKG_CONFIG" != "false"
9105 then
9106 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9107 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9108 else
9109 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9110 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9112 ac_save_CPPFLAGS="$CPPFLAGS"
9113 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9114 for ac_header in libxslt/pattern.h libxslt/transform.h
9115 do :
9116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9117 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9118 # include <libxslt/pattern.h>
9119 #endif
9121 eval as_val=\$$as_ac_Header
9122 if test "x$as_val" = x""yes; then :
9123 cat >>confdefs.h <<_ACEOF
9124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9125 _ACEOF
9129 done
9131 CPPFLAGS="$ac_save_CPPFLAGS"
9132 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9133 then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9135 $as_echo_n "checking for -lxslt... " >&6; }
9136 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 ac_check_soname_save_LIBS=$LIBS
9140 LIBS="-lxslt $ac_xslt_libs $LIBS"
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9144 /* Override any GCC internal prototype to avoid an error.
9145 Use char because int might match the return type of a GCC
9146 builtin and then its argument prototype would still apply. */
9147 #ifdef __cplusplus
9148 extern "C"
9149 #endif
9150 char xsltCompilePattern ();
9152 main ()
9154 return xsltCompilePattern ();
9156 return 0;
9158 _ACEOF
9159 if ac_fn_c_try_link "$LINENO"; then :
9160 case "$LIBEXT" in
9161 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9162 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'` ;;
9163 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9164 esac
9166 rm -f core conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
9168 LIBS=$ac_check_soname_save_LIBS
9170 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9172 $as_echo "not found" >&6; }
9174 else
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9176 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9178 cat >>confdefs.h <<_ACEOF
9179 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9180 _ACEOF
9182 XSLTINCL="$ac_xslt_cflags"
9186 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9187 case "x$with_xslt" in
9188 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9189 xno) ;;
9190 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9191 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9192 esac
9195 HALINCL=""
9197 if test "x$with_hal" != "xno"
9198 then
9199 ac_save_CPPFLAGS="$CPPFLAGS"
9200 if test "$PKG_CONFIG" != "false"
9201 then
9202 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9203 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9204 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9206 for ac_header in dbus/dbus.h hal/libhal.h
9207 do :
9208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9209 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9210 eval as_val=\$$as_ac_Header
9211 if test "x$as_val" = x""yes; then :
9212 cat >>confdefs.h <<_ACEOF
9213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9214 _ACEOF
9218 done
9220 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9221 then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9223 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9224 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 ac_check_lib_save_LIBS=$LIBS
9228 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9232 /* Override any GCC internal prototype to avoid an error.
9233 Use char because int might match the return type of a GCC
9234 builtin and then its argument prototype would still apply. */
9235 #ifdef __cplusplus
9236 extern "C"
9237 #endif
9238 char dbus_connection_close ();
9240 main ()
9242 return dbus_connection_close ();
9244 return 0;
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"; then :
9248 ac_cv_lib_dbus_1_dbus_connection_close=yes
9249 else
9250 ac_cv_lib_dbus_1_dbus_connection_close=no
9252 rm -f core conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254 LIBS=$ac_check_lib_save_LIBS
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9257 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9258 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9260 $as_echo_n "checking for -lhal... " >&6; }
9261 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 ac_check_soname_save_LIBS=$LIBS
9265 LIBS="-lhal $ac_hal_libs $LIBS"
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9269 /* Override any GCC internal prototype to avoid an error.
9270 Use char because int might match the return type of a GCC
9271 builtin and then its argument prototype would still apply. */
9272 #ifdef __cplusplus
9273 extern "C"
9274 #endif
9275 char libhal_ctx_new ();
9277 main ()
9279 return libhal_ctx_new ();
9281 return 0;
9283 _ACEOF
9284 if ac_fn_c_try_link "$LINENO"; then :
9285 case "$LIBEXT" in
9286 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9287 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'` ;;
9288 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9289 esac
9291 rm -f core conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293 LIBS=$ac_check_soname_save_LIBS
9295 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9297 $as_echo "not found" >&6; }
9299 else
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9301 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9303 cat >>confdefs.h <<_ACEOF
9304 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9305 _ACEOF
9307 HALINCL="$ac_hal_cflags"
9312 CPPFLAGS="$ac_save_CPPFLAGS"
9314 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9315 case "x$with_hal" in
9316 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9317 xno) ;;
9318 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9319 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9320 esac
9323 if test "x$with_gnutls" != "xno"
9324 then
9325 ac_save_CPPFLAGS="$CPPFLAGS"
9326 if test "$PKG_CONFIG" != "false"
9327 then
9328 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9329 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9330 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9332 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9333 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 #include <gnutls/gnutls.h>
9338 main ()
9340 typeof(gnutls_mac_get_key_size) *pfunc;
9342 return 0;
9344 _ACEOF
9345 if ac_fn_c_try_compile "$LINENO"; then :
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9347 $as_echo_n "checking for -lgnutls... " >&6; }
9348 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 ac_check_soname_save_LIBS=$LIBS
9352 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9356 /* Override any GCC internal prototype to avoid an error.
9357 Use char because int might match the return type of a GCC
9358 builtin and then its argument prototype would still apply. */
9359 #ifdef __cplusplus
9360 extern "C"
9361 #endif
9362 char gnutls_global_init ();
9364 main ()
9366 return gnutls_global_init ();
9368 return 0;
9370 _ACEOF
9371 if ac_fn_c_try_link "$LINENO"; then :
9372 case "$LIBEXT" in
9373 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9374 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'` ;;
9375 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9376 esac
9378 rm -f core conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9380 LIBS=$ac_check_soname_save_LIBS
9382 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9384 $as_echo "not found" >&6; }
9386 else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9388 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9390 cat >>confdefs.h <<_ACEOF
9391 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9392 _ACEOF
9394 GNUTLSINCL="$ac_gnutls_cflags"
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 CPPFLAGS="$ac_save_CPPFLAGS"
9404 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9405 case "x$with_gnutls" in
9406 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9407 xno) ;;
9408 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9409 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9410 esac
9413 CURSESLIBS=""
9414 if test "$ac_cv_header_ncurses_h" = "yes"
9415 then
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9417 $as_echo_n "checking for -lncurses... " >&6; }
9418 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 ac_check_soname_save_LIBS=$LIBS
9422 LIBS="-lncurses $LIBS"
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9426 /* Override any GCC internal prototype to avoid an error.
9427 Use char because int might match the return type of a GCC
9428 builtin and then its argument prototype would still apply. */
9429 #ifdef __cplusplus
9430 extern "C"
9431 #endif
9432 char waddch ();
9434 main ()
9436 return waddch ();
9438 return 0;
9440 _ACEOF
9441 if ac_fn_c_try_link "$LINENO"; then :
9442 case "$LIBEXT" in
9443 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9444 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'` ;;
9445 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9446 esac
9448 rm -f core conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9450 LIBS=$ac_check_soname_save_LIBS
9452 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9454 $as_echo "not found" >&6; }
9456 else
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9458 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9460 cat >>confdefs.h <<_ACEOF
9461 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9462 _ACEOF
9464 CURSESLIBS="-lncurses"
9466 elif test "$ac_cv_header_curses_h" = "yes"
9467 then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9469 $as_echo_n "checking for -lcurses... " >&6; }
9470 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 ac_check_soname_save_LIBS=$LIBS
9474 LIBS="-lcurses $LIBS"
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9478 /* Override any GCC internal prototype to avoid an error.
9479 Use char because int might match the return type of a GCC
9480 builtin and then its argument prototype would still apply. */
9481 #ifdef __cplusplus
9482 extern "C"
9483 #endif
9484 char waddch ();
9486 main ()
9488 return waddch ();
9490 return 0;
9492 _ACEOF
9493 if ac_fn_c_try_link "$LINENO"; then :
9494 case "$LIBEXT" in
9495 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9496 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'` ;;
9497 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9498 esac
9500 rm -f core conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
9502 LIBS=$ac_check_soname_save_LIBS
9504 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9506 $as_echo "not found" >&6; }
9508 else
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9510 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9512 cat >>confdefs.h <<_ACEOF
9513 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9514 _ACEOF
9516 CURSESLIBS="-lcurses"
9519 ac_save_LIBS="$LIBS"
9520 LIBS="$LIBS $CURSESLIBS"
9521 for ac_func in mousemask
9522 do :
9523 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9524 if test "x$ac_cv_func_mousemask" = x""yes; then :
9525 cat >>confdefs.h <<_ACEOF
9526 #define HAVE_MOUSEMASK 1
9527 _ACEOF
9530 done
9532 LIBS="$ac_save_LIBS"
9533 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9534 case "x$with_curses" in
9535 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9536 xno) ;;
9537 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9538 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9539 esac
9542 if test "x$with_sane" != "xno"
9543 then
9544 ac_save_CPPFLAGS="$CPPFLAGS"
9545 # Extract the first word of "sane-config", so it can be a program name with args.
9546 set dummy sane-config; ac_word=$2
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548 $as_echo_n "checking for $ac_word... " >&6; }
9549 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 if test -n "$sane_devel"; then
9553 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9554 else
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 for as_dir in $PATH
9558 IFS=$as_save_IFS
9559 test -z "$as_dir" && as_dir=.
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9562 ac_cv_prog_sane_devel="sane-config"
9563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9564 break 2
9566 done
9567 done
9568 IFS=$as_save_IFS
9570 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9573 sane_devel=$ac_cv_prog_sane_devel
9574 if test -n "$sane_devel"; then
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9576 $as_echo "$sane_devel" >&6; }
9577 else
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579 $as_echo "no" >&6; }
9583 if test "$sane_devel" != "no"
9584 then
9585 ac_sane_incl="`$sane_devel --cflags`"
9586 ac_sane_libs="`$sane_devel --ldflags`"
9587 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9589 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9590 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9592 $as_echo_n "checking for -lsane... " >&6; }
9593 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 ac_check_soname_save_LIBS=$LIBS
9597 LIBS="-lsane $ac_sane_libs $LIBS"
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9601 /* Override any GCC internal prototype to avoid an error.
9602 Use char because int might match the return type of a GCC
9603 builtin and then its argument prototype would still apply. */
9604 #ifdef __cplusplus
9605 extern "C"
9606 #endif
9607 char sane_init ();
9609 main ()
9611 return sane_init ();
9613 return 0;
9615 _ACEOF
9616 if ac_fn_c_try_link "$LINENO"; then :
9617 case "$LIBEXT" in
9618 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9619 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'` ;;
9620 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9621 esac
9623 rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 LIBS=$ac_check_soname_save_LIBS
9627 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9629 $as_echo "not found" >&6; }
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9633 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9635 cat >>confdefs.h <<_ACEOF
9636 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9637 _ACEOF
9639 SANEINCL="$ac_sane_incl"
9645 CPPFLAGS="$ac_save_CPPFLAGS"
9647 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9648 case "x$with_sane" in
9649 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9650 xno) ;;
9651 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9652 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9653 esac
9656 if test "x$with_v4l" != "xno"
9657 then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9659 $as_echo_n "checking for -lv4l1... " >&6; }
9660 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 ac_check_soname_save_LIBS=$LIBS
9664 LIBS="-lv4l1 $LIBS"
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char v4l1_open ();
9676 main ()
9678 return v4l1_open ();
9680 return 0;
9682 _ACEOF
9683 if ac_fn_c_try_link "$LINENO"; then :
9684 case "$LIBEXT" in
9685 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9686 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'` ;;
9687 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9688 esac
9690 rm -f core conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692 LIBS=$ac_check_soname_save_LIBS
9694 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9696 $as_echo "not found" >&6; }
9698 else
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9700 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9702 cat >>confdefs.h <<_ACEOF
9703 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9704 _ACEOF
9709 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9710 case "x$with_v4l" in
9711 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9712 xno) ;;
9713 *) as_fn_error "libv4l ${notice_platform}development files not found.
9714 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9715 esac
9718 if test "x$with_gphoto" != "xno"
9719 then
9720 ac_save_CPPFLAGS="$CPPFLAGS"
9721 # Extract the first word of "gphoto2-config", so it can be a program name with args.
9722 set dummy gphoto2-config; ac_word=$2
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724 $as_echo_n "checking for $ac_word... " >&6; }
9725 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
9726 $as_echo_n "(cached) " >&6
9727 else
9728 if test -n "$gphoto2_devel"; then
9729 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9730 else
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 for as_dir in $PATH
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9738 ac_cv_prog_gphoto2_devel="gphoto2-config"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9742 done
9743 done
9744 IFS=$as_save_IFS
9746 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9749 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9750 if test -n "$gphoto2_devel"; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9752 $as_echo "$gphoto2_devel" >&6; }
9753 else
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9759 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9760 set dummy gphoto2-port-config; ac_word=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 if test -n "$gphoto2port_devel"; then
9767 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9768 else
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 for as_dir in $PATH
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9776 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 break 2
9780 done
9781 done
9782 IFS=$as_save_IFS
9784 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9787 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9788 if test -n "$gphoto2port_devel"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9790 $as_echo "$gphoto2port_devel" >&6; }
9791 else
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; }
9797 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9798 then
9799 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9800 ac_gphoto2_libs=""
9801 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9803 case "$i" in
9804 -L/usr/lib|-L/usr/lib64) ;;
9805 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9806 esac
9807 done
9808 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9810 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9811 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9812 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9814 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9815 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 ac_check_lib_save_LIBS=$LIBS
9819 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9823 /* Override any GCC internal prototype to avoid an error.
9824 Use char because int might match the return type of a GCC
9825 builtin and then its argument prototype would still apply. */
9826 #ifdef __cplusplus
9827 extern "C"
9828 #endif
9829 char gp_camera_new ();
9831 main ()
9833 return gp_camera_new ();
9835 return 0;
9837 _ACEOF
9838 if ac_fn_c_try_link "$LINENO"; then :
9839 ac_cv_lib_gphoto2_gp_camera_new=yes
9840 else
9841 ac_cv_lib_gphoto2_gp_camera_new=no
9843 rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 LIBS=$ac_check_lib_save_LIBS
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
9848 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9849 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
9851 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
9853 GPHOTO2LIBS="$ac_gphoto2_libs"
9855 GPHOTO2INCL="$ac_gphoto2_incl"
9862 CPPFLAGS="$ac_save_CPPFLAGS"
9864 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
9865 case "x$with_gphoto" in
9866 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
9867 xno) ;;
9868 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9869 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
9870 esac
9874 RESOLVLIBS=""
9876 if test "$ac_cv_header_resolv_h" = "yes"
9877 then
9878 ac_save_LIBS="$LIBS"
9879 LIBS="$LIBS -lresolv"
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9882 #ifdef HAVE_NETINET_IN_H
9883 #include <netinet/in.h>
9884 #endif
9885 #include <resolv.h>
9887 main ()
9889 res_init();
9891 return 0;
9893 _ACEOF
9894 if ac_fn_c_try_link "$LINENO"; then :
9896 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
9898 RESOLVLIBS="-lresolv"
9900 rm -f core conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
9902 LIBS="$ac_save_LIBS"
9905 LCMSLIBS=""
9907 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9908 then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
9910 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
9911 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 ac_check_lib_save_LIBS=$LIBS
9915 LIBS="-llcms $LIBS"
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9919 /* Override any GCC internal prototype to avoid an error.
9920 Use char because int might match the return type of a GCC
9921 builtin and then its argument prototype would still apply. */
9922 #ifdef __cplusplus
9923 extern "C"
9924 #endif
9925 char cmsOpenProfileFromFile ();
9927 main ()
9929 return cmsOpenProfileFromFile ();
9931 return 0;
9933 _ACEOF
9934 if ac_fn_c_try_link "$LINENO"; then :
9935 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
9936 else
9937 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
9939 rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 LIBS=$ac_check_lib_save_LIBS
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
9944 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
9945 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
9947 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
9949 LCMSLIBS="-llcms"
9953 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
9954 case "x$with_cms" in
9955 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
9956 xno) ;;
9957 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
9958 This is an error since --with-cms was requested." "$LINENO" 5 ;;
9959 esac
9962 if test "x$with_freetype" != "xno"
9963 then
9964 for ac_prog in freetype-config freetype2-config
9966 # Extract the first word of "$ac_prog", so it can be a program name with args.
9967 set dummy $ac_prog; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if test "${ac_cv_prog_ft_devel+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 if test -n "$ft_devel"; then
9974 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9975 else
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 for as_dir in $PATH
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9983 ac_cv_prog_ft_devel="$ac_prog"
9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 break 2
9987 done
9988 done
9989 IFS=$as_save_IFS
9993 ft_devel=$ac_cv_prog_ft_devel
9994 if test -n "$ft_devel"; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
9996 $as_echo "$ft_devel" >&6; }
9997 else
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10003 test -n "$ft_devel" && break
10004 done
10005 test -n "$ft_devel" || ft_devel="no"
10007 if test "$ft_devel" != "no"
10008 then
10009 ac_freetype_incl=`$ft_devel --cflags`
10010 ac_freetype_libs=`$ft_devel --libs`
10012 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10014 $as_echo_n "checking for -lfreetype... " >&6; }
10015 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 ac_check_soname_save_LIBS=$LIBS
10019 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10023 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10026 #ifdef __cplusplus
10027 extern "C"
10028 #endif
10029 char FT_Init_FreeType ();
10031 main ()
10033 return FT_Init_FreeType ();
10035 return 0;
10037 _ACEOF
10038 if ac_fn_c_try_link "$LINENO"; then :
10039 case "$LIBEXT" in
10040 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10041 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'` ;;
10042 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10043 esac
10045 rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_soname_save_LIBS
10049 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10051 $as_echo "not found" >&6; }
10052 ft_lib=no
10053 else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10055 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10057 cat >>confdefs.h <<_ACEOF
10058 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10059 _ACEOF
10061 ft_lib=yes
10063 if test "$ft_lib" = "yes"
10064 then
10065 ac_save_CPPFLAGS="$CPPFLAGS"
10066 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10067 for ac_header in ft2build.h \
10068 freetype/freetype.h \
10069 freetype/ftglyph.h \
10070 freetype/fttypes.h \
10071 freetype/tttables.h \
10072 freetype/ftsnames.h \
10073 freetype/ttnameid.h \
10074 freetype/ftoutln.h \
10075 freetype/ftwinfnt.h \
10076 freetype/ftmodapi.h \
10077 freetype/ftlcdfil.h \
10078 freetype/internal/sfnt.h
10079 do :
10080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10081 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10082 # include <ft2build.h>
10083 #endif
10085 eval as_val=\$$as_ac_Header
10086 if test "x$as_val" = x""yes; then :
10087 cat >>confdefs.h <<_ACEOF
10088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10089 _ACEOF
10093 done
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097 #include <ft2build.h>
10098 #include <freetype/fttrigon.h>
10099 _ACEOF
10100 if ac_fn_c_try_cpp "$LINENO"; then :
10102 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10104 wine_cv_fttrigon=yes
10105 else
10106 wine_cv_fttrigon=no
10108 rm -f conftest.err conftest.$ac_ext
10109 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10111 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10113 cat >>confdefs.h <<_ACEOF
10114 #define HAVE_FT_TRUETYPEENGINETYPE 1
10115 _ACEOF
10120 ac_save_CFLAGS="$CFLAGS"
10121 CFLAGS="$CFLAGS $ac_freetype_libs"
10122 for ac_func in FT_Load_Sfnt_Table
10123 do :
10124 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10125 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10126 cat >>confdefs.h <<_ACEOF
10127 #define HAVE_FT_LOAD_SFNT_TABLE 1
10128 _ACEOF
10131 done
10133 CFLAGS="$ac_save_CFLAGS"
10134 CPPFLAGS="$ac_save_CPPFLAGS"
10135 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10136 then
10138 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10140 FREETYPELIBS="$ac_freetype_libs"
10142 FREETYPEINCL="$ac_freetype_incl"
10147 if test "x$FREETYPELIBS" = "x"; then :
10148 case "x$with_freetype" in
10149 xno) ;;
10150 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10151 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10152 esac
10154 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10157 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10158 if test "${ac_cv_c_ppdev+set}" = set; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 #ifdef HAVE_SYS_IOCTL_H
10164 # include <sys/ioctl.h>
10165 #endif
10166 #include <linux/ppdev.h>
10168 main ()
10170 ioctl (1,PPCLAIM,0)
10172 return 0;
10174 _ACEOF
10175 if ac_fn_c_try_compile "$LINENO"; then :
10176 ac_cv_c_ppdev="yes"
10177 else
10178 ac_cv_c_ppdev="no"
10180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10183 $as_echo "$ac_cv_c_ppdev" >&6; }
10184 if test "$ac_cv_c_ppdev" = "yes"
10185 then
10187 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10191 ac_wine_check_funcs_save_LIBS="$LIBS"
10192 LIBS="$LIBS $LIBPTHREAD"
10193 for ac_func in \
10194 pthread_attr_get_np \
10195 pthread_getattr_np \
10196 pthread_get_stackaddr_np \
10197 pthread_get_stacksize_np
10198 do :
10199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10200 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10201 eval as_val=\$$as_ac_var
10202 if test "x$as_val" = x""yes; then :
10203 cat >>confdefs.h <<_ACEOF
10204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10205 _ACEOF
10208 done
10210 LIBS="$ac_wine_check_funcs_save_LIBS"
10212 if test "$ac_cv_header_zlib_h" = "yes"
10213 then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10215 $as_echo_n "checking for inflate in -lz... " >&6; }
10216 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 ac_check_lib_save_LIBS=$LIBS
10220 LIBS="-lz $LIBS"
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10224 /* Override any GCC internal prototype to avoid an error.
10225 Use char because int might match the return type of a GCC
10226 builtin and then its argument prototype would still apply. */
10227 #ifdef __cplusplus
10228 extern "C"
10229 #endif
10230 char inflate ();
10232 main ()
10234 return inflate ();
10236 return 0;
10238 _ACEOF
10239 if ac_fn_c_try_link "$LINENO"; then :
10240 ac_cv_lib_z_inflate=yes
10241 else
10242 ac_cv_lib_z_inflate=no
10244 rm -f core conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10249 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10250 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10252 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10254 ZLIB="-lz"
10260 if test "x$with_esd" != xno
10261 then
10262 save_CFLAGS="$CFLAGS"
10263 # Extract the first word of "esd-config", so it can be a program name with args.
10264 set dummy esd-config; ac_word=$2
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266 $as_echo_n "checking for $ac_word... " >&6; }
10267 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 case $ESDCONFIG in
10271 [\\/]* | ?:[\\/]*)
10272 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276 for as_dir in $PATH
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
10280 for ac_exec_ext in '' $ac_executable_extensions; do
10281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10282 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 break 2
10286 done
10287 done
10288 IFS=$as_save_IFS
10290 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10292 esac
10294 ESDCONFIG=$ac_cv_path_ESDCONFIG
10295 if test -n "$ESDCONFIG"; then
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10297 $as_echo "$ESDCONFIG" >&6; }
10298 else
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300 $as_echo "no" >&6; }
10304 if test "x$ESDCONFIG" != "xno"
10305 then
10306 ac_esd_incl=""
10307 for i in `$ESDCONFIG --cflags`
10309 case "$i" in
10310 -I*) ac_esd_incl="$ac_esd_incl $i";;
10311 esac
10312 done
10313 ac_esd_libs=`$ESDCONFIG --libs`
10314 CFLAGS="$CFLAGS $ac_esd_incl"
10316 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10317 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10318 if test "x$ac_cv_header_esd_h" = x""yes; then :
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10320 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10321 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 ac_check_lib_save_LIBS=$LIBS
10325 LIBS="-lesd $ac_esd_libs $LIBS"
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10329 /* Override any GCC internal prototype to avoid an error.
10330 Use char because int might match the return type of a GCC
10331 builtin and then its argument prototype would still apply. */
10332 #ifdef __cplusplus
10333 extern "C"
10334 #endif
10335 char esd_open_sound ();
10337 main ()
10339 return esd_open_sound ();
10341 return 0;
10343 _ACEOF
10344 if ac_fn_c_try_link "$LINENO"; then :
10345 ac_cv_lib_esd_esd_open_sound=yes
10346 else
10347 ac_cv_lib_esd_esd_open_sound=no
10349 rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10351 LIBS=$ac_check_lib_save_LIBS
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10354 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10355 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10356 ESDINCL="$ac_esd_incl"
10358 ESDLIBS="$ac_esd_libs"
10361 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10368 CFLAGS="$save_CFLAGS"
10371 ALSALIBS=""
10373 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10374 then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10376 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10377 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10378 $as_echo_n "(cached) " >&6
10379 else
10380 ac_check_lib_save_LIBS=$LIBS
10381 LIBS="-lasound $LIBS"
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10385 /* Override any GCC internal prototype to avoid an error.
10386 Use char because int might match the return type of a GCC
10387 builtin and then its argument prototype would still apply. */
10388 #ifdef __cplusplus
10389 extern "C"
10390 #endif
10391 char snd_pcm_hw_params_get_access ();
10393 main ()
10395 return snd_pcm_hw_params_get_access ();
10397 return 0;
10399 _ACEOF
10400 if ac_fn_c_try_link "$LINENO"; then :
10401 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10402 else
10403 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10405 rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407 LIBS=$ac_check_lib_save_LIBS
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10410 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10411 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414 #ifdef HAVE_ALSA_ASOUNDLIB_H
10415 #include <alsa/asoundlib.h>
10416 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10417 #include <sys/asoundlib.h>
10418 #endif
10420 main ()
10422 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10424 return 0;
10426 _ACEOF
10427 if ac_fn_c_try_compile "$LINENO"; then :
10429 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10431 ALSALIBS="-lasound"
10433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10438 AUDIOIOLIBS=""
10440 if test "$ac_cv_header_libaudioio_h" = "yes"
10441 then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10443 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10444 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10445 $as_echo_n "(cached) " >&6
10446 else
10447 ac_check_lib_save_LIBS=$LIBS
10448 LIBS="-laudioio $LIBS"
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10452 /* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10455 #ifdef __cplusplus
10456 extern "C"
10457 #endif
10458 char AudioIOGetVersion ();
10460 main ()
10462 return AudioIOGetVersion ();
10464 return 0;
10466 _ACEOF
10467 if ac_fn_c_try_link "$LINENO"; then :
10468 ac_cv_lib_audioio_AudioIOGetVersion=yes
10469 else
10470 ac_cv_lib_audioio_AudioIOGetVersion=no
10472 rm -f core conftest.err conftest.$ac_objext \
10473 conftest$ac_exeext conftest.$ac_ext
10474 LIBS=$ac_check_lib_save_LIBS
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10477 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10478 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10479 AUDIOIOLIBS="-laudioio"
10481 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10488 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10489 then
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10491 $as_echo_n "checking for -lcapi20... " >&6; }
10492 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10493 $as_echo_n "(cached) " >&6
10494 else
10495 ac_check_soname_save_LIBS=$LIBS
10496 LIBS="-lcapi20 $LIBS"
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10500 /* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 char capi20_register ();
10508 main ()
10510 return capi20_register ();
10512 return 0;
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516 case "$LIBEXT" in
10517 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10518 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'` ;;
10519 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10520 esac
10522 rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10524 LIBS=$ac_check_soname_save_LIBS
10526 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10528 $as_echo "not found" >&6; }
10530 else
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10532 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10534 cat >>confdefs.h <<_ACEOF
10535 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10536 _ACEOF
10541 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10542 case "x$with_capi" in
10543 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10544 xno) ;;
10545 *) as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10546 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10547 esac
10550 CUPSINCL=""
10552 if test "x$with_cups" != "xno"
10553 then
10554 ac_save_CPPFLAGS="$CPPFLAGS"
10555 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10556 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10557 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10558 for ac_header in cups/cups.h
10559 do :
10560 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10561 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10562 cat >>confdefs.h <<_ACEOF
10563 #define HAVE_CUPS_CUPS_H 1
10564 _ACEOF
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10566 $as_echo_n "checking for -lcups... " >&6; }
10567 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10568 $as_echo_n "(cached) " >&6
10569 else
10570 ac_check_soname_save_LIBS=$LIBS
10571 LIBS="-lcups $ac_cups_libs $LIBS"
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10575 /* Override any GCC internal prototype to avoid an error.
10576 Use char because int might match the return type of a GCC
10577 builtin and then its argument prototype would still apply. */
10578 #ifdef __cplusplus
10579 extern "C"
10580 #endif
10581 char cupsGetDefault ();
10583 main ()
10585 return cupsGetDefault ();
10587 return 0;
10589 _ACEOF
10590 if ac_fn_c_try_link "$LINENO"; then :
10591 case "$LIBEXT" in
10592 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10593 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'` ;;
10594 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10595 esac
10597 rm -f core conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_soname_save_LIBS
10601 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10603 $as_echo "not found" >&6; }
10605 else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10607 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10609 cat >>confdefs.h <<_ACEOF
10610 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10611 _ACEOF
10613 CUPSINCL="$ac_cups_cflags"
10617 done
10619 CPPFLAGS="$ac_save_CPPFLAGS"
10621 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10622 case "x$with_cups" in
10623 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10624 xno) ;;
10625 *) as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10626 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10627 esac
10630 if test "$ac_cv_header_jack_jack_h" = "yes"
10631 then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
10633 $as_echo_n "checking for -ljack... " >&6; }
10634 if test "${ac_cv_lib_soname_jack+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 ac_check_soname_save_LIBS=$LIBS
10638 LIBS="-ljack $LIBS"
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10642 /* Override any GCC internal prototype to avoid an error.
10643 Use char because int might match the return type of a GCC
10644 builtin and then its argument prototype would still apply. */
10645 #ifdef __cplusplus
10646 extern "C"
10647 #endif
10648 char jack_client_new ();
10650 main ()
10652 return jack_client_new ();
10654 return 0;
10656 _ACEOF
10657 if ac_fn_c_try_link "$LINENO"; then :
10658 case "$LIBEXT" in
10659 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10660 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10661 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10662 esac
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_soname_save_LIBS
10668 if test "x$ac_cv_lib_soname_jack" = "x"; then :
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10670 $as_echo "not found" >&6; }
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
10674 $as_echo "$ac_cv_lib_soname_jack" >&6; }
10676 cat >>confdefs.h <<_ACEOF
10677 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10678 _ACEOF
10684 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10685 then
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10687 $as_echo_n "checking for -lfontconfig... " >&6; }
10688 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10689 $as_echo_n "(cached) " >&6
10690 else
10691 ac_check_soname_save_LIBS=$LIBS
10692 LIBS="-lfontconfig $LIBS"
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char FcInit ();
10704 main ()
10706 return FcInit ();
10708 return 0;
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712 case "$LIBEXT" in
10713 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10714 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'` ;;
10715 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10716 esac
10718 rm -f core conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
10720 LIBS=$ac_check_soname_save_LIBS
10722 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10724 $as_echo "not found" >&6; }
10726 else
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10728 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10730 cat >>confdefs.h <<_ACEOF
10731 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10732 _ACEOF
10736 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
10737 then
10738 ac_save_CPPFLAGS="$CPPFLAGS"
10739 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10740 $as_unset ac_cv_header_fontconfig_fontconfig_h
10741 for ac_header in fontconfig/fontconfig.h
10742 do :
10743 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10744 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
10745 cat >>confdefs.h <<_ACEOF
10746 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
10747 _ACEOF
10751 done
10753 CPPFLAGS="$ac_save_CPPFLAGS"
10754 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10755 then
10756 FONTCONFIGINCL="$X_CFLAGS"
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10759 $as_echo_n "checking for -lfontconfig... " >&6; }
10760 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 ac_check_soname_save_LIBS=$LIBS
10764 LIBS="-lfontconfig $X_LIBS $LIBS"
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10768 /* Override any GCC internal prototype to avoid an error.
10769 Use char because int might match the return type of a GCC
10770 builtin and then its argument prototype would still apply. */
10771 #ifdef __cplusplus
10772 extern "C"
10773 #endif
10774 char FcInit ();
10776 main ()
10778 return FcInit ();
10780 return 0;
10782 _ACEOF
10783 if ac_fn_c_try_link "$LINENO"; then :
10784 case "$LIBEXT" in
10785 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10786 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'` ;;
10787 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10788 esac
10790 rm -f core conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10792 LIBS=$ac_check_soname_save_LIBS
10794 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10796 $as_echo "not found" >&6; }
10798 else
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10800 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10802 cat >>confdefs.h <<_ACEOF
10803 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10804 _ACEOF
10810 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10811 case "x$with_fontconfig" in
10812 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
10813 xno) ;;
10814 *) as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10815 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
10816 esac
10819 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10820 then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
10822 $as_echo_n "checking for -lssl... " >&6; }
10823 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 ac_check_soname_save_LIBS=$LIBS
10827 LIBS="-lssl $LIBS"
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10834 #ifdef __cplusplus
10835 extern "C"
10836 #endif
10837 char SSL_library_init ();
10839 main ()
10841 return SSL_library_init ();
10843 return 0;
10845 _ACEOF
10846 if ac_fn_c_try_link "$LINENO"; then :
10847 case "$LIBEXT" in
10848 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10849 dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep "libssl\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10850 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10851 esac
10853 rm -f core conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_soname_save_LIBS
10857 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10859 $as_echo "not found" >&6; }
10861 else
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
10863 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
10865 cat >>confdefs.h <<_ACEOF
10866 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
10867 _ACEOF
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
10872 $as_echo_n "checking for -lcrypto... " >&6; }
10873 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 ac_check_soname_save_LIBS=$LIBS
10877 LIBS="-lcrypto $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 BIO_new_socket ();
10889 main ()
10891 return BIO_new_socket ();
10893 return 0;
10895 _ACEOF
10896 if ac_fn_c_try_link "$LINENO"; then :
10897 case "$LIBEXT" in
10898 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10899 dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep "libcrypto\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10900 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10901 esac
10903 rm -f core conftest.err conftest.$ac_objext \
10904 conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_soname_save_LIBS
10907 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10909 $as_echo "not found" >&6; }
10911 else
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
10913 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
10915 cat >>confdefs.h <<_ACEOF
10916 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
10917 _ACEOF
10922 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
10923 case "x$with_openssl" in
10924 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
10925 xno) ;;
10926 *) as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
10927 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
10928 esac
10931 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
10932 then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
10934 $as_echo_n "checking for -lgsm... " >&6; }
10935 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 ac_check_soname_save_LIBS=$LIBS
10939 LIBS="-lgsm $LIBS"
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10943 /* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10946 #ifdef __cplusplus
10947 extern "C"
10948 #endif
10949 char gsm_create ();
10951 main ()
10953 return gsm_create ();
10955 return 0;
10957 _ACEOF
10958 if ac_fn_c_try_link "$LINENO"; then :
10959 case "$LIBEXT" in
10960 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10961 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'` ;;
10962 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10963 esac
10965 rm -f core conftest.err conftest.$ac_objext \
10966 conftest$ac_exeext conftest.$ac_ext
10967 LIBS=$ac_check_soname_save_LIBS
10969 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10971 $as_echo "not found" >&6; }
10973 else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
10975 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
10977 cat >>confdefs.h <<_ACEOF
10978 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
10979 _ACEOF
10984 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10985 case "x$with_gsm" in
10986 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
10987 xno) ;;
10988 *) as_fn_error "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
10989 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
10990 esac
10993 if test "$ac_cv_header_jpeglib_h" = "yes"
10994 then
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
10996 $as_echo_n "checking for -ljpeg... " >&6; }
10997 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 ac_check_soname_save_LIBS=$LIBS
11001 LIBS="-ljpeg $LIBS"
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11005 /* Override any GCC internal prototype to avoid an error.
11006 Use char because int might match the return type of a GCC
11007 builtin and then its argument prototype would still apply. */
11008 #ifdef __cplusplus
11009 extern "C"
11010 #endif
11011 char jpeg_start_decompress ();
11013 main ()
11015 return jpeg_start_decompress ();
11017 return 0;
11019 _ACEOF
11020 if ac_fn_c_try_link "$LINENO"; then :
11021 case "$LIBEXT" in
11022 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11023 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'` ;;
11024 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11025 esac
11027 rm -f core conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029 LIBS=$ac_check_soname_save_LIBS
11031 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11033 $as_echo "not found" >&6; }
11035 else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11037 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11039 cat >>confdefs.h <<_ACEOF
11040 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11041 _ACEOF
11046 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11047 case "x$with_jpeg" in
11048 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11049 xno) ;;
11050 *) as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11051 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11052 esac
11055 if test "$ac_cv_header_png_h" = "yes"
11056 then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11058 $as_echo_n "checking for -lpng... " >&6; }
11059 if test "${ac_cv_lib_soname_png+set}" = set; then :
11060 $as_echo_n "(cached) " >&6
11061 else
11062 ac_check_soname_save_LIBS=$LIBS
11063 LIBS="-lpng -lm -lz $LIBS"
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11067 /* Override any GCC internal prototype to avoid an error.
11068 Use char because int might match the return type of a GCC
11069 builtin and then its argument prototype would still apply. */
11070 #ifdef __cplusplus
11071 extern "C"
11072 #endif
11073 char png_create_read_struct ();
11075 main ()
11077 return png_create_read_struct ();
11079 return 0;
11081 _ACEOF
11082 if ac_fn_c_try_link "$LINENO"; then :
11083 case "$LIBEXT" in
11084 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11085 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'` ;;
11086 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11087 esac
11089 rm -f core conftest.err conftest.$ac_objext \
11090 conftest$ac_exeext conftest.$ac_ext
11091 LIBS=$ac_check_soname_save_LIBS
11093 if test "x$ac_cv_lib_soname_png" = "x"; then :
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11095 $as_echo "not found" >&6; }
11097 else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11099 $as_echo "$ac_cv_lib_soname_png" >&6; }
11101 cat >>confdefs.h <<_ACEOF
11102 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11103 _ACEOF
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11108 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11109 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 ac_check_lib_save_LIBS=$LIBS
11113 LIBS="-lpng -lm -lz $LIBS"
11114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11120 #ifdef __cplusplus
11121 extern "C"
11122 #endif
11123 char png_set_expand_gray_1_2_4_to_8 ();
11125 main ()
11127 return png_set_expand_gray_1_2_4_to_8 ();
11129 return 0;
11131 _ACEOF
11132 if ac_fn_c_try_link "$LINENO"; then :
11133 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11134 else
11135 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11137 rm -f core conftest.err conftest.$ac_objext \
11138 conftest$ac_exeext conftest.$ac_ext
11139 LIBS=$ac_check_lib_save_LIBS
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11142 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11143 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11145 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11150 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11151 then
11152 ac_save_CPPFLAGS="$CPPFLAGS"
11153 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11154 $as_unset ac_cv_header_png_h
11155 for ac_header in png.h
11156 do :
11157 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11158 if test "x$ac_cv_header_png_h" = x""yes; then :
11159 cat >>confdefs.h <<_ACEOF
11160 #define HAVE_PNG_H 1
11161 _ACEOF
11165 done
11167 CPPFLAGS="$ac_save_CPPFLAGS"
11168 if test "$ac_cv_header_png_h" = "yes"
11169 then
11170 PNGINCL="$X_CFLAGS"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11173 $as_echo_n "checking for -lpng... " >&6; }
11174 if test "${ac_cv_lib_soname_png+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
11176 else
11177 ac_check_soname_save_LIBS=$LIBS
11178 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11182 /* Override any GCC internal prototype to avoid an error.
11183 Use char because int might match the return type of a GCC
11184 builtin and then its argument prototype would still apply. */
11185 #ifdef __cplusplus
11186 extern "C"
11187 #endif
11188 char png_create_read_struct ();
11190 main ()
11192 return png_create_read_struct ();
11194 return 0;
11196 _ACEOF
11197 if ac_fn_c_try_link "$LINENO"; then :
11198 case "$LIBEXT" in
11199 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11200 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'` ;;
11201 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11202 esac
11204 rm -f core conftest.err conftest.$ac_objext \
11205 conftest$ac_exeext conftest.$ac_ext
11206 LIBS=$ac_check_soname_save_LIBS
11208 if test "x$ac_cv_lib_soname_png" = "x"; then :
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11210 $as_echo "not found" >&6; }
11212 else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11214 $as_echo "$ac_cv_lib_soname_png" >&6; }
11216 cat >>confdefs.h <<_ACEOF
11217 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11218 _ACEOF
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11223 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11224 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 ac_check_lib_save_LIBS=$LIBS
11228 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11232 /* Override any GCC internal prototype to avoid an error.
11233 Use char because int might match the return type of a GCC
11234 builtin and then its argument prototype would still apply. */
11235 #ifdef __cplusplus
11236 extern "C"
11237 #endif
11238 char png_set_expand_gray_1_2_4_to_8 ();
11240 main ()
11242 return png_set_expand_gray_1_2_4_to_8 ();
11244 return 0;
11246 _ACEOF
11247 if ac_fn_c_try_link "$LINENO"; then :
11248 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11249 else
11250 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11254 LIBS=$ac_check_lib_save_LIBS
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11257 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11258 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11259 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11265 if test "x$ac_cv_lib_soname_png" = "x"; then :
11266 case "x$with_png" in
11267 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11268 xno) ;;
11269 *) as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11270 This is an error since --with-png was requested." "$LINENO" 5 ;;
11271 esac
11274 if test "$ac_cv_header_tiffio_h" = "yes"
11275 then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11277 $as_echo_n "checking for -ltiff... " >&6; }
11278 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 ac_check_soname_save_LIBS=$LIBS
11282 LIBS="-ltiff $LIBS"
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11286 /* Override any GCC internal prototype to avoid an error.
11287 Use char because int might match the return type of a GCC
11288 builtin and then its argument prototype would still apply. */
11289 #ifdef __cplusplus
11290 extern "C"
11291 #endif
11292 char TIFFClientOpen ();
11294 main ()
11296 return TIFFClientOpen ();
11298 return 0;
11300 _ACEOF
11301 if ac_fn_c_try_link "$LINENO"; then :
11302 case "$LIBEXT" in
11303 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11304 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'` ;;
11305 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11306 esac
11308 rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310 LIBS=$ac_check_soname_save_LIBS
11312 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11314 $as_echo "not found" >&6; }
11316 else
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11318 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11320 cat >>confdefs.h <<_ACEOF
11321 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11322 _ACEOF
11327 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11328 case "x$with_tiff" in
11329 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11330 xno) ;;
11331 *) as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11332 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11333 esac
11336 if test "$ac_cv_header_mpg123_h" = "yes"
11337 then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11339 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11340 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11342 else
11343 ac_check_lib_save_LIBS=$LIBS
11344 LIBS="-lmpg123 $LIBS"
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11348 /* Override any GCC internal prototype to avoid an error.
11349 Use char because int might match the return type of a GCC
11350 builtin and then its argument prototype would still apply. */
11351 #ifdef __cplusplus
11352 extern "C"
11353 #endif
11354 char mpg123_feed ();
11356 main ()
11358 return mpg123_feed ();
11360 return 0;
11362 _ACEOF
11363 if ac_fn_c_try_link "$LINENO"; then :
11364 ac_cv_lib_mpg123_mpg123_feed=yes
11365 else
11366 ac_cv_lib_mpg123_mpg123_feed=no
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 LIBS=$ac_check_lib_save_LIBS
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11373 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11374 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11375 LIBMPG123="-lmpg123"
11380 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11381 case "x$with_mpg123" in
11382 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11383 xno) ;;
11384 *) as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11385 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11386 esac
11388 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_func_AudioFileStreamOpen" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
11390 if test "$ac_cv_header_AL_al_h" = "yes"
11391 then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alGetSource3i in -lopenal" >&5
11393 $as_echo_n "checking for alGetSource3i in -lopenal... " >&6; }
11394 if test "${ac_cv_lib_openal_alGetSource3i+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-lopenal $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 alGetSource3i ();
11410 main ()
11412 return alGetSource3i ();
11414 return 0;
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 ac_cv_lib_openal_alGetSource3i=yes
11419 else
11420 ac_cv_lib_openal_alGetSource3i=no
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openal_alGetSource3i" >&5
11427 $as_echo "$ac_cv_lib_openal_alGetSource3i" >&6; }
11428 if test "x$ac_cv_lib_openal_alGetSource3i" = x""yes; then :
11429 LIBOPENAL="-lopenal"
11434 if test "x$ac_cv_lib_openal_alGetSource3i" != xyes; then :
11435 case "x$with_openal" in
11436 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11437 xno) ;;
11438 *) as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11439 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11440 esac
11442 test "x$ac_cv_lib_openal_alGetSource3i" = xyes || enable_openal32=${enable_openal32:-no}
11444 if test "$ac_cv_header_kstat_h" = "yes"
11445 then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11447 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11448 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 ac_check_lib_save_LIBS=$LIBS
11452 LIBS="-lkstat $LIBS"
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11456 /* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459 #ifdef __cplusplus
11460 extern "C"
11461 #endif
11462 char kstat_open ();
11464 main ()
11466 return kstat_open ();
11468 return 0;
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472 ac_cv_lib_kstat_kstat_open=yes
11473 else
11474 ac_cv_lib_kstat_kstat_open=no
11476 rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 LIBS=$ac_check_lib_save_LIBS
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11481 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11482 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11484 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11486 LIBKSTAT="-lkstat"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11493 $as_echo_n "checking for -lodbc... " >&6; }
11494 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 ac_check_soname_save_LIBS=$LIBS
11498 LIBS="-lodbc $LIBS"
11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11505 #ifdef __cplusplus
11506 extern "C"
11507 #endif
11508 char SQLConnect ();
11510 main ()
11512 return SQLConnect ();
11514 return 0;
11516 _ACEOF
11517 if ac_fn_c_try_link "$LINENO"; then :
11518 case "$LIBEXT" in
11519 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11520 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'` ;;
11521 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11522 esac
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_soname_save_LIBS
11528 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11530 $as_echo "not found" >&6; }
11531 cat >>confdefs.h <<_ACEOF
11532 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11533 _ACEOF
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11537 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11539 cat >>confdefs.h <<_ACEOF
11540 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11541 _ACEOF
11546 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
11547 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11548 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11549 "$ac_cv_header_soundcard_h" != "yes" -a \
11550 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11551 then
11552 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11556 EXTRACFLAGS=""
11558 if test "x${GCC}" = "xyes"
11559 then
11560 EXTRACFLAGS="-Wall -pipe"
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11563 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11564 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 if test "$cross_compiling" = yes; then :
11568 ac_cv_c_gcc_strength_bug="yes"
11569 else
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11572 int L[4] = {0,1,2,3};
11574 main ()
11576 static int Array[3];
11577 unsigned int B = 3;
11578 int i;
11579 for(i=0; i<B; i++) Array[i] = i - 3;
11580 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11581 L[i] = 4;
11582 return (Array[1] != -2 || L[2] != 3)
11584 return 0;
11586 _ACEOF
11587 if ac_fn_c_try_run "$LINENO"; then :
11588 ac_cv_c_gcc_strength_bug="no"
11589 else
11590 ac_cv_c_gcc_strength_bug="yes"
11592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11593 conftest.$ac_objext conftest.beam conftest.$ac_ext
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11598 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11599 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11600 then
11601 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11605 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11606 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
11608 else
11609 ac_wine_try_cflags_saved=$CFLAGS
11610 CFLAGS="$CFLAGS -fno-builtin"
11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11613 int main(int argc, char **argv) { return 0; }
11614 _ACEOF
11615 if ac_fn_c_try_link "$LINENO"; then :
11616 ac_cv_cflags__fno_builtin=yes
11617 else
11618 ac_cv_cflags__fno_builtin=no
11620 rm -f core conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 CFLAGS=$ac_wine_try_cflags_saved
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11625 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11626 if test $ac_cv_cflags__fno_builtin = yes; then :
11627 BUILTINFLAG="-fno-builtin"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11631 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11632 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 ac_wine_try_cflags_saved=$CFLAGS
11636 CFLAGS="$CFLAGS -fno-strict-aliasing"
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639 int main(int argc, char **argv) { return 0; }
11640 _ACEOF
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_cflags__fno_strict_aliasing=yes
11643 else
11644 ac_cv_cflags__fno_strict_aliasing=no
11646 rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648 CFLAGS=$ac_wine_try_cflags_saved
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11651 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11652 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11653 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11656 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11657 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 ac_wine_try_cflags_saved=$CFLAGS
11661 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664 int main(int argc, char **argv) { return 0; }
11665 _ACEOF
11666 if ac_fn_c_try_link "$LINENO"; then :
11667 ac_cv_cflags__Wdeclaration_after_statement=yes
11668 else
11669 ac_cv_cflags__Wdeclaration_after_statement=no
11671 rm -f core conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11673 CFLAGS=$ac_wine_try_cflags_saved
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11676 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11677 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11678 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11681 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11682 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 ac_wine_try_cflags_saved=$CFLAGS
11686 CFLAGS="$CFLAGS -Wstrict-prototypes"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689 int main(int argc, char **argv) { return 0; }
11690 _ACEOF
11691 if ac_fn_c_try_link "$LINENO"; then :
11692 ac_cv_cflags__Wstrict_prototypes=yes
11693 else
11694 ac_cv_cflags__Wstrict_prototypes=no
11696 rm -f core conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11698 CFLAGS=$ac_wine_try_cflags_saved
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11701 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11702 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11703 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11706 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
11707 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 ac_wine_try_cflags_saved=$CFLAGS
11711 CFLAGS="$CFLAGS -Wtype-limits"
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11714 int main(int argc, char **argv) { return 0; }
11715 _ACEOF
11716 if ac_fn_c_try_link "$LINENO"; then :
11717 ac_cv_cflags__Wtype_limits=yes
11718 else
11719 ac_cv_cflags__Wtype_limits=no
11721 rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723 CFLAGS=$ac_wine_try_cflags_saved
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
11726 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
11727 if test $ac_cv_cflags__Wtype_limits = yes; then :
11728 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11731 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11732 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 ac_wine_try_cflags_saved=$CFLAGS
11736 CFLAGS="$CFLAGS -Wwrite-strings"
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h. */
11739 int main(int argc, char **argv) { return 0; }
11740 _ACEOF
11741 if ac_fn_c_try_link "$LINENO"; then :
11742 ac_cv_cflags__Wwrite_strings=yes
11743 else
11744 ac_cv_cflags__Wwrite_strings=no
11746 rm -f core conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11748 CFLAGS=$ac_wine_try_cflags_saved
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11751 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11752 if test $ac_cv_cflags__Wwrite_strings = yes; then :
11753 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11756 saved_CFLAGS="$CFLAGS"
11757 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
11759 $as_echo_n "checking for broken string.h that generates warnings... " >&6; }
11760 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11765 #include <string.h>
11767 main ()
11771 return 0;
11773 _ACEOF
11774 if ac_fn_c_try_compile "$LINENO"; then :
11775 ac_cv_c_string_h_warnings=no
11776 else
11777 ac_cv_c_string_h_warnings=yes
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
11782 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
11783 CFLAGS="$saved_CFLAGS"
11784 if test "$ac_cv_c_string_h_warnings" = "no"
11785 then
11786 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11789 if test "${enable_maintainer_mode+set}" = set
11790 then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11792 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11793 if test "${ac_cv_cflags__Werror+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 ac_wine_try_cflags_saved=$CFLAGS
11797 CFLAGS="$CFLAGS -Werror"
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11800 int main(int argc, char **argv) { return 0; }
11801 _ACEOF
11802 if ac_fn_c_try_link "$LINENO"; then :
11803 ac_cv_cflags__Werror=yes
11804 else
11805 ac_cv_cflags__Werror=no
11807 rm -f core conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11809 CFLAGS=$ac_wine_try_cflags_saved
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11812 $as_echo "$ac_cv_cflags__Werror" >&6; }
11813 if test $ac_cv_cflags__Werror = yes; then :
11814 EXTRACFLAGS="$EXTRACFLAGS -Werror"
11818 saved_CFLAGS="$CFLAGS"
11819 CFLAGS="$CFLAGS -Werror"
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
11821 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
11822 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11827 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
11829 main ()
11833 return 0;
11835 _ACEOF
11836 if ac_fn_c_try_compile "$LINENO"; then :
11837 ac_cv_have_ms_hook_prologue="yes"
11838 else
11839 ac_cv_have_ms_hook_prologue="no"
11841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
11844 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
11845 CFLAGS="$saved_CFLAGS"
11846 if test "$ac_cv_have_ms_hook_prologue" = "yes"
11847 then
11849 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
11851 else
11852 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
11859 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
11860 if test "${ac_cv_c_extern_prefix+set}" = set; then :
11861 $as_echo_n "(cached) " >&6
11862 else
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11865 extern int ac_test;
11867 main ()
11869 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
11871 return 0;
11873 _ACEOF
11874 if ac_fn_c_try_link "$LINENO"; then :
11875 ac_cv_c_extern_prefix="yes"
11876 else
11877 ac_cv_c_extern_prefix="no"
11879 rm -f core conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
11883 $as_echo "$ac_cv_c_extern_prefix" >&6; }
11885 case $host_cpu in
11886 *i[3456789]86*)
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
11888 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
11889 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11894 #ifndef _MSC_VER
11895 #define __stdcall __attribute__((__stdcall__))
11896 #endif
11897 int __stdcall ac_test(int i) { return i; }
11899 main ()
11901 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
11903 return 0;
11905 _ACEOF
11906 if ac_fn_c_try_link "$LINENO"; then :
11907 ac_cv_c_stdcall_suffix="yes"
11908 else
11909 ac_cv_c_stdcall_suffix="no"
11911 rm -f core conftest.err conftest.$ac_objext \
11912 conftest$ac_exeext conftest.$ac_ext
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
11915 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
11916 *) ac_cv_c_stdcall_suffix="no" ;;
11917 esac
11920 if test "$ac_cv_c_extern_prefix" = "yes"
11921 then
11922 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
11924 asm_name_prefix="_"
11925 else
11926 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
11928 asm_name_prefix=""
11932 if test "$ac_cv_c_stdcall_suffix" = "yes"
11933 then
11934 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
11936 else
11937 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
11943 $as_echo_n "checking how to define a function in assembly code... " >&6; }
11944 if test "${ac_cv_asm_func_def+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11951 main ()
11953 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
11955 return 0;
11957 _ACEOF
11958 if ac_fn_c_try_link "$LINENO"; then :
11959 ac_cv_asm_func_def=".def"
11960 else
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11965 main ()
11967 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
11969 return 0;
11971 _ACEOF
11972 if ac_fn_c_try_link "$LINENO"; then :
11973 ac_cv_asm_func_def=".type @function"
11974 else
11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h. */
11979 main ()
11981 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
11983 return 0;
11985 _ACEOF
11986 if ac_fn_c_try_link "$LINENO"; then :
11987 ac_cv_asm_func_def=".type 2"
11988 else
11989 ac_cv_asm_func_def="unknown"
11991 rm -f core conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
11994 rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
11997 rm -f core conftest.err conftest.$ac_objext \
11998 conftest$ac_exeext conftest.$ac_ext
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12001 $as_echo "$ac_cv_asm_func_def" >&6; }
12004 case "$ac_cv_asm_func_def" in
12005 ".def")
12006 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12008 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12009 ".type @function")
12010 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12012 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12013 ".type 2")
12014 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12016 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12018 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12020 asm_func_header="" ;;
12021 esac
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12024 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12025 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12026 $as_echo_n "(cached) " >&6
12027 else
12028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12029 /* end confdefs.h. */
12030 asm(".text\n\t.long 0");
12032 main ()
12036 return 0;
12038 _ACEOF
12039 if ac_fn_c_try_compile "$LINENO"; then :
12040 ac_cv_c_asm_outside_funcs="yes"
12041 else
12042 ac_cv_c_asm_outside_funcs="no"
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12047 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12050 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12051 if test "${ac_cv_c_dot_previous+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h. */
12058 main ()
12060 asm(".text\nac_test:\t.long 0\n\t.previous");
12062 return 0;
12064 _ACEOF
12065 if ac_fn_c_try_link "$LINENO"; then :
12066 ac_cv_c_dot_previous="yes"
12067 else
12068 ac_cv_c_dot_previous="no"
12070 rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12074 $as_echo "$ac_cv_c_dot_previous" >&6; }
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12077 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12078 if test "${ac_cv_c_cfi_support+set}" = set; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12083 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12085 main ()
12089 return 0;
12091 _ACEOF
12092 if ac_fn_c_try_compile "$LINENO"; then :
12093 ac_cv_c_cfi_support="yes"
12094 else
12095 ac_cv_c_cfi_support="no"
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12100 $as_echo "$ac_cv_c_cfi_support" >&6; }
12102 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12103 asm_func_trailer=""
12104 if test "$ac_cv_c_dot_previous" = "yes"
12105 then
12106 asm_func_trailer="\\n\\t.previous"
12108 if test "$ac_cv_c_cfi_support" = "yes"
12109 then
12110 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12111 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12113 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12115 else
12116 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12120 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12123 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12124 then
12125 cat >>confdefs.h <<_ACEOF
12126 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12127 _ACEOF
12129 else
12130 cat >>confdefs.h <<_ACEOF
12131 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12132 _ACEOF
12136 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12139 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12143 LDPATH=""
12145 case $build_os in
12146 cygwin*|mingw32*)
12147 TOOLSEXT=".exe"
12149 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12151 darwin*|macosx*)
12154 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12156 esac
12158 case $host_os in
12159 mingw32*)
12160 CRTLIBS="-lmsvcrt"
12162 SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
12165 esac
12167 MAIN_BINARY="wine"
12169 test -z "$with_wine64" || MAIN_BINARY="wine32"
12171 case $host_cpu in
12172 *i[3456789]86*)
12173 case $host_os in
12174 linux*)
12175 EXTRA_BINARIES="wine-preloader"
12177 esac
12179 esac
12182 ac_save_CFLAGS="$CFLAGS"
12183 CFLAGS="$CFLAGS $BUILTINFLAG"
12184 for ac_func in \
12185 _pclose \
12186 _popen \
12187 _snprintf \
12188 _spawnvp \
12189 _strdup \
12190 _stricmp \
12191 _strnicmp \
12192 _strtoi64 \
12193 _strtoui64 \
12194 _vsnprintf \
12195 asctime_r \
12196 chsize \
12197 dlopen \
12198 epoll_create \
12199 ffs \
12200 finite \
12201 fnmatch \
12202 fork \
12203 fpclass \
12204 fstatfs \
12205 fstatvfs \
12206 ftruncate \
12207 futimes \
12208 futimesat \
12209 getdirentries \
12210 getopt_long \
12211 getpagesize \
12212 getpwuid \
12213 gettid \
12214 gettimeofday \
12215 getuid \
12216 kqueue \
12217 lstat \
12218 memmove \
12219 mmap \
12220 pclose \
12221 pipe2 \
12222 poll \
12223 popen \
12224 port_create \
12225 prctl \
12226 pread \
12227 pwrite \
12228 readdir \
12229 readlink \
12230 sched_setaffinity \
12231 sched_yield \
12232 select \
12233 setproctitle \
12234 setrlimit \
12235 settimeofday \
12236 sigaltstack \
12237 sigprocmask \
12238 snprintf \
12239 spawnvp \
12240 statfs \
12241 statvfs \
12242 strcasecmp \
12243 strdup \
12244 strerror \
12245 strncasecmp \
12246 strtold \
12247 strtoll \
12248 strtoull \
12249 symlink \
12250 tcgetattr \
12251 thr_kill2 \
12252 timegm \
12253 usleep \
12254 vsnprintf \
12255 wait4 \
12256 waitpid \
12258 do :
12259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12260 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12261 eval as_val=\$$as_ac_var
12262 if test "x$as_val" = x""yes; then :
12263 cat >>confdefs.h <<_ACEOF
12264 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265 _ACEOF
12268 done
12270 CFLAGS="$ac_save_CFLAGS"
12272 if test "$ac_cv_func_dlopen" = no
12273 then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12275 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12276 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 ac_check_lib_save_LIBS=$LIBS
12280 LIBS="-ldl $LIBS"
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12284 /* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12287 #ifdef __cplusplus
12288 extern "C"
12289 #endif
12290 char dlopen ();
12292 main ()
12294 return dlopen ();
12296 return 0;
12298 _ACEOF
12299 if ac_fn_c_try_link "$LINENO"; then :
12300 ac_cv_lib_dl_dlopen=yes
12301 else
12302 ac_cv_lib_dl_dlopen=no
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12309 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12310 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12311 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12312 LIBDL="-ldl"
12317 ac_wine_check_funcs_save_LIBS="$LIBS"
12318 LIBS="$LIBS $LIBDL"
12319 for ac_func in dladdr
12320 do :
12321 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12322 if test "x$ac_cv_func_dladdr" = x""yes; then :
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_DLADDR 1
12325 _ACEOF
12328 done
12330 LIBS="$ac_wine_check_funcs_save_LIBS"
12332 if test "$ac_cv_func_poll" = no
12333 then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12335 $as_echo_n "checking for poll in -lpoll... " >&6; }
12336 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-lpoll $LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char poll ();
12352 main ()
12354 return poll ();
12356 return 0;
12358 _ACEOF
12359 if ac_fn_c_try_link "$LINENO"; then :
12360 ac_cv_lib_poll_poll=yes
12361 else
12362 ac_cv_lib_poll_poll=no
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12369 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12370 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12371 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12372 LIBPOLL="-lpoll"
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12379 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12380 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 ac_func_search_save_LIBS=$LIBS
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12387 /* Override any GCC internal prototype to avoid an error.
12388 Use char because int might match the return type of a GCC
12389 builtin and then its argument prototype would still apply. */
12390 #ifdef __cplusplus
12391 extern "C"
12392 #endif
12393 char gethostbyname ();
12395 main ()
12397 return gethostbyname ();
12399 return 0;
12401 _ACEOF
12402 for ac_lib in '' nsl; do
12403 if test -z "$ac_lib"; then
12404 ac_res="none required"
12405 else
12406 ac_res=-l$ac_lib
12407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12409 if ac_fn_c_try_link "$LINENO"; then :
12410 ac_cv_search_gethostbyname=$ac_res
12412 rm -f core conftest.err conftest.$ac_objext \
12413 conftest$ac_exeext
12414 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12415 break
12417 done
12418 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12420 else
12421 ac_cv_search_gethostbyname=no
12423 rm conftest.$ac_ext
12424 LIBS=$ac_func_search_save_LIBS
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12427 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12428 ac_res=$ac_cv_search_gethostbyname
12429 if test "$ac_res" != no; then :
12430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12436 $as_echo_n "checking for library containing connect... " >&6; }
12437 if test "${ac_cv_search_connect+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 ac_func_search_save_LIBS=$LIBS
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12444 /* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
12447 #ifdef __cplusplus
12448 extern "C"
12449 #endif
12450 char connect ();
12452 main ()
12454 return connect ();
12456 return 0;
12458 _ACEOF
12459 for ac_lib in '' socket; do
12460 if test -z "$ac_lib"; then
12461 ac_res="none required"
12462 else
12463 ac_res=-l$ac_lib
12464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_search_connect=$ac_res
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext
12471 if test "${ac_cv_search_connect+set}" = set; then :
12472 break
12474 done
12475 if test "${ac_cv_search_connect+set}" = set; then :
12477 else
12478 ac_cv_search_connect=no
12480 rm conftest.$ac_ext
12481 LIBS=$ac_func_search_save_LIBS
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12484 $as_echo "$ac_cv_search_connect" >&6; }
12485 ac_res=$ac_cv_search_connect
12486 if test "$ac_res" != no; then :
12487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12493 $as_echo_n "checking for library containing inet_aton... " >&6; }
12494 if test "${ac_cv_search_inet_aton+set}" = set; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 ac_func_search_save_LIBS=$LIBS
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 char inet_aton ();
12509 main ()
12511 return inet_aton ();
12513 return 0;
12515 _ACEOF
12516 for ac_lib in '' resolv; do
12517 if test -z "$ac_lib"; then
12518 ac_res="none required"
12519 else
12520 ac_res=-l$ac_lib
12521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12523 if ac_fn_c_try_link "$LINENO"; then :
12524 ac_cv_search_inet_aton=$ac_res
12526 rm -f core conftest.err conftest.$ac_objext \
12527 conftest$ac_exeext
12528 if test "${ac_cv_search_inet_aton+set}" = set; then :
12529 break
12531 done
12532 if test "${ac_cv_search_inet_aton+set}" = set; then :
12534 else
12535 ac_cv_search_inet_aton=no
12537 rm conftest.$ac_ext
12538 LIBS=$ac_func_search_save_LIBS
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12541 $as_echo "$ac_cv_search_inet_aton" >&6; }
12542 ac_res=$ac_cv_search_inet_aton
12543 if test "$ac_res" != no; then :
12544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12549 for ac_func in \
12550 getaddrinfo \
12551 getnameinfo \
12552 getnetbyname \
12553 getprotobyname \
12554 getprotobynumber \
12555 getservbyport \
12556 inet_network \
12557 inet_ntop \
12558 inet_pton \
12559 sendmsg \
12560 socketpair \
12562 do :
12563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12565 eval as_val=\$$as_ac_var
12566 if test "x$as_val" = x""yes; then :
12567 cat >>confdefs.h <<_ACEOF
12568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12569 _ACEOF
12572 done
12575 LDAPLIBS=""
12577 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12578 then
12579 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12581 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12583 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
12584 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12592 /* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12595 #ifdef __cplusplus
12596 extern "C"
12597 #endif
12598 char ldap_initialize ();
12600 main ()
12602 return ldap_initialize ();
12604 return 0;
12606 _ACEOF
12607 if ac_fn_c_try_link "$LINENO"; then :
12608 ac_cv_lib_ldap_r_ldap_initialize=yes
12609 else
12610 ac_cv_lib_ldap_r_ldap_initialize=no
12612 rm -f core conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12617 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12618 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12620 $as_echo_n "checking for ber_init in -llber... " >&6; }
12621 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 ac_check_lib_save_LIBS=$LIBS
12625 LIBS="-llber $LIBPTHREAD $LIBS"
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12629 /* Override any GCC internal prototype to avoid an error.
12630 Use char because int might match the return type of a GCC
12631 builtin and then its argument prototype would still apply. */
12632 #ifdef __cplusplus
12633 extern "C"
12634 #endif
12635 char ber_init ();
12637 main ()
12639 return ber_init ();
12641 return 0;
12643 _ACEOF
12644 if ac_fn_c_try_link "$LINENO"; then :
12645 ac_cv_lib_lber_ber_init=yes
12646 else
12647 ac_cv_lib_lber_ber_init=no
12649 rm -f core conftest.err conftest.$ac_objext \
12650 conftest$ac_exeext conftest.$ac_ext
12651 LIBS=$ac_check_lib_save_LIBS
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12654 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
12655 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
12657 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
12659 LDAPLIBS="-lldap_r -llber"
12666 ac_wine_check_funcs_save_LIBS="$LIBS"
12667 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12668 for ac_func in \
12669 ldap_count_references \
12670 ldap_first_reference \
12671 ldap_next_reference \
12672 ldap_parse_reference \
12673 ldap_parse_sort_control \
12674 ldap_parse_sortresponse_control \
12675 ldap_parse_vlv_control \
12676 ldap_parse_vlvresponse_control
12677 do :
12678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12679 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12680 eval as_val=\$$as_ac_var
12681 if test "x$as_val" = x""yes; then :
12682 cat >>confdefs.h <<_ACEOF
12683 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12684 _ACEOF
12687 done
12689 LIBS="$ac_wine_check_funcs_save_LIBS"
12691 if test "x$LDAPLIBS" = "x"; then :
12692 case "x$with_ldap" in
12693 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
12694 xno) ;;
12695 *) as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12696 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
12697 esac
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
12701 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
12702 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12707 #include <sys/stat.h>
12709 main ()
12711 mkdir("foo");
12713 return 0;
12715 _ACEOF
12716 if ac_fn_c_try_compile "$LINENO"; then :
12717 wine_cv_one_arg_mkdir=yes
12718 else
12719 wine_cv_one_arg_mkdir=no
12721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
12724 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
12725 if test "$wine_cv_one_arg_mkdir" = "yes"
12726 then
12728 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12734 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12735 if test "${ac_cv_c_const+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12742 main ()
12744 /* FIXME: Include the comments suggested by Paul. */
12745 #ifndef __cplusplus
12746 /* Ultrix mips cc rejects this. */
12747 typedef int charset[2];
12748 const charset cs;
12749 /* SunOS 4.1.1 cc rejects this. */
12750 char const *const *pcpcc;
12751 char **ppc;
12752 /* NEC SVR4.0.2 mips cc rejects this. */
12753 struct point {int x, y;};
12754 static struct point const zero = {0,0};
12755 /* AIX XL C 1.02.0.0 rejects this.
12756 It does not let you subtract one const X* pointer from another in
12757 an arm of an if-expression whose if-part is not a constant
12758 expression */
12759 const char *g = "string";
12760 pcpcc = &g + (g ? g-g : 0);
12761 /* HPUX 7.0 cc rejects these. */
12762 ++pcpcc;
12763 ppc = (char**) pcpcc;
12764 pcpcc = (char const *const *) ppc;
12765 { /* SCO 3.2v4 cc rejects this. */
12766 char *t;
12767 char const *s = 0 ? (char *) 0 : (char const *) 0;
12769 *t++ = 0;
12770 if (s) return 0;
12772 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12773 int x[] = {25, 17};
12774 const int *foo = &x[0];
12775 ++foo;
12777 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12778 typedef const int *iptr;
12779 iptr p = 0;
12780 ++p;
12782 { /* AIX XL C 1.02.0.0 rejects this saying
12783 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12784 struct s { int j; const int *ap[3]; };
12785 struct s *b; b->j = 5;
12787 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12788 const int foo = 10;
12789 if (!foo) return 0;
12791 return !cs[0] && !zero.x;
12792 #endif
12795 return 0;
12797 _ACEOF
12798 if ac_fn_c_try_compile "$LINENO"; then :
12799 ac_cv_c_const=yes
12800 else
12801 ac_cv_c_const=no
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12806 $as_echo "$ac_cv_c_const" >&6; }
12807 if test $ac_cv_c_const = no; then
12809 $as_echo "#define const /**/" >>confdefs.h
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12814 $as_echo_n "checking for inline... " >&6; }
12815 if test "${ac_cv_c_inline+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 ac_cv_c_inline=no
12819 for ac_kw in inline __inline__ __inline; do
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12822 #ifndef __cplusplus
12823 typedef int foo_t;
12824 static $ac_kw foo_t static_foo () {return 0; }
12825 $ac_kw foo_t foo () {return 0; }
12826 #endif
12828 _ACEOF
12829 if ac_fn_c_try_compile "$LINENO"; then :
12830 ac_cv_c_inline=$ac_kw
12832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 test "$ac_cv_c_inline" != no && break
12834 done
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12838 $as_echo "$ac_cv_c_inline" >&6; }
12840 case $ac_cv_c_inline in
12841 inline | yes) ;;
12843 case $ac_cv_c_inline in
12844 no) ac_val=;;
12845 *) ac_val=$ac_cv_c_inline;;
12846 esac
12847 cat >>confdefs.h <<_ACEOF
12848 #ifndef __cplusplus
12849 #define inline $ac_val
12850 #endif
12851 _ACEOF
12853 esac
12855 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12856 if test "x$ac_cv_type_mode_t" = x""yes; then :
12858 cat >>confdefs.h <<_ACEOF
12859 #define HAVE_MODE_T 1
12860 _ACEOF
12864 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12865 if test "x$ac_cv_type_off_t" = x""yes; then :
12867 cat >>confdefs.h <<_ACEOF
12868 #define HAVE_OFF_T 1
12869 _ACEOF
12873 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12874 if test "x$ac_cv_type_pid_t" = x""yes; then :
12876 cat >>confdefs.h <<_ACEOF
12877 #define HAVE_PID_T 1
12878 _ACEOF
12882 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12883 if test "x$ac_cv_type_size_t" = x""yes; then :
12885 cat >>confdefs.h <<_ACEOF
12886 #define HAVE_SIZE_T 1
12887 _ACEOF
12891 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12892 if test "x$ac_cv_type_ssize_t" = x""yes; then :
12894 cat >>confdefs.h <<_ACEOF
12895 #define HAVE_SSIZE_T 1
12896 _ACEOF
12900 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12901 if test "x$ac_cv_type_long_long" = x""yes; then :
12903 cat >>confdefs.h <<_ACEOF
12904 #define HAVE_LONG_LONG 1
12905 _ACEOF
12909 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
12910 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
12912 cat >>confdefs.h <<_ACEOF
12913 #define HAVE_FSBLKCNT_T 1
12914 _ACEOF
12918 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
12919 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
12921 cat >>confdefs.h <<_ACEOF
12922 #define HAVE_FSFILCNT_T 1
12923 _ACEOF
12928 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
12929 #include <signal.h>
12931 if test "x$ac_cv_type_sigset_t" = x""yes; then :
12933 cat >>confdefs.h <<_ACEOF
12934 #define HAVE_SIGSET_T 1
12935 _ACEOF
12940 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
12942 if test "x$ac_cv_type_request_sense" = x""yes; then :
12944 cat >>confdefs.h <<_ACEOF
12945 #define HAVE_REQUEST_SENSE 1
12946 _ACEOF
12952 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
12953 #ifdef HAVE_SYS_SOCKET_H
12954 #include <sys/socket.h>
12955 #endif
12956 #ifdef HAVE_SYS_SOCKETVAR_H
12957 #include <sys/socketvar.h>
12958 #endif
12959 #ifdef HAVE_NET_ROUTE_H
12960 #include <net/route.h>
12961 #endif
12962 #ifdef HAVE_NETINET_IN_H
12963 #include <netinet/in.h>
12964 #endif
12965 #ifdef HAVE_NETINET_IN_SYSTM_H
12966 #include <netinet/in_systm.h>
12967 #endif
12968 #ifdef HAVE_NETINET_IP_H
12969 #include <netinet/ip.h>
12970 #endif
12971 #ifdef HAVE_NETINET_IN_PCB_H
12972 #include <netinet/in_pcb.h>
12973 #endif
12975 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
12977 cat >>confdefs.h <<_ACEOF
12978 #define HAVE_STRUCT_XINPGEN 1
12979 _ACEOF
12985 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
12986 #include <linux/input.h>
12987 #endif
12989 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
12991 cat >>confdefs.h <<_ACEOF
12992 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
12993 _ACEOF
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13000 $as_echo_n "checking for sigaddset... " >&6; }
13001 if test "${wine_cv_have_sigaddset+set}" = set; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006 #include <signal.h>
13008 main ()
13010 sigset_t set; sigaddset(&set,SIGTERM);
13012 return 0;
13014 _ACEOF
13015 if ac_fn_c_try_link "$LINENO"; then :
13016 wine_cv_have_sigaddset=yes
13017 else
13018 wine_cv_have_sigaddset=no
13020 rm -f core conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13024 $as_echo "$wine_cv_have_sigaddset" >&6; }
13025 if test "$wine_cv_have_sigaddset" = "yes"
13026 then
13028 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13034 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13035 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13036 $as_echo_n "(cached) " >&6
13037 else
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13040 #include <netdb.h>
13042 main ()
13045 char *name=0;
13046 struct hostent he;
13047 struct hostent *result;
13048 char *buf=0;
13049 int bufsize=0;
13050 int res,errnr;
13051 char *addr=0;
13052 int addrlen=0;
13053 int addrtype=0;
13054 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13055 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13058 return 0;
13060 _ACEOF
13061 if ac_fn_c_try_link "$LINENO"; then :
13062 wine_cv_linux_gethostbyname_r_6=yes
13063 else
13064 wine_cv_linux_gethostbyname_r_6=no
13067 rm -f core conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13072 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13073 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13074 then
13076 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13080 if test "$ac_cv_header_linux_joystick_h" = "yes"
13081 then
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13083 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13084 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13085 $as_echo_n "(cached) " >&6
13086 else
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13090 #include <sys/ioctl.h>
13091 #include <sys/types.h>
13092 #include <linux/joystick.h>
13094 struct js_event blub;
13095 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13096 #error "no 2.2 header"
13097 #endif
13100 main ()
13102 /*empty*/
13104 return 0;
13106 _ACEOF
13107 if ac_fn_c_try_compile "$LINENO"; then :
13108 wine_cv_linux_joystick_22_api=yes
13109 else
13110 wine_cv_linux_joystick_22_api=no
13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13116 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13117 if test "$wine_cv_linux_joystick_22_api" = "yes"
13118 then
13120 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13126 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13127 #ifdef HAVE_SYS_PARAM_H
13128 # include <sys/param.h>
13129 #endif
13130 #ifdef HAVE_SYS_MOUNT_H
13131 # include <sys/mount.h>
13132 #endif
13133 #ifdef HAVE_SYS_VFS_H
13134 # include <sys/vfs.h>
13135 #endif
13136 #ifdef HAVE_SYS_STATFS_H
13137 # include <sys/statfs.h>
13138 #endif
13140 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13142 cat >>confdefs.h <<_ACEOF
13143 #define HAVE_STRUCT_STATFS_F_BFREE 1
13144 _ACEOF
13148 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13149 #ifdef HAVE_SYS_PARAM_H
13150 # include <sys/param.h>
13151 #endif
13152 #ifdef HAVE_SYS_MOUNT_H
13153 # include <sys/mount.h>
13154 #endif
13155 #ifdef HAVE_SYS_VFS_H
13156 # include <sys/vfs.h>
13157 #endif
13158 #ifdef HAVE_SYS_STATFS_H
13159 # include <sys/statfs.h>
13160 #endif
13162 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13164 cat >>confdefs.h <<_ACEOF
13165 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13166 _ACEOF
13170 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13171 #ifdef HAVE_SYS_PARAM_H
13172 # include <sys/param.h>
13173 #endif
13174 #ifdef HAVE_SYS_MOUNT_H
13175 # include <sys/mount.h>
13176 #endif
13177 #ifdef HAVE_SYS_VFS_H
13178 # include <sys/vfs.h>
13179 #endif
13180 #ifdef HAVE_SYS_STATFS_H
13181 # include <sys/statfs.h>
13182 #endif
13184 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13186 cat >>confdefs.h <<_ACEOF
13187 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13188 _ACEOF
13192 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13193 #ifdef HAVE_SYS_PARAM_H
13194 # include <sys/param.h>
13195 #endif
13196 #ifdef HAVE_SYS_MOUNT_H
13197 # include <sys/mount.h>
13198 #endif
13199 #ifdef HAVE_SYS_VFS_H
13200 # include <sys/vfs.h>
13201 #endif
13202 #ifdef HAVE_SYS_STATFS_H
13203 # include <sys/statfs.h>
13204 #endif
13206 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13208 cat >>confdefs.h <<_ACEOF
13209 #define HAVE_STRUCT_STATFS_F_FFREE 1
13210 _ACEOF
13214 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13215 #ifdef HAVE_SYS_PARAM_H
13216 # include <sys/param.h>
13217 #endif
13218 #ifdef HAVE_SYS_MOUNT_H
13219 # include <sys/mount.h>
13220 #endif
13221 #ifdef HAVE_SYS_VFS_H
13222 # include <sys/vfs.h>
13223 #endif
13224 #ifdef HAVE_SYS_STATFS_H
13225 # include <sys/statfs.h>
13226 #endif
13228 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13230 cat >>confdefs.h <<_ACEOF
13231 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13232 _ACEOF
13236 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13237 #ifdef HAVE_SYS_PARAM_H
13238 # include <sys/param.h>
13239 #endif
13240 #ifdef HAVE_SYS_MOUNT_H
13241 # include <sys/mount.h>
13242 #endif
13243 #ifdef HAVE_SYS_VFS_H
13244 # include <sys/vfs.h>
13245 #endif
13246 #ifdef HAVE_SYS_STATFS_H
13247 # include <sys/statfs.h>
13248 #endif
13250 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13252 cat >>confdefs.h <<_ACEOF
13253 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13254 _ACEOF
13260 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13261 #include <sys/statvfs.h>
13262 #endif
13264 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13266 cat >>confdefs.h <<_ACEOF
13267 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13268 _ACEOF
13274 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13275 #ifdef HAVE_SYS_SOCKET_H
13276 # include <sys/socket.h>
13277 #endif
13278 #ifdef HAVE_SYS_UN_H
13279 # include <sys/un.h>
13280 #endif
13282 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13284 cat >>confdefs.h <<_ACEOF
13285 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13286 _ACEOF
13290 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13291 #ifdef HAVE_SYS_SOCKET_H
13292 # include <sys/socket.h>
13293 #endif
13294 #ifdef HAVE_SYS_UN_H
13295 # include <sys/un.h>
13296 #endif
13298 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13300 cat >>confdefs.h <<_ACEOF
13301 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13302 _ACEOF
13306 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13307 #ifdef HAVE_SYS_SOCKET_H
13308 # include <sys/socket.h>
13309 #endif
13310 #ifdef HAVE_SYS_UN_H
13311 # include <sys/un.h>
13312 #endif
13314 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13316 cat >>confdefs.h <<_ACEOF
13317 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13318 _ACEOF
13324 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13325 #ifdef HAVE_SCSI_SG_H
13326 #include <scsi/sg.h>
13327 #endif
13329 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13331 cat >>confdefs.h <<_ACEOF
13332 #define HAVE_SCSIREQ_T_CMD 1
13333 _ACEOF
13337 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>
13338 #ifdef HAVE_SCSI_SG_H
13339 #include <scsi/sg.h>
13340 #endif
13342 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13344 cat >>confdefs.h <<_ACEOF
13345 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13346 _ACEOF
13352 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13354 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13356 cat >>confdefs.h <<_ACEOF
13357 #define HAVE_SIGINFO_T_SI_FD 1
13358 _ACEOF
13364 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13365 #ifdef HAVE_SYS_MTIO_H
13366 #include <sys/mtio.h>
13367 #endif
13369 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13371 cat >>confdefs.h <<_ACEOF
13372 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13373 _ACEOF
13377 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13378 #ifdef HAVE_SYS_MTIO_H
13379 #include <sys/mtio.h>
13380 #endif
13382 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13384 cat >>confdefs.h <<_ACEOF
13385 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13386 _ACEOF
13390 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13391 #ifdef HAVE_SYS_MTIO_H
13392 #include <sys/mtio.h>
13393 #endif
13395 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13397 cat >>confdefs.h <<_ACEOF
13398 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13399 _ACEOF
13405 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13406 #include <getopt.h>
13407 #endif
13409 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13411 cat >>confdefs.h <<_ACEOF
13412 #define HAVE_STRUCT_OPTION_NAME 1
13413 _ACEOF
13419 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13420 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13422 cat >>confdefs.h <<_ACEOF
13423 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13424 _ACEOF
13428 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13429 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13431 cat >>confdefs.h <<_ACEOF
13432 #define HAVE_STRUCT_STAT_ST_MTIM 1
13433 _ACEOF
13437 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13438 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13440 cat >>confdefs.h <<_ACEOF
13441 #define HAVE_STRUCT_STAT_ST_CTIM 1
13442 _ACEOF
13446 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13447 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13449 cat >>confdefs.h <<_ACEOF
13450 #define HAVE_STRUCT_STAT_ST_ATIM 1
13451 _ACEOF
13457 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
13458 #include <sys/types.h>
13459 #endif
13460 #ifdef HAVE_NETINET_IN_H
13461 #include <netinet/in.h>
13462 #endif
13464 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
13466 cat >>confdefs.h <<_ACEOF
13467 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13468 _ACEOF
13474 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13475 #include <sys/types.h>
13476 #endif
13477 #ifdef HAVE_NETINET_IN_H
13478 # include <netinet/in.h>
13479 #endif
13480 #ifdef HAVE_ARPA_NAMESER_H
13481 # include <arpa/nameser.h>
13482 #endif
13484 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
13486 cat >>confdefs.h <<_ACEOF
13487 #define HAVE_NS_MSG__MSG_PTR 1
13488 _ACEOF
13494 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13495 #include <sys/types.h>
13496 #endif
13497 #ifdef HAVE_ALIAS_H
13498 #include <alias.h>
13499 #endif
13500 #ifdef HAVE_SYS_SOCKET_H
13501 #include <sys/socket.h>
13502 #endif
13503 #ifdef HAVE_SYS_SOCKETVAR_H
13504 #include <sys/socketvar.h>
13505 #endif
13506 #ifdef HAVE_SYS_TIMEOUT_H
13507 #include <sys/timeout.h>
13508 #endif
13509 #ifdef HAVE_NETINET_IN_H
13510 #include <netinet/in.h>
13511 #endif
13512 #ifdef HAVE_NETINET_IN_SYSTM_H
13513 #include <netinet/in_systm.h>
13514 #endif
13515 #ifdef HAVE_NETINET_IP_H
13516 #include <netinet/ip.h>
13517 #endif
13518 #ifdef HAVE_NETINET_IP_VAR_H
13519 #include <netinet/ip_var.h>
13520 #endif
13521 #ifdef HAVE_NETINET_IP_ICMP_H
13522 #include <netinet/ip_icmp.h>
13523 #endif
13524 #ifdef HAVE_NETINET_ICMP_VAR
13525 #include <netinet/icmp_var.h>
13526 #endif
13528 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13532 _ACEOF
13538 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13539 #include <sys/types.h>
13540 #endif
13541 #ifdef HAVE_NET_IF_H
13542 # include <net/if.h>
13543 #endif
13545 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13547 cat >>confdefs.h <<_ACEOF
13548 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13549 _ACEOF
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13556 $as_echo_n "checking for timezone variable... " >&6; }
13557 if test "${ac_cv_have_timezone+set}" = set; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 #include <time.h>
13564 main ()
13566 timezone = 1
13568 return 0;
13570 _ACEOF
13571 if ac_fn_c_try_link "$LINENO"; then :
13572 ac_cv_have_timezone="yes"
13573 else
13574 ac_cv_have_timezone="no"
13576 rm -f core conftest.err conftest.$ac_objext \
13577 conftest$ac_exeext conftest.$ac_ext
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
13580 $as_echo "$ac_cv_have_timezone" >&6; }
13581 if test "$ac_cv_have_timezone" = "yes"
13582 then
13584 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
13588 $as_echo_n "checking for daylight variable... " >&6; }
13589 if test "${ac_cv_have_daylight+set}" = set; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594 #include <time.h>
13596 main ()
13598 daylight = 1
13600 return 0;
13602 _ACEOF
13603 if ac_fn_c_try_link "$LINENO"; then :
13604 ac_cv_have_daylight="yes"
13605 else
13606 ac_cv_have_daylight="no"
13608 rm -f core conftest.err conftest.$ac_objext \
13609 conftest$ac_exeext conftest.$ac_ext
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
13612 $as_echo "$ac_cv_have_daylight" >&6; }
13613 if test "$ac_cv_have_daylight" = "yes"
13614 then
13616 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13621 $as_echo_n "checking for isinf... " >&6; }
13622 if test "${ac_cv_have_isinf+set}" = set; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13627 #include <math.h>
13629 main ()
13631 float f = 0.0; int i=isinf(f)
13633 return 0;
13635 _ACEOF
13636 if ac_fn_c_try_link "$LINENO"; then :
13637 ac_cv_have_isinf="yes"
13638 else
13639 ac_cv_have_isinf="no"
13641 rm -f core conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext conftest.$ac_ext
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
13645 $as_echo "$ac_cv_have_isinf" >&6; }
13646 if test "$ac_cv_have_isinf" = "yes"
13647 then
13649 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
13654 $as_echo_n "checking for isnan... " >&6; }
13655 if test "${ac_cv_have_isnan+set}" = set; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660 #include <math.h>
13662 main ()
13664 float f = 0.0; int i=isnan(f)
13666 return 0;
13668 _ACEOF
13669 if ac_fn_c_try_link "$LINENO"; then :
13670 ac_cv_have_isnan="yes"
13671 else
13672 ac_cv_have_isnan="no"
13674 rm -f core conftest.err conftest.$ac_objext \
13675 conftest$ac_exeext conftest.$ac_ext
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
13678 $as_echo "$ac_cv_have_isnan" >&6; }
13679 if test "$ac_cv_have_isnan" = "yes"
13680 then
13682 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13687 case $host_cpu in
13688 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
13689 $as_echo_n "checking whether we need to define __i386__... " >&6; }
13690 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
13691 $as_echo_n "(cached) " >&6
13692 else
13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13695 #ifndef __i386__
13697 #endif
13698 _ACEOF
13699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13700 $EGREP "yes" >/dev/null 2>&1; then :
13701 ac_cv_cpp_def___i386__=yes
13702 else
13703 ac_cv_cpp_def___i386__=no
13705 rm -f conftest*
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
13709 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
13710 if test $ac_cv_cpp_def___i386__ = yes; then :
13711 CFLAGS="$CFLAGS -D__i386__"
13712 LINTFLAGS="$LINTFLAGS -D__i386__"
13713 fi ;;
13714 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
13715 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
13716 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13720 /* end confdefs.h. */
13721 #ifndef __x86_64__
13723 #endif
13724 _ACEOF
13725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13726 $EGREP "yes" >/dev/null 2>&1; then :
13727 ac_cv_cpp_def___x86_64__=yes
13728 else
13729 ac_cv_cpp_def___x86_64__=no
13731 rm -f conftest*
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
13735 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
13736 if test $ac_cv_cpp_def___x86_64__ = yes; then :
13737 CFLAGS="$CFLAGS -D__x86_64__"
13738 LINTFLAGS="$LINTFLAGS -D__x86_64__"
13739 fi ;;
13740 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
13741 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
13742 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13744 else
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 #ifndef __ALPHA__
13749 #endif
13750 _ACEOF
13751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13752 $EGREP "yes" >/dev/null 2>&1; then :
13753 ac_cv_cpp_def___ALPHA__=yes
13754 else
13755 ac_cv_cpp_def___ALPHA__=no
13757 rm -f conftest*
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
13761 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
13762 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
13763 CFLAGS="$CFLAGS -D__ALPHA__"
13764 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
13765 fi ;;
13766 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
13767 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
13768 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13773 #ifndef __sparc__
13775 #endif
13776 _ACEOF
13777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13778 $EGREP "yes" >/dev/null 2>&1; then :
13779 ac_cv_cpp_def___sparc__=yes
13780 else
13781 ac_cv_cpp_def___sparc__=no
13783 rm -f conftest*
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
13787 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
13788 if test $ac_cv_cpp_def___sparc__ = yes; then :
13789 CFLAGS="$CFLAGS -D__sparc__"
13790 LINTFLAGS="$LINTFLAGS -D__sparc__"
13791 fi ;;
13792 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
13793 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
13794 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
13795 $as_echo_n "(cached) " >&6
13796 else
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799 #ifndef __powerpc__
13801 #endif
13802 _ACEOF
13803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13804 $EGREP "yes" >/dev/null 2>&1; then :
13805 ac_cv_cpp_def___powerpc__=yes
13806 else
13807 ac_cv_cpp_def___powerpc__=no
13809 rm -f conftest*
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
13813 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
13814 if test $ac_cv_cpp_def___powerpc__ = yes; then :
13815 CFLAGS="$CFLAGS -D__powerpc__"
13816 LINTFLAGS="$LINTFLAGS -D__powerpc__"
13817 fi ;;
13818 esac
13820 case $host_vendor in
13821 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
13822 $as_echo_n "checking whether we need to define __sun__... " >&6; }
13823 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
13824 $as_echo_n "(cached) " >&6
13825 else
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828 #ifndef __sun__
13830 #endif
13831 _ACEOF
13832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13833 $EGREP "yes" >/dev/null 2>&1; then :
13834 ac_cv_cpp_def___sun__=yes
13835 else
13836 ac_cv_cpp_def___sun__=no
13838 rm -f conftest*
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
13842 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
13843 if test $ac_cv_cpp_def___sun__ = yes; then :
13844 CFLAGS="$CFLAGS -D__sun__"
13845 LINTFLAGS="$LINTFLAGS -D__sun__"
13846 fi ;;
13847 esac
13852 ac_config_commands="$ac_config_commands include/stamp-h"
13855 ALL_MAKEFILE_DEPENDS="# Makefile dependencies
13856 Makefile: Makefile.in Make.rules config.status"
13858 ALL_WINETEST_DEPENDS="# Test binaries"
13861 ALL_MAKERULES=""
13863 ALL_SYMLINKS=""
13865 ALL_DIRS=""
13867 ALL_TOP_DIRS=""
13869 ALL_DLL_DIRS=""
13871 ALL_TOOL_DIRS=""
13873 ALL_STATICLIB_DIRS=""
13875 ALL_INSTALL_DIRS=""
13877 ALL_TEST_DIRS=""
13879 ALL_TEST_BINARIES=""
13881 ALL_PROGRAM_DIRS=""
13883 ALL_PROGRAM_BIN_INSTALL_DIRS=""
13886 wine_fn_append_file ()
13888 as_fn_append $1 " \\$as_nl $2"
13891 wine_fn_append_rule ()
13893 as_fn_append $1 "$as_nl$2"
13896 wine_fn_config_makefile ()
13898 ac_dir=$1
13899 ac_enable=$2
13900 wine_fn_append_file ALL_DIRS $ac_dir
13901 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13902 "$ac_dir/__clean__ $ac_dir/__install__ $ac_dir/__install-dev__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile
13903 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Make.rules \$(MAKEDEP)
13904 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
13905 eval as_val=\$$ac_enable
13906 if test "x$as_val" = x""no; then :
13908 else
13909 case $ac_dir in
13910 */*) ;;
13911 *) wine_fn_append_file ALL_TOP_DIRS $ac_dir ;;
13912 esac
13916 wine_fn_config_lib ()
13918 ac_name=$1
13919 ac_dir=dlls/$ac_name
13920 wine_fn_append_file ALL_DIRS $ac_dir
13921 wine_fn_append_file ALL_STATICLIB_DIRS $ac_dir
13922 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13923 "$ac_dir/__install__ $ac_dir/__install-dev__ __builddeps__: $ac_dir
13924 __buildcrossdeps__: $ac_dir/lib$ac_name.cross.a
13925 $ac_dir $ac_dir/lib$ac_name.cross.a: tools/widl tools/winebuild tools/winegcc include
13926 $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile dummy
13927 @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
13928 $ac_dir/__clean__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile
13929 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status dlls/Makeimplib.rules \$(MAKEDEP)
13930 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
13933 wine_fn_config_dll ()
13935 ac_dir=$1
13936 ac_enable=$2
13937 ac_implib=$3
13938 ac_implibsrc=$4
13939 ac_file="dlls/$ac_dir/lib$ac_implib"
13940 ac_deps="tools/widl tools/winebuild tools/winegcc include"
13942 wine_fn_append_file ALL_DIRS dlls/$ac_dir
13943 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13944 "dlls/$ac_dir dlls/$ac_dir/__install__ dlls/$ac_dir/__install-lib__ dlls/$ac_dir/__install-dev__: __builddeps__ dlls/$ac_dir/Makefile
13945 dlls/$ac_dir/__clean__ dlls/$ac_dir/__uninstall__ dlls/$ac_dir: dlls/$ac_dir/Makefile
13946 dlls/$ac_dir/Makefile dlls/$ac_dir/__depend__: dlls/$ac_dir/Makefile.in config.status dlls/Makedll.rules \$(MAKEDEP)
13947 @./config.status --file dlls/$ac_dir/Makefile && cd dlls/$ac_dir && \$(MAKE) depend"
13948 eval as_val=\$$ac_enable
13949 if test "x$as_val" = x""no; then :
13950 test "$ac_enable" != enable_win16 || return 0
13951 else
13952 wine_fn_append_file ALL_DLL_DIRS dlls/$ac_dir
13955 if test -n "$ac_implibsrc"
13956 then
13957 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13958 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
13959 __buildcrossdeps__: $ac_file.cross.a
13960 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
13961 $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
13962 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13963 $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy
13964 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`"
13965 elif test -n "$ac_implib"
13966 then
13967 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13968 "__builddeps__: $ac_file.$IMPLIBEXT
13969 __buildcrossdeps__: $ac_file.cross.a
13970 $ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps
13971 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`"
13973 if test "$ac_dir" != "$ac_implib"
13974 then
13975 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13976 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
13977 __buildcrossdeps__: dlls/lib$ac_implib.cross.a
13978 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
13979 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
13980 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
13981 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@
13982 clean::
13983 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
13988 wine_fn_config_program ()
13990 ac_dir=$1
13991 ac_enable=$2
13992 ac_install=$3
13993 wine_fn_append_file ALL_DIRS programs/$ac_dir
13994 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13995 "programs/$ac_dir programs/$ac_dir/__install__ programs/$ac_dir/__install-lib__: __builddeps__ programs/$ac_dir/Makefile
13996 programs/$ac_dir/__clean__ programs/$ac_dir/__install-dev__ programs/$ac_dir/__uninstall__ programs/$ac_dir: programs/$ac_dir/Makefile
13997 programs/$ac_dir/Makefile programs/$ac_dir/__depend__: programs/$ac_dir/Makefile.in config.status programs/Makeprog.rules \$(MAKEDEP)
13998 @./config.status --file programs/$ac_dir/Makefile && cd programs/$ac_dir && \$(MAKE) depend"
13999 eval as_val=\$$ac_enable
14000 if test "x$as_val" = x""no; then :
14002 else
14003 wine_fn_append_file ALL_PROGRAM_DIRS programs/$ac_dir
14004 case $ac_install in
14005 installbin) wine_fn_append_file ALL_INSTALL_DIRS programs/$ac_dir
14006 wine_fn_append_file ALL_PROGRAM_BIN_INSTALL_DIRS programs/$ac_dir ;;
14007 install) wine_fn_append_file ALL_INSTALL_DIRS programs/$ac_dir ;;
14008 esac
14012 wine_fn_config_test ()
14014 ac_dir=$1
14015 ac_name=$2
14016 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14017 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14018 "$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14019 cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14020 $ac_name.rc:
14021 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14022 $ac_name.res: $ac_name.rc $ac_name.exe"
14023 wine_fn_append_file ALL_DIRS $ac_dir
14024 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14025 "$ac_dir: __builddeps__
14026 $ac_dir/__crosstest__: __buildcrossdeps__
14027 $ac_dir/__clean__ $ac_dir/__crosstest__ $ac_dir: $ac_dir/Makefile
14028 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Maketest.rules \$(MAKEDEP)
14029 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
14030 if test "x$enable_tests" = x""no; then :
14032 else
14033 wine_fn_append_file ALL_TEST_DIRS $ac_dir
14037 wine_fn_config_tool ()
14039 ac_dir=$1
14040 ac_deps="Make.rules"
14041 if test "$ac_dir" != tools
14042 then
14043 ac_deps="$ac_deps \$(MAKEDEP)"
14045 wine_fn_append_file ALL_DIRS $ac_dir
14046 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14047 "$ac_dir/__clean__ $ac_dir/__install__ $ac_dir/__install-dev__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile
14048 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status $ac_deps
14049 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
14050 if test "x$enable_tools" = x""no; then :
14052 else
14053 wine_fn_append_file ALL_TOOL_DIRS $ac_dir
14056 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14057 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "dlls/wineps.drv/generic.ppd"
14058 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14059 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/marlett.ttf"
14060 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14061 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/symbol.ttf"
14062 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14063 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/tahoma.ttf"
14064 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14065 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/tahomabd.ttf"
14066 ac_config_links="$ac_config_links wine:tools/winewrapper"
14067 wine_fn_append_file ALL_SYMLINKS "wine"
14069 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14071 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14073 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14075 ac_config_commands="$ac_config_commands dlls/user32/resources"
14077 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14079 ac_config_commands="$ac_config_commands include/wine"
14082 wine_fn_append_file ALL_MAKERULES "Make.rules"
14083 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "Make.rules: Make.rules.in config.status"
14084 MAKE_RULES=Make.rules
14085 ac_config_files="$ac_config_files Make.rules"
14087 wine_fn_append_file ALL_MAKERULES "Maketest.rules"
14088 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "Maketest.rules: Maketest.rules.in Make.rules config.status"
14089 MAKE_TEST_RULES=Maketest.rules
14090 ac_config_files="$ac_config_files Maketest.rules"
14092 wine_fn_append_file ALL_MAKERULES "dlls/Makedll.rules"
14093 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "dlls/Makedll.rules: dlls/Makedll.rules.in Make.rules config.status"
14094 MAKE_DLL_RULES=dlls/Makedll.rules
14095 ac_config_files="$ac_config_files dlls/Makedll.rules"
14097 wine_fn_append_file ALL_MAKERULES "dlls/Makeimplib.rules"
14098 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "dlls/Makeimplib.rules: dlls/Makeimplib.rules.in Make.rules config.status"
14099 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14100 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14102 wine_fn_append_file ALL_MAKERULES "programs/Makeprog.rules"
14103 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "programs/Makeprog.rules: programs/Makeprog.rules.in Make.rules config.status"
14104 MAKE_PROG_RULES=programs/Makeprog.rules
14105 ac_config_files="$ac_config_files programs/Makeprog.rules"
14108 wine_fn_config_dll acledit enable_acledit
14109 wine_fn_config_dll aclui enable_aclui aclui
14110 wine_fn_config_dll activeds enable_activeds activeds
14111 wine_fn_config_dll actxprxy enable_actxprxy
14112 wine_fn_config_lib adsiid
14113 wine_fn_config_dll advapi32 enable_advapi32 advapi32
14114 wine_fn_config_test dlls/advapi32/tests advapi32_test
14115 wine_fn_config_dll advpack enable_advpack advpack
14116 wine_fn_config_test dlls/advpack/tests advpack_test
14117 wine_fn_config_dll amstream enable_amstream
14118 wine_fn_config_test dlls/amstream/tests amstream_test
14119 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14120 wine_fn_config_dll atl enable_atl atl
14121 wine_fn_config_dll authz enable_authz
14122 wine_fn_config_dll avicap32 enable_avicap32 avicap32
14123 wine_fn_config_dll avifil32 enable_avifil32 avifil32
14124 wine_fn_config_test dlls/avifil32/tests avifil32_test
14125 wine_fn_config_dll avifile.dll16 enable_win16
14126 wine_fn_config_dll avrt enable_avrt avrt
14127 wine_fn_config_dll bcrypt enable_bcrypt
14128 wine_fn_config_dll browseui enable_browseui
14129 wine_fn_config_test dlls/browseui/tests browseui_test
14130 wine_fn_config_dll cabinet enable_cabinet cabinet
14131 wine_fn_config_test dlls/cabinet/tests cabinet_test
14132 wine_fn_config_dll capi2032 enable_capi2032 capi2032
14133 wine_fn_config_dll cards enable_cards cards
14134 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14135 wine_fn_config_dll clusapi enable_clusapi clusapi
14136 wine_fn_config_dll comcat enable_comcat
14137 wine_fn_config_test dlls/comcat/tests comcat_test
14138 wine_fn_config_dll comctl32 enable_comctl32 comctl32
14139 wine_fn_config_test dlls/comctl32/tests comctl32_test
14140 wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
14141 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14142 wine_fn_config_dll comm.drv16 enable_win16
14143 wine_fn_config_dll commdlg.dll16 enable_win16
14144 wine_fn_config_dll compobj.dll16 enable_win16
14145 wine_fn_config_dll compstui enable_compstui compstui
14146 wine_fn_config_dll credui enable_credui credui
14147 wine_fn_config_test dlls/credui/tests credui_test
14148 wine_fn_config_dll crtdll enable_crtdll crtdll
14149 wine_fn_config_dll crypt32 enable_crypt32 crypt32
14150 wine_fn_config_test dlls/crypt32/tests crypt32_test
14151 wine_fn_config_dll cryptdlg enable_cryptdlg
14152 wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14153 wine_fn_config_dll cryptnet enable_cryptnet cryptnet
14154 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14155 wine_fn_config_dll cryptui enable_cryptui cryptui
14156 wine_fn_config_test dlls/cryptui/tests cryptui_test
14157 wine_fn_config_dll ctapi32 enable_ctapi32
14158 wine_fn_config_dll ctl3d.dll16 enable_win16
14159 wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14160 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14161 wine_fn_config_dll d3d10 enable_d3d10 d3d10
14162 wine_fn_config_test dlls/d3d10/tests d3d10_test
14163 wine_fn_config_dll d3d10core enable_d3d10core d3d10core
14164 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14165 wine_fn_config_dll d3d8 enable_d3d8 d3d8
14166 wine_fn_config_test dlls/d3d8/tests d3d8_test
14167 wine_fn_config_dll d3d9 enable_d3d9 d3d9
14168 wine_fn_config_test dlls/d3d9/tests d3d9_test
14169 wine_fn_config_dll d3dim enable_d3dim d3dim
14170 wine_fn_config_dll d3drm enable_d3drm d3drm
14171 wine_fn_config_test dlls/d3drm/tests d3drm_test
14172 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14173 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14174 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14175 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14176 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14177 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14178 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14179 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14180 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14181 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14182 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14183 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14184 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
14185 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14186 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14187 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14188 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14189 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14190 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14191 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14192 wine_fn_config_dll d3dxof enable_d3dxof d3dxof
14193 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14194 wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14195 wine_fn_config_dll dciman32 enable_dciman32 dciman32
14196 wine_fn_config_dll ddeml.dll16 enable_win16
14197 wine_fn_config_dll ddraw enable_ddraw ddraw
14198 wine_fn_config_test dlls/ddraw/tests ddraw_test
14199 wine_fn_config_dll ddrawex enable_ddrawex
14200 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14201 wine_fn_config_dll devenum enable_devenum
14202 wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
14203 wine_fn_config_test dlls/dinput/tests dinput_test
14204 wine_fn_config_dll dinput8 enable_dinput8 dinput8
14205 wine_fn_config_dll dispdib.dll16 enable_win16
14206 wine_fn_config_dll dispex enable_dispex
14207 wine_fn_config_test dlls/dispex/tests dispex_test
14208 wine_fn_config_dll display.drv16 enable_win16
14209 wine_fn_config_dll dmband enable_dmband
14210 wine_fn_config_dll dmcompos enable_dmcompos
14211 wine_fn_config_dll dmime enable_dmime
14212 wine_fn_config_dll dmloader enable_dmloader
14213 wine_fn_config_test dlls/dmloader/tests dmloader_test
14214 wine_fn_config_dll dmscript enable_dmscript
14215 wine_fn_config_dll dmstyle enable_dmstyle
14216 wine_fn_config_dll dmsynth enable_dmsynth
14217 wine_fn_config_dll dmusic enable_dmusic
14218 wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14219 wine_fn_config_dll dnsapi enable_dnsapi dnsapi
14220 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14221 wine_fn_config_dll dplay enable_dplay dplay
14222 wine_fn_config_dll dplayx enable_dplayx dplayx
14223 wine_fn_config_test dlls/dplayx/tests dplayx_test
14224 wine_fn_config_dll dpnaddr enable_dpnaddr
14225 wine_fn_config_dll dpnet enable_dpnet dpnet
14226 wine_fn_config_dll dpnhpast enable_dpnhpast
14227 wine_fn_config_dll dpnlobby enable_dpnlobby
14228 wine_fn_config_dll dpwsockx enable_dpwsockx
14229 wine_fn_config_dll drmclien enable_drmclien
14230 wine_fn_config_dll dsound enable_dsound dsound
14231 wine_fn_config_test dlls/dsound/tests dsound_test
14232 wine_fn_config_dll dssenh enable_dssenh
14233 wine_fn_config_dll dswave enable_dswave
14234 wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14235 wine_fn_config_dll dxdiagn enable_dxdiagn
14236 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14237 wine_fn_config_lib dxerr8
14238 wine_fn_config_lib dxerr9
14239 wine_fn_config_dll dxgi enable_dxgi dxgi
14240 wine_fn_config_test dlls/dxgi/tests dxgi_test
14241 wine_fn_config_lib dxguid
14242 wine_fn_config_dll faultrep enable_faultrep
14243 wine_fn_config_dll fltlib enable_fltlib
14244 wine_fn_config_dll fusion enable_fusion
14245 wine_fn_config_test dlls/fusion/tests fusion_test
14246 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14247 wine_fn_config_dll gdi.exe16 enable_win16
14248 wine_fn_config_dll gdi32 enable_gdi32 gdi32
14249 wine_fn_config_test dlls/gdi32/tests gdi32_test
14250 wine_fn_config_dll gdiplus enable_gdiplus gdiplus
14251 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14252 wine_fn_config_dll glu32 enable_glu32 glu32
14253 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14254 wine_fn_config_dll gpkcsp enable_gpkcsp
14255 wine_fn_config_dll hal enable_hal
14256 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14257 wine_fn_config_dll hid enable_hid hid
14258 wine_fn_config_dll hlink enable_hlink hlink
14259 wine_fn_config_test dlls/hlink/tests hlink_test
14260 wine_fn_config_dll hnetcfg enable_hnetcfg
14261 wine_fn_config_dll httpapi enable_httpapi
14262 wine_fn_config_dll iccvid enable_iccvid
14263 wine_fn_config_dll icmp enable_icmp
14264 wine_fn_config_dll ifsmgr.vxd enable_win16
14265 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14266 wine_fn_config_dll imagehlp enable_imagehlp imagehlp
14267 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14268 wine_fn_config_dll imm.dll16 enable_win16
14269 wine_fn_config_dll imm32 enable_imm32 imm32
14270 wine_fn_config_test dlls/imm32/tests imm32_test
14271 wine_fn_config_dll inetcomm enable_inetcomm inetcomm
14272 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14273 wine_fn_config_dll inetmib1 enable_inetmib1
14274 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14275 wine_fn_config_dll infosoft enable_infosoft
14276 wine_fn_config_test dlls/infosoft/tests infosoft_test
14277 wine_fn_config_dll initpki enable_initpki
14278 wine_fn_config_dll inkobj enable_inkobj
14279 wine_fn_config_dll inseng enable_inseng
14280 wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
14281 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14282 wine_fn_config_dll itircl enable_itircl
14283 wine_fn_config_dll itss enable_itss
14284 wine_fn_config_test dlls/itss/tests itss_test
14285 wine_fn_config_dll jscript enable_jscript
14286 wine_fn_config_test dlls/jscript/tests jscript_test
14287 wine_fn_config_dll kernel32 enable_kernel32 kernel32
14288 wine_fn_config_test dlls/kernel32/tests kernel32_test
14289 wine_fn_config_dll keyboard.drv16 enable_win16
14290 wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14291 wine_fn_config_dll loadperf enable_loadperf loadperf
14292 wine_fn_config_dll localspl enable_localspl
14293 wine_fn_config_test dlls/localspl/tests localspl_test
14294 wine_fn_config_dll localui enable_localui
14295 wine_fn_config_test dlls/localui/tests localui_test
14296 wine_fn_config_dll lz32 enable_lz32 lz32
14297 wine_fn_config_test dlls/lz32/tests lz32_test
14298 wine_fn_config_dll lzexpand.dll16 enable_win16
14299 wine_fn_config_dll mapi32 enable_mapi32 mapi32
14300 wine_fn_config_test dlls/mapi32/tests mapi32_test
14301 wine_fn_config_dll mapistub enable_mapistub
14302 wine_fn_config_dll mciavi32 enable_mciavi32
14303 wine_fn_config_dll mcicda enable_mcicda
14304 wine_fn_config_dll mciqtz32 enable_mciqtz32
14305 wine_fn_config_dll mciseq enable_mciseq
14306 wine_fn_config_dll mciwave enable_mciwave
14307 wine_fn_config_dll midimap enable_midimap
14308 wine_fn_config_dll mlang enable_mlang mlang
14309 wine_fn_config_test dlls/mlang/tests mlang_test
14310 wine_fn_config_dll mmdevapi enable_mmdevapi
14311 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
14312 wine_fn_config_dll mmdevldr.vxd enable_win16
14313 wine_fn_config_dll mmsystem.dll16 enable_win16
14314 wine_fn_config_dll monodebg.vxd enable_win16
14315 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14316 wine_fn_config_dll mouse.drv16 enable_win16
14317 wine_fn_config_dll mpr enable_mpr mpr
14318 wine_fn_config_dll mprapi enable_mprapi mprapi
14319 wine_fn_config_dll msacm.dll16 enable_win16
14320 wine_fn_config_dll msacm32.drv enable_msacm32_drv
14321 wine_fn_config_dll msacm32 enable_msacm32 msacm32
14322 wine_fn_config_test dlls/msacm32/tests msacm32_test
14323 wine_fn_config_dll msadp32.acm enable_msadp32_acm
14324 wine_fn_config_dll mscat32 enable_mscat32
14325 wine_fn_config_dll mscms enable_mscms mscms
14326 wine_fn_config_test dlls/mscms/tests mscms_test
14327 wine_fn_config_dll mscoree enable_mscoree
14328 wine_fn_config_dll msctf enable_msctf
14329 wine_fn_config_test dlls/msctf/tests msctf_test
14330 wine_fn_config_dll msdaps enable_msdaps
14331 wine_fn_config_dll msdmo enable_msdmo msdmo
14332 wine_fn_config_dll msftedit enable_msftedit
14333 wine_fn_config_dll msg711.acm enable_msg711_acm
14334 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14335 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14336 wine_fn_config_dll mshtml enable_mshtml mshtml
14337 wine_fn_config_test dlls/mshtml/tests mshtml_test
14338 wine_fn_config_dll msi enable_msi msi
14339 wine_fn_config_test dlls/msi/tests msi_test
14340 wine_fn_config_dll msimg32 enable_msimg32 msimg32
14341 wine_fn_config_dll msimtf enable_msimtf
14342 wine_fn_config_dll msisip enable_msisip
14343 wine_fn_config_dll msisys.ocx enable_msisys_ocx
14344 wine_fn_config_dll msnet32 enable_msnet32
14345 wine_fn_config_dll msrle32 enable_msrle32
14346 wine_fn_config_dll mssign32 enable_mssign32
14347 wine_fn_config_dll mssip32 enable_mssip32
14348 wine_fn_config_dll mstask enable_mstask
14349 wine_fn_config_test dlls/mstask/tests mstask_test
14350 wine_fn_config_dll msvcirt enable_msvcirt
14351 wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14352 wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
14353 wine_fn_config_dll msvcr80 enable_msvcr80 msvcr80
14354 wine_fn_config_dll msvcr90 enable_msvcr90 msvcr90
14355 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
14356 wine_fn_config_dll msvcrt enable_msvcrt msvcrt
14357 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
14358 wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14359 wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14360 wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
14361 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
14362 wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
14363 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
14364 wine_fn_config_dll msvidc32 enable_msvidc32
14365 wine_fn_config_dll msvideo.dll16 enable_win16
14366 wine_fn_config_dll mswsock enable_mswsock mswsock
14367 wine_fn_config_dll msxml3 enable_msxml3
14368 wine_fn_config_test dlls/msxml3/tests msxml3_test
14369 wine_fn_config_dll msxml4 enable_msxml4
14370 wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14371 wine_fn_config_dll netapi32 enable_netapi32 netapi32
14372 wine_fn_config_test dlls/netapi32/tests netapi32_test
14373 wine_fn_config_dll newdev enable_newdev newdev
14374 wine_fn_config_dll ntdll enable_ntdll ntdll
14375 wine_fn_config_test dlls/ntdll/tests ntdll_test
14376 wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
14377 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
14378 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14379 wine_fn_config_dll ntprint enable_ntprint
14380 wine_fn_config_test dlls/ntprint/tests ntprint_test
14381 wine_fn_config_dll objsel enable_objsel
14382 wine_fn_config_dll odbc32 enable_odbc32 odbc32
14383 wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
14384 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
14385 wine_fn_config_dll ole2.dll16 enable_win16
14386 wine_fn_config_dll ole2conv.dll16 enable_win16
14387 wine_fn_config_dll ole2disp.dll16 enable_win16
14388 wine_fn_config_dll ole2nls.dll16 enable_win16
14389 wine_fn_config_dll ole2prox.dll16 enable_win16
14390 wine_fn_config_dll ole2thk.dll16 enable_win16
14391 wine_fn_config_dll ole32 enable_ole32 ole32
14392 wine_fn_config_test dlls/ole32/tests ole32_test
14393 wine_fn_config_dll oleacc enable_oleacc oleacc
14394 wine_fn_config_test dlls/oleacc/tests oleacc_test
14395 wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
14396 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
14397 wine_fn_config_dll olecli.dll16 enable_win16
14398 wine_fn_config_dll olecli32 enable_olecli32 olecli32
14399 wine_fn_config_dll oledb32 enable_oledb32
14400 wine_fn_config_test dlls/oledb32/tests oledb32_test
14401 wine_fn_config_dll oledlg enable_oledlg oledlg
14402 wine_fn_config_dll olepro32 enable_olepro32 olepro32
14403 wine_fn_config_dll olesvr.dll16 enable_win16
14404 wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14405 wine_fn_config_dll olethk32 enable_olethk32
14406 wine_fn_config_dll openal32 enable_openal32
14407 wine_fn_config_dll opengl32 enable_opengl32 opengl32
14408 wine_fn_config_test dlls/opengl32/tests opengl32_test
14409 wine_fn_config_dll pdh enable_pdh pdh
14410 wine_fn_config_test dlls/pdh/tests pdh_test
14411 wine_fn_config_dll pidgen enable_pidgen
14412 wine_fn_config_dll powrprof enable_powrprof powrprof
14413 wine_fn_config_dll printui enable_printui
14414 wine_fn_config_dll propsys enable_propsys
14415 wine_fn_config_dll psapi enable_psapi psapi
14416 wine_fn_config_test dlls/psapi/tests psapi_test
14417 wine_fn_config_dll pstorec enable_pstorec
14418 wine_fn_config_dll qcap enable_qcap
14419 wine_fn_config_dll qedit enable_qedit
14420 wine_fn_config_test dlls/qedit/tests qedit_test
14421 wine_fn_config_dll qmgr enable_qmgr
14422 wine_fn_config_test dlls/qmgr/tests qmgr_test
14423 wine_fn_config_dll qmgrprxy enable_qmgrprxy
14424 wine_fn_config_dll quartz enable_quartz quartz
14425 wine_fn_config_test dlls/quartz/tests quartz_test
14426 wine_fn_config_dll query enable_query
14427 wine_fn_config_dll rasapi16.dll16 enable_win16
14428 wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
14429 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
14430 wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14431 wine_fn_config_dll resutils enable_resutils resutils
14432 wine_fn_config_dll riched20 enable_riched20 riched20
14433 wine_fn_config_test dlls/riched20/tests riched20_test
14434 wine_fn_config_dll riched32 enable_riched32
14435 wine_fn_config_test dlls/riched32/tests riched32_test
14436 wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
14437 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
14438 wine_fn_config_dll rsabase enable_rsabase
14439 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
14440 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
14441 wine_fn_config_dll rtutils enable_rtutils rtutils
14442 wine_fn_config_dll sane.ds enable_sane_ds
14443 wine_fn_config_dll sccbase enable_sccbase
14444 wine_fn_config_dll schannel enable_schannel
14445 wine_fn_config_test dlls/schannel/tests schannel_test
14446 wine_fn_config_dll secur32 enable_secur32 secur32
14447 wine_fn_config_test dlls/secur32/tests secur32_test
14448 wine_fn_config_dll security enable_security
14449 wine_fn_config_dll sensapi enable_sensapi sensapi
14450 wine_fn_config_dll serialui enable_serialui serialui
14451 wine_fn_config_test dlls/serialui/tests serialui_test
14452 wine_fn_config_dll setupapi enable_setupapi setupapi
14453 wine_fn_config_test dlls/setupapi/tests setupapi_test
14454 wine_fn_config_dll setupx.dll16 enable_win16
14455 wine_fn_config_dll sfc enable_sfc sfc
14456 wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14457 wine_fn_config_dll shdoclc enable_shdoclc
14458 wine_fn_config_dll shdocvw enable_shdocvw shdocvw
14459 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
14460 wine_fn_config_dll shell.dll16 enable_win16
14461 wine_fn_config_dll shell32 enable_shell32 shell32
14462 wine_fn_config_test dlls/shell32/tests shell32_test
14463 wine_fn_config_dll shfolder enable_shfolder shfolder
14464 wine_fn_config_dll shlwapi enable_shlwapi shlwapi
14465 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
14466 wine_fn_config_dll slbcsp enable_slbcsp
14467 wine_fn_config_dll slc enable_slc slc
14468 wine_fn_config_dll snmpapi enable_snmpapi snmpapi
14469 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
14470 wine_fn_config_dll softpub enable_softpub
14471 wine_fn_config_dll sound.drv16 enable_win16
14472 wine_fn_config_dll spoolss enable_spoolss spoolss
14473 wine_fn_config_test dlls/spoolss/tests spoolss_test
14474 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14475 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14476 wine_fn_config_dll sti enable_sti sti
14477 wine_fn_config_test dlls/sti/tests sti_test
14478 wine_fn_config_dll storage.dll16 enable_win16
14479 wine_fn_config_dll stress.dll16 enable_win16
14480 wine_fn_config_lib strmiids
14481 wine_fn_config_dll svrapi enable_svrapi
14482 wine_fn_config_dll sxs enable_sxs
14483 wine_fn_config_dll system.drv16 enable_win16
14484 wine_fn_config_dll t2embed enable_t2embed
14485 wine_fn_config_dll tapi32 enable_tapi32 tapi32
14486 wine_fn_config_dll toolhelp.dll16 enable_win16
14487 wine_fn_config_dll traffic enable_traffic
14488 wine_fn_config_dll twain.dll16 enable_win16
14489 wine_fn_config_dll twain_32 enable_twain_32
14490 wine_fn_config_test dlls/twain_32/tests twain_32_test
14491 wine_fn_config_dll typelib.dll16 enable_win16
14492 wine_fn_config_dll unicows enable_unicows unicows
14493 wine_fn_config_dll updspapi enable_updspapi
14494 wine_fn_config_dll url enable_url url
14495 wine_fn_config_dll urlmon enable_urlmon urlmon
14496 wine_fn_config_test dlls/urlmon/tests urlmon_test
14497 wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14498 wine_fn_config_dll user.exe16 enable_win16
14499 wine_fn_config_dll user32 enable_user32 user32
14500 wine_fn_config_test dlls/user32/tests user32_test
14501 wine_fn_config_dll userenv enable_userenv userenv
14502 wine_fn_config_test dlls/userenv/tests userenv_test
14503 wine_fn_config_dll usp10 enable_usp10 usp10
14504 wine_fn_config_test dlls/usp10/tests usp10_test
14505 wine_fn_config_lib uuid
14506 wine_fn_config_dll uxtheme enable_uxtheme uxtheme
14507 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
14508 wine_fn_config_dll vdhcp.vxd enable_win16
14509 wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14510 wine_fn_config_dll ver.dll16 enable_win16
14511 wine_fn_config_dll version enable_version version
14512 wine_fn_config_test dlls/version/tests version_test
14513 wine_fn_config_dll vmm.vxd enable_win16
14514 wine_fn_config_dll vnbt.vxd enable_win16
14515 wine_fn_config_dll vnetbios.vxd enable_win16
14516 wine_fn_config_dll vtdapi.vxd enable_win16
14517 wine_fn_config_dll vwin32.vxd enable_win16
14518 wine_fn_config_dll w32skrnl enable_win16
14519 wine_fn_config_dll w32sys.dll16 enable_win16
14520 wine_fn_config_dll wbemprox enable_wbemprox
14521 wine_fn_config_dll wiaservc enable_wiaservc
14522 wine_fn_config_dll win32s16.dll16 enable_win16
14523 wine_fn_config_dll win87em.dll16 enable_win16
14524 wine_fn_config_dll winaspi.dll16 enable_win16
14525 wine_fn_config_dll windebug.dll16 enable_win16
14526 wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
14527 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
14528 wine_fn_config_dll winealsa.drv enable_winealsa_drv
14529 wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14530 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
14531 wine_fn_config_lib winecrt0
14532 wine_fn_config_dll wined3d enable_wined3d wined3d
14533 wine_fn_config_dll wineesd.drv enable_wineesd_drv
14534 wine_fn_config_dll winejack.drv enable_winejack_drv
14535 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14536 wine_fn_config_dll winemapi enable_winemapi
14537 wine_fn_config_dll winemp3.acm enable_winemp3_acm
14538 wine_fn_config_dll winenas.drv enable_winenas_drv
14539 wine_fn_config_dll wineoss.drv enable_wineoss_drv
14540 wine_fn_config_dll wineps.drv enable_wineps_drv
14541 wine_fn_config_dll wineps16.drv16 enable_win16
14542 wine_fn_config_dll winequartz.drv enable_winequartz_drv
14543 wine_fn_config_dll winex11.drv enable_winex11_drv
14544 wine_fn_config_dll wing.dll16 enable_win16
14545 wine_fn_config_dll wing32 enable_wing32
14546 wine_fn_config_dll winhttp enable_winhttp winhttp
14547 wine_fn_config_test dlls/winhttp/tests winhttp_test
14548 wine_fn_config_dll wininet enable_wininet wininet
14549 wine_fn_config_test dlls/wininet/tests wininet_test
14550 wine_fn_config_dll winmm enable_winmm winmm
14551 wine_fn_config_test dlls/winmm/tests winmm_test
14552 wine_fn_config_dll winnls.dll16 enable_win16
14553 wine_fn_config_dll winnls32 enable_winnls32 winnls32
14554 wine_fn_config_dll winscard enable_winscard winscard
14555 wine_fn_config_dll winsock.dll16 enable_win16
14556 wine_fn_config_dll winspool.drv enable_winspool_drv winspool
14557 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
14558 wine_fn_config_dll wintab.dll16 enable_win16
14559 wine_fn_config_dll wintab32 enable_wintab32 wintab32
14560 wine_fn_config_test dlls/wintab32/tests wintab32_test
14561 wine_fn_config_dll wintrust enable_wintrust wintrust
14562 wine_fn_config_test dlls/wintrust/tests wintrust_test
14563 wine_fn_config_dll wldap32 enable_wldap32 wldap32
14564 wine_fn_config_test dlls/wldap32/tests wldap32_test
14565 wine_fn_config_dll wmi enable_wmi
14566 wine_fn_config_dll wmiutils enable_wmiutils
14567 wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14568 wine_fn_config_dll wow32 enable_win16 wow32
14569 wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
14570 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
14571 wine_fn_config_dll wsock32 enable_wsock32 wsock32
14572 wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14573 wine_fn_config_dll wuapi enable_wuapi
14574 wine_fn_config_dll wuaueng enable_wuaueng
14575 wine_fn_config_dll xinput1_1 enable_xinput1_1
14576 wine_fn_config_dll xinput1_2 enable_xinput1_2
14577 wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
14578 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
14579 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14580 wine_fn_config_dll xmllite enable_xmllite
14581 wine_fn_config_test dlls/xmllite/tests xmllite_test
14582 wine_fn_config_makefile documentation enable_documentation
14583 wine_fn_config_makefile fonts enable_fonts
14584 wine_fn_config_makefile include enable_include
14585 wine_fn_config_makefile libs/port enable_libs_port
14586 wine_fn_config_makefile libs/wine enable_libs_wine
14587 wine_fn_config_makefile libs/wpp enable_libs_wpp
14588 wine_fn_config_makefile loader enable_loader
14589 wine_fn_config_makefile programs enable_programs
14590 wine_fn_config_program attrib enable_attrib install
14591 wine_fn_config_program cacls enable_cacls install
14592 wine_fn_config_program clock enable_clock install
14593 wine_fn_config_program cmd enable_cmd install
14594 wine_fn_config_test programs/cmd/tests cmd.exe_test
14595 wine_fn_config_program cmdlgtst enable_cmdlgtst
14596 wine_fn_config_program control enable_control install
14597 wine_fn_config_program dxdiag enable_dxdiag install
14598 wine_fn_config_program eject enable_eject install
14599 wine_fn_config_program expand enable_expand install
14600 wine_fn_config_program explorer enable_explorer install
14601 wine_fn_config_program extrac32 enable_extrac32 install
14602 wine_fn_config_program hh enable_hh install
14603 wine_fn_config_program icinfo enable_icinfo install
14604 wine_fn_config_program iexplore enable_iexplore install
14605 wine_fn_config_program lodctr enable_lodctr install
14606 wine_fn_config_program mshta enable_mshta install
14607 wine_fn_config_program msiexec enable_msiexec installbin
14608 wine_fn_config_program net enable_net install
14609 wine_fn_config_program notepad enable_notepad installbin
14610 wine_fn_config_program oleview enable_oleview install
14611 wine_fn_config_program ping enable_ping install
14612 wine_fn_config_program progman enable_progman install
14613 wine_fn_config_program reg enable_reg install
14614 wine_fn_config_program regedit enable_regedit installbin
14615 wine_fn_config_program regsvr32 enable_regsvr32 installbin
14616 wine_fn_config_program rpcss enable_rpcss install
14617 wine_fn_config_program rundll32 enable_rundll32 install
14618 wine_fn_config_program secedit enable_secedit install
14619 wine_fn_config_program services enable_services install
14620 wine_fn_config_program spoolsv enable_spoolsv install
14621 wine_fn_config_program start enable_start install
14622 wine_fn_config_program svchost enable_svchost install
14623 wine_fn_config_program taskmgr enable_taskmgr install
14624 wine_fn_config_program termsv enable_termsv install
14625 wine_fn_config_program uninstaller enable_uninstaller install
14626 wine_fn_config_program unlodctr enable_unlodctr install
14627 wine_fn_config_program view enable_view
14628 wine_fn_config_program wineboot enable_wineboot installbin
14629 wine_fn_config_program winebrowser enable_winebrowser install
14630 wine_fn_config_program winecfg enable_winecfg installbin
14631 wine_fn_config_program wineconsole enable_wineconsole installbin
14632 wine_fn_config_program winedbg enable_winedbg installbin
14633 wine_fn_config_program winedevice enable_winedevice install
14634 wine_fn_config_program winefile enable_winefile installbin
14635 wine_fn_config_program winemenubuilder enable_winemenubuilder install
14636 wine_fn_config_program winemine enable_winemine installbin
14637 wine_fn_config_program winepath enable_winepath installbin
14638 wine_fn_config_program winetest enable_winetest
14639 wine_fn_config_program winevdm enable_win16 install
14640 wine_fn_config_program winhelp.exe16 enable_win16 install
14641 wine_fn_config_program winhlp32 enable_winhlp32 install
14642 wine_fn_config_program winoldap.mod16 enable_win16 install
14643 wine_fn_config_program winver enable_winver install
14644 wine_fn_config_program wordpad enable_wordpad install
14645 wine_fn_config_program write enable_write install
14646 wine_fn_config_program xcopy enable_xcopy install
14647 wine_fn_config_makefile server enable_server
14648 wine_fn_config_tool tools
14649 wine_fn_config_tool tools/widl
14650 wine_fn_config_tool tools/winebuild
14651 wine_fn_config_tool tools/winedump
14652 wine_fn_config_tool tools/winegcc
14653 wine_fn_config_tool tools/wmc
14654 wine_fn_config_tool tools/wrc
14656 ac_config_files="$ac_config_files Makefile"
14659 test -n "$DLLEXT" || ALL_PROGRAM_BIN_INSTALL_DIRS=""
14661 cat >confcache <<\_ACEOF
14662 # This file is a shell script that caches the results of configure
14663 # tests run on this system so they can be shared between configure
14664 # scripts and configure runs, see configure's option --config-cache.
14665 # It is not useful on other systems. If it contains results you don't
14666 # want to keep, you may remove or edit it.
14668 # config.status only pays attention to the cache file if you give it
14669 # the --recheck option to rerun configure.
14671 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14672 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14673 # following values.
14675 _ACEOF
14677 # The following way of writing the cache mishandles newlines in values,
14678 # but we know of no workaround that is simple, portable, and efficient.
14679 # So, we kill variables containing newlines.
14680 # Ultrix sh set writes to stderr and can't be redirected directly,
14681 # and sets the high bit in the cache file unless we assign to the vars.
14683 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14684 eval ac_val=\$$ac_var
14685 case $ac_val in #(
14686 *${as_nl}*)
14687 case $ac_var in #(
14688 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14689 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14690 esac
14691 case $ac_var in #(
14692 _ | IFS | as_nl) ;; #(
14693 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14694 *) { eval $ac_var=; unset $ac_var;} ;;
14695 esac ;;
14696 esac
14697 done
14699 (set) 2>&1 |
14700 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14701 *${as_nl}ac_space=\ *)
14702 # `set' does not quote correctly, so add quotes: double-quote
14703 # substitution turns \\\\ into \\, and sed turns \\ into \.
14704 sed -n \
14705 "s/'/'\\\\''/g;
14706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14707 ;; #(
14709 # `set' quotes correctly as required by POSIX, so do not add quotes.
14710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14712 esac |
14713 sort
14715 sed '
14716 /^ac_cv_env_/b end
14717 t clear
14718 :clear
14719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14720 t end
14721 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14722 :end' >>confcache
14723 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14724 if test -w "$cache_file"; then
14725 test "x$cache_file" != "x/dev/null" &&
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14727 $as_echo "$as_me: updating cache $cache_file" >&6;}
14728 cat confcache >$cache_file
14729 else
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14731 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14734 rm -f confcache
14736 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14737 # Let make expand exec_prefix.
14738 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14740 DEFS=-DHAVE_CONFIG_H
14742 ac_libobjs=
14743 ac_ltlibobjs=
14744 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14745 # 1. Remove the extension, and $U if already installed.
14746 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14747 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14748 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14749 # will be set to the directory where LIBOBJS objects are built.
14750 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14751 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14752 done
14753 LIBOBJS=$ac_libobjs
14755 LTLIBOBJS=$ac_ltlibobjs
14759 : ${CONFIG_STATUS=./config.status}
14760 ac_write_fail=0
14761 ac_clean_files_save=$ac_clean_files
14762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14764 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14765 as_write_fail=0
14766 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14767 #! $SHELL
14768 # Generated by $as_me.
14769 # Run this file to recreate the current configuration.
14770 # Compiler output produced by configure, useful for debugging
14771 # configure, is in config.log if it exists.
14773 debug=false
14774 ac_cs_recheck=false
14775 ac_cs_silent=false
14777 SHELL=\${CONFIG_SHELL-$SHELL}
14778 export SHELL
14779 _ASEOF
14780 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14781 ## -------------------- ##
14782 ## M4sh Initialization. ##
14783 ## -------------------- ##
14785 # Be more Bourne compatible
14786 DUALCASE=1; export DUALCASE # for MKS sh
14787 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14788 emulate sh
14789 NULLCMD=:
14790 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14791 # is contrary to our usage. Disable this feature.
14792 alias -g '${1+"$@"}'='"$@"'
14793 setopt NO_GLOB_SUBST
14794 else
14795 case `(set -o) 2>/dev/null` in #(
14796 *posix*) :
14797 set -o posix ;; #(
14798 *) :
14800 esac
14804 as_nl='
14806 export as_nl
14807 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14808 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14809 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14810 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14811 # Prefer a ksh shell builtin over an external printf program on Solaris,
14812 # but without wasting forks for bash or zsh.
14813 if test -z "$BASH_VERSION$ZSH_VERSION" \
14814 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14815 as_echo='print -r --'
14816 as_echo_n='print -rn --'
14817 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14818 as_echo='printf %s\n'
14819 as_echo_n='printf %s'
14820 else
14821 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14822 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14823 as_echo_n='/usr/ucb/echo -n'
14824 else
14825 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14826 as_echo_n_body='eval
14827 arg=$1;
14828 case $arg in #(
14829 *"$as_nl"*)
14830 expr "X$arg" : "X\\(.*\\)$as_nl";
14831 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14832 esac;
14833 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14835 export as_echo_n_body
14836 as_echo_n='sh -c $as_echo_n_body as_echo'
14838 export as_echo_body
14839 as_echo='sh -c $as_echo_body as_echo'
14842 # The user is always right.
14843 if test "${PATH_SEPARATOR+set}" != set; then
14844 PATH_SEPARATOR=:
14845 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14846 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14847 PATH_SEPARATOR=';'
14852 # IFS
14853 # We need space, tab and new line, in precisely that order. Quoting is
14854 # there to prevent editors from complaining about space-tab.
14855 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14856 # splitting by setting IFS to empty value.)
14857 IFS=" "" $as_nl"
14859 # Find who we are. Look in the path if we contain no directory separator.
14860 case $0 in #((
14861 *[\\/]* ) as_myself=$0 ;;
14862 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14863 for as_dir in $PATH
14865 IFS=$as_save_IFS
14866 test -z "$as_dir" && as_dir=.
14867 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14868 done
14869 IFS=$as_save_IFS
14872 esac
14873 # We did not find ourselves, most probably we were run as `sh COMMAND'
14874 # in which case we are not to be found in the path.
14875 if test "x$as_myself" = x; then
14876 as_myself=$0
14878 if test ! -f "$as_myself"; then
14879 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14880 exit 1
14883 # Unset variables that we do not need and which cause bugs (e.g. in
14884 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14885 # suppresses any "Segmentation fault" message there. '((' could
14886 # trigger a bug in pdksh 5.2.14.
14887 for as_var in BASH_ENV ENV MAIL MAILPATH
14888 do eval test x\${$as_var+set} = xset \
14889 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14890 done
14891 PS1='$ '
14892 PS2='> '
14893 PS4='+ '
14895 # NLS nuisances.
14896 LC_ALL=C
14897 export LC_ALL
14898 LANGUAGE=C
14899 export LANGUAGE
14901 # CDPATH.
14902 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14905 # as_fn_error ERROR [LINENO LOG_FD]
14906 # ---------------------------------
14907 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14908 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14909 # script with status $?, using 1 if that was 0.
14910 as_fn_error ()
14912 as_status=$?; test $as_status -eq 0 && as_status=1
14913 if test "$3"; then
14914 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14915 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14917 $as_echo "$as_me: error: $1" >&2
14918 as_fn_exit $as_status
14919 } # as_fn_error
14922 # as_fn_set_status STATUS
14923 # -----------------------
14924 # Set $? to STATUS, without forking.
14925 as_fn_set_status ()
14927 return $1
14928 } # as_fn_set_status
14930 # as_fn_exit STATUS
14931 # -----------------
14932 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14933 as_fn_exit ()
14935 set +e
14936 as_fn_set_status $1
14937 exit $1
14938 } # as_fn_exit
14940 # as_fn_unset VAR
14941 # ---------------
14942 # Portably unset VAR.
14943 as_fn_unset ()
14945 { eval $1=; unset $1;}
14947 as_unset=as_fn_unset
14948 # as_fn_append VAR VALUE
14949 # ----------------------
14950 # Append the text in VALUE to the end of the definition contained in VAR. Take
14951 # advantage of any shell optimizations that allow amortized linear growth over
14952 # repeated appends, instead of the typical quadratic growth present in naive
14953 # implementations.
14954 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14955 eval 'as_fn_append ()
14957 eval $1+=\$2
14959 else
14960 as_fn_append ()
14962 eval $1=\$$1\$2
14964 fi # as_fn_append
14966 # as_fn_arith ARG...
14967 # ------------------
14968 # Perform arithmetic evaluation on the ARGs, and store the result in the
14969 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14970 # must be portable across $(()) and expr.
14971 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14972 eval 'as_fn_arith ()
14974 as_val=$(( $* ))
14976 else
14977 as_fn_arith ()
14979 as_val=`expr "$@" || test $? -eq 1`
14981 fi # as_fn_arith
14984 if expr a : '\(a\)' >/dev/null 2>&1 &&
14985 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14986 as_expr=expr
14987 else
14988 as_expr=false
14991 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14992 as_basename=basename
14993 else
14994 as_basename=false
14997 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14998 as_dirname=dirname
14999 else
15000 as_dirname=false
15003 as_me=`$as_basename -- "$0" ||
15004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15005 X"$0" : 'X\(//\)$' \| \
15006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15007 $as_echo X/"$0" |
15008 sed '/^.*\/\([^/][^/]*\)\/*$/{
15009 s//\1/
15012 /^X\/\(\/\/\)$/{
15013 s//\1/
15016 /^X\/\(\/\).*/{
15017 s//\1/
15020 s/.*/./; q'`
15022 # Avoid depending upon Character Ranges.
15023 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15024 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15025 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15026 as_cr_digits='0123456789'
15027 as_cr_alnum=$as_cr_Letters$as_cr_digits
15029 ECHO_C= ECHO_N= ECHO_T=
15030 case `echo -n x` in #(((((
15031 -n*)
15032 case `echo 'xy\c'` in
15033 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15034 xy) ECHO_C='\c';;
15035 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15036 ECHO_T=' ';;
15037 esac;;
15039 ECHO_N='-n';;
15040 esac
15042 rm -f conf$$ conf$$.exe conf$$.file
15043 if test -d conf$$.dir; then
15044 rm -f conf$$.dir/conf$$.file
15045 else
15046 rm -f conf$$.dir
15047 mkdir conf$$.dir 2>/dev/null
15049 if (echo >conf$$.file) 2>/dev/null; then
15050 if ln -s conf$$.file conf$$ 2>/dev/null; then
15051 as_ln_s='ln -s'
15052 # ... but there are two gotchas:
15053 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15054 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15055 # In both cases, we have to default to `cp -p'.
15056 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15057 as_ln_s='cp -p'
15058 elif ln conf$$.file conf$$ 2>/dev/null; then
15059 as_ln_s=ln
15060 else
15061 as_ln_s='cp -p'
15063 else
15064 as_ln_s='cp -p'
15066 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15067 rmdir conf$$.dir 2>/dev/null
15070 # as_fn_mkdir_p
15071 # -------------
15072 # Create "$as_dir" as a directory, including parents if necessary.
15073 as_fn_mkdir_p ()
15076 case $as_dir in #(
15077 -*) as_dir=./$as_dir;;
15078 esac
15079 test -d "$as_dir" || eval $as_mkdir_p || {
15080 as_dirs=
15081 while :; do
15082 case $as_dir in #(
15083 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15084 *) as_qdir=$as_dir;;
15085 esac
15086 as_dirs="'$as_qdir' $as_dirs"
15087 as_dir=`$as_dirname -- "$as_dir" ||
15088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15089 X"$as_dir" : 'X\(//\)[^/]' \| \
15090 X"$as_dir" : 'X\(//\)$' \| \
15091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15092 $as_echo X"$as_dir" |
15093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15094 s//\1/
15097 /^X\(\/\/\)[^/].*/{
15098 s//\1/
15101 /^X\(\/\/\)$/{
15102 s//\1/
15105 /^X\(\/\).*/{
15106 s//\1/
15109 s/.*/./; q'`
15110 test -d "$as_dir" && break
15111 done
15112 test -z "$as_dirs" || eval "mkdir $as_dirs"
15113 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15116 } # as_fn_mkdir_p
15117 if mkdir -p . 2>/dev/null; then
15118 as_mkdir_p='mkdir -p "$as_dir"'
15119 else
15120 test -d ./-p && rmdir ./-p
15121 as_mkdir_p=false
15124 if test -x / >/dev/null 2>&1; then
15125 as_test_x='test -x'
15126 else
15127 if ls -dL / >/dev/null 2>&1; then
15128 as_ls_L_option=L
15129 else
15130 as_ls_L_option=
15132 as_test_x='
15133 eval sh -c '\''
15134 if test -d "$1"; then
15135 test -d "$1/.";
15136 else
15137 case $1 in #(
15138 -*)set "./$1";;
15139 esac;
15140 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15141 ???[sx]*):;;*)false;;esac;fi
15142 '\'' sh
15145 as_executable_p=$as_test_x
15147 # Sed expression to map a string onto a valid CPP name.
15148 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15150 # Sed expression to map a string onto a valid variable name.
15151 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15154 exec 6>&1
15155 ## ----------------------------------- ##
15156 ## Main body of $CONFIG_STATUS script. ##
15157 ## ----------------------------------- ##
15158 _ASEOF
15159 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15162 # Save the log message, to keep $0 and so on meaningful, and to
15163 # report actual input values of CONFIG_FILES etc. instead of their
15164 # values after options handling.
15165 ac_log="
15166 This file was extended by Wine $as_me 1.1.41, which was
15167 generated by GNU Autoconf 2.65. Invocation command line was
15169 CONFIG_FILES = $CONFIG_FILES
15170 CONFIG_HEADERS = $CONFIG_HEADERS
15171 CONFIG_LINKS = $CONFIG_LINKS
15172 CONFIG_COMMANDS = $CONFIG_COMMANDS
15173 $ $0 $@
15175 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15178 _ACEOF
15180 case $ac_config_files in *"
15181 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15182 esac
15184 case $ac_config_headers in *"
15185 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15186 esac
15189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15190 # Files that config.status was made for.
15191 config_files="$ac_config_files"
15192 config_headers="$ac_config_headers"
15193 config_links="$ac_config_links"
15194 config_commands="$ac_config_commands"
15196 _ACEOF
15198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15199 ac_cs_usage="\
15200 \`$as_me' instantiates files and other configuration actions
15201 from templates according to the current configuration. Unless the files
15202 and actions are specified as TAGs, all are instantiated by default.
15204 Usage: $0 [OPTION]... [TAG]...
15206 -h, --help print this help, then exit
15207 -V, --version print version number and configuration settings, then exit
15208 --config print configuration, then exit
15209 -q, --quiet, --silent
15210 do not print progress messages
15211 -d, --debug don't remove temporary files
15212 --recheck update $as_me by reconfiguring in the same conditions
15213 --file=FILE[:TEMPLATE]
15214 instantiate the configuration file FILE
15215 --header=FILE[:TEMPLATE]
15216 instantiate the configuration header FILE
15218 Configuration files:
15219 $config_files
15221 Configuration headers:
15222 $config_headers
15224 Configuration links:
15225 $config_links
15227 Configuration commands:
15228 $config_commands
15230 Report bugs to <wine-devel@winehq.org>.
15231 Wine home page: <http://www.winehq.org>."
15233 _ACEOF
15234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15235 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15236 ac_cs_version="\\
15237 Wine config.status 1.1.41
15238 configured by $0, generated by GNU Autoconf 2.65,
15239 with options \\"\$ac_cs_config\\"
15241 Copyright (C) 2009 Free Software Foundation, Inc.
15242 This config.status script is free software; the Free Software Foundation
15243 gives unlimited permission to copy, distribute and modify it."
15245 ac_pwd='$ac_pwd'
15246 srcdir='$srcdir'
15247 INSTALL='$INSTALL'
15248 test -n "\$AWK" || AWK=awk
15249 _ACEOF
15251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15252 # The default lists apply if the user does not specify any file.
15253 ac_need_defaults=:
15254 while test $# != 0
15256 case $1 in
15257 --*=*)
15258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15260 ac_shift=:
15263 ac_option=$1
15264 ac_optarg=$2
15265 ac_shift=shift
15267 esac
15269 case $ac_option in
15270 # Handling of the options.
15271 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15272 ac_cs_recheck=: ;;
15273 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15274 $as_echo "$ac_cs_version"; exit ;;
15275 --config | --confi | --conf | --con | --co | --c )
15276 $as_echo "$ac_cs_config"; exit ;;
15277 --debug | --debu | --deb | --de | --d | -d )
15278 debug=: ;;
15279 --file | --fil | --fi | --f )
15280 $ac_shift
15281 case $ac_optarg in
15282 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15283 esac
15284 as_fn_append CONFIG_FILES " '$ac_optarg'"
15285 ac_need_defaults=false;;
15286 --header | --heade | --head | --hea )
15287 $ac_shift
15288 case $ac_optarg in
15289 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15290 esac
15291 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15292 ac_need_defaults=false;;
15293 --he | --h)
15294 # Conflict between --help and --header
15295 as_fn_error "ambiguous option: \`$1'
15296 Try \`$0 --help' for more information.";;
15297 --help | --hel | -h )
15298 $as_echo "$ac_cs_usage"; exit ;;
15299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15300 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15301 ac_cs_silent=: ;;
15303 # This is an error.
15304 -*) as_fn_error "unrecognized option: \`$1'
15305 Try \`$0 --help' for more information." ;;
15307 *) as_fn_append ac_config_targets " $1"
15308 ac_need_defaults=false ;;
15310 esac
15311 shift
15312 done
15314 ac_configure_extra_args=
15316 if $ac_cs_silent; then
15317 exec 6>/dev/null
15318 ac_configure_extra_args="$ac_configure_extra_args --silent"
15321 _ACEOF
15322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15323 if \$ac_cs_recheck; then
15324 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15325 shift
15326 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15327 CONFIG_SHELL='$SHELL'
15328 export CONFIG_SHELL
15329 exec "\$@"
15332 _ACEOF
15333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15334 exec 5>>config.log
15336 echo
15337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15338 ## Running $as_me. ##
15339 _ASBOX
15340 $as_echo "$ac_log"
15341 } >&5
15343 _ACEOF
15344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15345 _ACEOF
15347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15349 # Handling of arguments.
15350 for ac_config_target in $ac_config_targets
15352 case $ac_config_target in
15353 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15354 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
15355 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
15356 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15357 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15358 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15359 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
15360 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
15361 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15362 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
15363 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
15364 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
15365 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15366 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15367 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15368 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
15369 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15370 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
15371 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15372 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15374 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15375 esac
15376 done
15379 # If the user did not use the arguments to specify the items to instantiate,
15380 # then the envvar interface is used. Set only those that are not.
15381 # We use the long form for the default assignment because of an extremely
15382 # bizarre bug on SunOS 4.1.3.
15383 if $ac_need_defaults; then
15384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15385 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15386 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15387 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15390 # Have a temporary directory for convenience. Make it in the build tree
15391 # simply because there is no reason against having it here, and in addition,
15392 # creating and moving files from /tmp can sometimes cause problems.
15393 # Hook for its removal unless debugging.
15394 # Note that there is a small window in which the directory will not be cleaned:
15395 # after its creation but before its name has been assigned to `$tmp'.
15396 $debug ||
15398 tmp=
15399 trap 'exit_status=$?
15400 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15402 trap 'as_fn_exit 1' 1 2 13 15
15404 # Create a (secure) tmp directory for tmp files.
15407 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15408 test -n "$tmp" && test -d "$tmp"
15409 } ||
15411 tmp=./conf$$-$RANDOM
15412 (umask 077 && mkdir "$tmp")
15413 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15415 # Set up the scripts for CONFIG_FILES section.
15416 # No need to generate them if there are no CONFIG_FILES.
15417 # This happens for instance with `./config.status config.h'.
15418 if test -n "$CONFIG_FILES"; then
15420 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15421 ac_cs_awk_getline=:
15422 ac_cs_awk_pipe_init=
15423 ac_cs_awk_read_file='
15424 while ((getline aline < (F[key])) > 0)
15425 print(aline)
15426 close(F[key])'
15427 ac_cs_awk_pipe_fini=
15428 else
15429 ac_cs_awk_getline=false
15430 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15431 ac_cs_awk_read_file='
15432 print "|#_!!_#|"
15433 print "cat " F[key] " &&"
15434 '$ac_cs_awk_pipe_init
15435 # The final `:' finishes the AND list.
15436 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15438 ac_cr=`echo X | tr X '\015'`
15439 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15440 # But we know of no other shell where ac_cr would be empty at this
15441 # point, so we can use a bashism as a fallback.
15442 if test "x$ac_cr" = x; then
15443 eval ac_cr=\$\'\\r\'
15445 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15446 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15447 ac_cs_awk_cr='\r'
15448 else
15449 ac_cs_awk_cr=$ac_cr
15452 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15453 _ACEOF
15455 # Create commands to substitute file output variables.
15457 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15458 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15459 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15460 echo "_ACAWK" &&
15461 echo "_ACEOF"
15462 } >conf$$files.sh &&
15463 . ./conf$$files.sh ||
15464 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15465 rm -f conf$$files.sh
15468 echo "cat >conf$$subs.awk <<_ACEOF" &&
15469 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15470 echo "_ACEOF"
15471 } >conf$$subs.sh ||
15472 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15473 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15474 ac_delim='%!_!# '
15475 for ac_last_try in false false false false false :; do
15476 . ./conf$$subs.sh ||
15477 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15479 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15480 if test $ac_delim_n = $ac_delim_num; then
15481 break
15482 elif $ac_last_try; then
15483 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15484 else
15485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15487 done
15488 rm -f conf$$subs.sh
15490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15491 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15492 _ACEOF
15493 sed -n '
15495 s/^/S["/; s/!.*/"]=/
15498 s/^[^!]*!//
15499 :repl
15500 t repl
15501 s/'"$ac_delim"'$//
15502 t delim
15505 s/\(.\{148\}\)..*/\1/
15506 t more1
15507 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15510 b repl
15511 :more1
15512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15515 s/.\{148\}//
15516 t nl
15517 :delim
15519 s/\(.\{148\}\)..*/\1/
15520 t more2
15521 s/["\\]/\\&/g; s/^/"/; s/$/"/
15524 :more2
15525 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15528 s/.\{148\}//
15529 t delim
15530 ' <conf$$subs.awk | sed '
15531 /^[^""]/{
15533 s/\n//
15535 ' >>$CONFIG_STATUS || ac_write_fail=1
15536 rm -f conf$$subs.awk
15537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15538 _ACAWK
15539 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15540 for (key in S) S_is_set[key] = 1
15541 FS = "\a"
15542 \$ac_cs_awk_pipe_init
15545 line = $ 0
15546 nfields = split(line, field, "@")
15547 substed = 0
15548 len = length(field[1])
15549 for (i = 2; i < nfields; i++) {
15550 key = field[i]
15551 keylen = length(key)
15552 if (S_is_set[key]) {
15553 value = S[key]
15554 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15555 len += length(value) + length(field[++i])
15556 substed = 1
15557 } else
15558 len += 1 + keylen
15560 if (nfields == 3 && !substed) {
15561 key = field[2]
15562 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15563 \$ac_cs_awk_read_file
15564 next
15567 print line
15569 \$ac_cs_awk_pipe_fini
15570 _ACAWK
15571 _ACEOF
15572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15573 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15574 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15575 else
15577 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15578 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15579 _ACEOF
15581 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15582 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15583 # trailing colons and then remove the whole line if VPATH becomes empty
15584 # (actually we leave an empty line to preserve line numbers).
15585 if test "x$srcdir" = x.; then
15586 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15587 s/:*\$(srcdir):*/:/
15588 s/:*\${srcdir}:*/:/
15589 s/:*@srcdir@:*/:/
15590 s/^\([^=]*=[ ]*\):*/\1/
15591 s/:*$//
15592 s/^[^=]*=[ ]*$//
15596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597 fi # test -n "$CONFIG_FILES"
15599 # Set up the scripts for CONFIG_HEADERS section.
15600 # No need to generate them if there are no CONFIG_HEADERS.
15601 # This happens for instance with `./config.status Makefile'.
15602 if test -n "$CONFIG_HEADERS"; then
15603 cat >"$tmp/defines.awk" <<\_ACAWK ||
15604 BEGIN {
15605 _ACEOF
15607 # Transform confdefs.h into an awk script `defines.awk', embedded as
15608 # here-document in config.status, that substitutes the proper values into
15609 # config.h.in to produce config.h.
15611 # Create a delimiter string that does not exist in confdefs.h, to ease
15612 # handling of long lines.
15613 ac_delim='%!_!# '
15614 for ac_last_try in false false :; do
15615 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15616 if test -z "$ac_t"; then
15617 break
15618 elif $ac_last_try; then
15619 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15620 else
15621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15623 done
15625 # For the awk script, D is an array of macro values keyed by name,
15626 # likewise P contains macro parameters if any. Preserve backslash
15627 # newline sequences.
15629 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15630 sed -n '
15631 s/.\{148\}/&'"$ac_delim"'/g
15632 t rset
15633 :rset
15634 s/^[ ]*#[ ]*define[ ][ ]*/ /
15635 t def
15637 :def
15638 s/\\$//
15639 t bsnl
15640 s/["\\]/\\&/g
15641 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15642 D["\1"]=" \3"/p
15643 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15645 :bsnl
15646 s/["\\]/\\&/g
15647 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15648 D["\1"]=" \3\\\\\\n"\\/p
15649 t cont
15650 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15651 t cont
15653 :cont
15655 s/.\{148\}/&'"$ac_delim"'/g
15656 t clear
15657 :clear
15658 s/\\$//
15659 t bsnlc
15660 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15662 :bsnlc
15663 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15664 b cont
15665 ' <confdefs.h | sed '
15666 s/'"$ac_delim"'/"\\\
15667 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15670 for (key in D) D_is_set[key] = 1
15671 FS = "\a"
15673 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15674 line = \$ 0
15675 split(line, arg, " ")
15676 if (arg[1] == "#") {
15677 defundef = arg[2]
15678 mac1 = arg[3]
15679 } else {
15680 defundef = substr(arg[1], 2)
15681 mac1 = arg[2]
15683 split(mac1, mac2, "(") #)
15684 macro = mac2[1]
15685 prefix = substr(line, 1, index(line, defundef) - 1)
15686 if (D_is_set[macro]) {
15687 # Preserve the white space surrounding the "#".
15688 print prefix "define", macro P[macro] D[macro]
15689 next
15690 } else {
15691 # Replace #undef with comments. This is necessary, for example,
15692 # in the case of _POSIX_SOURCE, which is predefined and required
15693 # on some systems where configure will not decide to define it.
15694 if (defundef == "undef") {
15695 print "/*", prefix defundef, macro, "*/"
15696 next
15700 { print }
15701 _ACAWK
15702 _ACEOF
15703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15704 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15705 fi # test -n "$CONFIG_HEADERS"
15708 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15709 shift
15710 for ac_tag
15712 case $ac_tag in
15713 :[FHLC]) ac_mode=$ac_tag; continue;;
15714 esac
15715 case $ac_mode$ac_tag in
15716 :[FHL]*:*);;
15717 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15718 :[FH]-) ac_tag=-:-;;
15719 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15720 esac
15721 ac_save_IFS=$IFS
15722 IFS=:
15723 set x $ac_tag
15724 IFS=$ac_save_IFS
15725 shift
15726 ac_file=$1
15727 shift
15729 case $ac_mode in
15730 :L) ac_source=$1;;
15731 :[FH])
15732 ac_file_inputs=
15733 for ac_f
15735 case $ac_f in
15736 -) ac_f="$tmp/stdin";;
15737 *) # Look for the file first in the build tree, then in the source tree
15738 # (if the path is not absolute). The absolute path cannot be DOS-style,
15739 # because $ac_f cannot contain `:'.
15740 test -f "$ac_f" ||
15741 case $ac_f in
15742 [\\/$]*) false;;
15743 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15744 esac ||
15745 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15746 esac
15747 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15748 as_fn_append ac_file_inputs " '$ac_f'"
15749 done
15751 # Let's still pretend it is `configure' which instantiates (i.e., don't
15752 # use $as_me), people would be surprised to read:
15753 # /* config.h. Generated by config.status. */
15754 configure_input='Generated from '`
15755 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15756 `' by configure.'
15757 if test x"$ac_file" != x-; then
15758 configure_input="$ac_file. $configure_input"
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15760 $as_echo "$as_me: creating $ac_file" >&6;}
15762 # Neutralize special characters interpreted by sed in replacement strings.
15763 case $configure_input in #(
15764 *\&* | *\|* | *\\* )
15765 ac_sed_conf_input=`$as_echo "$configure_input" |
15766 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15767 *) ac_sed_conf_input=$configure_input;;
15768 esac
15770 case $ac_tag in
15771 *:-:* | *:-) cat >"$tmp/stdin" \
15772 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15773 esac
15775 esac
15777 ac_dir=`$as_dirname -- "$ac_file" ||
15778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15779 X"$ac_file" : 'X\(//\)[^/]' \| \
15780 X"$ac_file" : 'X\(//\)$' \| \
15781 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15782 $as_echo X"$ac_file" |
15783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15784 s//\1/
15787 /^X\(\/\/\)[^/].*/{
15788 s//\1/
15791 /^X\(\/\/\)$/{
15792 s//\1/
15795 /^X\(\/\).*/{
15796 s//\1/
15799 s/.*/./; q'`
15800 as_dir="$ac_dir"; as_fn_mkdir_p
15801 ac_builddir=.
15803 case "$ac_dir" in
15804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15807 # A ".." for each directory in $ac_dir_suffix.
15808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15809 case $ac_top_builddir_sub in
15810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15812 esac ;;
15813 esac
15814 ac_abs_top_builddir=$ac_pwd
15815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15816 # for backward compatibility:
15817 ac_top_builddir=$ac_top_build_prefix
15819 case $srcdir in
15820 .) # We are building in place.
15821 ac_srcdir=.
15822 ac_top_srcdir=$ac_top_builddir_sub
15823 ac_abs_top_srcdir=$ac_pwd ;;
15824 [\\/]* | ?:[\\/]* ) # Absolute name.
15825 ac_srcdir=$srcdir$ac_dir_suffix;
15826 ac_top_srcdir=$srcdir
15827 ac_abs_top_srcdir=$srcdir ;;
15828 *) # Relative name.
15829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15830 ac_top_srcdir=$ac_top_build_prefix$srcdir
15831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15832 esac
15833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15836 case $ac_mode in
15839 # CONFIG_FILE
15842 case $INSTALL in
15843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15844 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15845 esac
15846 _ACEOF
15848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15849 # If the template does not know about datarootdir, expand it.
15850 # FIXME: This hack should be removed a few years after 2.60.
15851 ac_datarootdir_hack=; ac_datarootdir_seen=
15852 ac_sed_dataroot='
15853 /datarootdir/ {
15857 /@datadir@/p
15858 /@docdir@/p
15859 /@infodir@/p
15860 /@localedir@/p
15861 /@mandir@/p'
15862 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15863 *datarootdir*) ac_datarootdir_seen=yes;;
15864 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15866 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15867 _ACEOF
15868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15869 ac_datarootdir_hack='
15870 s&@datadir@&$datadir&g
15871 s&@docdir@&$docdir&g
15872 s&@infodir@&$infodir&g
15873 s&@localedir@&$localedir&g
15874 s&@mandir@&$mandir&g
15875 s&\\\${datarootdir}&$datarootdir&g' ;;
15876 esac
15877 _ACEOF
15879 # Neutralize VPATH when `$srcdir' = `.'.
15880 # Shell code in configure.ac might set extrasub.
15881 # FIXME: do we really want to maintain this feature?
15882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15883 ac_sed_extra="$ac_vpsub
15884 $extrasub
15885 _ACEOF
15886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15889 s|@configure_input@|$ac_sed_conf_input|;t t
15890 s&@top_builddir@&$ac_top_builddir_sub&;t t
15891 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15892 s&@srcdir@&$ac_srcdir&;t t
15893 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15894 s&@top_srcdir@&$ac_top_srcdir&;t t
15895 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15896 s&@builddir@&$ac_builddir&;t t
15897 s&@abs_builddir@&$ac_abs_builddir&;t t
15898 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15899 s&@INSTALL@&$ac_INSTALL&;t t
15900 $ac_datarootdir_hack
15902 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15903 if $ac_cs_awk_getline; then
15904 $AWK -f "$tmp/subs.awk"
15905 else
15906 $AWK -f "$tmp/subs.awk" | $SHELL
15907 fi >$tmp/out \
15908 || as_fn_error "could not create $ac_file" "$LINENO" 5
15910 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15911 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15912 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15914 which seems to be undefined. Please make sure it is defined." >&5
15915 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15916 which seems to be undefined. Please make sure it is defined." >&2;}
15918 rm -f "$tmp/stdin"
15919 case $ac_file in
15920 -) cat "$tmp/out" && rm -f "$tmp/out";;
15921 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15922 esac \
15923 || as_fn_error "could not create $ac_file" "$LINENO" 5
15927 # CONFIG_HEADER
15929 if test x"$ac_file" != x-; then
15931 $as_echo "/* $configure_input */" \
15932 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15933 } >"$tmp/config.h" \
15934 || as_fn_error "could not create $ac_file" "$LINENO" 5
15935 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15937 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15938 else
15939 rm -f "$ac_file"
15940 mv "$tmp/config.h" "$ac_file" \
15941 || as_fn_error "could not create $ac_file" "$LINENO" 5
15943 else
15944 $as_echo "/* $configure_input */" \
15945 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15946 || as_fn_error "could not create -" "$LINENO" 5
15951 # CONFIG_LINK
15954 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15956 else
15957 # Prefer the file from the source tree if names are identical.
15958 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15959 ac_source=$srcdir/$ac_source
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15963 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15965 if test ! -r "$ac_source"; then
15966 as_fn_error "$ac_source: file not found" "$LINENO" 5
15968 rm -f "$ac_file"
15970 # Try a relative symlink, then a hard link, then a copy.
15971 case $srcdir in
15972 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15973 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15974 esac
15975 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15976 ln "$ac_source" "$ac_file" 2>/dev/null ||
15977 cp -p "$ac_source" "$ac_file" ||
15978 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15981 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15982 $as_echo "$as_me: executing $ac_file commands" >&6;}
15984 esac
15987 case $ac_file$ac_mode in
15988 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
15989 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
15990 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
15991 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
15992 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
15993 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
15994 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
15995 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
15996 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
15997 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
15998 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
15999 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16000 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16002 esac
16003 done # for ac_tag
16006 as_fn_exit 0
16007 _ACEOF
16008 ac_clean_files=$ac_clean_files_save
16010 test $ac_write_fail = 0 ||
16011 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16014 # configure is writing to config.log, and then calls config.status.
16015 # config.status does its own redirection, appending to config.log.
16016 # Unfortunately, on DOS this fails, as config.log is still kept open
16017 # by configure, so config.status won't be able to write to it; its
16018 # output is simply discarded. So we exec the FD to /dev/null,
16019 # effectively closing config.log, so it can be properly (re)opened and
16020 # appended to by config.status. When coming back to configure, we
16021 # need to make the FD available again.
16022 if test "$no_create" != yes; then
16023 ac_cs_success=:
16024 ac_config_status_args=
16025 test "$silent" = yes &&
16026 ac_config_status_args="$ac_config_status_args --quiet"
16027 exec 5>/dev/null
16028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16029 exec 5>>config.log
16030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16031 # would make configure fail if this is the last instruction.
16032 $ac_cs_success || as_fn_exit $?
16034 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16036 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16040 if test "$no_create" = "yes"
16041 then
16042 exit 0
16045 ac_save_IFS="$IFS"
16046 if test "x$wine_notices != "x; then
16047 echo >&6
16048 IFS="|"
16049 for msg in $wine_notices; do
16050 IFS="$ac_save_IFS"
16051 if test -n "$msg"; then
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16053 $as_echo "$as_me: $msg" >&6;}
16055 done
16057 IFS="|"
16058 for msg in $wine_warnings; do
16059 IFS="$ac_save_IFS"
16060 if test -n "$msg"; then
16061 echo >&2
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16063 $as_echo "$as_me: WARNING: $msg" >&2;}
16065 done
16066 IFS="$ac_save_IFS"
16068 echo "
16069 $as_me: Finished. Do '${ac_make}' to compile Wine.
16070 " >&6