File virtuoso-opensource-6.1.0-external_iodbc.patch of Package virtuoso

diff --git a/configure.in b/configure.in
index a48168c..7214abe 100644
--- a/configure.in
+++ b/configure.in
@@ -1902,7 +1902,7 @@ AC_DEFINE(NO_UDBC_SDK,1, [Define if using the new iODBC API])
 #
 if test "x$virt_do_iodbc" = "xyes"
 then
-    iodbc_CPPFLAGS="-I$virt_iodbc_dir/include"
+    iodbc_CPPFLAGS=`pkg-config --cflags libiodbc`
 
     saved_CPPFLAGS="$CPPFLAGS"
     CPPFLAGS="$iodbc_CPPFLAGS $CPPFLAGS"
@@ -1911,7 +1911,7 @@ then
 
     ccincl="$iodbc_CPPFLAGS $ccincl"
 
-    iodbc_LDFLAGS="-L$virt_iodbc_dir/lib -liodbc -liodbcinst $LIBDL"
+    iodbc_LDFLAGS=`pkg-config --libs libiodbc`
     AC_CHECK_LIB(iodbc, SQLTables,
 		 [
 		  virt_do_iodbc="yes"
openSUSE Build Service is sponsored by