I used ./configure --with-odbc --enable-pthreads and try to configure psqlodbc in solaris x86.
But it exits with an error,

checking whether time.h and sys/time.h may both be included... yes
checking for long... yes
checking size of long... configure: error: cannot compute sizeof (long)
See `config.log' for more details.

Pls give me a solution to resolve this.