1
psqlODBC README for *nix Systems
2
================================
4
Since psqlODBC has be moved from the main PostgreSQL source tree, we have yet
5
to create a new build system for the driver. Peter Eisentraut was kind enough
6
provide a build environment for us which is now included in psqlODBC tarballs.
11
To install, just try something like:
13
% tar -zxvf psqlodbc-7.2.3.tar.gz
19
The configure script will accept the following useful options:
24
--enable-pthreads (thread-safe driver on some platforms)
27
Building a distribution
28
=======================
30
The following text is Peter's instructions for using the build environment and
31
is only relevant to psqlODBC developers.
33
From: Peter Eisentraut [peter_e@gmx.net]
34
Sent: 07 October 2002 20:24
35
To: pgsql-odbc@postgresql.org
36
Subject: [ODBC] Unix build
38
I managed to find a Libtool version that works, so here's the
39
independent build infrastructure for ODBC on Unix.
41
The patch also removes all the non-multibyte code. This goes together
42
with the build system change, because there no longer is a way to turn
43
on multibyte explicitly. You should make the required changes to the
46
The following files need to be checked into CVS: configure.ac and
47
Makefile.am. GNUmakefile can be removed. I recommend that you do not
48
check in all the files generated by auto* (see below). It can get
49
pretty messy to keep track of them.
53
Autoconf 2.52 or higher
54
Automake 1.6.* (Lower versions are rejected, version 1.7 untested.)
55
Libtool 1.4.2a (CVS from stable branch, maybe 1.4.2 works as well)
56
PostgreSQL source tree (7.3 branch)
60
First, copy libtool.m4 into source directory. Be sure to pick the one
61
from the right Libtool version. Then run
63
aclocal -I . -I $PGSRC/config
64
libtoolize --force --copy
67
automake --add-missing --copy
69
You can run 'make maintainer-clean' to remove all the files this generates.
77
configure has the same options that the PostgreSQL configure used to
78
have for ODBC, namely --with-iodbc, --with-unixodbc, and
83
The previous build infrastructure set a shared library version number
84
of 0.27. I've used this as a package version number, but it does not
85
correspond to version.h in any way. This needs to be thought out.
87
* Making a Source Distribution
89
'make dist' makes a file psqlodbc-0.27.tar.gz. It's even better to
90
use 'make distcheck', which runs a number of tests to see if the
91
distribution is internally consistent.
93
The distribution does not contain any Windows-specific files (*.def,
94
maybe others). If it is desired to include them, edit Makefile.am.