packages/net/freeswitch/patches/201-odbc.patch
nico d908be5a60 [packages] add preliminary freeswitch v1.0.4 package (closes: #4891)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17984 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-07 16:17:09 +00:00

26 lines
688 B
Diff

--- a/build/config/odbc.m4
+++ b/build/config/odbc.m4
@@ -112,12 +112,13 @@ AC_ARG_WITH(odbc-include,
fi])
if test "X$with_odbc" != "X"; then
- if test "$with_odbc" != "yes"; then
- ac_cv_odbc_where_lib=$with_odbc
+ if test "$with_odbc" != "yes" -o "$with_odbc" != "no"; then
+ ac_cv_odbc_where_lib=$with_odbc/lib
ac_cv_odbc_where_inc=$with_odbc/include
fi
fi
+ if test "$with_odbc" != "no"; then
if test "X$with_odbc_include" != "X"; then
ac_cv_odbc_where_inc=$with_odbc_include
fi
@@ -159,5 +160,6 @@ AC_ARG_WITH(odbc-include,
AC_SUBST(ODBC_LIB_FLAGS)
AC_DEFINE([HAVE_ODBC],[1],[libodbc])
fi
+ fi ## test "$with_odbc" != "no" ##
])