diff --git a/cf/need-proto.m4 b/cf/need-proto.m4 index 09eed4092..ed4c69974 100644 --- a/cf/need-proto.m4 +++ b/cf/need-proto.m4 @@ -16,10 +16,9 @@ $2(&xx); ], eval "ac_cv_func_$2_noproto=yes", eval "ac_cv_func_$2_noproto=no")) -define([foo], [NEED_]translit($2, [a-z], [A-Z])[_PROTO]) if test "$ac_cv_func_$2_noproto" = yes; then - AC_DEFINE(foo, 1, [define if the system is missing a prototype for $2()]) + AC_DEFINE(AS_TR_CPP(NEED_[]$2[]_PROTO), 1 + [define if the system is missing a prototype for $2()]) fi -undefine([foo]) fi ])