mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Add support for FilC
This commit is contained in:
@@ -97,6 +97,17 @@ AS_IF([test "x$EMSCRIPTEN" != "x"], [
|
||||
])
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING([if we are using FilC])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#ifndef __FILC__
|
||||
# error __FILC__ is not defined
|
||||
#endif
|
||||
]], [[]])],
|
||||
[AC_MSG_RESULT(yes)
|
||||
enable_asm="no"
|
||||
AC_MSG_WARN([compiling with FilC - asm implementations disabled])],
|
||||
[AC_MSG_RESULT(no)])
|
||||
|
||||
AC_ARG_ENABLE(pie,
|
||||
[AS_HELP_STRING(--disable-pie,Do not produce position independent executables)],
|
||||
enable_pie=$enableval, enable_pie="maybe")
|
||||
@@ -697,6 +708,9 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||
|
||||
AC_MSG_CHECKING(whether we can use inline asm code)
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||
#ifdef __FILC__
|
||||
# error inline assembly is not supported with FilC
|
||||
#endif
|
||||
]], [[
|
||||
int a = 42;
|
||||
int *pnt = &a;
|
||||
|
||||
Reference in New Issue
Block a user