]> arthur.barton.de Git - netatalk.git/blob - macros/afs-check.m4
Version 1.6.2.
[netatalk.git] / macros / afs-check.m4
1 dnl $Id: afs-check.m4,v 1.1 2002-01-17 05:48:51 srittau Exp $
2 dnl Autoconf macro to check whether AFS support should be enabled
3
4 AC_DEFUN([NETATALK_AFS_CHECK], [
5         AFS_LIBS=
6         AFS_CFLAGS=
7
8         AC_ARG_ENABLE(afs,
9                 [  --enable-afs            enable AFS support],
10                 [
11                         if test "x$enableval" = "xyes"; then
12                                 AC_CHECK_LIB(afsauthent, pioctl, ,
13                                         AC_MSG_ERROR([AFS installation not found])
14                                 )
15                                 AFS_LIBS=-lafsauthent
16                                 AC_DEFINE(AFS, 1)
17                         fi
18                 ]
19         )
20
21         AC_SUBST(AFS_LIBS)
22         AC_SUBST(AFS_CFLAGS)
23 ])