Dustin J. Mitchell --> amanda-users (2008-06-29 14:22:16 -0400):
> I would remove the "#ifdef HAVE_ALLOCA_H" from amanda.h and just
> unconditionally include alloca.h.
Hmm, the problem was that there is no alloca.h on my systems, so this
won't work ;-)
The attached patch fixes the problem for me, but I doubt it's the
correct way to do it...
Regards, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
--- config/gnulib/alloca.m4.orig 2007-05-04 13:39:05.000000000 +0200
+++ config/gnulib/alloca.m4 2008-06-28 19:00:37.000000000 +0200
@@ -39,10 +39,6 @@ AC_DEFUN([gl_FUNC_ALLOCA],
ALLOCA_H=alloca.h
fi
AC_SUBST([ALLOCA_H])
-
- AC_DEFINE(HAVE_ALLOCA_H, 1,
- [Define HAVE_ALLOCA_H for backward compatibility with older code
- that includes <alloca.h> only if HAVE_ALLOCA_H is defined.])
])
# Prerequisites of lib/alloca.c.
--- configure.orig 2007-06-07 01:22:45.000000000 +0200
+++ configure 2008-06-28 19:02:47.000000000 +0200
@@ -8174,9 +8174,6 @@ _ACEOF
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_ALLOCA_H 1
-_ACEOF