From: Nehal J Wani Date: Sat, 7 Jan 2023 11:41:40 +0000 (+0000) Subject: Autotools: Make ann file check cross-compilation friendly X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=809241fdc914a1dd349c2468695e735db08fe1dc;p=graphviz Autotools: Make ann file check cross-compilation friendly Resolves https://gitlab.com/graphviz/graphviz/-/issues/2335 --- diff --git a/configure.ac b/configure.ac index 49e027fcd..c3c509514 100644 --- a/configure.ac +++ b/configure.ac @@ -1925,7 +1925,7 @@ else AC_SUBST([ANN_LIBS]) ],[ # fall back discovery for the Debian ecosystem which does not ship an ann.pc - AC_CHECK_FILE(/usr/include/ANN/ANN.h, [ + AS_IF([test -f /usr/include/ANN/ANN.h], [ ANN_CFLAGS= # nothing required AC_CHECK_LIB(ann, ann_visit_pts, [ ANN_LIBS=-lann