]> arthur.barton.de Git - netatalk.git/blob - macros/afs-check.m4
Use three-argument AC_DEFINE and AC_DEFINE_UNQUOTED to fix a deprecation
[netatalk.git] / macros / afs-check.m4
1 dnl $Id: afs-check.m4,v 1.2 2003-01-29 00:16:30 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, [Define if AFS should be used])
17                         fi
18                 ]
19         )
20
21         AC_SUBST(AFS_LIBS)
22         AC_SUBST(AFS_CFLAGS)
23 ])