mirror of https://gerrit.osmocom.org/asn1c
check for alloca
This commit is contained in:
parent
fb63c010f2
commit
92096162d2
|
@ -64,7 +64,9 @@
|
|||
#ifndef EX_OSFILE
|
||||
#define EX_OSFILE 72
|
||||
#endif
|
||||
#if defined HAVE_DECL_ALLOCA && !HAVE_DECL_ALLOCA
|
||||
#define alloca _alloca
|
||||
#endif
|
||||
#define snprintf _snprintf
|
||||
#endif /* _WIN32 */
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ AC_SEARCH_LIBS(getopt, iberty)
|
|||
AC_CHECK_FUNCS(strtoimax strtoll)
|
||||
AC_CHECK_FUNCS(mergesort)
|
||||
AC_CHECK_FUNCS(mkstemps)
|
||||
AC_CHECK_DECL(alloca)
|
||||
AC_TRY_LINK_FUNC([symlink],[AC_DEFINE([HAVE_SYMLINK], 1, [Define to 1 if you have the symlink function.])])
|
||||
|
||||
AC_OUTPUT( \
|
||||
|
|
Loading…
Reference in New Issue