X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=macros%2Fafs-check.m4;fp=macros%2Fafs-check.m4;h=f71e48192bd49e0a54a9d7fc97acd793334c5b73;hp=7453a1757993e6debdf80ff496bbab3cbc0ce3cc;hb=ecfc96169ab669b578e53fa8e13592934fe37788;hpb=2726bc50a91ff4fc06813edaab91e3596df37e8f diff --git a/macros/afs-check.m4 b/macros/afs-check.m4 index 7453a175..f71e4819 100644 --- a/macros/afs-check.m4 +++ b/macros/afs-check.m4 @@ -1,15 +1,16 @@ -dnl $Id: afs-check.m4,v 1.2 2003-01-29 00:16:30 srittau Exp $ +dnl $Id: afs-check.m4,v 1.3 2005-04-28 20:50:05 bfernhomberg Exp $ dnl Autoconf macro to check whether AFS support should be enabled AC_DEFUN([NETATALK_AFS_CHECK], [ AFS_LIBS= AFS_CFLAGS= + netatalk_cv_afs=no AC_ARG_ENABLE(afs, [ --enable-afs enable AFS support], [ if test "x$enableval" = "xyes"; then - AC_CHECK_LIB(afsauthent, pioctl, , + AC_CHECK_LIB(afsauthent, pioctl, netatalk_cv_afs=yes, AC_MSG_ERROR([AFS installation not found]) ) AFS_LIBS=-lafsauthent @@ -18,6 +19,13 @@ AC_DEFUN([NETATALK_AFS_CHECK], [ ] ) + AC_MSG_CHECKING([whether to enable AFS support]) + if test x"$netatalk_cv_afs" = x"yes"; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + AC_SUBST(AFS_LIBS) AC_SUBST(AFS_CFLAGS) ])