Fix autoconf obsolete macros
commita52d13c8b8f807e1d25c2c0b1036d1de019b15d8
authorDavid Maciejak <david.maciejak@gmail.com>
Fri, 14 Apr 2023 21:14:20 +0000 (15 05:14 +0800)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 14 Apr 2023 22:45:00 +0000 (14 23:45 +0100)
treee9f7d0860e9b74b0cebc836626c8e4ad9cfc0abe
parent215b6ee2e6cfbd201d4734da358413f7fb233229
Fix autoconf obsolete macros

autogen.sh is reporting some warnings as below

./autogen.sh 2>&1 |grep "obsolete"
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:115: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:115: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:134: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:134: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:135: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:135: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:146: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:146: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:146: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:146: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:373: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:373: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:458: warning: The macro `AC_HEADER_TIME' is obsolete.
configure.ac:681: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:807: warning: The macro `AC_TRY_LINK' is obsolete.

As the minimum autoconf version required is v2.69,
we need to make sure to update obsolete macros as described at
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
configure.ac
m4/ax_cflags_gcc_option.m4
m4/windowmaker.m4
m4/wm_imgfmt_check.m4