Configure problem (and fix). - Mailing list pgsql-hackers

From Billy G. Allie
Subject Configure problem (and fix).
Date
Msg-id 199810240742.DAA14249@bgalli.mug.org
Whole thread Raw
Responses Re: [HACKERS] Configure problem (and fix).
List pgsql-hackers
I have come across a problem where the code generated by autoconf does not
subsitute correct values for the following variables:

    bindir        sbindir        libexecdir
    datadir        sysconfdir    sharedstatedir
    localstatedir    libdir        includedir
    oldincludedir    infodir        mandir

The problem is that they reference the variables, 'prefix' and 'exec_prefix'
but those variables are not expanded in the subsitutions.  For example,
referencing 'libdir' in an *.in file will have "${exec_prefix}/lib" placed in
the resulting output file.  It should be "/usr/local/pgsql/lib" (if the
default exec_prefix (and prefix) value is used).  The first patch
(uw7-1.patch) will correct the problem, which causes an incorrect
src/pl/plpgsql/src/mklang.sql file to be generated.

The second patch:

    1.  Adds a file (mklang.sql) that can be used to add the language
        definitions for PL/TCL to a database.

    2.  Generalizes the mklang.sql in src/pl/plpgsql/test so that it will
        reference the correct location for the plpgsql.so shared library.

    3.  Generalizes the test_mklang.sql file in src/pl/tcl/test so that is will
        reference the correct localtion for the pltcl.so shared library.

IMPORTANT: Do not apply the second patch without applying the first patch!

____       | Billy G. Allie    | Domain....: Bill.Allie@mug.org
|  /|      | 7436 Hartwell     | Compuserve: 76337,2061
|-/-|----- | Dearborn, MI 48126| MSN.......: B_G_Allie@email.msn.com
|/  |LLIE  | (313) 582-1540    |

Attachment

pgsql-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] Features list
Next
From: Tom Ivar Helbekkmo
Date:
Subject: Re: [HACKERS] pg_indexes