Re: config - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: config
Date
Msg-id Pine.LNX.4.21.0010132119470.1022-100000@peter.localdomain
Whole thread Raw
In response to config  (Michael Engelhart <mengelhart@earthtrip.com>)
List pgsql-general
Michael Engelhart writes:

> I just got the Mac OS X public beta running on my home computer and
> want to compile postgresql for it

Great!

First, go to http://subversions.gnu.org/cgi-bin/cvsweb/config/ and try the
latest config.guess, to see if it recognizes your platform.  I think it
should.

Then, download a development snapshot from
ftp://ftp.postgresql.org/pub/dev/postgresql-snapshot.tar.gz.  You can try
to get 7.0 to work as well, but we can't make any use of patches against
it.

Stick the working config.guess (I hope) in place of the existing one.

There are several places in the source that need platform specific
information:

1. the "template" in src/templates

2. the port makefile in src/makefiles

3. the dynamic loader in src/backend/port/dynloader

4. spinlock code in src/include/storage/s_lock.h

Look into the existing files for what kind of things need to be put
there.  You should probably start from the netbsd ones.

Then, you need to go into configure.in and in the big case statement at
the top (line 57 in current sources) map the config.guess output to some
name that is used by the template files.  Probably "macosx" would be a
good choice, but maybe "netbsd" would work out of the box?

(I've been thinking about merging the openbsd, freebsd, and netbsd
templates into one, so maybe macosx doesn't need to be a separate one.)

Let us know if you have questions.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


pgsql-general by date:

Previous
From: "Mitch Vincent"
Date:
Subject: Re: Question about pg_dump
Next
From: Bruce Momjian
Date:
Subject: Re: Re: [HACKERS] My new job