X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=macros%2Fafs-check.m4;h=799cfa2649e6fefab6fd3ffe3fdfc0c9a1a19571;hb=6f45d8eaada82e401ecde525c689a67148b3ba1e;hp=f252f7c226fc741062769a05699833bc67cc8d9d;hpb=36c93d74bc6a4db0605be539e941d70975eb7e8b;p=netatalk.git diff --git a/macros/afs-check.m4 b/macros/afs-check.m4 index f252f7c2..799cfa26 100644 --- a/macros/afs-check.m4 +++ b/macros/afs-check.m4 @@ -1,23 +1,31 @@ -dnl $Id: afs-check.m4,v 1.1 2002-01-17 05:48:51 srittau Exp $ +dnl $Id: afs-check.m4,v 1.4 2005-08-11 20:15:35 didg Exp $ dnl Autoconf macro to check whether AFS support should be enabled -AC_DEFUN([NETATALK_AFS_CHECK], [ +AC_DEFUN([AC_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 - AC_DEFINE(AFS, 1) + AFS_LIBS=-lresolv -lafsrpc -lafsauthent + AC_DEFINE(AFS, 1, [Define if AFS should be used]) fi ] ) + 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) ])