summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/cf/broken2.m4
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/cf/broken2.m4')
-rw-r--r--crypto/heimdal/cf/broken2.m429
1 files changed, 10 insertions, 19 deletions
diff --git a/crypto/heimdal/cf/broken2.m4 b/crypto/heimdal/cf/broken2.m4
index 78a3dcb..56ed7a1 100644
--- a/crypto/heimdal/cf/broken2.m4
+++ b/crypto/heimdal/cf/broken2.m4
@@ -1,13 +1,11 @@
-dnl $Id: broken2.m4,v 1.1 2000/12/15 14:27:33 assar Exp $
+dnl $Id: broken2.m4,v 1.4 2002/05/19 22:16:46 joda Exp $
dnl
dnl AC_BROKEN but with more arguments
dnl AC_BROKEN2(func, includes, arguments)
-AC_DEFUN(AC_BROKEN2,
-[for ac_func in $1
-do
-AC_MSG_CHECKING([for $ac_func])
-AC_CACHE_VAL(ac_cv_func_$ac_func,
+AC_DEFUN([AC_BROKEN2],
+[AC_MSG_CHECKING([for $1])
+AC_CACHE_VAL(ac_cv_func_[]$1,
[AC_TRY_LINK([$2],
[
/* The GNU C library defines this for functions which it implements
@@ -16,20 +14,13 @@ AC_CACHE_VAL(ac_cv_func_$ac_func,
#if defined (__stub_$1) || defined (__stub___$1)
choke me
#else
-$ac_func($3)
+$1($3)
#endif
-], [eval "ac_cv_func_$ac_func=yes"], [eval "ac_cv_func_$ac_func=no"])])
-if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
- ac_tr_func=HAVE_[]upcase($ac_func)
- AC_DEFINE_UNQUOTED($ac_tr_func)
+], [eval "ac_cv_func_[]$1=yes"], [eval "ac_cv_func_[]$1=no"])])
+if eval "test \"\${ac_cv_func_[]$1}\" = yes"; then
+ AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]$1), 1, define)
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
- LIBOBJS[]="$LIBOBJS ${ac_func}.o"
-fi
-done
-if false; then
- AC_CHECK_FUNCS($1)
-fi
-AC_SUBST(LIBOBJS)dnl
-])
+ rk_LIBOBJ($1)
+fi])
OpenPOWER on IntegriCloud