Hi,
On Thursday, Oct 23, 2003, at 16:31 Europe/Amsterdam, Gerrit P. Haase
wrote:
Ilja schrieb:
Hi,
On Thursday, Oct 23, 2003, at 13:33 Europe/Amsterdam, Gerrit P. Haase
wrote:
Hallo,
I'm having problems with the configure script:
$ ./configure \
--prefix=/usr \
--with-pgsql
[snip configure run]
$ ./configure \
--prefix=/usr \
--with-pgsql=/usr/include/postgresql
so here you say libpq-fe.h is in /usr/include/postgresql/ (cont'd
below)
Yes of course, I thought it must be there if it is not found
automatically like in the first run, actually it is in /usr/include and
I'd expect that the script find it there automatically.
Well, it should be found automatically. It works here in fact.
Unable to find libpq-fe.h where you specified, try just
--with-pgsql
to
have configure guess
$ ls /usr/include/libpq-fe.h
/usr/include/libpq-fe.h
and here it's in /usr/include/ !
Yes, I know it, but why does the script looks for it and don't see it?
---> The configure guess is broken.
Well, it works here.. and I haven't heard of this problem before.
That should answer your question I guess.
No, my question is, why do I need to specify --with-pqsql=/usr/include
for the script to find the header? Why doesn't configure tries e.g. to
link it in and see if the linker finds it or why doesn't the script
take
a look in /usr/include automnatically? I recently built the whole
GNOME
desktop and never saw these problems like a stupid header isn't found?
The script should only ask if you want to use pgsql or mysql, thats it,
on the other hand, if it tries to find the actual header file, then do
it in the right way!
Could you please download a new source-snapshot from www.dbmail.org,
and try
again with that? Instead of looking for the headers and libraries
itself,
the configure script in the latest CVS versions use pg_config
(PostgreSQL)
and mysql_config (MySQL) for finding headers and library paths.
Then you don't have to specify the path to the headers.
Ilja
--
IC&S
Koningsweg 4
3582 GE UTRECHT
PGP-key:
http://www.ic-s.nl/keys/ilja.txt