I'm not so familiar with the standard GNU build tools like automake, autoconf,
and autoscan etc. So I only wrote a useable Makefile to build it, sorry for the
inconvience. If any problem arouse, you may try to fix it yourself or ask around,
and, also, you may mail me for an answer (also any help would be welcome).

To install pguuid, first, in pguuid top directory, type:

	make

if this step finished successfully, you would find a file named uuid.so in
this directory, then begin the second step:

	cp uuid.so /your/pgsql/lib/directory

please find out the lib directory of your postgreSQL installation on your
system. If don't know where the directory is, you may find it out with

	pg_config --libdir

command, or you may ask your PostgreSQL administrator.

Then the third step:

in pguuid top directory, connect with PostgreSQL:

	psql -U{the_usr_id_you_used} {the_db_name_you_want_to_install_pguuid}

then type command below on the psql prompt:

	\i ./sql/pguuid.sql

then you should see the output below:

SET
psql:./sql/pguuid.sql:7: NOTICE:  ProcedureCreate: type uuid is not yet defined
CREATE FUNCTION
psql:./sql/pguuid.sql:13: NOTICE:  Argument type "uuid" is only a shell
CREATE FUNCTION
CREATE TYPE
COMMENT
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE OPERATOR
CREATE OPERATOR
CREATE OPERATOR
CREATE OPERATOR
CREATE OPERATOR
CREATE OPERATOR
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE OPERATOR CLASS
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE CAST
CREATE CAST

That means your installation is OK, then you may do some test,
type command below in psql's prompt:

	\i ./sql/test.sql

your output would look like those output below:

               NIL UUID               |            Time-Base UUID            |           Random-Base UUID
--------------------------------------+--------------------------------------+--------------------------------------
 00000000-0000-0000-0000-000000000000 | cf96f2a4-9e5d-11d7-91b7-00e04c756f0d | 8cdf3dc8-022c-431a-9f1b-985a21751ab7
(1 row)

 Name-Base UUID, newid_name() version 1
----------------------------------------
 2177b64b-222f-3fab-94ed-293e1a02d1d6
(1 row)

 Name-Base UUID, newid_name() version 2
----------------------------------------
 30c50b19-18e7-3acb-bb5c-f0bd31dd262f
(1 row)

      Timestamp      |      MacAddr
---------------------+-------------------
 2003-06-14 19:46:18 | 00:e0:4c:75:6f:0d
(1 row)

OK! These output means you've installed pguuid successful in your
database, and now you may use UUID type to do your works!

