aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-06 11:27:37 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:45 +0200
commit8803685ce598651fbf3755fd0e36fd689637698c (patch)
tree84e7b69cb150f5312d035d7f84d6787e31eeb717
parentc6cca1ae5b0235e07e749f873f503759f17763f8 (diff)
Add crystfel_has_peakfinder9()
separate config.h file.
-rw-r--r--libcrystfel/src/utils.c10
-rw-r--r--libcrystfel/src/utils.h6
2 files changed, 16 insertions, 0 deletions
diff --git a/libcrystfel/src/utils.c b/libcrystfel/src/utils.c
index fb532dc9..048180cf 100644
--- a/libcrystfel/src/utils.c
+++ b/libcrystfel/src/utils.c
@@ -803,3 +803,13 @@ char *load_entire_file(const char *filename)
}
+/* -------------------------- libcrystfel features ------------------------ */
+
+int crystfel_has_peakfinder9()
+{
+#ifdef HAVE_FDIP
+ return 1;
+#else
+ return 0;
+#endif
+}
diff --git a/libcrystfel/src/utils.h b/libcrystfel/src/utils.h
index d90ae461..a43263e0 100644
--- a/libcrystfel/src/utils.h
+++ b/libcrystfel/src/utils.h
@@ -292,6 +292,12 @@ static inline void mean_variance(const double x, const double w,
*sumw = temp;
}
+
+/* -------------------------- libcrystfel features ------------------------ */
+
+extern int crystfel_has_peakfinder9(void);
+
+
#ifdef __cplusplus
}
#endif