]> granicus.if.org Git - graphviz/commitdiff
trying different approach to libANN/ann test
authorJohn Ellson <ellson@research.att.com>
Fri, 16 Aug 2013 17:07:10 +0000 (13:07 -0400)
committerJohn Ellson <ellson@research.att.com>
Fri, 16 Aug 2013 17:07:10 +0000 (13:07 -0400)
configure.ac

index 600f86989e9251a1601db7f8b7cbba76e18f3587..190cf06a9d08e25120a6591c50fc016a636a3fdf 100644 (file)
@@ -2491,6 +2491,9 @@ else
     AC_SUBST([ANN_CFLAGS])
     AC_SUBST([ANN_LIBS])
   ],[
+    use_ann="No (no ann.pc found)"
+  ])
+  if test "$use_ann" != "Yes"; then
     if test -f /usr/lib$LIBPOSTFIX/libANN.so; then
       AC_DEFINE_UNQUOTED(HAVE_ANN,1,
         [Define if you have the ann library])
@@ -2508,7 +2511,7 @@ else
         use_ann="No (ANN library not available)"
       fi
     fi
-  ])
+  fi
 fi
 AM_CONDITIONAL(WITH_ANN, [test x"${use_ann%% *}" == "xYes"])