mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 08:13:22 +00:00
remove attribute checking... it was an attempt to support older GCC compilers but is not worth the effort :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
15
acinclude.m4
15
acinclude.m4
@@ -84,18 +84,3 @@ if test "x$GNU_MAKE" = "xNot Found" ; then
|
|||||||
fi
|
fi
|
||||||
AC_SUBST([GNU_MAKE])
|
AC_SUBST([GNU_MAKE])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN(
|
|
||||||
[AST_C_ATTRIBUTE],
|
|
||||||
[AC_CACHE_CHECK([for $1 attribute support],
|
|
||||||
[ac_cv_attribute_$1],
|
|
||||||
AC_COMPILE_IFELSE(
|
|
||||||
AC_LANG_PROGRAM(
|
|
||||||
[[static void foo(void) __attribute__ (($1));xyz]],
|
|
||||||
[]),
|
|
||||||
have_attribute_$1=1, have_attribute_$1=0)
|
|
||||||
)
|
|
||||||
if test "$have_attribute_$1" = "1"; then
|
|
||||||
AC_DEFINE_UNQUOTED([HAVE_ATTRIBUTE_$1], 1, [Define to indicate the compiler supports __attribute__ (($1))])
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
@@ -614,9 +614,6 @@ AC_HEADER_TIME
|
|||||||
AC_STRUCT_TM
|
AC_STRUCT_TM
|
||||||
AC_C_VOLATILE
|
AC_C_VOLATILE
|
||||||
AC_CHECK_TYPES([ptrdiff_t])
|
AC_CHECK_TYPES([ptrdiff_t])
|
||||||
AST_C_ATTRIBUTE([malloc])
|
|
||||||
AST_C_ATTRIBUTE([printf])
|
|
||||||
AST_C_ATTRIBUTE([mallocx])
|
|
||||||
|
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_FUNC_CHOWN
|
AC_FUNC_CHOWN
|
||||||
|
Reference in New Issue
Block a user