cmd: Fix FOR tab handling.
[wine] / configure
index 1332a69..1497bdb 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.67 for Wine 1.3.11.
+# Generated by GNU Autoconf 2.68 for Wine 1.3.26.
 #
 # Report bugs to <wine-devel@winehq.org>.
 #
@@ -91,6 +91,7 @@ fi
 IFS=" ""       $as_nl"
 
 # Find who we are.  Look in the path if we contain no directory separator.
+as_myself=
 case $0 in #((
   *[\\/]* ) as_myself=$0 ;;
   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -216,11 +217,18 @@ IFS=$as_save_IFS
   # We cannot yet assume a decent shell, so we have to provide a
        # neutralization value for shells without unset; and this also
        # works around shells that cannot unset nonexistent variables.
+       # Preserve -v and -x to the replacement shell.
        BASH_ENV=/dev/null
        ENV=/dev/null
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
        export CONFIG_SHELL
-       exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
+       case $- in # ((((
+         *v*x* | *x*v* ) as_opts=-vx ;;
+         *v* ) as_opts=-v ;;
+         *x* ) as_opts=-x ;;
+         * ) as_opts= ;;
+       esac
+       exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 fi
 
     if test x$as_have_required = xno; then :
@@ -552,8 +560,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='Wine'
 PACKAGE_TARNAME='wine'
-PACKAGE_VERSION='1.3.11'
-PACKAGE_STRING='Wine 1.3.11'
+PACKAGE_VERSION='1.3.26'
+PACKAGE_STRING='Wine 1.3.26'
 PACKAGE_BUGREPORT='wine-devel@winehq.org'
 PACKAGE_URL='http://www.winehq.org'
 
@@ -597,8 +605,7 @@ ac_includes_default="\
 ac_subst_vars='LTLIBOBJS
 LIBOBJS
 LINGUAS
-ALL_TEST_BINARIES
-ALL_WINETEST_DEPENDS
+ALL_TEST_RESOURCES
 LDAPLIBS
 LIBPOLL
 LIBDL
@@ -617,12 +624,10 @@ LIBMPG123
 PNGINCL
 FONTCONFIGINCL
 CUPSINCL
+OSS4INCL
 ALSALIBS
 GSTREAMER_INCL
 GSTREAMER_LIBS
-ESDLIBS
-ESDINCL
-ESDCONFIG
 LIBGETTEXTPO
 ZLIB
 FREETYPEINCL
@@ -641,7 +646,6 @@ HALINCL
 XSLTINCL
 XML2INCL
 XML2LIBS
-NASLIBS
 X_EXTRA_LIBS
 X_LIBS
 X_PRE_LIBS
@@ -653,16 +657,16 @@ CROSSCC
 CROSSTEST_DISABLE
 PRELINK
 CARBONLIB
+QUICKTIMELIB
 LIBOPENCL
 FRAMEWORK_OPENAL
 COREAUDIO
+SECURITYLIB
 DISKARBITRATIONLIB
 LDEXECFLAGS
 APPLICATIONSERVICESLIB
-QUICKTIMELIB
 IOKITLIB
 COREFOUNDATIONLIB
-SECURITYLIB
 DLLWRAP
 DLLTOOL
 LDD
@@ -692,7 +696,6 @@ LDCONFIG
 EGREP
 GREP
 LN_S
-STRIP
 RANLIB
 ARFLAGS
 ac_ct_AR
@@ -777,7 +780,6 @@ with_cms
 with_coreaudio
 with_cups
 with_curses
-with_esd
 with_fontconfig
 with_freetype
 with_gettextpo
@@ -787,11 +789,9 @@ with_gnutls
 with_gsm
 with_gstreamer
 with_hal
-with_jack
 with_jpeg
 with_ldap
 with_mpg123
-with_nas
 with_openal
 with_opencl
 with_opengl
@@ -806,6 +806,7 @@ with_xcomposite
 with_xcursor
 with_xinerama
 with_xinput
+with_xinput2
 with_xml
 with_xrandr
 with_xrender
@@ -813,6 +814,7 @@ with_xshape
 with_xshm
 with_xslt
 with_xxf86vm
+with_zlib
 with_wine_tools
 with_wine64
 enable_largefile
@@ -1235,7 +1237,7 @@ Try \`$0 --help' for more information"
     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
-    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
+    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
     ;;
 
   esac
@@ -1373,7 +1375,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures Wine 1.3.11 to adapt to many kinds of systems.
+\`configure' configures Wine 1.3.26 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1442,7 +1444,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of Wine 1.3.11:";;
+     short | recursive ) echo "Configuration of Wine 1.3.26:";;
    esac
   cat <<\_ACEOF
 
@@ -1467,7 +1469,6 @@ Optional Packages:
   --without-coreaudio     do not use the CoreAudio sound support
   --without-cups          do not use CUPS
   --without-curses        do not use (n)curses
-  --without-esd           do not use the EsounD sound support
   --without-fontconfig    do not use fontconfig
   --without-freetype      do not use the FreeType library
   --without-gettextpo     do not use the GetTextPO library
@@ -1477,11 +1478,9 @@ Optional Packages:
   --without-gsm           do not use libgsm (GSM 06.10 codec support)
   --without-gstreamer     do not use GStreamer (codecs support)
   --without-hal           do not use HAL (dynamic device support)
-  --without-jack          do not use the Jack sound support
   --without-jpeg          do not use JPEG
   --without-ldap          do not use LDAP
   --without-mpg123        do not use the mpg123 library
-  --without-nas           do not use the NAS sound support
   --without-openal        do not use OpenAL
   --without-opencl        do not use OpenCL
   --without-opengl        do not use OpenGL
@@ -1496,6 +1495,7 @@ Optional Packages:
   --without-xcursor       do not use the Xcursor extension
   --without-xinerama      do not use Xinerama (multi-monitor support)
   --without-xinput        do not use the Xinput extension
+  --without-xinput2       do not use the Xinput 2 extension
   --without-xml           do not use XML
   --without-xrandr        do not use Xrandr (resolution changes)
   --without-xrender       do not use the Xrender extension
@@ -1503,6 +1503,7 @@ Optional Packages:
   --without-xshm          do not use XShm (shared memory extension)
   --without-xslt          do not use XSLT
   --without-xxf86vm       do not use XFree video mode extension
+  --without-zlib          do not use Zlib (data compression)
   --with-wine-tools=DIR   use Wine tools from directory DIR
   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
   --with-x                use the X Window System
@@ -1587,8 +1588,8 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-Wine configure 1.3.11
-generated by GNU Autoconf 2.67
+Wine configure 1.3.26
+generated by GNU Autoconf 2.68
 
 Copyright (C) 2010 Free Software Foundation, Inc.
 This configure script is free software; the Free Software Foundation
@@ -1634,7 +1635,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
 
        ac_retval=1
 fi
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   as_fn_set_status $ac_retval
 
 } # ac_fn_c_try_compile
@@ -1672,7 +1673,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
 
        ac_retval=1
 fi
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   as_fn_set_status $ac_retval
 
 } # ac_fn_cxx_try_compile
@@ -1718,7 +1719,7 @@ fi
   # interfere with the next link command; also delete a directory that is
   # left behind by Apple's compiler.  We do this before executing the actions.
   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   as_fn_set_status $ac_retval
 
 } # ac_fn_c_try_link
@@ -1755,7 +1756,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
 
     ac_retval=1
 fi
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   as_fn_set_status $ac_retval
 
 } # ac_fn_c_try_cpp
@@ -1768,10 +1769,10 @@ fi
 ac_fn_c_check_header_mongrel ()
 {
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  if eval "test \"\${$3+set}\"" = set; then :
+  if eval \${$3+:} false; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 $as_echo_n "checking for $2... " >&6; }
-if eval "test \"\${$3+set}\"" = set; then :
+if eval \${$3+:} false; then :
   $as_echo_n "(cached) " >&6
 fi
 eval ac_res=\$$3
@@ -1838,7 +1839,7 @@ $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 esac
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 $as_echo_n "checking for $2... " >&6; }
-if eval "test \"\${$3+set}\"" = set; then :
+if eval \${$3+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   eval "$3=\$ac_header_compiler"
@@ -1847,7 +1848,7 @@ eval ac_res=\$$3
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 $as_echo "$ac_res" >&6; }
 fi
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
 } # ac_fn_c_check_header_mongrel
 
@@ -1888,7 +1889,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
        ac_retval=$ac_status
 fi
   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   as_fn_set_status $ac_retval
 
 } # ac_fn_c_try_run
@@ -1902,7 +1903,7 @@ ac_fn_c_check_header_compile ()
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 $as_echo_n "checking for $2... " >&6; }
-if eval "test \"\${$3+set}\"" = set; then :
+if eval \${$3+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -1920,7 +1921,7 @@ fi
 eval ac_res=\$$3
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 $as_echo "$ac_res" >&6; }
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
 } # ac_fn_c_check_header_compile
 
@@ -1932,7 +1933,7 @@ ac_fn_c_check_func ()
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 $as_echo_n "checking for $2... " >&6; }
-if eval "test \"\${$3+set}\"" = set; then :
+if eval \${$3+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -1987,7 +1988,7 @@ fi
 eval ac_res=\$$3
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 $as_echo "$ac_res" >&6; }
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
 } # ac_fn_c_check_func
 
@@ -2000,7 +2001,7 @@ ac_fn_c_check_member ()
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 $as_echo_n "checking for $2.$3... " >&6; }
-if eval "test \"\${$4+set}\"" = set; then :
+if eval \${$4+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -2044,7 +2045,7 @@ fi
 eval ac_res=\$$4
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 $as_echo "$ac_res" >&6; }
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
 } # ac_fn_c_check_member
 
@@ -2057,7 +2058,7 @@ ac_fn_c_check_type ()
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 $as_echo_n "checking for $2... " >&6; }
-if eval "test \"\${$3+set}\"" = set; then :
+if eval \${$3+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   eval "$3=no"
@@ -2098,15 +2099,15 @@ fi
 eval ac_res=\$$3
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 $as_echo "$ac_res" >&6; }
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
 } # ac_fn_c_check_type
 cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by Wine $as_me 1.3.11, which was
-generated by GNU Autoconf 2.67.  Invocation command line was
+It was created by Wine $as_me 1.3.26, which was
+generated by GNU Autoconf 2.68.  Invocation command line was
 
   $ $0 $@
 
@@ -2364,7 +2365,7 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "failed to load site script $ac_site_file
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
   fi
 done
 
@@ -2546,12 +2547,6 @@ if test "${with_curses+set}" = set; then :
 fi
 
 
-# Check whether --with-esd was given.
-if test "${with_esd+set}" = set; then :
-  withval=$with_esd;
-fi
-
-
 # Check whether --with-fontconfig was given.
 if test "${with_fontconfig+set}" = set; then :
   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
@@ -2606,12 +2601,6 @@ if test "${with_hal+set}" = set; then :
 fi
 
 
-# Check whether --with-jack was given.
-if test "${with_jack+set}" = set; then :
-  withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
-fi
-
-
 # Check whether --with-jpeg was given.
 if test "${with_jpeg+set}" = set; then :
   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
@@ -2630,12 +2619,6 @@ if test "${with_mpg123+set}" = set; then :
 fi
 
 
-# Check whether --with-nas was given.
-if test "${with_nas+set}" = set; then :
-  withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
-fi
-
-
 # Check whether --with-openal was given.
 if test "${with_openal+set}" = set; then :
   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
@@ -2662,7 +2645,7 @@ fi
 
 # Check whether --with-oss was given.
 if test "${with_oss+set}" = set; then :
-  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
+  withval=$with_oss;
 fi
 
 
@@ -2720,6 +2703,12 @@ if test "${with_xinput+set}" = set; then :
 fi
 
 
+# Check whether --with-xinput2 was given.
+if test "${with_xinput2+set}" = set; then :
+  withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
+fi
+
+
 # Check whether --with-xml was given.
 if test "${with_xml+set}" = set; then :
   withval=$with_xml;
@@ -2762,6 +2751,12 @@ if test "${with_xxf86vm+set}" = set; then :
 fi
 
 
+# Check whether --with-zlib was given.
+if test "${with_zlib+set}" = set; then :
+  withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
+fi
+
+
 
 # Check whether --with-wine-tools was given.
 if test "${with_wine_tools+set}" = set; then :
@@ -2781,7 +2776,7 @@ $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 $as_echo_n "checking build system type... " >&6; }
-if test "${ac_cv_build+set}" = set; then :
+if ${ac_cv_build+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_build_alias=$build_alias
@@ -2797,7 +2792,7 @@ fi
 $as_echo "$ac_cv_build" >&6; }
 case $ac_cv_build in
 *-*-*) ;;
-*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 esac
 build=$ac_cv_build
 ac_save_IFS=$IFS; IFS='-'
@@ -2815,7 +2810,7 @@ case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 $as_echo_n "checking host system type... " >&6; }
-if test "${ac_cv_host+set}" = set; then :
+if ${ac_cv_host+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test "x$host_alias" = x; then
@@ -2830,7 +2825,7 @@ fi
 $as_echo "$ac_cv_host" >&6; }
 case $ac_cv_host in
 *-*-*) ;;
-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 esac
 host=$ac_cv_host
 ac_save_IFS=$IFS; IFS='-'
@@ -2860,7 +2855,7 @@ esac
 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 set x ${MAKE-make}
 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
-if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
+if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat >conftest.make <<\_ACEOF
@@ -2897,7 +2892,7 @@ if test -n "$ac_tool_prefix"; then
 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then :
+if ${ac_cv_prog_CC+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$CC"; then
@@ -2937,7 +2932,7 @@ if test -z "$ac_cv_prog_CC"; then
 set dummy gcc; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$ac_ct_CC"; then
@@ -2990,7 +2985,7 @@ if test -z "$CC"; then
 set dummy ${ac_tool_prefix}cc; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then :
+if ${ac_cv_prog_CC+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$CC"; then
@@ -3030,7 +3025,7 @@ if test -z "$CC"; then
 set dummy cc; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then :
+if ${ac_cv_prog_CC+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$CC"; then
@@ -3089,7 +3084,7 @@ if test -z "$CC"; then
 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then :
+if ${ac_cv_prog_CC+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$CC"; then
@@ -3133,7 +3128,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$ac_ct_CC"; then
@@ -3188,7 +3183,7 @@ fi
 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
 
 # Provide some information about the compiler.
 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -3303,7 +3298,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error 77 "C compiler cannot create executables
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
@@ -3346,7 +3341,7 @@ else
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
 fi
 rm -f conftest conftest$ac_cv_exeext
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
@@ -3405,7 +3400,7 @@ $as_echo "$ac_try_echo"; } >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot run C compiled programs.
 If you meant to cross compile, use \`--host'.
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
     fi
   fi
 fi
@@ -3416,7 +3411,7 @@ rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 ac_clean_files=$ac_clean_files_save
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 $as_echo_n "checking for suffix of object files... " >&6; }
-if test "${ac_cv_objext+set}" = set; then :
+if ${ac_cv_objext+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -3457,7 +3452,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot compute suffix of object files: cannot compile
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
 fi
 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 fi
@@ -3467,7 +3462,7 @@ OBJEXT=$ac_cv_objext
 ac_objext=$OBJEXT
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
-if test "${ac_cv_c_compiler_gnu+set}" = set; then :
+if ${ac_cv_c_compiler_gnu+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -3504,7 +3499,7 @@ ac_test_CFLAGS=${CFLAGS+set}
 ac_save_CFLAGS=$CFLAGS
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 $as_echo_n "checking whether $CC accepts -g... " >&6; }
-if test "${ac_cv_prog_cc_g+set}" = set; then :
+if ${ac_cv_prog_cc_g+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_save_c_werror_flag=$ac_c_werror_flag
@@ -3582,7 +3577,7 @@ else
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
-if test "${ac_cv_prog_cc_c89+set}" = set; then :
+if ${ac_cv_prog_cc_c89+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_cv_prog_cc_c89=no
@@ -3693,7 +3688,7 @@ if test -z "$CXX"; then
 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_CXX+set}" = set; then :
+if ${ac_cv_prog_CXX+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$CXX"; then
@@ -3737,7 +3732,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
+if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$ac_ct_CXX"; then
@@ -3815,7 +3810,7 @@ done
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
-if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
+if ${ac_cv_cxx_compiler_gnu+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -3852,7 +3847,7 @@ ac_test_CXXFLAGS=${CXXFLAGS+set}
 ac_save_CXXFLAGS=$CXXFLAGS
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
-if test "${ac_cv_prog_cxx_g+set}" = set; then :
+if ${ac_cv_prog_cxx_g+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
@@ -3939,7 +3934,7 @@ if test -n "$ac_tool_prefix"; then
 set dummy ${ac_tool_prefix}cpp; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_CPPBIN+set}" = set; then :
+if ${ac_cv_prog_CPPBIN+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$CPPBIN"; then
@@ -3979,7 +3974,7 @@ if test -z "$ac_cv_prog_CPPBIN"; then
 set dummy cpp; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
+if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$ac_ct_CPPBIN"; then
@@ -4132,6 +4127,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 esac
 
 enable_win16=${enable_win16:-no}
+enable_win64=${enable_win64:-no}
 
 enable_winetest=${enable_winetest:-$enable_tests}
 
@@ -4154,7 +4150,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
-if test "${wine_cv_toolsdir+set}" = set; then :
+if ${wine_cv_toolsdir+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   wine_cv_toolsdir="$with_wine_tools"
@@ -4192,7 +4188,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_FLEX+set}" = set; then :
+if ${ac_cv_prog_FLEX+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$FLEX"; then
@@ -4257,7 +4253,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_BISON+set}" = set; then :
+if ${ac_cv_prog_BISON+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$BISON"; then
@@ -4306,7 +4302,7 @@ if test -n "$ac_tool_prefix"; then
 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_AR+set}" = set; then :
+if ${ac_cv_prog_AR+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$AR"; then
@@ -4350,7 +4346,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
+if ${ac_cv_prog_ac_ct_AR+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$ac_ct_AR"; then
@@ -4406,7 +4402,7 @@ if test -n "$ac_tool_prefix"; then
 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_RANLIB+set}" = set; then :
+if ${ac_cv_prog_RANLIB+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$RANLIB"; then
@@ -4446,7 +4442,7 @@ if test -z "$ac_cv_prog_RANLIB"; then
 set dummy ranlib; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
+if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$ac_ct_RANLIB"; then
@@ -4493,98 +4489,6 @@ else
   RANLIB="$ac_cv_prog_RANLIB"
 fi
 
-if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
-set dummy ${ac_tool_prefix}strip; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_STRIP+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$STRIP"; then
-  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-STRIP=$ac_cv_prog_STRIP
-if test -n "$STRIP"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
-$as_echo "$STRIP" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_STRIP"; then
-  ac_ct_STRIP=$STRIP
-  # Extract the first word of "strip", so it can be a program name with args.
-set dummy strip; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_STRIP"; then
-  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_STRIP="strip"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
-if test -n "$ac_ct_STRIP"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
-$as_echo "$ac_ct_STRIP" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_STRIP" = x; then
-    STRIP="strip"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    STRIP=$ac_ct_STRIP
-  fi
-else
-  STRIP="$ac_cv_prog_STRIP"
-fi
-
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 $as_echo_n "checking whether ln -s works... " >&6; }
 LN_S=$as_ln_s
@@ -4598,7 +4502,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
-if test "${ac_cv_path_GREP+set}" = set; then :
+if ${ac_cv_path_GREP+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -z "$GREP"; then
@@ -4661,7 +4565,7 @@ $as_echo "$ac_cv_path_GREP" >&6; }
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 $as_echo_n "checking for egrep... " >&6; }
-if test "${ac_cv_path_EGREP+set}" = set; then :
+if ${ac_cv_path_EGREP+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
@@ -4730,7 +4634,7 @@ $as_echo "$ac_cv_path_EGREP" >&6; }
 set dummy ldconfig; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_path_LDCONFIG+set}" = set; then :
+if ${ac_cv_path_LDCONFIG+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   case $LDCONFIG in
@@ -4784,7 +4688,7 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 $as_echo_n "checking for a BSD-compatible install... " >&6; }
 if test -z "$INSTALL"; then
-if test "${ac_cv_path_install+set}" = set; then :
+if ${ac_cv_path_install+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -4871,7 +4775,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_LINT+set}" = set; then :
+if ${ac_cv_prog_LINT+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$LINT"; then
@@ -4920,7 +4824,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
+if ${ac_cv_prog_FONTFORGE+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$FONTFORGE"; then
@@ -4963,7 +4867,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
+if ${ac_cv_prog_PKG_CONFIG+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$PKG_CONFIG"; then
@@ -5006,7 +4910,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_RSVG+set}" = set; then :
+if ${ac_cv_prog_RSVG+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$RSVG"; then
@@ -5049,7 +4953,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_CONVERT+set}" = set; then :
+if ${ac_cv_prog_CONVERT+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$CONVERT"; then
@@ -5092,7 +4996,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
+if ${ac_cv_prog_ICOTOOL+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$ICOTOOL"; then
@@ -5135,8 +5039,8 @@ then
   MAINTAINER_MODE=\#
 
 else
-  if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
-  if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
+  if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
+  if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
 
     if test "$CONVERT" = false
   then
@@ -5198,7 +5102,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
-if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
+if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -5232,7 +5136,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
-if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
+if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_LIBI386 1
 _ACEOF
@@ -5243,7 +5147,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
-if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
+if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -5277,7 +5181,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
-if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
+if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_LIBOSSAUDIO 1
 _ACEOF
@@ -5302,7 +5206,7 @@ if test "$enable_largefile" != no; then
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
-if test "${ac_cv_sys_largefile_CC+set}" = set; then :
+if ${ac_cv_sys_largefile_CC+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_cv_sys_largefile_CC=no
@@ -5353,7 +5257,7 @@ $as_echo "$ac_cv_sys_largefile_CC" >&6; }
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
-if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
+if ${ac_cv_sys_file_offset_bits+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   while :; do
@@ -5422,7 +5326,7 @@ rm -rf conftest*
   if test $ac_cv_sys_file_offset_bits = unknown; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
-if test "${ac_cv_sys_large_files+set}" = set; then :
+if ${ac_cv_sys_large_files+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   while :; do
@@ -5504,7 +5408,7 @@ if test -n "$CPP" && test -d "$CPP"; then
   CPP=
 fi
 if test -z "$CPP"; then
-  if test "${ac_cv_prog_CPP+set}" = set; then :
+  if ${ac_cv_prog_CPP+:} false; then :
   $as_echo_n "(cached) " >&6
 else
       # Double quotes because CPP needs to be expanded
@@ -5620,7 +5524,7 @@ else
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
 fi
 
 ac_ext=c
@@ -5632,7 +5536,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 $as_echo_n "checking for ANSI C header files... " >&6; }
-if test "${ac_cv_header_stdc+set}" = set; then :
+if ${ac_cv_header_stdc+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -5764,6 +5668,7 @@ for ac_header in \
        ApplicationServices/ApplicationServices.h \
        AudioToolbox/AudioConverter.h \
        AudioUnit/AudioUnit.h \
+       AudioUnit/AudioComponent.h \
        CL/cl.h \
        Carbon/Carbon.h \
        CoreAudio/CoreAudio.h \
@@ -5772,6 +5677,8 @@ for ac_header in \
        IOKit/hid/IOHIDLib.h \
        OpenAL/al.h \
        OpenCL/opencl.h \
+       QuickTime/ImageCompression.h \
+       Security/Security.h \
        alias.h \
        alsa/asoundlib.h \
        arpa/inet.h \
@@ -5794,7 +5701,6 @@ for ac_header in \
        ieeefp.h \
        inet/mib2.h \
        io.h \
-       jack/jack.h \
        jpeglib.h \
        kstat.h \
        lber.h \
@@ -5819,7 +5725,6 @@ for ac_header in \
        mach/machine.h \
        machine/cpu.h \
        machine/limits.h \
-       machine/soundcard.h \
        machine/sysarch.h \
        mntent.h \
        mpg123.h \
@@ -5842,12 +5747,12 @@ for ac_header in \
        scsi/scsi.h \
        scsi/scsi_ioctl.h \
        scsi/sg.h \
-       soundcard.h \
        stdbool.h \
        stdint.h \
        strings.h \
        stropts.h \
        sys/asoundlib.h \
+       sys/attr.h \
        sys/cdio.h \
        sys/elf32.h \
        sys/epoll.h \
@@ -5876,7 +5781,6 @@ for ac_header in \
        sys/socket.h \
        sys/socketvar.h \
        sys/sockio.h \
-       sys/soundcard.h \
        sys/statvfs.h \
        sys/strtio.h \
        sys/syscall.h \
@@ -5912,7 +5816,7 @@ done
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
-if test "${ac_cv_header_stat_broken+set}" = set; then :
+if ${ac_cv_header_stat_broken+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -6106,7 +6010,7 @@ do :
      # include <stdint.h>
      #endif
 "
-if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
+if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_MACH_O_DYLD_IMAGES_H 1
 _ACEOF
@@ -6129,7 +6033,7 @@ do :
      # include <arpa/nameser.h>
      #endif
 "
-if test "x$ac_cv_header_resolv_h" = x""yes; then :
+if test "x$ac_cv_header_resolv_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_RESOLV_H 1
 _ACEOF
@@ -6143,7 +6047,7 @@ for ac_header in ifaddrs.h
 do :
   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
 "
-if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
+if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_IFADDRS_H 1
 _ACEOF
@@ -6157,7 +6061,7 @@ for ac_header in ucontext.h
 do :
   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
 "
-if test "x$ac_cv_header_ucontext_h" = x""yes; then :
+if test "x$ac_cv_header_ucontext_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_UCONTEXT_H 1
 _ACEOF
@@ -6174,7 +6078,7 @@ do :
 #include <ucontext.h>
 #endif
 "
-if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
+if test "x$ac_cv_header_sys_thr_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_SYS_THR_H 1
 _ACEOF
@@ -6190,7 +6094,7 @@ do :
 #include <pthread.h>
 #endif
 "
-if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
+if test "x$ac_cv_header_pthread_np_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_PTHREAD_NP_H 1
 _ACEOF
@@ -6200,9 +6104,10 @@ fi
 done
 
 
-for ac_header in linux/videodev.h
+for ac_header in linux/videodev.h linux/videodev2.h
 do :
-  ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
+  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #include <sys/types.h>
@@ -6210,9 +6115,9 @@ do :
 #include <asm/types.h>
 #endif
 "
-if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_LINUX_VIDEODEV_H 1
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 _ACEOF
 
 fi
@@ -6224,7 +6129,7 @@ for ac_header in linux/capi.h
 do :
   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
 "
-if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
+if test "x$ac_cv_header_linux_capi_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_LINUX_CAPI_H 1
 _ACEOF
@@ -6256,7 +6161,7 @@ STATIC_IMPLIBEXT="def.a"
 set dummy ldd; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_path_LDD+set}" = set; then :
+if ${ac_cv_path_LDD+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   case $LDD in
@@ -6302,7 +6207,7 @@ case $host_os in
 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
+if ${ac_cv_prog_DLLTOOL+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$DLLTOOL"; then
@@ -6342,7 +6247,7 @@ if test -z "$ac_cv_prog_DLLTOOL"; then
 set dummy dlltool; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$ac_ct_DLLTOOL"; then
@@ -6394,7 +6299,7 @@ fi
 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
+if ${ac_cv_prog_DLLWRAP+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$DLLWRAP"; then
@@ -6434,7 +6339,7 @@ if test -z "$ac_cv_prog_DLLWRAP"; then
 set dummy dllwrap; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
+if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$ac_ct_DLLWRAP"; then
@@ -6505,29 +6410,56 @@ fi
     LDDLLFLAGS="-bundle -multiply_defined suppress"
     LIBWINE_LDFLAGS="-multiply_defined suppress"
     LDSHARED="\$(CC) -dynamiclib"
-    STRIP="$STRIP -x"
     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
-        SECURITYLIB="-framework Security -framework CoreFoundation"
-
-    COREFOUNDATIONLIB="-framework CoreFoundation"
+        COREFOUNDATIONLIB="-framework CoreFoundation"
 
     IOKITLIB="-framework IOKit -framework CoreFoundation"
 
-    QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
-
     APPLICATIONSERVICESLIB="-framework ApplicationServices"
 
-    LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
-
+    case $host_os in
+      darwin11*)
+        LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
+ ;;
+      *)
+        LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
+ ;;
+    esac
     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
     then
                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
 
     fi
+    if test "$ac_cv_header_Security_Security_h" = "yes"
+    then
+        SECURITYLIB="-framework Security -framework CoreFoundation"
+
+        with_gnutls=${with_gnutls:-no}
+    fi
     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
     then
-                COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
+        if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
+        then
+            COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
+
+        else
+                        COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
+
+        fi
+                ac_save_LIBS="$LIBS"
+        LIBS="$LIBS $COREAUDIO"
+        for ac_func in AUGraphAddNode
+do :
+  ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
+if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_AUGRAPHADDNODE 1
+_ACEOF
+
+fi
+done
 
+        LIBS="$ac_save_LIBS"
     fi
     if test "$ac_cv_header_OpenAL_al_h" = "yes"
     then
@@ -6553,7 +6485,7 @@ _ACEOF
         for ac_func in IOHIDManagerCreate
 do :
   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
-if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
+if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_IOHIDMANAGERCREATE 1
 _ACEOF
@@ -6563,11 +6495,18 @@ done
 
         LIBS="$ac_save_LIBS"
     fi
-    enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
     case $host_cpu in
       *powerpc*)
         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
     esac
+    if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
+    then
+        QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
+
+        enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
+    else
+        as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
+    fi
         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
     then
         CARBONLIB="-framework Carbon"
@@ -6618,7 +6557,7 @@ fi
     DLLEXT=".so"
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
-if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
+if ${ac_cv_c_dll_gnuelf+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6644,7 +6583,7 @@ $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
-if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
+if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6669,7 +6608,7 @@ if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
-if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
+if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6696,7 +6635,7 @@ fi
 
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
-if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
+if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6722,7 +6661,7 @@ fi
 
       { $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
 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
-if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
+if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6750,7 +6689,7 @@ fi
       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
-if eval "test \"\${$as_ac_var+set}\"" = set; then :
+if eval \${$as_ac_var+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6778,7 +6717,7 @@ fi
 
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
-if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
+if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6806,7 +6745,7 @@ fi
       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
-if eval "test \"\${$as_ac_var+set}\"" = set; then :
+if eval \${$as_ac_var+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6834,7 +6773,7 @@ else
   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
-if eval "test \"\${$as_ac_var+set}\"" = set; then :
+if eval \${$as_ac_var+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6863,7 +6802,7 @@ fi
 
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
-if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
+if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6892,7 +6831,7 @@ fi
           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
-if eval "test \"\${$as_ac_var+set}\"" = set; then :
+if eval \${$as_ac_var+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6915,7 +6854,7 @@ eval ac_res=\$$as_ac_var
 $as_echo "$ac_res" >&6; }
 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
   case $host_os in
-                           freebsd* LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
+                           freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
                            esac
 
@@ -6924,7 +6863,7 @@ fi
 set dummy prelink; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_path_PRELINK+set}" = set; then :
+if ${ac_cv_path_PRELINK+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   case $PRELINK in
@@ -6971,7 +6910,7 @@ fi
     else
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
-if test "${ac_cv_c_dll_unixware+set}" = set; then :
+if ${ac_cv_c_dll_unixware+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -6999,7 +6938,7 @@ $as_echo "$ac_cv_c_dll_unixware" >&6; }
       else
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
-if test "${ac_cv_c_dll_hpux+set}" = set; then :
+if ${ac_cv_c_dll_hpux+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -7060,7 +6999,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_CROSSCC+set}" = set; then :
+if ${ac_cv_prog_CROSSCC+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$CROSSCC"; then
@@ -7147,7 +7086,7 @@ if test "$ac_cv_header_pthread_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
-if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
+if ${ac_cv_lib_pthread_pthread_create+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -7181,7 +7120,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
-if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
+if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
   LIBPTHREAD="-lpthread"
 
 fi
@@ -7192,7 +7131,7 @@ if test "x$LIBPTHREAD" = "x"; then :
   xno) ;;
   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
 Wine cannot support threads without libpthread.
-Use the --without-pthread option if you really want this." "$LINENO" 5  ;;
+Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
 esac
 fi
 
@@ -7212,8 +7151,8 @@ if test "x$with_x" = xno; then
   have_x=disabled
 else
   case $x_includes,$x_libraries in #(
-    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
-    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
+    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
+    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   # One or both of the vars are not set, and there is no cached value.
@@ -7490,7 +7429,7 @@ if ac_fn_c_try_link "$LINENO"; then :
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
-if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
+if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -7524,14 +7463,14 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
-if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
+if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 fi
 
     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
-if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
+if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -7565,7 +7504,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
-if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
+if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 fi
 
@@ -7584,14 +7523,14 @@ rm -f core conftest.err conftest.$ac_objext \
     # The functions gethostbyname, getservbyname, and inet_addr are
     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
-if test "x$ac_cv_func_gethostbyname" = x""yes; then :
+if test "x$ac_cv_func_gethostbyname" = xyes; then :
 
 fi
 
     if test $ac_cv_func_gethostbyname = no; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
-if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
+if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -7625,14 +7564,14 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
-if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
+if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 fi
 
       if test $ac_cv_lib_nsl_gethostbyname = no; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
-if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
+if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -7666,7 +7605,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
-if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
+if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 fi
 
@@ -7681,14 +7620,14 @@ fi
     # must be given before -lnsl if both are needed.  We assume that
     # if connect needs -lnsl, so does gethostbyname.
     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
-if test "x$ac_cv_func_connect" = x""yes; then :
+if test "x$ac_cv_func_connect" = xyes; then :
 
 fi
 
     if test $ac_cv_func_connect = no; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
 $as_echo_n "checking for connect in -lsocket... " >&6; }
-if test "${ac_cv_lib_socket_connect+set}" = set; then :
+if ${ac_cv_lib_socket_connect+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -7722,7 +7661,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
 $as_echo "$ac_cv_lib_socket_connect" >&6; }
-if test "x$ac_cv_lib_socket_connect" = x""yes; then :
+if test "x$ac_cv_lib_socket_connect" = xyes; then :
   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 fi
 
@@ -7730,14 +7669,14 @@ fi
 
     # Guillermo Gomez says -lposix is necessary on A/UX.
     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
-if test "x$ac_cv_func_remove" = x""yes; then :
+if test "x$ac_cv_func_remove" = xyes; then :
 
 fi
 
     if test $ac_cv_func_remove = no; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
 $as_echo_n "checking for remove in -lposix... " >&6; }
-if test "${ac_cv_lib_posix_remove+set}" = set; then :
+if ${ac_cv_lib_posix_remove+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -7771,7 +7710,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
 $as_echo "$ac_cv_lib_posix_remove" >&6; }
-if test "x$ac_cv_lib_posix_remove" = x""yes; then :
+if test "x$ac_cv_lib_posix_remove" = xyes; then :
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 fi
 
@@ -7779,14 +7718,14 @@ fi
 
     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
-if test "x$ac_cv_func_shmat" = x""yes; then :
+if test "x$ac_cv_func_shmat" = xyes; then :
 
 fi
 
     if test $ac_cv_func_shmat = no; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
 $as_echo_n "checking for shmat in -lipc... " >&6; }
-if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
+if ${ac_cv_lib_ipc_shmat+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -7820,7 +7759,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
-if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
+if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 fi
 
@@ -7838,7 +7777,7 @@ fi
   # John Interrante, Karl Berry
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
-if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
+if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -7872,7 +7811,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
-if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
+if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 fi
 
@@ -7889,7 +7828,7 @@ then
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
 $as_echo_n "checking for -lX11... " >&6; }
-if test "${ac_cv_lib_soname_X11+set}" = set; then :
+if ${ac_cv_lib_soname_X11+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -7939,7 +7878,7 @@ _ACEOF
 fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
 $as_echo_n "checking for -lXext... " >&6; }
-if test "${ac_cv_lib_soname_Xext+set}" = set; then :
+if ${ac_cv_lib_soname_Xext+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -7994,6 +7933,7 @@ fi
                       X11/Xcursor/Xcursor.h \
                       X11/extensions/shape.h \
                       X11/extensions/XInput.h \
+                      X11/extensions/XInput2.h \
                       X11/extensions/XShm.h \
                       X11/extensions/Xcomposite.h \
                       X11/extensions/Xinerama.h \
@@ -8024,7 +7964,7 @@ done
         then
               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
-if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
+if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -8058,7 +7998,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
-if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
+if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
 
 $as_echo "#define HAVE_XKB 1" >>confdefs.h
 
@@ -8070,7 +8010,7 @@ fi
         then
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
 $as_echo_n "checking for -lXcursor... " >&6; }
-if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
+if ${ac_cv_lib_soname_Xcursor+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -8124,7 +8064,7 @@ fi
   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
-This is an error since --with-xcursor was requested." "$LINENO" 5  ;;
+This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -8132,7 +8072,7 @@ fi
         then
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
 $as_echo_n "checking for -lXi... " >&6; }
-if test "${ac_cv_lib_soname_Xi+set}" = set; then :
+if ${ac_cv_lib_soname_Xi+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -8186,15 +8126,27 @@ fi
   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
-This is an error since --with-xinput was requested." "$LINENO" 5  ;;
+This is an error since --with-xinput was requested." "$LINENO" 5 ;;
+esac
+fi
+
+                if test "x$ac_cv_lib_soname_Xi" != x
+        then
+            if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
+  case "x$with_xinput2" in
+  x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
+  xno) ;;
+  *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
+This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
 esac
 fi
+        fi
 
                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
         then
               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
-if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
+if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -8228,7 +8180,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
-if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
+if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
 
 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
 
@@ -8240,7 +8192,7 @@ fi
   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
-This is an error since --with-xshm was requested." "$LINENO" 5  ;;
+This is an error since --with-xshm was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -8248,7 +8200,7 @@ fi
         then
               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
-if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
+if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -8282,7 +8234,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
-if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
+if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
 
 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
 
@@ -8294,7 +8246,7 @@ fi
   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
-This is an error since --with-xshape was requested." "$LINENO" 5  ;;
+This is an error since --with-xshape was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -8302,7 +8254,7 @@ fi
         then
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
 $as_echo_n "checking for -lXxf86vm... " >&6; }
-if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
+if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -8356,7 +8308,7 @@ fi
   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
-This is an error since --with-xxf86vm was requested." "$LINENO" 5  ;;
+This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -8364,7 +8316,7 @@ fi
         then
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
 $as_echo_n "checking for -lXrender... " >&6; }
-if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
+if ${ac_cv_lib_soname_Xrender+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -8412,7 +8364,7 @@ _ACEOF
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
-if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
+if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -8446,7 +8398,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
-if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
+if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
 
 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
 
@@ -8460,7 +8412,7 @@ fi
   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
-This is an error since --with-xrender was requested." "$LINENO" 5  ;;
+This is an error since --with-xrender was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -8481,7 +8433,7 @@ _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
 $as_echo_n "checking for -lXrandr... " >&6; }
-if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
+if ${ac_cv_lib_soname_Xrandr+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -8537,7 +8489,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
-This is an error since --with-xrandr was requested." "$LINENO" 5  ;;
+This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -8558,7 +8510,7 @@ _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
 $as_echo_n "checking for -lXinerama... " >&6; }
-if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
+if ${ac_cv_lib_soname_Xinerama+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -8614,7 +8566,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
-This is an error since --with-xinerama was requested." "$LINENO" 5  ;;
+This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -8622,7 +8574,7 @@ fi
         then
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
 $as_echo_n "checking for -lXcomposite... " >&6; }
-if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
+if ${ac_cv_lib_soname_Xcomposite+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -8676,7 +8628,7 @@ fi
   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
-This is an error since --with-xcomposite was requested." "$LINENO" 5  ;;
+This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -8684,13 +8636,25 @@ fi
 #include <X11/Xlib.h>
 #endif
 "
-if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
+if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_XICCALLBACK_CALLBACK 1
 _ACEOF
 
 
+fi
+ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
+#include <X11/Xlib.h>
+#endif
+"
+if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_XEVENT_XCOOKIE 1
+_ACEOF
+
+
 fi
 
 
@@ -8718,7 +8682,7 @@ done
        then
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
-if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
+if ${wine_cv_opengl_header_version_OK+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -8746,7 +8710,7 @@ $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
             then
                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
 $as_echo_n "checking for -lGL... " >&6; }
-if test "${ac_cv_lib_soname_GL+set}" = set; then :
+if ${ac_cv_lib_soname_GL+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -8785,7 +8749,7 @@ if test "x$ac_cv_lib_soname_GL" = "x"; then :
 $as_echo "not found" >&6; }
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
 $as_echo_n "checking for -lGL... " >&6; }
-if test "${ac_cv_lib_soname_GL+set}" = set; then :
+if ${ac_cv_lib_soname_GL+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -8859,7 +8823,7 @@ fi
                  then
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
 $as_echo_n "checking for -lGLU... " >&6; }
-if test "${ac_cv_lib_soname_GLU+set}" = set; then :
+if ${ac_cv_lib_soname_GLU+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -8913,7 +8877,7 @@ fi
   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
-This is an error since --with-glu was requested." "$LINENO" 5  ;;
+This is an error since --with-glu was requested." "$LINENO" 5 ;;
 esac
 fi
              else
@@ -8935,122 +8899,10 @@ OpenGL and Direct3D won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "$opengl_msg
 OpenGL and Direct3D won't be supported.
-This is an error since --with-opengl was requested." "$LINENO" 5  ;;
+This is an error since --with-opengl was requested." "$LINENO" 5 ;;
 esac
 fi
 
-        NASLIBS=""
-
-    for ac_header in audio/audiolib.h
-do :
-  ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
-if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_AUDIO_AUDIOLIB_H 1
-_ACEOF
- for ac_header in audio/soundlib.h
-do :
-  ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
-"
-if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_AUDIO_SOUNDLIB_H 1
-_ACEOF
-
-fi
-
-done
-
-          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
-$as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
-if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char AuCreateFlow ();
-int
-main ()
-{
-return AuCreateFlow ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_audio_AuCreateFlow=yes
-else
-  ac_cv_lib_audio_AuCreateFlow=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
-$as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
-if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
-
-$as_echo "#define HAVE_NAS 1" >>confdefs.h
-
-                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
-$as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
-if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lXau $X_LIBS $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char XauGetBestAuthByAddr ();
-int
-main ()
-{
-return XauGetBestAuthByAddr ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
-else
-  ac_cv_lib_Xau_XauGetBestAuthByAddr=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
-$as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
-if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
-  NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
-else
-  NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
-fi
-
-
-fi
-
-fi
-
-done
-
-
     CPPFLAGS="$ac_save_CPPFLAGS"
 else
     XLIB=""
@@ -9066,7 +8918,7 @@ if test "x$XLIB" = "x"; then :
   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
 without X support, which probably isn't what you want. You will need
 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
-Use the --without-x option if you really want this." "$LINENO" 5  ;;
+Use the --without-x option if you really want this." "$LINENO" 5 ;;
 esac
 fi
 
@@ -9074,7 +8926,7 @@ if test "$ac_cv_header_CL_cl_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
-if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
+if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -9108,7 +8960,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
-if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
+if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
   LIBOPENCL="-lOpenCL"
 
 fi
@@ -9119,7 +8971,7 @@ if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
-This is an error since --with-opencl was requested." "$LINENO" 5  ;;
+This is an error since --with-opencl was requested." "$LINENO" 5 ;;
 esac
 fi
 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
@@ -9143,16 +8995,24 @@ then
         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
     fi
     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
-    for ac_header in libxml/parser.h
+    for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
-if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
+  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBXML_PARSER_H 1
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
+
+fi
+
+done
+
+    if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
+    then
+        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
-if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
+if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -9186,17 +9046,17 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
-if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
+if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
 
 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
 
-                 XML2LIBS="$ac_xml_libs"
-                 XML2INCL="$ac_xml_cflags"
+             XML2LIBS="$ac_xml_libs"
+             XML2INCL="$ac_xml_cflags"
 fi
 
-             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
+        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
-if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
+if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -9230,15 +9090,15 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
-if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
+if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
 
 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
 
 fi
 
-             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
+        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
-if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
+if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -9272,15 +9132,15 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
-if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
+if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
 
 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
 
 fi
 
-             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
+        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
-if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
+if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -9314,15 +9174,15 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
-if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
+if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
 
 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
 
 fi
 
-             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
+        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
-if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
+if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -9356,15 +9216,15 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
-if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
+if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
 
 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
 
 fi
 
-             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
+        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
-if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
+if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -9398,33 +9258,29 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
-if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
+if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
 
 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
 
 fi
 
-             ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
+        ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
 "
-if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
+if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
 
 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
 
 fi
 
-
-fi
-
-done
-
+    fi
     CPPFLAGS="$ac_save_CPPFLAGS"
 fi
 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
   case "x$with_xml" in
-  x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
+  x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
   xno) ;;
-  *)   as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported.
-This is an error since --with-xml was requested." "$LINENO" 5  ;;
+  *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
+This is an error since --with-xml was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -9461,7 +9317,7 @@ done
     then
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
 $as_echo_n "checking for -lxslt... " >&6; }
-if test "${ac_cv_lib_soname_xslt+set}" = set; then :
+if ${ac_cv_lib_soname_xslt+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -9516,7 +9372,7 @@ if test "x$ac_cv_lib_soname_xslt" = "x"; then :
   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
-This is an error since --with-xslt was requested." "$LINENO" 5  ;;
+This is an error since --with-xslt was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -9548,7 +9404,7 @@ done
     then
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
-if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
+if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -9582,10 +9438,10 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
-if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
+if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
 $as_echo_n "checking for -lhal... " >&6; }
-if test "${ac_cv_lib_soname_hal+set}" = set; then :
+if ${ac_cv_lib_soname_hal+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -9643,7 +9499,7 @@ if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskAr
   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
   xno) ;;
   *)   as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
-This is an error since --with-hal was requested." "$LINENO" 5  ;;
+This is an error since --with-hal was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -9657,7 +9513,7 @@ then
         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
     fi
     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
-if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
+if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #include <gnutls/gnutls.h>
@@ -9672,7 +9528,7 @@ _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
 $as_echo_n "checking for -lgnutls... " >&6; }
-if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
+if ${ac_cv_lib_soname_gnutls+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -9733,7 +9589,7 @@ if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
   xno) ;;
   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
-This is an error since --with-gnutls was requested." "$LINENO" 5  ;;
+This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -9742,7 +9598,7 @@ if test "$ac_cv_header_ncurses_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
 $as_echo_n "checking for -lncurses... " >&6; }
-if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
+if ${ac_cv_lib_soname_ncurses+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -9794,7 +9650,7 @@ elif test "$ac_cv_header_curses_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
 $as_echo_n "checking for -lcurses... " >&6; }
-if test "${ac_cv_lib_soname_curses+set}" = set; then :
+if ${ac_cv_lib_soname_curses+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -9848,7 +9704,7 @@ LIBS="$LIBS $CURSESLIBS"
 for ac_func in mousemask
 do :
   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
-if test "x$ac_cv_func_mousemask" = x""yes; then :
+if test "x$ac_cv_func_mousemask" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_MOUSEMASK 1
 _ACEOF
@@ -9862,7 +9718,7 @@ if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
-This is an error since --with-curses was requested." "$LINENO" 5  ;;
+This is an error since --with-curses was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -9873,7 +9729,7 @@ then
 set dummy sane-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_sane_devel+set}" = set; then :
+if ${ac_cv_prog_sane_devel+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$sane_devel"; then
@@ -9914,10 +9770,10 @@ fi
         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
     fi
     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
-if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
+if test "x$ac_cv_header_sane_sane_h" = xyes; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
 $as_echo_n "checking for -lsane... " >&6; }
-if test "${ac_cv_lib_soname_sane+set}" = set; then :
+if ${ac_cv_lib_soname_sane+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -9976,7 +9832,7 @@ if test "x$ac_cv_lib_soname_sane" = "x"; then :
   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
-This is an error since --with-sane was requested." "$LINENO" 5  ;;
+This is an error since --with-sane was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -9984,7 +9840,7 @@ if test "x$with_v4l" != "xno"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
 $as_echo_n "checking for -lv4l1... " >&6; }
-if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
+if ${ac_cv_lib_soname_v4l1+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -10038,7 +9894,7 @@ if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
   xno) ;;
   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
-This is an error since --with-v4l was requested." "$LINENO" 5  ;;
+This is an error since --with-v4l was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -10049,7 +9905,7 @@ then
 set dummy gphoto2-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
+if ${ac_cv_prog_gphoto2_devel+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$gphoto2_devel"; then
@@ -10087,7 +9943,7 @@ fi
 set dummy gphoto2-port-config; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
+if ${ac_cv_prog_gphoto2port_devel+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$gphoto2port_devel"; then
     fi
     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
-if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
+if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
-if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
+if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -10173,7 +10029,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
-if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
+if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
 
 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
 
@@ -10193,7 +10049,7 @@ if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
-This is an error since --with-gphoto was requested." "$LINENO" 5  ;;
+This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -10240,7 +10096,7 @@ if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
-if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
+if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -10274,7 +10130,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
-if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
+if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
 
 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
 
@@ -10287,7 +10143,7 @@ if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
-This is an error since --with-cms was requested." "$LINENO" 5  ;;
+This is an error since --with-cms was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -10299,7 +10155,7 @@ do
 set dummy $ac_prog; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ft_devel+set}" = set; then :
+if ${ac_cv_prog_ft_devel+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test -n "$ft_devel"; then
@@ -10344,7 +10200,7 @@ test -n "$ft_devel" || ft_devel="no"
     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
 $as_echo_n "checking for -lfreetype... " >&6; }
-if test "${ac_cv_lib_soname_freetype+set}" = set; then :
+if ${ac_cv_lib_soname_freetype+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -10439,7 +10295,7 @@ fi
 rm -f conftest.err conftest.i conftest.$ac_ext
         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
 "
-if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
+if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_FT_TRUETYPEENGINETYPE 1
@@ -10453,7 +10309,7 @@ fi
         for ac_func in FT_Load_Sfnt_Table
 do :
   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
-if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
+if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_FT_LOAD_SFNT_TABLE 1
 _ACEOF
@@ -10479,14 +10335,14 @@ if test "x$FREETYPELIBS" = "x"; then :
   case "x$with_freetype" in
   xno) ;;
   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
-Use the --without-freetype option if you really want this." "$LINENO" 5  ;;
+Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
 esac
 fi
 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
-if test "${ac_cv_c_ppdev+set}" = set; then :
+if ${ac_cv_c_ppdev+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -10543,7 +10399,7 @@ if test "$ac_cv_header_zlib_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
 $as_echo_n "checking for inflate in -lz... " >&6; }
-if test "${ac_cv_lib_z_inflate+set}" = set; then :
+if ${ac_cv_lib_z_inflate+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -10577,7 +10433,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
 $as_echo "$ac_cv_lib_z_inflate" >&6; }
-if test "x$ac_cv_lib_z_inflate" = x""yes; then :
+if test "x$ac_cv_lib_z_inflate" = xyes; then :
 
 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
 
@@ -10585,6 +10441,14 @@ $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
 
 fi
 
+fi
+if test "x$ZLIB" = "x"; then :
+  case "x$with_zlib" in
+  x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
+  xno) ;;
+  *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
+This is an error since --with-zlib was requested." "$LINENO" 5 ;;
+esac
 fi
 
 if test "x$enable_tools" != xno
@@ -10593,7 +10457,7 @@ then
     then
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
-if test "${ac_cv_lib_gettextpo_po_message_msgctxt+set}" = set; then :
+if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -10627,7 +10491,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
-if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = x""yes; then :
+if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
 
 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
 
   x)   as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
   xno) ;;
   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
-This is an error since --with-gettextpo was requested." "$LINENO" 5  ;;
+This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
 esac
 fi
 fi
 
-if test "x$with_esd" != xno
+if test "x$with_gstreamer" != "xno"
 then
-    save_CFLAGS="$CFLAGS"
-    # Extract the first word of "esd-config", so it can be a program name with args.
-set dummy esd-config; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  case $ESDCONFIG in
-  [\\/]* | ?:[\\/]*)
-  ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
-  ;;
-  *)
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-  test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
-  ;;
-esac
-fi
-ESDCONFIG=$ac_cv_path_ESDCONFIG
-if test -n "$ESDCONFIG"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
-$as_echo "$ESDCONFIG" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-    if test "x$ESDCONFIG" != "xno"
-    then
-        ac_esd_incl=""
-        for i in `$ESDCONFIG --cflags`
-        do
-            case "$i" in
-                -I*) ac_esd_incl="$ac_esd_incl $i";;
-            esac
-        done
-        ac_esd_libs=`$ESDCONFIG --libs`
-        CFLAGS="$CFLAGS $ac_esd_incl"
-    fi
-    ac_esd_libs=${ac_esd_libs:-"-lesd"}
-    ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
-if test "x$ac_cv_header_esd_h" = x""yes; then :
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
-$as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
-if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lesd $ac_esd_libs $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char esd_open_sound ();
-int
-main ()
-{
-return esd_open_sound ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_esd_esd_open_sound=yes
-else
-  ac_cv_lib_esd_esd_open_sound=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
-$as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
-if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
-  ESDINCL="$ac_esd_incl"
-
-             ESDLIBS="$ac_esd_libs"
-
-
-$as_echo "#define HAVE_ESD 1" >>confdefs.h
-
-fi
-
-fi
-
-
-    CFLAGS="$save_CFLAGS"
-fi
-
-if test "x$with_gstreamer" != "xno"
-then
-    ac_save_CPPFLAGS="$CPPFLAGS"
-    if test "$PKG_CONFIG" != "false"; then
-        ac_gst_incl=""
-        for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
-        do
-            case "$i" in
-                -I*) ac_gst_incl="$ac_gst_incl $i";;
-            esac
-        done
-        ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
-        CPPFLAGS="$CPPFLAGS $ac_gst_incl"
-        ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
-if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
-  ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
-if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
-$as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
-if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
+    ac_save_CPPFLAGS="$CPPFLAGS"
+    if test "$PKG_CONFIG" != "false"; then
+        ac_gst_incl=""
+        for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
+        do
+            case "$i" in
+                -I*) ac_gst_incl="$ac_gst_incl $i";;
+            esac
+        done
+        ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
+        CPPFLAGS="$CPPFLAGS $ac_gst_incl"
+        ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
+if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
+  ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
+if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
+$as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
+              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <gst/app/gstappsink.h>
+int
+main ()
+{
+int a[sizeof(gint64) > 4 ? 1 : -1]
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
+$as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
+if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -10810,10 +10579,10 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
-if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
+if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
-if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
+if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -10847,15 +10616,20 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
-if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
+if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
   GSTREAMER_LIBS="$ac_gst_libs"
 
-                     GSTREAMER_INCL="$ac_gst_incl"
+                       GSTREAMER_INCL="$ac_gst_incl"
 
 fi
 
 fi
 
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 fi
 
 
     fi
     CPPFLAGS="$ac_save_CPPFLAGS"
 fi
-if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes; then :
+if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
   case "x$with_gstreamer" in
   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
   xno) ;;
   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
-This is an error since --with-gstreamer was requested." "$LINENO" 5  ;;
+This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
 esac
 fi
 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
@@ -10881,7 +10655,7 @@ if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
-if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+set}" = set; then :
+if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -10915,7 +10689,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
-if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = x""yes; then :
+if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #ifdef HAVE_ALSA_ASOUNDLIB_H
@@ -10926,20 +10700,50 @@ if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = x""yes; then :
 int
 main ()
 {
-int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
+snd_pcm_hw_params_get_access_mask(NULL, NULL)
   ;
   return 0;
 }
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
+  ALSALIBS="-lasound"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+fi
 
-$as_echo "#define HAVE_ALSA 1" >>confdefs.h
+if test "x$with_oss" != xno
+then
+    ac_save_CPPFLAGS="$CPPFLAGS"
+    if test -f /etc/oss.conf
+    then
+        . /etc/oss.conf
+    fi
+    ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
+    CPPFLAGS="$CPPFLAGS $ac_oss_incl"
+    ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
+  ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
+"
+if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
+_ACEOF
+
+OSS4INCL="$ac_oss_incl"
 
-                         ALSALIBS="-lasound"
 fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
 fi
 
+
+    CPPFLAGS="$ac_save_CPPFLAGS"
+    if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
+    then
+        as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
+    fi
 fi
 
 
@@ -10947,7 +10751,7 @@ if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
 $as_echo_n "checking for -lcapi20... " >&6; }
-if test "${ac_cv_lib_soname_capi20+set}" = set; then :
+if ${ac_cv_lib_soname_capi20+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11001,7 +10805,7 @@ if test "x$ac_cv_lib_soname_capi20" = "x"; then :
   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
-This is an error since --with-capi was requested." "$LINENO" 5  ;;
+This is an error since --with-capi was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -11016,13 +10820,13 @@ then
     for ac_header in cups/cups.h
 do :
   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
-if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
+if test "x$ac_cv_header_cups_cups_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_CUPS_CUPS_H 1
 _ACEOF
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
 $as_echo_n "checking for -lcups... " >&6; }
-if test "${ac_cv_lib_soname_cups+set}" = set; then :
+if ${ac_cv_lib_soname_cups+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11081,69 +10885,15 @@ if test "x$ac_cv_lib_soname_cups" = "x"; then :
   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
-This is an error since --with-cups was requested." "$LINENO" 5  ;;
+This is an error since --with-cups was requested." "$LINENO" 5 ;;
 esac
 fi
 
-if test "$ac_cv_header_jack_jack_h" = "yes"
-then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
-$as_echo_n "checking for -ljack... " >&6; }
-if test "${ac_cv_lib_soname_jack+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_soname_save_LIBS=$LIBS
-LIBS="-ljack  $LIBS"
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char jack_client_new ();
-int
-main ()
-{
-return jack_client_new ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  case "$LIBEXT" in
-    dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
-    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'` ;;
-    *) 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'` ;;
-  esac
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-  LIBS=$ac_check_soname_save_LIBS
-fi
-if test "x$ac_cv_lib_soname_jack" = "x"; then :
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
-
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
-$as_echo "$ac_cv_lib_soname_jack" >&6; }
-
-cat >>confdefs.h <<_ACEOF
-#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
-_ACEOF
-
-
-fi
-fi
-
 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
 $as_echo_n "checking for -lfontconfig... " >&6; }
-if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
+if ${ac_cv_lib_soname_fontconfig+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11199,7 +10949,7 @@ then
     for ac_header in fontconfig/fontconfig.h
 do :
   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
-if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
+if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
 _ACEOF
@@ -11215,7 +10965,7 @@ done
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
 $as_echo_n "checking for -lfontconfig... " >&6; }
-if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
+if ${ac_cv_lib_soname_fontconfig+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11270,7 +11020,7 @@ if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
-This is an error since --with-fontconfig was requested." "$LINENO" 5  ;;
+This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -11278,7 +11028,7 @@ if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" =
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
 $as_echo_n "checking for -lssl... " >&6; }
-if test "${ac_cv_lib_soname_ssl+set}" = set; then :
+if ${ac_cv_lib_soname_ssl+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11328,7 +11078,7 @@ _ACEOF
 fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
 $as_echo_n "checking for -lcrypto... " >&6; }
-if test "${ac_cv_lib_soname_crypto+set}" = set; then :
+if ${ac_cv_lib_soname_crypto+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11382,7 +11132,7 @@ if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; the
   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
-This is an error since --with-openssl was requested." "$LINENO" 5  ;;
+This is an error since --with-openssl was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -11390,7 +11140,7 @@ if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
 $as_echo_n "checking for -lgsm... " >&6; }
-if test "${ac_cv_lib_soname_gsm+set}" = set; then :
+if ${ac_cv_lib_soname_gsm+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11444,7 +11194,7 @@ if test "x$ac_cv_lib_soname_gsm" = "x"; then :
   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
-This is an error since --with-gsm was requested." "$LINENO" 5  ;;
+This is an error since --with-gsm was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -11452,7 +11202,7 @@ if test "$ac_cv_header_jpeglib_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
 $as_echo_n "checking for -ljpeg... " >&6; }
-if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
+if ${ac_cv_lib_soname_jpeg+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11506,7 +11256,7 @@ if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
-This is an error since --with-jpeg was requested." "$LINENO" 5  ;;
+This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -11514,7 +11264,7 @@ if test "$ac_cv_header_png_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
 $as_echo_n "checking for -lpng... " >&6; }
-if test "${ac_cv_lib_soname_png+set}" = set; then :
+if ${ac_cv_lib_soname_png+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11564,7 +11314,7 @@ _ACEOF
 fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
-if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
+if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -11598,7 +11348,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
-if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
+if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
 
 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
 
@@ -11613,7 +11363,7 @@ then
     for ac_header in png.h
 do :
   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
-if test "x$ac_cv_header_png_h" = x""yes; then :
+if test "x$ac_cv_header_png_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_PNG_H 1
 _ACEOF
@@ -11629,7 +11379,7 @@ done
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
 $as_echo_n "checking for -lpng... " >&6; }
-if test "${ac_cv_lib_soname_png+set}" = set; then :
+if ${ac_cv_lib_soname_png+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11679,7 +11429,7 @@ _ACEOF
 fi
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
-if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
+if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -11713,7 +11463,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
-if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
+if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
 
 fi
@@ -11725,7 +11475,7 @@ if test "x$ac_cv_lib_soname_png" = "x"; then :
   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
-This is an error since --with-png was requested." "$LINENO" 5  ;;
+This is an error since --with-png was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -11733,7 +11483,7 @@ if test "$ac_cv_header_tiffio_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
 $as_echo_n "checking for -ltiff... " >&6; }
-if test "${ac_cv_lib_soname_tiff+set}" = set; then :
+if ${ac_cv_lib_soname_tiff+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11787,7 +11537,7 @@ if test "x$ac_cv_lib_soname_tiff" = "x"; then :
   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
-This is an error since --with-tiff was requested." "$LINENO" 5  ;;
+This is an error since --with-tiff was requested." "$LINENO" 5 ;;
 esac
 fi
 
@@ -11795,7 +11545,7 @@ if test "$ac_cv_header_mpg123_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
-if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
+if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -11829,7 +11579,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
-if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
+if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
   LIBMPG123="-lmpg123"
 
 fi
@@ -11840,7 +11590,7 @@ if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_Co
   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
-This is an error since --with-mpg123 was requested." "$LINENO" 5  ;;
+This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
 esac
 fi
 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
@@ -11849,7 +11599,7 @@ if test "$ac_cv_header_AL_al_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
 $as_echo_n "checking for -lopenal... " >&6; }
-if test "${ac_cv_lib_soname_openal+set}" = set; then :
+if ${ac_cv_lib_soname_openal+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -11910,7 +11660,7 @@ if test "x$ac_cv_lib_openal" != xyes; then :
   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
-This is an error since --with-openal was requested." "$LINENO" 5  ;;
+This is an error since --with-openal was requested." "$LINENO" 5 ;;
 esac
 fi
 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
@@ -11919,7 +11669,7 @@ if test "$ac_cv_header_kstat_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
-if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
+if ${ac_cv_lib_kstat_kstat_open+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -11953,7 +11703,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
-if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
+if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
 
 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
 
@@ -11965,7 +11715,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
 $as_echo_n "checking for -lodbc... " >&6; }
-if test "${ac_cv_lib_soname_odbc+set}" = set; then :
+if ${ac_cv_lib_soname_odbc+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_soname_save_LIBS=$LIBS
@@ -12017,11 +11767,14 @@ _ACEOF
 
 fi
 
-if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
-        "$ac_cv_header_sys_soundcard_h" != "yes" -a \
-        "$ac_cv_header_machine_soundcard_h" != "yes" -a \
-        "$ac_cv_header_soundcard_h" != "yes" -a \
-        "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
+test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
+test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
+test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
+test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
+
+if test "x$ALSALIBS$COREAUDIO" = "x" -a \
+        "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
+        "x$with_alsa$with_coreaudio$with_oss" != xnonono
 then
     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
 fi
@@ -12035,7 +11788,7 @@ then
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
-if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
+if ${ac_cv_c_gcc_strength_bug+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   if test "$cross_compiling" = yes; then :
@@ -12077,7 +11830,7 @@ $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
-if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
+if ${ac_cv_cflags__fno_builtin+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -12103,7 +11856,7 @@ if test $ac_cv_cflags__fno_builtin = yes; then :
 fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
-if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
+if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -12128,7 +11881,7 @@ if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
 fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
-if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
+if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
+fi
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
+$as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
+if ${ac_cv_cflags__Wempty_body+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_wine_try_cflags_saved=$CFLAGS
+CFLAGS="$CFLAGS -Wempty-body"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+int main(int argc, char **argv) { return 0; }
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_cflags__Wempty_body=yes
+else
+  ac_cv_cflags__Wempty_body=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+CFLAGS=$ac_wine_try_cflags_saved
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
+$as_echo "$ac_cv_cflags__Wempty_body" >&6; }
+if test $ac_cv_cflags__Wempty_body = yes; then :
+  EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
 fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
-if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
+if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -12178,7 +11956,7 @@ if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
 fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
-if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
+if ${ac_cv_cflags__Wtype_limits+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
 if test $ac_cv_cflags__Wtype_limits = yes; then :
   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
+fi
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
+$as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
+if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_wine_try_cflags_saved=$CFLAGS
+CFLAGS="$CFLAGS -Wunused-but-set-parameter"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+int main(int argc, char **argv) { return 0; }
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_cflags__Wunused_but_set_parameter=yes
+else
+  ac_cv_cflags__Wunused_but_set_parameter=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+CFLAGS=$ac_wine_try_cflags_saved
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
+$as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
+if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
+  EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
 fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
-if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
+if ${ac_cv_cflags__Wwrite_strings+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -12231,7 +12034,7 @@ fi
   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
-if test "${ac_cv_c_string_h_warnings+set}" = set; then :
+if ${ac_cv_c_string_h_warnings+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -12264,7 +12067,7 @@ $as_echo "$ac_cv_c_string_h_warnings" >&6; }
   CFLAGS="$CFLAGS -Wlogical-op -Werror"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
-if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
+if ${ac_cv_c_logicalop_noisy+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -12297,7 +12100,7 @@ $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
   then
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
-if test "${ac_cv_cflags__Werror+set}" = set; then :
+if ${ac_cv_cflags__Werror+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_wine_try_cflags_saved=$CFLAGS
@@ -12326,7 +12129,7 @@ fi
   CFLAGS="$CFLAGS -Werror"
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
-if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
+if ${ac_cv_have_ms_hook_prologue+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -12364,7 +12167,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
 $as_echo_n "checking for the need to disable Fortify... " >&6; }
-if test "${ac_cv_c_fortify_enabled+set}" = set; then :
+if ${ac_cv_c_fortify_enabled+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -12397,7 +12200,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
-if test "${ac_cv_c_extern_prefix+set}" = set; then :
+if ${ac_cv_c_extern_prefix+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -12426,7 +12229,7 @@ case $host_cpu in
   *i[3456789]86*)
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
-if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
+if ${ac_cv_c_stdcall_suffix+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -12481,7 +12284,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
 $as_echo_n "checking how to define a function in assembly code... " >&6; }
-if test "${ac_cv_asm_func_def+set}" = set; then :
+if ${ac_cv_asm_func_def+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -12562,7 +12365,7 @@ esac
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
-if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
+if ${ac_cv_c_asm_outside_funcs+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -12588,7 +12391,7 @@ $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
-if test "${ac_cv_c_dot_previous+set}" = set; then :
+if ${ac_cv_c_dot_previous+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -12615,7 +12418,7 @@ $as_echo "$ac_cv_c_dot_previous" >&6; }
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
-if test "${ac_cv_c_cfi_support+set}" = set; then :
+if ${ac_cv_c_cfi_support+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -12725,6 +12528,8 @@ esac
 ac_save_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS $BUILTINFLAG"
 for ac_func in \
+       _finite \
+       _isnan \
        _pclose \
        _popen \
        _snprintf \
@@ -12749,6 +12554,7 @@ for ac_func in \
        ftruncate \
        futimes \
        futimesat \
+       getattrlist \
        getdirentries \
        getopt_long \
        getpagesize \
@@ -12769,7 +12575,6 @@ for ac_func in \
        pwrite \
        readdir \
        readlink \
-       sched_setaffinity \
        sched_yield \
        select \
        setproctitle \
@@ -12814,7 +12619,7 @@ if test "$ac_cv_func_dlopen" = no
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 $as_echo_n "checking for dlopen in -ldl... " >&6; }
-if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
+if ${ac_cv_lib_dl_dlopen+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -12848,7 +12653,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
-if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
+if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  LIBDL="-ldl"
 
@@ -12860,7 +12665,7 @@ LIBS="$LIBS $LIBDL"
 for ac_func in dladdr
 do :
   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
-if test "x$ac_cv_func_dladdr" = x""yes; then :
+if test "x$ac_cv_func_dladdr" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_DLADDR 1
 _ACEOF
@@ -12874,7 +12679,7 @@ if test "$ac_cv_func_poll" = no
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
 $as_echo_n "checking for poll in -lpoll... " >&6; }
-if test "${ac_cv_lib_poll_poll+set}" = set; then :
+if ${ac_cv_lib_poll_poll+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -12908,7 +12713,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
 $as_echo "$ac_cv_lib_poll_poll" >&6; }
-if test "x$ac_cv_lib_poll_poll" = x""yes; then :
+if test "x$ac_cv_lib_poll_poll" = xyes; then :
   $as_echo "#define HAVE_POLL 1" >>confdefs.h
  LIBPOLL="-lpoll"
 
@@ -12918,7 +12723,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
 $as_echo_n "checking for library containing gethostbyname... " >&6; }
-if test "${ac_cv_search_gethostbyname+set}" = set; then :
+if ${ac_cv_search_gethostbyname+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_func_search_save_LIBS=$LIBS
@@ -12952,11 +12757,11 @@ for ac_lib in '' nsl; do
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext
-  if test "${ac_cv_search_gethostbyname+set}" = set; then :
+  if ${ac_cv_search_gethostbyname+:} false; then :
   break
 fi
 done
-if test "${ac_cv_search_gethostbyname+set}" = set; then :
+if ${ac_cv_search_gethostbyname+:} false; then :
 
 else
   ac_cv_search_gethostbyname=no
@@ -12975,7 +12780,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
 $as_echo_n "checking for library containing connect... " >&6; }
-if test "${ac_cv_search_connect+set}" = set; then :
+if ${ac_cv_search_connect+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_func_search_save_LIBS=$LIBS
@@ -13009,11 +12814,11 @@ for ac_lib in '' socket; do
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext
-  if test "${ac_cv_search_connect+set}" = set; then :
+  if ${ac_cv_search_connect+:} false; then :
   break
 fi
 done
-if test "${ac_cv_search_connect+set}" = set; then :
+if ${ac_cv_search_connect+:} false; then :
 
 else
   ac_cv_search_connect=no
@@ -13032,7 +12837,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
 $as_echo_n "checking for library containing inet_aton... " >&6; }
-if test "${ac_cv_search_inet_aton+set}" = set; then :
+if ${ac_cv_search_inet_aton+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_func_search_save_LIBS=$LIBS
@@ -13066,11 +12871,11 @@ for ac_lib in '' resolv; do
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext
-  if test "${ac_cv_search_inet_aton+set}" = set; then :
+  if ${ac_cv_search_inet_aton+:} false; then :
   break
 fi
 done
-if test "${ac_cv_search_inet_aton+set}" = set; then :
+if ${ac_cv_search_inet_aton+:} false; then :
 
 else
   ac_cv_search_inet_aton=no
@@ -13118,10 +12923,10 @@ if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
 then
     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
 "
-if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
+if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
-if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
+if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -13155,10 +12960,10 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
-if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
+if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
 $as_echo_n "checking for ber_init in -llber... " >&6; }
-if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
+if ${ac_cv_lib_lber_ber_init+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -13192,7 +12997,7 @@ LIBS=$ac_check_lib_save_LIBS
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
-if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
+if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
 
 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
 
@@ -13232,13 +13037,13 @@ if test "x$LDAPLIBS" = "x"; then :
   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
   xno) ;;
   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
-This is an error since --with-ldap was requested." "$LINENO" 5  ;;
+This is an error since --with-ldap was requested." "$LINENO" 5 ;;
 esac
 fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
-if test "${wine_cv_one_arg_mkdir+set}" = set; then :
+if ${wine_cv_one_arg_mkdir+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -13268,10 +13073,44 @@ $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
 
 fi
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
+$as_echo_n "checking for sched_setaffinity... " >&6; }
+if ${wine_cv_have_sched_setaffinity+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#define _GNU_SOURCE
+#include <sched.h>
+int
+main ()
+{
+sched_setaffinity(0, 0, 0);
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  wine_cv_have_sched_setaffinity=yes
+else
+  wine_cv_have_sched_setaffinity=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
+$as_echo "$wine_cv_have_sched_setaffinity" >&6; }
+if test "$wine_cv_have_sched_setaffinity" = "yes"
+then
+
+$as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
+
+fi
+
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
-if test "${ac_cv_c_const+set}" = set; then :
+if ${ac_cv_c_const+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -13351,7 +13190,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 $as_echo_n "checking for inline... " >&6; }
-if test "${ac_cv_c_inline+set}" = set; then :
+if ${ac_cv_c_inline+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_cv_c_inline=no
@@ -13392,7 +13231,7 @@ _ACEOF
 esac
 
 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
-if test "x$ac_cv_type_mode_t" = x""yes; then :
+if test "x$ac_cv_type_mode_t" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_MODE_T 1
@@ -13401,7 +13240,7 @@ _ACEOF
 
 fi
 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
-if test "x$ac_cv_type_off_t" = x""yes; then :
+if test "x$ac_cv_type_off_t" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_OFF_T 1
@@ -13410,7 +13249,7 @@ _ACEOF
 
 fi
 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
-if test "x$ac_cv_type_pid_t" = x""yes; then :
+if test "x$ac_cv_type_pid_t" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_PID_T 1
@@ -13419,7 +13258,7 @@ _ACEOF
 
 fi
 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
-if test "x$ac_cv_type_size_t" = x""yes; then :
+if test "x$ac_cv_type_size_t" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_SIZE_T 1
@@ -13428,7 +13267,7 @@ _ACEOF
 
 fi
 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
-if test "x$ac_cv_type_ssize_t" = x""yes; then :
+if test "x$ac_cv_type_ssize_t" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_SSIZE_T 1
@@ -13437,7 +13276,7 @@ _ACEOF
 
 fi
 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
-if test "x$ac_cv_type_long_long" = x""yes; then :
+if test "x$ac_cv_type_long_long" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_LONG_LONG 1
@@ -13446,7 +13285,7 @@ _ACEOF
 
 fi
 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
-if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
+if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_FSBLKCNT_T 1
@@ -13455,7 +13294,7 @@ _ACEOF
 
 fi
 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
-if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
+if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_FSFILCNT_T 1
@@ -13467,7 +13306,7 @@ fi
 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
 #include <signal.h>
 "
-if test "x$ac_cv_type_sigset_t" = x""yes; then :
+if test "x$ac_cv_type_sigset_t" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_SIGSET_T 1
@@ -13478,7 +13317,7 @@ fi
 
 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
 "
-if test "x$ac_cv_type_request_sense" = x""yes; then :
+if test "x$ac_cv_type_request_sense" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_REQUEST_SENSE 1
@@ -13511,7 +13350,7 @@ ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#incl
 #include <netinet/in_pcb.h>
 #endif
 "
-if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
+if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_XINPGEN 1
@@ -13525,7 +13364,7 @@ ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_stru
 #include <linux/input.h>
 #endif
 "
-if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
+if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
@@ -13537,7 +13376,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
 $as_echo_n "checking for sigaddset... " >&6; }
-if test "${wine_cv_have_sigaddset+set}" = set; then :
+if ${wine_cv_have_sigaddset+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -13571,7 +13410,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
-if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
+if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -13586,12 +13425,12 @@ main ()
     struct hostent *result;
     char *buf=0;
     int bufsize=0;
-    int res,errnr;
+    int errnr;
     char *addr=0;
     int addrlen=0;
     int addrtype=0;
-    res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
-    res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
+    gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
+    gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
 
   ;
   return 0;
@@ -13620,7 +13459,7 @@ if test "$ac_cv_header_linux_joystick_h" = "yes"
 then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
-if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
+if ${wine_cv_linux_joystick_22_api+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -13676,7 +13515,7 @@ ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_st
 # include <sys/statfs.h>
 #endif
 "
-if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
+if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_STATFS_F_BFREE 1
@@ -13698,7 +13537,7 @@ ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_s
 # include <sys/statfs.h>
 #endif
 "
-if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
+if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
@@ -13720,7 +13559,7 @@ ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_s
 # include <sys/statfs.h>
 #endif
 "
-if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
+if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
@@ -13742,7 +13581,7 @@ ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_st
 # include <sys/statfs.h>
 #endif
 "
-if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
+if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_STATFS_F_FFREE 1
@@ -13764,7 +13603,7 @@ ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_s
 # include <sys/statfs.h>
 #endif
 "
-if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
+if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
@@ -13786,7 +13625,7 @@ ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_
 # include <sys/statfs.h>
 #endif
 "
-if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
+if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
@@ -13800,7 +13639,7 @@ ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_
 #include <sys/statvfs.h>
 #endif
 "
-if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
+if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
@@ -13818,7 +13657,7 @@ ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_str
 # include <sys/un.h>
 #endif
 "
-if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
+if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
@@ -13834,7 +13673,7 @@ ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_s
 # include <sys/un.h>
 #endif
 "
-if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
+if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
@@ -13850,7 +13689,7 @@ ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_stru
 # include <sys/un.h>
 #endif
 "
-if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
+if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
@@ -13865,7 +13704,7 @@ ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#
 #include <scsi/sg.h>
 #endif
 "
-if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
+if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_SCSIREQ_T_CMD 1
@@ -13878,7 +13717,7 @@ ac_fn_c_check_member "$LINENO" "sg_io_hdr_t" "interface_id" "ac_cv_member_sg_io_
 #include <scsi/sg.h>
 #endif
 "
-if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
+if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
@@ -13890,7 +13729,7 @@ fi
 
 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
 "
-if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
+if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_SIGINFO_T_SI_FD 1
@@ -13905,7 +13744,7 @@ ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_m
 #include <sys/mtio.h>
 #endif
 "
-if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
+if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
@@ -13918,7 +13757,7 @@ ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mt
 #include <sys/mtio.h>
 #endif
 "
-if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
+if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
@@ -13931,7 +13770,7 @@ ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mt
 #include <sys/mtio.h>
 #endif
 "
-if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
+if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
@@ -13945,7 +13784,7 @@ ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_optio
 #include <getopt.h>
 #endif
 "
-if test "x$ac_cv_member_struct_option_name" = x""yes; then :
+if test "x$ac_cv_member_struct_option_name" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_OPTION_NAME 1
@@ -13956,7 +13795,7 @@ fi
 
 
 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
-if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
+if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
@@ -13965,7 +13804,7 @@ _ACEOF
 
 fi
 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
-if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
+if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_STAT_ST_MTIM 1
@@ -13974,7 +13813,7 @@ _ACEOF
 
 fi
 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
-if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
+if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_STAT_ST_CTIM 1
@@ -13983,7 +13822,7 @@ _ACEOF
 
 fi
 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
-if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
+if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_STAT_ST_ATIM 1
@@ -14000,7 +13839,7 @@ ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_memb
 #include <netinet/in.h>
 #endif
 "
-if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
+if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
@@ -14020,7 +13859,7 @@ ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr
 # include <arpa/nameser.h>
 #endif
 "
-if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
+if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_NS_MSG__MSG_PTR 1
@@ -14064,7 +13903,7 @@ ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_st
 #include <netinet/icmp_var.h>
 #endif
 "
-if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
+if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
@@ -14081,7 +13920,7 @@ ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_
 # include <net/if.h>
 #endif
 "
-if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
+if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
 
 cat >>confdefs.h <<_ACEOF
 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
@@ -14093,7 +13932,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
 $as_echo_n "checking for timezone variable... " >&6; }
-if test "${ac_cv_have_timezone+set}" = set; then :
+if ${ac_cv_have_timezone+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -14125,7 +13964,7 @@ $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
 $as_echo_n "checking for daylight variable... " >&6; }
-if test "${ac_cv_have_daylight+set}" = set; then :
+if ${ac_cv_have_daylight+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -14156,9 +13995,11 @@ $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
 
 fi
 
+ac_save_LIBS="$LIBS"
+LIBS="$LIBS -lm"
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
 $as_echo_n "checking for isinf... " >&6; }
-if test "${ac_cv_have_isinf+set}" = set; then :
+if ${ac_cv_have_isinf+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -14167,7 +14008,7 @@ else
 int
 main ()
 {
-float f = 0.0; int i=isinf(f)
+float f = 0.0; return isinf(f)
   ;
   return 0;
 }
@@ -14191,7 +14032,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
 $as_echo_n "checking for isnan... " >&6; }
-if test "${ac_cv_have_isnan+set}" = set; then :
+if ${ac_cv_have_isnan+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -14200,7 +14041,7 @@ else
 int
 main ()
 {
-float f = 0.0; int i=isnan(f)
+float f = 0.0; return isnan(f)
   ;
   return 0;
 }
@@ -14221,12 +14062,13 @@ then
 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
 
 fi
+LIBS="$ac_save_LIBS"
 
 
 case $host_cpu in
   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
 $as_echo_n "checking whether we need to define __i386__... " >&6; }
-if test "${ac_cv_cpp_def___i386__+set}" = set; then :
+if ${ac_cv_cpp_def___i386__+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -14252,7 +14094,7 @@ if test $ac_cv_cpp_def___i386__ = yes; then :
 fi ;;
   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
-if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
+if ${ac_cv_cpp_def___x86_64__+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -14275,36 +14117,10 @@ $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
 if test $ac_cv_cpp_def___x86_64__ = yes; then :
   CFLAGS="$CFLAGS -D__x86_64__"
   LINTFLAGS="$LINTFLAGS -D__x86_64__"
-fi ;;
-  *alpha*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
-$as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
-if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#ifndef __ALPHA__
-yes
-#endif
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "yes" >/dev/null 2>&1; then :
-  ac_cv_cpp_def___ALPHA__=yes
-else
-  ac_cv_cpp_def___ALPHA__=no
-fi
-rm -f conftest*
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
-$as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
-if test $ac_cv_cpp_def___ALPHA__ = yes; then :
-  CFLAGS="$CFLAGS -D__ALPHA__"
-  LINTFLAGS="$LINTFLAGS -D__ALPHA__"
 fi ;;
   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
-if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
+if ${ac_cv_cpp_def___sparc__+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -14330,7 +14146,7 @@ if test $ac_cv_cpp_def___sparc__ = yes; then :
 fi ;;
   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
-if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
+if ${ac_cv_cpp_def___powerpc__+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -14353,13 +14169,39 @@ $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
 if test $ac_cv_cpp_def___powerpc__ = yes; then :
   CFLAGS="$CFLAGS -D__powerpc__"
   LINTFLAGS="$LINTFLAGS -D__powerpc__"
+fi ;;
+  *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
+$as_echo_n "checking whether we need to define __arm__... " >&6; }
+if ${ac_cv_cpp_def___arm__+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#ifndef __arm__
+yes
+#endif
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "yes" >/dev/null 2>&1; then :
+  ac_cv_cpp_def___arm__=yes
+else
+  ac_cv_cpp_def___arm__=no
+fi
+rm -f conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
+$as_echo "$ac_cv_cpp_def___arm__" >&6; }
+if test $ac_cv_cpp_def___arm__ = yes; then :
+  CFLAGS="$CFLAGS -D__arm__"
+  LINTFLAGS="$LINTFLAGS -D__arm__"
 fi ;;
 esac
 
 case $host_vendor in
   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
 $as_echo_n "checking whether we need to define __sun__... " >&6; }
-if test "${ac_cv_cpp_def___sun__+set}" = set; then :
+if ${ac_cv_cpp_def___sun__+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -14402,9 +14244,7 @@ Makefile: Makefile.in Make.vars.in Make.rules config.status
        @./config.status Make.tmp Makefile"
 
 ALL_POT_FILES=""
-ALL_WINETEST_DEPENDS="# Test binaries"
-
-ALL_TEST_BINARIES=""
+ALL_TEST_RESOURCES=""
 
 
 wine_fn_append_file ()
@@ -14456,39 +14296,71 @@ wine_fn_config_makefile ()
 {
     ac_dir=$1
     ac_enable=$2
+    ac_flags=$3
+    ac_rules=$4
     if eval test \"x\$"$ac_enable"\" = x"no"; then :
   return 0
 fi
 
-    wine_fn_all_dir_rules $ac_dir Make.rules
+    wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
 "all: $ac_dir
 .PHONY: $ac_dir
 $ac_dir: $ac_dir/Makefile dummy
-       @cd $ac_dir && \$(MAKE)
-install:: $ac_dir
+       @cd $ac_dir && \$(MAKE)"
+
+    wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
+
+    wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
+$ac_dir/__install__:: $ac_dir
        @cd $ac_dir && \$(MAKE) install
-install-lib:: $ac_dir
+$ac_dir/__uninstall__:: $ac_dir/Makefile
+       @cd $ac_dir && \$(MAKE) uninstall
+install:: $ac_dir/__install__
+__uninstall__: $ac_dir/__uninstall__"
+
+    if wine_fn_has_flag install-lib $ac_flags
+    then
+        wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+".PHONY: $ac_dir/__install-lib__
+$ac_dir/__install-lib__:: $ac_dir
        @cd $ac_dir && \$(MAKE) install-lib
-install-dev:: $ac_dir
+install-lib:: $ac_dir/__install-lib__"
+    fi
+
+    if wine_fn_has_flag install-dev $ac_flags
+    then
+        wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+".PHONY: $ac_dir/__install-dev
+$ac_dir/__install-dev__:: $ac_dir
        @cd $ac_dir && \$(MAKE) install-dev
-uninstall:: $ac_dir/Makefile
-       @cd $ac_dir && \$(MAKE) uninstall"
+install-dev:: $ac_dir/__install-dev__"
+    fi
 }
 
 wine_fn_config_lib ()
 {
     ac_name=$1
+    ac_flags=$2
     ac_dir=dlls/$ac_name
-    wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
-    wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
-"all __builddeps__: $ac_dir
-$ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
-       @cd $ac_dir && \$(MAKE)
-install install-dev:: $ac_dir
-       @cd $ac_dir && \$(MAKE) install
-uninstall:: $ac_dir/Makefile
-       @cd $ac_dir && \$(MAKE) uninstall"
+    wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
+
+    if wine_fn_has_flag install-dev $ac_flags
+    then :
+    else
+        wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
+$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
+       \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
+$ac_dir/__uninstall__::
+       \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
+install install-dev:: $ac_dir/__install__
+__uninstall__: $ac_dir/__uninstall__"
+    fi
+
+    wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
+    wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
 }
 
 wine_fn_config_dll ()
@@ -14499,35 +14371,65 @@ wine_fn_config_dll ()
     ac_flags=$3
     ac_implib=${4:-$ac_name}
     ac_file=$ac_dir/lib$ac_implib
+    ac_dll=$ac_name
     ac_deps="tools/widl tools/winebuild tools/winegcc include"
     ac_implibflags=""
 
     case $ac_name in
       *16) ac_implibflags=" -m16" ;;
+      *.*) ;;
+      *)   ac_dll=$ac_dll.dll ;;
     esac
 
-    wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
+    wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
 
     if eval test \"x\$"$ac_enable"\" = x"no"; then :
                 test "$ac_enable" != enable_win16 || return 0
+               wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
 else
   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
-"all: $ac_dir
-.PHONY: $ac_dir
-$ac_dir: $ac_dir/Makefile __builddeps__ dummy
-       @cd $ac_dir && \$(MAKE)
-install:: $ac_dir/Makefile __builddeps__
-       @cd $ac_dir && \$(MAKE) install
-install-lib:: $ac_dir/Makefile __builddeps__
-       @cd $ac_dir && \$(MAKE) install-lib
-uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
+"$ac_dir: __builddeps__
+manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
        @cd $ac_dir && \$(MAKE) \$@"
 
-        if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags
-        then
-            wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
+        if wine_fn_has_flag install-lib $ac_flags
+        then :
+        else
             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
+install install-lib:: $ac_dir/__install-lib__
+__uninstall__: $ac_dir/__uninstall__"
+            if test -n "$DLLEXT"
+            then
+                wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
+       \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
+       \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
+$ac_dir/__uninstall__::
+       \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
+            else
+                wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
+       \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
+$ac_dir/__uninstall__::
+       \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
+            fi
+        fi
+
+        if test "x$enable_maintainer_mode" = xyes
+        then
+            if wine_fn_has_flag mc $ac_flags
+            then
+                wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
+                wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+"$ac_dir/msg.pot: $ac_dir"
+            fi
+            if wine_fn_has_flag po $ac_flags
+            then
+                wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
+                wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
 "$ac_dir/rsrc.pot: $ac_dir"
+            fi
         fi
 fi
 
@@ -14540,8 +14442,23 @@ $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
        @cd $ac_dir && \$(MAKE) lib$ac_implib.def
 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
        @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
-install-dev:: $ac_dir/Makefile __builddeps__
-       @cd $ac_dir && \$(MAKE) install-dev"
+.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
+$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
+       \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
+$ac_dir/__uninstall__::
+       \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
+install install-dev:: $ac_dir/__install-dev__
+__uninstall__: $ac_dir/__uninstall__"
+
+        if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
+        then
+            wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+"$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
+       \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
+$ac_dir/__uninstall__::
+       \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
+        fi
+
         if test "x$CROSSTEST_DISABLE" = x
         then
             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
@@ -14558,8 +14475,13 @@ $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
        \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
        \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
-install-dev:: $ac_dir/Makefile __builddeps__
-       @cd $ac_dir && \$(MAKE) install-dev"
+.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
+$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
+       \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
+$ac_dir/__uninstall__::
+       \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
+install install-dev:: $ac_dir/__install-dev__
+__uninstall__: $ac_dir/__uninstall__"
         if test "x$CROSSTEST_DISABLE" = x
         then
             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
@@ -14593,37 +14515,75 @@ wine_fn_config_program ()
     ac_dir=programs/$ac_name
     ac_enable=$2
     ac_flags=$3
-    wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
+    ac_program=$ac_name
+
+    case $ac_name in
+      *.*) ;;
+      *)   ac_program=$ac_program.exe ;;
+    esac
+
+    wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
 
     if eval test \"x\$"$ac_enable"\" = x"no"; then :
 
 else
   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
-"all: $ac_dir
-.PHONY: $ac_dir
-$ac_dir: $ac_dir/Makefile __builddeps__ dummy
-       @cd $ac_dir && \$(MAKE)"
+"$ac_dir: __builddeps__"
 
-    if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags
+    if test "x$enable_maintainer_mode" = xyes
     then
-        wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
-        wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+        if wine_fn_has_flag mc $ac_flags
+        then
+            wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
+            wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+"$ac_dir/msg.pot: $ac_dir"
+        fi
+        if wine_fn_has_flag po $ac_flags
+        then
+            wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
+            wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
 "$ac_dir/rsrc.pot: $ac_dir"
+        fi
     fi
 
     wine_fn_has_flag install $ac_flags || return
     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
-"install install-lib:: $ac_dir/Makefile __builddeps__
-       @cd $ac_dir && \$(MAKE) install
-uninstall:: $ac_dir/Makefile
-       @cd $ac_dir && \$(MAKE) uninstall"
-    if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
+".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
+install install-lib:: $ac_dir/__install__
+__uninstall__: $ac_dir/__uninstall__"
+
+    if test -n "$DLLEXT"
     then
         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
-"install install-lib:: tools \$(DESTDIR)\$(bindir)
+"$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
+       \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
+       \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
+$ac_dir/__uninstall__::
+       \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
+
+        if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
+        then
+            wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+"$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
        \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
-uninstall::
+$ac_dir/__uninstall__::
        \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
+        fi
+    else
+        wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
+       \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
+$ac_dir/__uninstall__::
+       \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
+    fi
+
+    if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
+    then
+        wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
+"$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
+       \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
+$ac_dir/__uninstall__::
+       \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
     fi
 fi
 }
@@ -14632,24 +14592,20 @@ wine_fn_config_test ()
 {
     ac_dir=$1
     ac_name=$2
-    wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
-    wine_fn_append_rule ALL_WINETEST_DEPENDS \
-"$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
-       cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
-$ac_name.rc:
-       echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
-$ac_name.res: $ac_name.rc $ac_name.exe"
+    ac_flags=$3
+    wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
     wine_fn_all_dir_rules $ac_dir Maketest.rules
 
-    if test "x$enable_tests" = x""no; then :
+    if test "x$enable_tests" = xno; then :
 
 else
   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
-"all programs/winetest: $ac_dir
+"all: $ac_dir
 .PHONY: $ac_dir
-$ac_dir: $ac_dir/Makefile __builddeps__ dummy
+$ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
        @cd $ac_dir && \$(MAKE)
-test: $ac_dir/__test__
+programs/winetest: $ac_dir
+check test: $ac_dir/__test__
 .PHONY: $ac_dir/__test__
 $ac_dir/__test__: dummy
        @cd $ac_dir && \$(MAKE) test
 wine_fn_config_tool ()
 {
     ac_dir=$1
-    wine_fn_all_dir_rules $ac_dir Make.rules
+    ac_flags=$2
+    if test "x$enable_tools" = xno; then :
+  return 0
+fi
 
-    if test "x$enable_tools" = x""no; then :
+    wine_fn_config_makefile $ac_dir enable_tools $ac_flags
 
-else
-  case $ac_dir in
-            tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
-"install:: $ac_dir
-       @cd $ac_dir && \$(MAKE) install
-install-lib:: $ac_dir
-       @cd $ac_dir && \$(MAKE) install-lib
-install-dev:: $ac_dir
-       @cd $ac_dir && \$(MAKE) install-dev" ;;
-      *)     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
-"install install-dev:: $ac_dir
-       @cd $ac_dir && \$(MAKE) install" ;;
-      esac
-      wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
-"uninstall:: $ac_dir/Makefile
-       @cd $ac_dir && \$(MAKE) uninstall
-all __tooldeps__: $ac_dir
-.PHONY: $ac_dir
-$ac_dir: $ac_dir/Makefile libs/port dummy
-       @cd $ac_dir && \$(MAKE)"
-      case $ac_dir in
-        tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
-      esac
-fi
+    wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
+    wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
+    case $ac_dir in
+      tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
+    esac
 }
 
 wine_fn_config_makerules ()
@@ -14747,10 +14687,18 @@ if test "x$enable_fonts" != xno; then
 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
 fi
+if test "x$enable_tools" != xno; then
 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
+fi
 ac_config_links="$ac_config_links wine:tools/winewrapper"
 wine_fn_config_symlink wine
+if test "x$enable_win64" != xno; then
+ac_config_links="$ac_config_links wine64:tools/winewrapper"
+wine_fn_config_symlink wine64
+fi
+
+ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
 
 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
 
@@ -14802,7 +14750,7 @@ wine_fn_config_dll atl enable_atl implib
 wine_fn_config_test dlls/atl/tests atl_test
 wine_fn_config_dll authz enable_authz
 wine_fn_config_dll avicap32 enable_avicap32 implib
-wine_fn_config_dll avifil32 enable_avifil32 po,implib
+wine_fn_config_dll avifil32 enable_avifil32 implib,po
 wine_fn_config_test dlls/avifil32/tests avifil32_test
 wine_fn_config_dll avifile.dll16 enable_win16
 wine_fn_config_dll avrt enable_avrt implib
@@ -14817,24 +14765,24 @@ wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
 wine_fn_config_dll clusapi enable_clusapi implib
 wine_fn_config_dll comcat enable_comcat
 wine_fn_config_test dlls/comcat/tests comcat_test
-wine_fn_config_dll comctl32 enable_comctl32 po,implib
+wine_fn_config_dll comctl32 enable_comctl32 implib,po
 wine_fn_config_test dlls/comctl32/tests comctl32_test
-wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
+wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
 wine_fn_config_dll comm.drv16 enable_win16
 wine_fn_config_dll commdlg.dll16 enable_win16
 wine_fn_config_dll compobj.dll16 enable_win16
 wine_fn_config_dll compstui enable_compstui implib
-wine_fn_config_dll credui enable_credui po,implib
+wine_fn_config_dll credui enable_credui implib,po
 wine_fn_config_test dlls/credui/tests credui_test
 wine_fn_config_dll crtdll enable_crtdll implib
-wine_fn_config_dll crypt32 enable_crypt32 po,implib
+wine_fn_config_dll crypt32 enable_crypt32 implib,po
 wine_fn_config_test dlls/crypt32/tests crypt32_test
 wine_fn_config_dll cryptdlg enable_cryptdlg po
 wine_fn_config_dll cryptdll enable_cryptdll implib
 wine_fn_config_dll cryptnet enable_cryptnet implib
 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
-wine_fn_config_dll cryptui enable_cryptui po,implib
+wine_fn_config_dll cryptui enable_cryptui implib,po
 wine_fn_config_test dlls/cryptui/tests cryptui_test
 wine_fn_config_dll ctapi32 enable_ctapi32
 wine_fn_config_dll ctl3d.dll16 enable_win16
@@ -14909,6 +14857,7 @@ wine_fn_config_dll devenum enable_devenum po
 wine_fn_config_dll dinput enable_dinput implib,staticimplib
 wine_fn_config_test dlls/dinput/tests dinput_test
 wine_fn_config_dll dinput8 enable_dinput8 implib
+wine_fn_config_test dlls/dinput8/tests dinput8_test
 wine_fn_config_dll dispdib.dll16 enable_win16
 wine_fn_config_dll dispex enable_dispex
 wine_fn_config_test dlls/dispex/tests dispex_test
@@ -14940,7 +14889,7 @@ wine_fn_config_test dlls/dsound/tests dsound_test
 wine_fn_config_dll dssenh enable_dssenh
 wine_fn_config_dll dswave enable_dswave
 wine_fn_config_dll dwmapi enable_dwmapi implib
-wine_fn_config_dll dxdiagn enable_dxdiagn
+wine_fn_config_dll dxdiagn enable_dxdiagn po
 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
 wine_fn_config_lib dxerr8
 wine_fn_config_lib dxerr9
@@ -14974,6 +14923,8 @@ wine_fn_config_dll hnetcfg enable_hnetcfg
 wine_fn_config_dll httpapi enable_httpapi
 wine_fn_config_dll iccvid enable_iccvid po
 wine_fn_config_dll icmp enable_icmp
+wine_fn_config_dll ieframe enable_ieframe implib,po
+wine_fn_config_test dlls/ieframe/tests ieframe_test
 wine_fn_config_dll ifsmgr.vxd enable_win16
 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
 wine_fn_config_dll imagehlp enable_imagehlp implib
@@ -14998,7 +14949,7 @@ wine_fn_config_dll itss enable_itss
 wine_fn_config_test dlls/itss/tests itss_test
 wine_fn_config_dll jscript enable_jscript po
 wine_fn_config_test dlls/jscript/tests jscript_test
-wine_fn_config_dll kernel32 enable_kernel32 implib
+wine_fn_config_dll kernel32 enable_kernel32 implib,mc
 wine_fn_config_test dlls/kernel32/tests kernel32_test
 wine_fn_config_dll keyboard.drv16 enable_win16
 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
@@ -15011,7 +14962,7 @@ wine_fn_config_test dlls/localui/tests localui_test
 wine_fn_config_dll lz32 enable_lz32 implib
 wine_fn_config_test dlls/lz32/tests lz32_test
 wine_fn_config_dll lzexpand.dll16 enable_win16
-wine_fn_config_dll mapi32 enable_mapi32 po,implib
+wine_fn_config_dll mapi32 enable_mapi32 implib,po
 wine_fn_config_test dlls/mapi32/tests mapi32_test
 wine_fn_config_dll mapistub enable_mapistub
 wine_fn_config_dll mciavi32 enable_mciavi32
@@ -15029,7 +14980,7 @@ wine_fn_config_dll mmsystem.dll16 enable_win16
 wine_fn_config_dll monodebg.vxd enable_win16
 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
 wine_fn_config_dll mouse.drv16 enable_win16
-wine_fn_config_dll mpr enable_mpr po,implib
+wine_fn_config_dll mpr enable_mpr implib,po
 wine_fn_config_dll mprapi enable_mprapi implib
 wine_fn_config_dll msacm.dll16 enable_win16
 wine_fn_config_dll msacm32.drv enable_msacm32_drv
@@ -15049,21 +15000,27 @@ wine_fn_config_dll msftedit enable_msftedit
 wine_fn_config_dll msg711.acm enable_msg711_acm
 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
-wine_fn_config_dll mshtml enable_mshtml po,implib
+wine_fn_config_dll mshtml enable_mshtml implib,po
 wine_fn_config_test dlls/mshtml/tests mshtml_test
-wine_fn_config_dll msi enable_msi po,implib
+wine_fn_config_dll msi enable_msi implib,po
 wine_fn_config_test dlls/msi/tests msi_test
 wine_fn_config_dll msimg32 enable_msimg32 implib
+wine_fn_config_dll msimsg enable_msimsg
 wine_fn_config_dll msimtf enable_msimtf
 wine_fn_config_dll msisip enable_msisip
 wine_fn_config_dll msisys.ocx enable_msisys_ocx
 wine_fn_config_dll msnet32 enable_msnet32
+wine_fn_config_dll mspatcha enable_mspatcha
 wine_fn_config_dll msrle32 enable_msrle32 po
 wine_fn_config_dll mssign32 enable_mssign32
 wine_fn_config_dll mssip32 enable_mssip32
 wine_fn_config_dll mstask enable_mstask
 wine_fn_config_test dlls/mstask/tests mstask_test
 wine_fn_config_dll msvcirt enable_msvcirt
+wine_fn_config_dll msvcp100 enable_msvcp100
+wine_fn_config_dll msvcp60 enable_msvcp60
+wine_fn_config_dll msvcp70 enable_msvcp70
+wine_fn_config_dll msvcp71 enable_msvcp71
 wine_fn_config_dll msvcp80 enable_msvcp80
 wine_fn_config_dll msvcp90 enable_msvcp90
 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
@@ -15079,7 +15036,7 @@ wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
 wine_fn_config_dll msvcrtd enable_msvcrtd implib
 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
-wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
+wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
 wine_fn_config_dll msvidc32 enable_msvidc32 po
 wine_fn_config_dll msvideo.dll16 enable_win16
@@ -15115,15 +15072,15 @@ wine_fn_config_dll ole2prox.dll16 enable_win16
 wine_fn_config_dll ole2thk.dll16 enable_win16
 wine_fn_config_dll ole32 enable_ole32 implib
 wine_fn_config_test dlls/ole32/tests ole32_test
-wine_fn_config_dll oleacc enable_oleacc po,implib
+wine_fn_config_dll oleacc enable_oleacc implib,po
 wine_fn_config_test dlls/oleacc/tests oleacc_test
-wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
+wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
 wine_fn_config_dll olecli.dll16 enable_win16
 wine_fn_config_dll olecli32 enable_olecli32 implib
 wine_fn_config_dll oledb32 enable_oledb32
 wine_fn_config_test dlls/oledb32/tests oledb32_test
-wine_fn_config_dll oledlg enable_oledlg po,implib
+wine_fn_config_dll oledlg enable_oledlg implib,po
 wine_fn_config_dll olepro32 enable_olepro32 implib
 wine_fn_config_dll olesvr.dll16 enable_win16
 wine_fn_config_dll olesvr32 enable_olesvr32 implib
@@ -15155,6 +15112,7 @@ wine_fn_config_dll rasapi16.dll16 enable_win16
 wine_fn_config_dll rasapi32 enable_rasapi32 implib
 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
 wine_fn_config_dll rasdlg enable_rasdlg implib
+wine_fn_config_dll regapi enable_regapi
 wine_fn_config_dll resutils enable_resutils implib
 wine_fn_config_dll riched20 enable_riched20 implib
 wine_fn_config_test dlls/riched20/tests riched20_test
@@ -15169,6 +15127,7 @@ wine_fn_config_dll rstrtmgr enable_rstrtmgr
 wine_fn_config_dll rtutils enable_rtutils implib
 wine_fn_config_dll samlib enable_samlib
 wine_fn_config_dll sane.ds enable_sane_ds po
+wine_fn_config_dll scarddlg enable_scarddlg
 wine_fn_config_dll sccbase enable_sccbase
 wine_fn_config_dll schannel enable_schannel
 wine_fn_config_test dlls/schannel/tests schannel_test
@@ -15178,19 +15137,19 @@ wine_fn_config_dll security enable_security
 wine_fn_config_dll sensapi enable_sensapi implib
 wine_fn_config_dll serialui enable_serialui implib
 wine_fn_config_test dlls/serialui/tests serialui_test
-wine_fn_config_dll setupapi enable_setupapi po,implib
+wine_fn_config_dll setupapi enable_setupapi implib,po
 wine_fn_config_test dlls/setupapi/tests setupapi_test
 wine_fn_config_dll setupx.dll16 enable_win16
 wine_fn_config_dll sfc enable_sfc implib
 wine_fn_config_dll sfc_os enable_sfc_os implib
 wine_fn_config_dll shdoclc enable_shdoclc po
-wine_fn_config_dll shdocvw enable_shdocvw po,implib
+wine_fn_config_dll shdocvw enable_shdocvw implib
 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
 wine_fn_config_dll shell.dll16 enable_win16
-wine_fn_config_dll shell32 enable_shell32 po,implib
+wine_fn_config_dll shell32 enable_shell32 implib,po
 wine_fn_config_test dlls/shell32/tests shell32_test
 wine_fn_config_dll shfolder enable_shfolder implib
-wine_fn_config_dll shlwapi enable_shlwapi po,implib
+wine_fn_config_dll shlwapi enable_shlwapi implib,po
 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
 wine_fn_config_dll slbcsp enable_slbcsp
 wine_fn_config_dll slc enable_slc implib
@@ -15226,7 +15185,7 @@ wine_fn_config_dll urlmon enable_urlmon implib
 wine_fn_config_test dlls/urlmon/tests urlmon_test
 wine_fn_config_dll usbd.sys enable_usbd_sys implib
 wine_fn_config_dll user.exe16 enable_win16
-wine_fn_config_dll user32 enable_user32 po,implib
+wine_fn_config_dll user32 enable_user32 implib,po
 wine_fn_config_test dlls/user32/tests user32_test
 wine_fn_config_dll userenv enable_userenv implib
 wine_fn_config_test dlls/userenv/tests userenv_test
@@ -15235,6 +15194,9 @@ wine_fn_config_test dlls/usp10/tests usp10_test
 wine_fn_config_lib uuid
 wine_fn_config_dll uxtheme enable_uxtheme implib
 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
+wine_fn_config_dll vbscript enable_vbscript
+wine_fn_config_test dlls/vbscript/tests vbscript_test
+wine_fn_config_dll vcomp enable_vcomp
 wine_fn_config_dll vdhcp.vxd enable_win16
 wine_fn_config_dll vdmdbg enable_vdmdbg implib
 wine_fn_config_dll ver.dll16 enable_win16
@@ -15261,15 +15223,12 @@ wine_fn_config_dll winealsa.drv enable_winealsa_drv
 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
 wine_fn_config_lib winecrt0
 wine_fn_config_dll wined3d enable_wined3d implib
-wine_fn_config_dll wineesd.drv enable_wineesd_drv
 wine_fn_config_dll winegstreamer enable_winegstreamer
-wine_fn_config_dll winejack.drv enable_winejack_drv
 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
 wine_fn_config_dll winemapi enable_winemapi
 wine_fn_config_dll winemp3.acm enable_winemp3_acm
-wine_fn_config_dll winenas.drv enable_winenas_drv
 wine_fn_config_dll wineoss.drv enable_wineoss_drv
-wine_fn_config_dll wineps.drv enable_wineps_drv
+wine_fn_config_dll wineps.drv enable_wineps_drv install-lib
 wine_fn_config_dll wineps16.drv16 enable_win16
 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
 wine_fn_config_dll winequartz.drv enable_winequartz_drv
@@ -15278,23 +15237,24 @@ wine_fn_config_dll wing.dll16 enable_win16
 wine_fn_config_dll wing32 enable_wing32
 wine_fn_config_dll winhttp enable_winhttp implib
 wine_fn_config_test dlls/winhttp/tests winhttp_test
-wine_fn_config_dll wininet enable_wininet po,implib
+wine_fn_config_dll wininet enable_wininet implib,po
 wine_fn_config_test dlls/wininet/tests wininet_test
-wine_fn_config_dll winmm enable_winmm po,implib
+wine_fn_config_dll winmm enable_winmm implib,po
 wine_fn_config_test dlls/winmm/tests winmm_test
 wine_fn_config_dll winnls.dll16 enable_win16
 wine_fn_config_dll winnls32 enable_winnls32 implib
 wine_fn_config_dll winscard enable_winscard implib
 wine_fn_config_dll winsock.dll16 enable_win16
-wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
+wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
+wine_fn_config_dll winsta enable_winsta
 wine_fn_config_dll wintab.dll16 enable_win16
 wine_fn_config_dll wintab32 enable_wintab32 implib
 wine_fn_config_test dlls/wintab32/tests wintab32_test
 wine_fn_config_dll wintrust enable_wintrust implib
 wine_fn_config_test dlls/wintrust/tests wintrust_test
 wine_fn_config_dll wlanapi enable_wlanapi
-wine_fn_config_dll wldap32 enable_wldap32 po,implib
+wine_fn_config_dll wldap32 enable_wldap32 implib,po
 wine_fn_config_test dlls/wldap32/tests wldap32_test
 wine_fn_config_dll wmi enable_wmi
 wine_fn_config_dll wmiutils enable_wmiutils
@@ -15302,6 +15262,7 @@ wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
 wine_fn_config_dll wow32 enable_win16 implib
 wine_fn_config_dll ws2_32 enable_ws2_32 implib
 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
+wine_fn_config_dll wshom.ocx enable_wshom_ocx
 wine_fn_config_dll wsock32 enable_wsock32 implib
 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
 wine_fn_config_dll wuapi enable_wuapi
@@ -15315,45 +15276,48 @@ wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
 wine_fn_config_dll xmllite enable_xmllite
 wine_fn_config_test dlls/xmllite/tests xmllite_test
 wine_fn_config_makefile documentation enable_documentation
-wine_fn_config_makefile fonts enable_fonts
-wine_fn_config_makefile include enable_include
+wine_fn_config_makefile fonts enable_fonts install-lib
+wine_fn_config_makefile include enable_include install-dev
 wine_fn_config_makefile libs/port enable_libs_port
-wine_fn_config_makefile libs/wine enable_libs_wine
+wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
 wine_fn_config_makefile libs/wpp enable_libs_wpp
-wine_fn_config_makefile loader enable_loader
+wine_fn_config_makefile loader enable_loader install-lib,manpage
 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
 wine_fn_config_program attrib enable_attrib install
+wine_fn_config_program cabarc enable_cabarc install
 wine_fn_config_program cacls enable_cacls install
-wine_fn_config_program clock enable_clock po,install
-wine_fn_config_program cmd enable_cmd po,install
+wine_fn_config_program clock enable_clock install,po
+wine_fn_config_program cmd enable_cmd install,po
 wine_fn_config_test programs/cmd/tests cmd.exe_test
 wine_fn_config_program cmdlgtst enable_cmdlgtst
 wine_fn_config_program control enable_control install
-wine_fn_config_program dxdiag enable_dxdiag install
+wine_fn_config_program dxdiag enable_dxdiag install,po
 wine_fn_config_program eject enable_eject install
 wine_fn_config_program expand enable_expand install
-wine_fn_config_program explorer enable_explorer install
+wine_fn_config_program explorer enable_explorer install,po
 wine_fn_config_program extrac32 enable_extrac32 install
 wine_fn_config_program hh enable_hh install
+wine_fn_config_program hostname enable_hostname install,po
 wine_fn_config_program icinfo enable_icinfo install
 wine_fn_config_program iexplore enable_iexplore install
-wine_fn_config_program ipconfig enable_ipconfig po,install
+wine_fn_config_program ipconfig enable_ipconfig install,po
 wine_fn_config_program lodctr enable_lodctr install
 wine_fn_config_program mofcomp enable_mofcomp install
 wine_fn_config_program mshta enable_mshta install
-wine_fn_config_program msiexec enable_msiexec install,installbin
-wine_fn_config_program net enable_net po,install
+wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
+wine_fn_config_program net enable_net install,po
 wine_fn_config_program netsh enable_netsh install
 wine_fn_config_program ngen enable_ngen install
-wine_fn_config_program notepad enable_notepad po,install,installbin
-wine_fn_config_program oleview enable_oleview po,install
+wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
+wine_fn_config_program oleview enable_oleview install,po
 wine_fn_config_program ping enable_ping install
-wine_fn_config_program progman enable_progman po,install
-wine_fn_config_program reg enable_reg po,install
-wine_fn_config_program regedit enable_regedit po,install,installbin
+wine_fn_config_program plugplay enable_plugplay install
+wine_fn_config_program progman enable_progman install,po
+wine_fn_config_program reg enable_reg install,po
+wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
 wine_fn_config_test programs/regedit/tests regedit.exe_test
 wine_fn_config_program regsvcs enable_regsvcs install
-wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
+wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
 wine_fn_config_program rpcss enable_rpcss install
 wine_fn_config_program rundll.exe16 enable_win16 install
 wine_fn_config_program rundll32 enable_rundll32 install
@@ -15362,43 +15326,45 @@ wine_fn_config_program secedit enable_secedit install
 wine_fn_config_program servicemodelreg enable_servicemodelreg install
 wine_fn_config_program services enable_services install
 wine_fn_config_program spoolsv enable_spoolsv install
-wine_fn_config_program start enable_start po,install
+wine_fn_config_program start enable_start install,po
 wine_fn_config_program svchost enable_svchost install
-wine_fn_config_program taskkill enable_taskkill po,install
-wine_fn_config_program taskmgr enable_taskmgr po,install
+wine_fn_config_program taskkill enable_taskkill install,po
+wine_fn_config_program taskmgr enable_taskmgr install,po
 wine_fn_config_program termsv enable_termsv install
-wine_fn_config_program uninstaller enable_uninstaller po,install
+wine_fn_config_program uninstaller enable_uninstaller install,po
 wine_fn_config_program unlodctr enable_unlodctr install
 wine_fn_config_program view enable_view po
-wine_fn_config_program wineboot enable_wineboot install,installbin
+wine_fn_config_program wineboot enable_wineboot install,installbin,manpage
 wine_fn_config_program winebrowser enable_winebrowser install
-wine_fn_config_program winecfg enable_winecfg po,install,installbin
-wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
-wine_fn_config_program winedbg enable_winedbg po,install,installbin
+wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
+wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
+wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
 wine_fn_config_program winedevice enable_winedevice install
-wine_fn_config_program winefile enable_winefile po,install,installbin
+wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
 wine_fn_config_program winemenubuilder enable_winemenubuilder install
-wine_fn_config_program winemine enable_winemine po,install,installbin
-wine_fn_config_program winepath enable_winepath install,installbin
+wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
+wine_fn_config_program winemsibuilder enable_winemsibuilder install
+wine_fn_config_program winepath enable_winepath install,installbin,manpage
 wine_fn_config_program winetest enable_winetest
 wine_fn_config_program winevdm enable_win16 install
 wine_fn_config_program winhelp.exe16 enable_win16 install
-wine_fn_config_program winhlp32 enable_winhlp32 po,install
+wine_fn_config_program winhlp32 enable_winhlp32 install,po
 wine_fn_config_program winoldap.mod16 enable_win16 install
 wine_fn_config_program winver enable_winver install
 wine_fn_config_program wmic enable_wmic install
-wine_fn_config_program wordpad enable_wordpad po,install
-wine_fn_config_program write enable_write po,install
+wine_fn_config_program wordpad enable_wordpad install,po
+wine_fn_config_program write enable_write install,po
 wine_fn_config_program wscript enable_wscript install
-wine_fn_config_program xcopy enable_xcopy po,install
-wine_fn_config_makefile server enable_server
-wine_fn_config_tool tools
-wine_fn_config_tool tools/widl
-wine_fn_config_tool tools/winebuild
-wine_fn_config_tool tools/winedump
-wine_fn_config_tool tools/winegcc
-wine_fn_config_tool tools/wmc
-wine_fn_config_tool tools/wrc
+wine_fn_config_test programs/wscript/tests wscript.exe_test
+wine_fn_config_program xcopy enable_xcopy install,po
+wine_fn_config_makefile server enable_server install-lib,manpage
+wine_fn_config_tool tools install-dev,install-lib,manpage
+wine_fn_config_tool tools/widl install-dev,manpage
+wine_fn_config_tool tools/winebuild install-dev,manpage
+wine_fn_config_tool tools/winedump install-dev,manpage
+wine_fn_config_tool tools/winegcc install-dev,manpage
+wine_fn_config_tool tools/wmc install-dev,manpage
+wine_fn_config_tool tools/wrc install-dev,manpage
 
 LINGUAS="\
 ar \
@@ -15467,27 +15433,31 @@ then
 ALL_POT_FILES =$ALL_POT_FILES
 all: \$(ALL_PO_FILES)
 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
-       msgmerge -U -q --backup=none \$@ \$(srcdir)/po/wine.pot && touch \$@
+       msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
        msgcat -o \$@ \$(ALL_POT_FILES)"
 fi
 
+if test "x$enable_tools" != xno
+then
+    wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
+clean:: __clean__
+       \$(RM) tools/makedep\$(EXEEXT)"
+fi
+
 if test -n "$with_wine64"
 then
-wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
-fonts server:
+wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
+fonts server tools:
        \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
 $with_wine64/loader/wine:
        \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
 $with_wine64/loader/wine-preloader:
        \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
 clean::
-       \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
+       \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
 fi
 
-wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
-       -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
-
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
 # tests run on this system so they can be shared between configure
@@ -15552,10 +15522,21 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      :end' >>confcache
 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   if test -w "$cache_file"; then
-    test "x$cache_file" != "x/dev/null" &&
+    if test "x$cache_file" != "x/dev/null"; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 $as_echo "$as_me: updating cache $cache_file" >&6;}
-    cat confcache >$cache_file
+      if test ! -f "$cache_file" || test -h "$cache_file"; then
+       cat confcache >"$cache_file"
+      else
+        case $cache_file in #(
+        */* | ?:*)
+         mv -f confcache "$cache_file"$$ &&
+         mv -f "$cache_file"$$ "$cache_file" ;; #(
+        *)
+         mv -f confcache "$cache_file" ;;
+       esac
+      fi
+    fi
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
@@ -15587,7 +15568,7 @@ LTLIBOBJS=$ac_ltlibobjs
 
 
 
-: ${CONFIG_STATUS=./config.status}
+: "${CONFIG_STATUS=./config.status}"
 ac_write_fail=0
 ac_clean_files_save=$ac_clean_files
 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
@@ -15688,6 +15669,7 @@ fi
 IFS=" ""       $as_nl"
 
 # Find who we are.  Look in the path if we contain no directory separator.
+as_myself=
 case $0 in #((
   *[\\/]* ) as_myself=$0 ;;
   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -15994,8 +15976,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by Wine $as_me 1.3.11, which was
-generated by GNU Autoconf 2.67.  Invocation command line was
+This file was extended by Wine $as_me 1.3.26, which was
+generated by GNU Autoconf 2.68.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
   CONFIG_HEADERS  = $CONFIG_HEADERS
@@ -16065,8 +16047,8 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-Wine config.status 1.3.11
-configured by $0, generated by GNU Autoconf 2.67,
+Wine config.status 1.3.26
+configured by $0, generated by GNU Autoconf 2.68,
   with options \\"\$ac_cs_config\\"
 
 Copyright (C) 2010 Free Software Foundation, Inc.
@@ -16208,6 +16190,8 @@ do
     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
+    "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
+    "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
@@ -16222,7 +16206,7 @@ do
     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
 
-  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
+  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   esac
 done
 
 # after its creation but before its name has been assigned to `$tmp'.
 $debug ||
 {
-  tmp=
+  tmp= ac_tmp=
   trap 'exit_status=$?
-  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
+  : "${ac_tmp:=$tmp}"
+  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 ' 0
   trap 'as_fn_exit 1' 1 2 13 15
 }
@@ -16256,12 +16241,13 @@ $debug ||
 
 {
   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
-  test -n "$tmp" && test -d "$tmp"
+  test -d "$tmp"
 }  ||
 {
   tmp=./conf$$-$RANDOM
   (umask 077 && mkdir "$tmp")
 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+ac_tmp=$tmp
 
 # Set up the scripts for CONFIG_FILES section.
 # No need to generate them if there are no CONFIG_FILES.
@@ -16300,13 +16286,13 @@ else
   ac_cs_awk_cr=$ac_cr
 fi
 
-echo 'BEGIN {' >"$tmp/subs1.awk" &&
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 _ACEOF
 
 # Create commands to substitute file output variables.
 {
   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
-  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
+  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   echo "_ACAWK" &&
   echo "_ACEOF"
@@ -16339,7 +16325,7 @@ done
 rm -f conf$$subs.sh
 
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 _ACEOF
 sed -n '
 h
@@ -16387,7 +16373,7 @@ t delim
 rm -f conf$$subs.awk
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 _ACAWK
-cat >>"\$tmp/subs1.awk" <<_ACAWK &&
+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   for (key in S) S_is_set[key] = 1
   FS = "\a"
   \$ac_cs_awk_pipe_init
@@ -16425,7 +16411,7 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 else
   cat
-fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 _ACEOF
 
@@ -16459,7 +16445,7 @@ fi # test -n "$CONFIG_FILES"
 # No need to generate them if there are no CONFIG_HEADERS.
 # This happens for instance with `./config.status Makefile'.
 if test -n "$CONFIG_HEADERS"; then
-cat >"$tmp/defines.awk" <<\_ACAWK ||
+cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 BEGIN {
 _ACEOF
 
@@ -16471,8 +16457,8 @@ _ACEOF
 # handling of long lines.
 ac_delim='%!_!# '
 for ac_last_try in false false :; do
-  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
-  if test -z "$ac_t"; then
+  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
+  if test -z "$ac_tt"; then
     break
   elif $ac_last_try; then
     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
@@ -16573,7 +16559,7 @@ do
   esac
   case $ac_mode$ac_tag in
   :[FHL]*:*);;
-  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
+  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   :[FH]-) ac_tag=-:-;;
   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   esac
@@ -16592,7 +16578,7 @@ do
     for ac_f
     do
       case $ac_f in
-      -) ac_f="$tmp/stdin";;
+      -) ac_f="$ac_tmp/stdin";;
       *) # Look for the file first in the build tree, then in the source tree
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
         # because $ac_f cannot contain `:'.
@@ -16601,7 +16587,7 @@ do
           [\\/$]*) false;;
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
           esac ||
-          as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
+          as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
       esac
       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
       as_fn_append ac_file_inputs " '$ac_f'"
@@ -16627,8 +16613,8 @@ $as_echo "$as_me: creating $ac_file" >&6;}
     esac
 
     case $ac_tag in
-    *:-:* | *:-) cat >"$tmp/stdin" \
-      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
+    *:-:* | *:-) cat >"$ac_tmp/stdin" \
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
     esac
     ;;
   esac
@@ -16760,24 +16746,25 @@ $ac_datarootdir_hack
 "
 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
 if $ac_cs_awk_getline; then
-  $AWK -f "$tmp/subs.awk"
+  $AWK -f "$ac_tmp/subs.awk"
 else
-  $AWK -f "$tmp/subs.awk" | $SHELL
-fi >$tmp/out \
-  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+  $AWK -f "$ac_tmp/subs.awk" | $SHELL
+fi \
+  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
-  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
-  { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
+  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
+  { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' \
+      "$ac_tmp/out"`; test -z "$ac_out"; } &&
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 which seems to be undefined.  Please make sure it is defined" >&5
 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 which seems to be undefined.  Please make sure it is defined" >&2;}
 
-  rm -f "$tmp/stdin"
+  rm -f "$ac_tmp/stdin"
   case $ac_file in
-  -) cat "$tmp/out" && rm -f "$tmp/out";;
-  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
+  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
+  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   esac \
   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  ;;
@@ -16788,20 +16775,20 @@ which seems to be undefined.  Please make sure it is defined" >&2;}
   if test x"$ac_file" != x-; then
     {
       $as_echo "/* $configure_input  */" \
-      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
-    } >"$tmp/config.h" \
+      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
+    } >"$ac_tmp/config.h" \
       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
-    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
+    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 $as_echo "$as_me: $ac_file is unchanged" >&6;}
     else
       rm -f "$ac_file"
-      mv "$tmp/config.h" "$ac_file" \
+      mv "$ac_tmp/config.h" "$ac_file" \
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     fi
   else
     $as_echo "/* $configure_input  */" \
-      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
+      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
       || as_fn_error $? "could not create -" "$LINENO" 5
   fi
  ;;
@@ -16845,6 +16832,8 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
 
   case $ac_file$ac_mode in
     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
+    "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
+$as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5