faubackup2/m4 lsh-gcc-attributes.m4,1.1,1.2

Martin Waitz <[email protected]> Wed, 15 Jun 2005 09:25:30 +0000
Newsgroups gmane.comp.sysutils.backup.faubackup.cvs
Message-ID <[email protected]>
Update of /cvsroot/faubackup/faubackup2/m4
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7948/m4

Modified Files:
	lsh-gcc-attributes.m4 
Log Message:
hmpf, why is code copied from somewhere else always broken?

Index: lsh-gcc-attributes.m4
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/m4/lsh-gcc-attributes.m4,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** lsh-gcc-attributes.m4	10 Jun 2005 14:55:53 -0000	1.1
--- lsh-gcc-attributes.m4	15 Jun 2005 09:25:27 -0000	1.2
***************
*** 5,20 ****
  [AC_CACHE_CHECK(for __attribute__,
  	       lsh_cv_c_attribute,
! [ AC_TRY_COMPILE([
! #include <stdlib.h>
! ],
! [
! static void foo(void) __attribute__ ((noreturn));
! 
! static void __attribute__ ((noreturn))
! foo(void)
! {
!   exit(1);
! }
! ],
  lsh_cv_c_attribute=yes,
  lsh_cv_c_attribute=no)])
--- 5,11 ----
  [AC_CACHE_CHECK(for __attribute__,
  	       lsh_cv_c_attribute,
! [ AC_COMPILE_IFELSE(AC_LANG_SOURCE([
! static void foo(void) __attribute__ ((noreturn)) {}
! ]), [],
  lsh_cv_c_attribute=yes,
  lsh_cv_c_attribute=no)])
***************
*** 26,30 ****
  
  AH_BOTTOM(
! [#if __GNUC__ && HAVE_GCC_ATTRIBUTE
  # define NORETURN __attribute__ ((__noreturn__))
  # define PRINTF_STYLE(f, a) __attribute__ ((__format__ (__printf__, f, a)))
--- 17,21 ----
  
  AH_BOTTOM(
! [#if defined __GNUC__ && defined HAVE_GCC_ATTRIBUTE
  # define NORETURN __attribute__ ((__noreturn__))
  # define PRINTF_STYLE(f, a) __attribute__ ((__format__ (__printf__, f, a)))



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click