#define abs(x) ((x) < 0 ? -(x) : (x))
/* Default to using XIM if available. */
+#ifdef USE_XIM
int use_xim = 1;
+#else
+int use_xim = 0; /* configure --without-xim */
+#endif
+
\f
/* Non-nil means Emacs uses toolkit scroll bars. */
build_string ("useXIM"),
build_string ("UseXIM"),
Qnil, Qnil);
+#ifdef USE_XIM
if (STRINGP (value)
&& (!strcmp (XSTRING (value)->data, "false")
|| !strcmp (XSTRING (value)->data, "off")))
use_xim = 0;
+#else
+ if (STRINGP (value)
+ && (!strcmp (XSTRING (value)->data, "true")
+ || !strcmp (XSTRING (value)->data, "on")))
+ use_xim = 1;
+#endif
}
UNBLOCK_INPUT;