2 dnl JAPHAR_GREP_CFLAGS(flag, cmd_if_missing, cmd_if_present)
4 dnl From Japhar. Report changes to japhar@hungry.com
6 AC_DEFUN([JAPHAR_GREP_CFLAGS],
8 "$1" | "$1 "* | *" $1" | *" $1 "* )
9 ifelse($#, 3, [$3], [:])
18 dnl Test for __attribute__ ((unused))
19 dnl Based on code from the tcpdump version 3.7.2 source.
22 AC_DEFUN([AC_C___ATTRIBUTE__], [
23 AC_MSG_CHECKING(for __attribute__)
24 AC_CACHE_VAL(ac_cv___attribute__, [
27 static void foo (void) __attribute__ ((unused));
38 ac_cv___attribute__=yes,
39 ac_cv___attribute__=no)])
40 if test "$ac_cv___attribute__" = "yes"; then
41 AC_DEFINE(UNUSED, __attribute__ ((unused)), [define if your compiler has __att
46 AC_MSG_RESULT($ac_cv___attribute__)