Re: config

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Michael Engelhart <mengelhart(at)earthtrip(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: config
Date: 2000-10-13 19:34:32
Message-ID: Pine.LNX.4.21.0010132119470.1022-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://yi.org/peter-e/

In response to

  • config at 2000-10-13 01:31:40 from Michael Engelhart

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2000-10-13 20:10:48 Re: Re: [HACKERS] My new job
Previous Message Mitch Vincent 2000-10-13 19:15:05 Re: Question about pg_dump