]> git.draconx.ca Git - dxcommon.git/commit
curses-compat: Improve probe for request_mouse_pos.
authorNick Bowler <nbowler@draconx.ca>
Sun, 7 Jan 2024 03:55:22 +0000 (22:55 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 7 Jan 2024 04:01:04 +0000 (23:01 -0500)
commit46584b6d3efed53bbedc697f26b4d0841dfda9fc
tree37ed742bad12752574db20c7c3ca278850d7f5de
parentaaaacebf1f04c364803f308c3b3e9670e216da09
curses-compat: Improve probe for request_mouse_pos.

On AIX 7.2, the request_mouse_pos function is defined but it seems
the related macros (e.g., MOUSE_X_POS) don't actually work, leading to
undefined variable references at link time.  The configure test should
have caught this, but it turns out GCC optimizes out the check.

So configure concludes request_mouse_pos is supported and then later
compilation of programs which use this feature fail to link.  Ensure
the macro usage influences the program return value so GCC doesn't
delete it.
m4/curses-compat.m4