Fix testing when compiled with --disable-afs-support
authorAnton Lundin <glance@acc.umu.se>
Fri, 17 Sep 2010 10:44:50 +0000 (12:44 +0200)
committerLove Hornquist Astrand <lha@h5l.org>
Fri, 17 Sep 2010 19:21:39 +0000 (12:21 -0700)
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
configure.ac
tests/bin/Makefile.am

index e91bc79f91fcc901458d304883d9be986a5c2a74..df3e4ad153c0390d4538cfb92bbfc0f4c53f9966 100644 (file)
@@ -245,6 +245,7 @@ AC_ARG_ENABLE([afs-support],
        AS_HELP_STRING([--disable-afs-support],[if you don't want support for AFS]))
 if test "$enable_afs_support" = no; then
        AC_DEFINE(NO_AFS, 1, [Define if you don't wan't support for AFS.])
+       NO_AFS="1"
 fi
 AC_SUBST(NO_AFS)dnl
 
index 3d54a97ad775dcb33a57499dfce389f00e84cbc2..52b7f15d669eaaf8cadfc014439152db071a7aca 100644 (file)
@@ -9,7 +9,7 @@ do_subst = \
        -e "s,[@]EGREP[@],$(EGREP),g" \
        -e "s,[@]top_srcdir[@],$${top_srcdir},g" \
        -e "s,[@]top_builddir[@],$${top_builddir},g" \
-       -e "s,[@]NO_AFS[@],$${NO_AFS},g"
+       -e "s,[@]NO_AFS[@],$(NO_AFS),g"
 
 setup-env: setup-env.in Makefile
        $(do_subst) < $(srcdir)/setup-env.in > setup-env.tmp