Re: autoconf check for AF_UNIX sockets

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Horák Daniel <horak(at)sit(dot)plzen-city(dot)cz>, "'pgsql-hackers(at)postgreSQL(dot)org'" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: autoconf check for AF_UNIX sockets
Date: 2000-08-20 14:21:38
Message-ID: Pine.BSF.4.21.0008201120590.3758-100000@thelab.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, 20 Aug 2000, Peter Eisentraut wrote:

> I wrote:
>
> > > can our autoconf guru create a test for checking the availability of AF_UNIX
> > > sockets? It could be defined in config.h as HAVE_UNIX_SOCKET or similar. It
> > > will enable to use them in the newest cygwin where are this sockets
> > > implemented.
> >
> > I'll check into it.
>
> A classical Autoconf test is impractical. First of all there's no reliable
> compile-time evidence regarding these Unix sockets so we'd have to run a
> program from configure. That's already a semi-no-no because it will break
> cross-compilation and it also sounds a bit like a security concern.
> Moreover, it's still doubtful whether you could learn a lot this way,
> perhaps the user that runs configure cannot create these sockets or not
> where configure is trying to create it, etc.

can't you just do a link test that checks that AF_UNIX is defined?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2000-08-20 14:47:19 Re: mac.c
Previous Message The Hermit Hacker 2000-08-20 14:20:16 Re: Flex vs Lex