Bug #3499: pgsql path to include, configure.in

From: Date: Wed, 16 Feb 2000 13:29:19 +0000
Subject: Bug #3499: pgsql path to include, configure.in
Groups: php.dev 
Request: Send a blank email to php-dev+get-15572@lists.php.net to get a copy of this message
From: chlor@schou.dk Operating system: Linux PHP version: 3.0.14 PHP Bug Type: PostgreSQL related Bug description: pgsql path to include, configure.in 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,

« previous php.dev (#15572) next »