1 --- a/build/config/odbc.m4
2 +++ b/build/config/odbc.m4
3 @@ -112,12 +112,13 @@ AC_ARG_WITH(odbc-include,
6 if test "X$with_odbc" != "X"; then
7 - if test "$with_odbc" != "yes"; then
8 - ac_cv_odbc_where_lib=$with_odbc
9 + if test "$with_odbc" != "yes" -o "$with_odbc" != "no"; then
10 + ac_cv_odbc_where_lib=$with_odbc/lib
11 ac_cv_odbc_where_inc=$with_odbc/include
15 + if test "$with_odbc" != "no"; then
16 if test "X$with_odbc_include" != "X"; then
17 ac_cv_odbc_where_inc=$with_odbc_include
19 @@ -159,5 +160,6 @@ AC_ARG_WITH(odbc-include,
20 AC_SUBST(ODBC_LIB_FLAGS)
21 AC_DEFINE([HAVE_ODBC],[1],[libodbc])
23 + fi ## test "$with_odbc" != "no" ##