]> git.draconx.ca Git - dxcommon.git/commit
Improve GLib probe against old GLib versions.
authorNick Bowler <nbowler@synopsys.com>
Fri, 7 Feb 2020 02:15:04 +0000 (21:15 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 7 Feb 2020 02:15:04 +0000 (21:15 -0500)
commit803e498e869f88d9daceadf143e3360c17cb7410
tree4eb0b31f230cc266939cb3432147e6114af43f74
parentb3a380d027135bff7d13a08557bd7db294d18f08
Improve GLib probe against old GLib versions.

The glib_check_version function was not available in older versions
of glib2, so this is a bad choice for the link test.  Let's use
g_get_prgname instead, which is available at least as far back
as glib 2.0.0.

More importantly, with gcc these old glib versions use 'extern inline'
in header files and expect GNU inline semantics.  This generally does
not work with modern gcc, so add an additional configure test which
will detect this problem and work around it.
.gitignore
atlocal.in [new file with mode: 0644]
configure.ac
m4/glib.m4
t/libdummy.c
tests/libs.at
testsuite.at