Changeset 2578

Show
Ignore:
Timestamp:
07/20/08 13:16:06 (3 months ago)
Author:
sam
Message:
  • configure.ac: fix the printf attribute macro.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r2577 r2578  
    113113 
    114114AC_MSG_CHECKING(for __printf__ attribute) 
     115ac_v_attribute_printf="" 
    115116AC_TRY_COMPILE([], 
    116117 [extern void foo(const char *, ...) 
    117118     __attribute__((__format__(__printf__, 1, 2)));], 
    118119 [AC_MSG_RESULT(yes) 
    119   AC_DEFINE(ATTRIBUTE_PRINTF(x,y), __attribute__((__format__(__printf__, x, y))), [Define to the __printf__ attribute if present])], 
     120  ac_v_attribute_printf="__attribute__((__format__(__printf__, x, y)))"], 
    120121 [AC_MSG_RESULT(no)]) 
     122AC_DEFINE_UNQUOTED(ATTRIBUTE_PRINTF(x,y), $ac_v_attribute_printf, [Define to the __printf__ attribute if present]) 
    121123 
    122124ac_cv_have_getopt_long="no"