Skip to content

Commit

Permalink
autotools: do not use deprecated macros
Browse files Browse the repository at this point in the history
Signed-off-by: Tristan Matthews <[email protected]>
  • Loading branch information
lu-zero authored and tmatth committed May 7, 2022
1 parent 7a7246e commit ce51645
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ AM_INIT_AUTOMAKE([foreign no-define])
AM_MAINTAINER_MODE([enable])

AC_CANONICAL_HOST
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
_LT_SET_OPTION([LT_INIT],[win32-dll])
LT_INIT

AC_C_BIGENDIAN
AC_C_CONST
Expand All @@ -32,15 +32,13 @@ AC_C_RESTRICT


AC_MSG_CHECKING(for C99 variable-size arrays)
AC_TRY_COMPILE( , [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
int foo;
foo = 10;
int array[foo];
],
[has_var_arrays=yes;AC_DEFINE([VAR_ARRAYS], [], [Use C99 variable-size arrays])
],
has_var_arrays=no
)
]])],[has_var_arrays=yes;AC_DEFINE([VAR_ARRAYS], [], [Use C99 variable-size arrays])
],[has_var_arrays=no
])
AC_MSG_RESULT($has_var_arrays)

AC_MSG_CHECKING(for SSE in current arch/CFLAGS)
Expand Down

0 comments on commit ce51645

Please sign in to comment.