diff options
Diffstat (limited to 'win/configure')
-rwxr-xr-x | win/configure | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/win/configure b/win/configure index b8f441a..80fb8e6 100755 --- a/win/configure +++ b/win/configure @@ -2869,6 +2869,68 @@ _ACEOF fi +# See if MWMO_ALERTABLE is missing from winuser.h +# This is known to be a problem with Mingw. + +echo "$as_me:$LINENO: checking for MWMO_ALERTABLE in winuser.h" >&5 +echo $ECHO_N "checking for MWMO_ALERTABLE in winuser.h... $ECHO_C" >&6 +if test "${tcl_cv_mwmo_alertable+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#undef WIN32_LEAN_AND_MEAN + +int +main () +{ + + int i = MWMO_ALERTABLE; + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + tcl_cv_mwmo_alertable=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +tcl_cv_mwmo_alertable=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext + +fi +echo "$as_me:$LINENO: result: $tcl_cv_mwmo_alertable" >&5 +echo "${ECHO_T}$tcl_cv_mwmo_alertable" >&6 +if test "$tcl_cv_mwmo_alertable" = "no"; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_NO_MWMO_ALERTABLE 1 +_ACEOF + +fi + #-------------------------------------------------------------------- # Determines the correct binary file extension (.o, .obj, .exe etc.) #-------------------------------------------------------------------- |