OK, here's my patch to configure.in. Running autoconf after applying this, and then doing
./configure --with-tcl=/usr/lib seems to build ns_ftp OK. All the patch does is have configure look in one more place for the PG include files, the RPMs as distributed by the PGDG put them in
/usr/include/pgsql not
/usr/include/postgresql.
--- configure.in.orig Fri Aug 10 01:28:55 2001
+++ configure.in Tue Sep 4 13:33:35 2001
@@ -339,15 +339,18 @@
if test -d "$PG_INSTALLATION_DIR"; then
AC_SUBST(PG_INSTALLATION_DIR)
AC_MSG_CHECKING([looking for postgresql include files])
- if test ! -f $PG_INSTALLATION_DIR/include/postgres.h; then
- if test ! -f $PG_INSTALLATION_DIR/include/postgresql/postgres.h; then
- AC_MSG_ERROR([couldn't find postgresql include files])
- else
+ if test -f $PG_INSTALLATION_DIR/include/postgres.h; then
+ PG_INC="$PG_INSTALLATION_DIR/include"
+ else
+ if test -f $PG_INSTALLATION_DIR/include/postgresql/postgres.h; then
PG_INC="$PG_INSTALLATION_DIR/include/postgresql"
+ else
+ if test -f $PG_INSTALLATION_DIR/include/pgsql/postgres.h; then
+ PG_INC="$PG_INSTALLATION_DIR/include/pgsql"
+ else
+ AC_MSG_ERROR([couldn't find postgresql include files])
+ fi
fi
- else
- PG_INC="$PG_INSTALLATION_DIR/include"
-
fi
AC_MSG_RESULT($PG_INC)
AC_MSG_CHECKING([looking for postgresql libraries])