$NetBSD: patch-configure,v 1.1 2020/06/29 13:04:48 ryoon Exp $

* Use openbabel 3.

--- configure.orig	2016-11-23 13:06:33.000000000 +0000
+++ configure
@@ -19695,12 +19695,12 @@ if test -n "$openbabel_CFLAGS"; then
     pkg_cv_openbabel_CFLAGS="$openbabel_CFLAGS"
  elif test -n "$PKG_CONFIG"; then
     if test -n "$PKG_CONFIG" && \
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openbabel-2.0 >= 2.3.0\""; } >&5
-  ($PKG_CONFIG --exists --print-errors "openbabel-2.0 >= 2.3.0") 2>&5
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openbabel-3 >= 3.0.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "openbabel-3 >= 3.0.0") 2>&5
   ac_status=$?
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; then
-  pkg_cv_openbabel_CFLAGS=`$PKG_CONFIG --cflags "openbabel-2.0 >= 2.3.0" 2>/dev/null`
+  pkg_cv_openbabel_CFLAGS=`$PKG_CONFIG --cflags "openbabel-3 >= 3.0.0" 2>/dev/null`
 		      test "x$?" != "x0" && pkg_failed=yes
 else
   pkg_failed=yes
@@ -19712,12 +19712,12 @@ if test -n "$openbabel_LIBS"; then
     pkg_cv_openbabel_LIBS="$openbabel_LIBS"
  elif test -n "$PKG_CONFIG"; then
     if test -n "$PKG_CONFIG" && \
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openbabel-2.0 >= 2.3.0\""; } >&5
-  ($PKG_CONFIG --exists --print-errors "openbabel-2.0 >= 2.3.0") 2>&5
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openbabel-3 >= 3.0.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "openbabel-3 >= 3.0.0") 2>&5
   ac_status=$?
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; then
-  pkg_cv_openbabel_LIBS=`$PKG_CONFIG --libs "openbabel-2.0 >= 2.3.0" 2>/dev/null`
+  pkg_cv_openbabel_LIBS=`$PKG_CONFIG --libs "openbabel-3 >= 3.0.0" 2>/dev/null`
 		      test "x$?" != "x0" && pkg_failed=yes
 else
   pkg_failed=yes
@@ -19738,14 +19738,14 @@ else
         _pkg_short_errors_supported=no
 fi
         if test $_pkg_short_errors_supported = yes; then
-	        openbabel_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openbabel-2.0 >= 2.3.0" 2>&1`
+	        openbabel_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openbabel-3 >= 3.0.0" 2>&1`
         else
-	        openbabel_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openbabel-2.0 >= 2.3.0" 2>&1`
+	        openbabel_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openbabel-3 >= 3.0.0" 2>&1`
         fi
 	# Put the nasty error message in config.log where it belongs
 	echo "$openbabel_PKG_ERRORS" >&5
 
-	as_fn_error $? "Package requirements (openbabel-2.0 >= 2.3.0) were not met:
+	as_fn_error $? "Package requirements (openbabel-3 >= 3.0.0) were not met:
 
 $openbabel_PKG_ERRORS
 
