[svn-commits] trunk r23514 - in /trunk: acinclude.m4 configure.ac

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sat Apr 29 23:50:54 MST 2006


Author: kpfleming
Date: Sun Apr 30 01:50:53 2006
New Revision: 23514

URL: http://svn.digium.com/view/asterisk?rev=23514&view=rev
Log:
remove attribute checking... it was an attempt to support older GCC compilers but is not worth the effort :-)

Modified:
    trunk/acinclude.m4
    trunk/configure.ac

Modified: trunk/acinclude.m4
URL: http://svn.digium.com/view/asterisk/trunk/acinclude.m4?rev=23514&r1=23513&r2=23514&view=diff
==============================================================================
--- trunk/acinclude.m4 (original)
+++ trunk/acinclude.m4 Sun Apr 30 01:50:53 2006
@@ -84,18 +84,3 @@
 fi
 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
-])

Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?rev=23514&r1=23513&r2=23514&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Sun Apr 30 01:50:53 2006
@@ -614,9 +614,6 @@
 AC_STRUCT_TM
 AC_C_VOLATILE
 AC_CHECK_TYPES([ptrdiff_t])
-AST_C_ATTRIBUTE([malloc])
-AST_C_ATTRIBUTE([printf])
-AST_C_ATTRIBUTE([mallocx])
 
 # Checks for library functions.
 AC_FUNC_CHOWN



More information about the svn-commits mailing list