I've just tried that, by changing the linking calls to gcc by putting
the
'-L/usr/local/pgsql/lib -lpq' at the back. And this works.
So, there is a solution. Only one problem left. How to change
Makefile.am and/or configure.in to make this work.
Is there anybody on the list with a little more experience than me
(virtually no experience with GNU autotools) who can shine a light on
this matter?
Ok, I got it to build on X 10.3.1. There were lots of warnings about
comparing signed and unsigned. Not sure if this is expected at this
stage...
There were two changes that I needed to make, but I'm not sire if these
changes are at the root or if I've changed something that is
autogenerated, since I have less than virtually no experience with the
autotools.
eric
[tibaby:~/src/dbmail-2.0/dbmail] erics% cvs diff
? config.h
? config.log
? config.status
? dbmail-adduser
? dbmail-imapd
? dbmail-maintenance
? dbmail-mini-injector
? dbmail-pop3d
? dbmail-readvut
? dbmail-smtp
? Makefile
? raw-convertor
? stamp-h1
? auth/Makefile
? mysql/Makefile
? pgsql/Makefile
cvs server: Diffing .
Index: Makefile.in
===================================================================
RCS file: /cvsroot-dbmail/dbmail/Makefile.in,v
retrieving revision 1.6.4.4
diff -r1.6.4.4 Makefile.in
303c303
< $(LINK) $(dbmail_adduser_LDFLAGS) $(dbmail_adduser_OBJECTS)
$(dbmail_adduser_LDADD) $(LIBS)
---
> $(LINK) $(dbmail_adduser_OBJECTS) $(dbmail_adduser_LDADD)
$(LIBS) $(dbmail_adduser_LDFLAGS)
306c306
< $(LINK) $(dbmail_imapd_LDFLAGS) $(dbmail_imapd_OBJECTS)
$(dbmail_imapd_LDADD) $(LIBS)
---
> $(LINK) $(dbmail_imapd_OBJECTS) $(dbmail_imapd_LDADD) $(LIBS)
$(dbmail_imapd_LDFLAGS)
309c309
< $(LINK) $(dbmail_maintenance_LDFLAGS)
$(dbmail_maintenance_OBJECTS) $(dbmail_maintenance_LDADD) $(LIBS)
---
> $(LINK) $(dbmail_maintenance_OBJECTS)
$(dbmail_maintenance_LDADD) $(LIBS) $(dbmail_maintenance_LDFLAGS)
312c312
< $(LINK) $(dbmail_mini_injector_LDFLAGS)
$(dbmail_mini_injector_OBJECTS) $(dbmail_mini_injector_LDADD) $(LIBS)
---
> $(LINK) $(dbmail_mini_injector_OBJECTS)
$(dbmail_mini_injector_LDADD) $(LIBS) $(dbmail_mini_injector_LDFLAGS)
315c315
< $(LINK) $(dbmail_pop3d_LDFLAGS) $(dbmail_pop3d_OBJECTS)
$(dbmail_pop3d_LDADD) $(LIBS)
---
> $(LINK) $(dbmail_pop3d_OBJECTS) $(dbmail_pop3d_LDADD) $(LIBS)
$(dbmail_pop3d_LDFLAGS)
318c318
< $(LINK) $(dbmail_readvut_LDFLAGS) $(dbmail_readvut_OBJECTS)
$(dbmail_readvut_LDADD) $(LIBS)
---
> $(LINK) $(dbmail_readvut_OBJECTS) $(dbmail_readvut_LDADD)
$(LIBS) $(dbmail_readvut_LDFLAGS)
321c321
< $(LINK) $(dbmail_smtp_LDFLAGS) $(dbmail_smtp_OBJECTS)
$(dbmail_smtp_LDADD) $(LIBS)
---
> $(LINK) $(dbmail_smtp_OBJECTS) $(dbmail_smtp_LDADD) $(LIBS)
$(dbmail_smtp_LDFLAGS)
324c324
< $(LINK) $(raw_convertor_LDFLAGS) $(raw_convertor_OBJECTS)
$(raw_convertor_LDADD) $(LIBS)
---
> $(LINK) $(raw_convertor_OBJECTS) $(raw_convertor_LDADD) $(LIBS)
$(raw_convertor_LDFLAGS)
cvs server: Diffing auth
cvs server: Diffing buildtools
cvs server: Diffing man
cvs server: Diffing mysql
cvs server: Diffing mysql2pgsql
cvs server: Diffing pgsql
Index: pgsql/Makefile.in
===================================================================
RCS file: /cvsroot-dbmail/dbmail/pgsql/Makefile.in,v
retrieving revision 1.4.4.2
diff -r1.4.4.2 Makefile.in
120c120
< $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
---
> $(CPPFLAGS) -I$(AM_CFLAGS) $(CFLAGS)
cvs server: Diffing sql
cvs server: Diffing sql/RC1_to_RC2
cvs server: Diffing sql/RC1_to_RC2_changes
cvs server: Diffing sql/mysql
cvs server: Diffing sql/postgresql