From 4a56d62ddc2a710b3dfecfdfa134755fd3d6c521 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 20 Jan 2012 12:50:09 -0800 Subject: Don't compile or use ReAx if FFTW is not available --- libcrystfel/src/reax.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'libcrystfel/src/reax.h') diff --git a/libcrystfel/src/reax.h b/libcrystfel/src/reax.h index 543cd0d5..60decac9 100644 --- a/libcrystfel/src/reax.h +++ b/libcrystfel/src/reax.h @@ -19,9 +19,28 @@ #include "cell.h" +#ifdef HAVE_FFTW + extern IndexingPrivate *reax_prepare(void); extern void reax_cleanup(IndexingPrivate *pp); - extern void reax_index(IndexingPrivate *p, struct image *image, UnitCell *cell); +#else /* HAVE_FFTW */ + +static IndexingPrivate *reax_prepare() +{ + return NULL; +} + +static void reax_cleanup(IndexingPrivate *pp) +{ +} + +static void reax_index(IndexingPrivate *p, struct image *image, UnitCell *cell) +{ +} + + +#endif /* HAVE_FFTW */ + #endif /* REAX_H */ -- cgit v1.2.3