non-unicode compiling bug

non-unicode compiling bug

am 13.05.2007 16:47:32 von Al

Hi!

I can't build non-unicode version of driver psqlodbc (08.02.0400) for linux.

../configure --with-unixodbc=/usr/local/bin/odbc_config --disable-unicode

configure: error: conditional "enable_unicode" was never defined.
Usually this means the macro was only invoked conditionally.

With best rgards...
Alex Lutovinin


---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Re: non-unicode compiling bug

am 13.05.2007 20:20:17 von Hiroshi Saito

Hi.

From: "áÌÅËÓÅ=CA ìÕÔÏ×ÉÎÉ=CE" ru>


> Hi!
>
> I can't build non-unicode version of driver psqlodbc (08.02.0400) for l=
inux.
>
> ./configure --with-unixodbc=3D/usr/local/bin/odbc_config --disable-unic=
ode
>
> configure: error: conditional "enable_unicode" was never defined.
> Usually this means the macro was only invoked conditionally.

Oops, Sorry...
I did not notice the trouble. AM_CONDITIONAL doesn't accept disable.
Please change as follows.

--- configure.ac.org Mon May 14 02:36:54 2007
+++ configure.ac Mon May 14 03:06:57 2007
@@ -170,8 +170,9 @@
[enable_unicode=3D"$enableval"],
[enable_unicode=3D"yes"])

+AM_CONDITIONAL(enable_unicode, [test x$enable_unicode =3D xyes])
+
if test $enable_unicode =3D yes; then
- AM_CONDITIONAL(enable_unicode, [test x$enable_unicode =3D xyes])
AC_DEFINE(UNICODE_SUPPORT, 1,
[build with Unicode support])
AC_CHECK_FUNCS(iswascii)


P.S)
CVS-HEAD correctly understands it. from peter-san.....

Regards,
Hiroshi Saito


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster