#3499 [Opn->]: pgsql path to include, configure.in

From: Date: Tue, 01 Oct 2002 20:25:00 +0000
Subject: #3499 [Opn->]: pgsql path to include, configure.in
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21138@lists.php.net to get a copy of this message
ID: 3499 Updated by: hholzgra@php.net Reported By: chlor@schou.dk -Status: Open +Status: Won\'t fix Bug Type: PostgreSQL related Operating System: Linux PHP Version: 3.0.14 New Comment: We are sorry, but can not support PHP 3 related problems anymore. Momentum is gathering for PHP 5, and we think supporting PHP 3 will lead to a waste of resources which we want to put into getting PHP 5 ready. Ofcourse PHP 4 will will continue to be supported for the forseeable future. seems to be right in php 4 Previous Comments: ------------------------------------------------------------------------ [2000-02-16 14:29:18] chlor@schou.dk script tries to set path to '/usr/include/pgsql/include' despite that I wrote '/usr/include/pgsql/' which is where my .h files are with a Red Hat 6.1 potsgresql-rpm --- configure.in.org Wed Feb 16 14:01:33 2000 +++ configure.in Wed Feb 16 14:25:37 2000 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.489 2000/01/13 13:16:04 rasmus Exp $ +dnl $Id: configure.in,v 1.489 2000/01/13 13:16:04 rasmus Exp - new $ dnl Process this file with autoconf to produce a configure script. AC_INIT(main.c) @@ -1497,11 +1497,12 @@ [ if test "$withval" != "no"; then if test "$withval" = "yes"; then - withval=/usr/local + withval=/usr fi - PGSQL_INCDIR=$withval/include + PGSQL_INCDIR=$withval + test -d $withval/include && PGSQL_INCDIR=$withval/include test -d $withval/include/pgsql && PGSQL_INCDIR=$withval/include/pgsql test -d $withval/pgsql/include && PGSQL_INCDIR=$withval/pgsql/include test -d $withval/include/postgresql && PGSQL_INCDIR=$withval/include/postgresql @@ -1521,7 +1522,7 @@ LDFLAGS="$LDFLAGS $PGSQL_LFLAGS" LIBS="$LIBS $PGSQL_LIBS" AC_DEFINE(HAVE_PGSQL) - AC_MSG_RESULT(yes) + AC_MSG_RESULT(yes $PGSQL_INCDIR) AC_CHECK_FUNC(PQcmdTuples,AC_DEFINE(HAVE_PQCMDTUPLES)) CFLAGS=$old_CFLAGS; LDFLAGS=$old_LDFLAGS; LIBS=$old_LIBS else @@ -1530,6 +1531,9 @@ ],[ AC_MSG_RESULT(no) ]) +AC_SUBST(PGSQL_LIBS) +AC_SUBST(PGSQL_LFLAGS) +AC_SUBST(PGSQL_INCLUDE) AC_MSG_CHECKING(for IBM DB2 support) AC_ARG_WITH(ibm-db2, ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=3499&edit=1

« previous php.bugs (#21138) next »