Thread: New Autoconf+Automake code
Responding to a request from Andreas to automatically track dependencies, I have added support for Automake to the current autoconf code. The procedure is basically the same. Just run './bootstrap' and then run configure. The options to configure are the same. Let me know if anyone encounters problems. NOTE: This works on my build server, so I am sure there are idosyncracies of other systems that I have not accounted for. Feedback is greatly appreciated. For future reference, any new source files will need to be manually added to Makefile.am. Automake has to have a static list of source files at "bootstrap" time, so no getting around it. :) ahp
Attachment
> -----Original Message----- > From: Adam H. Pendleton [mailto:fmonkey@fmonkey.net] > Sent: 16 May 2003 15:03 > To: pgadmin-hackers@postgresql.org > Subject: [pgadmin-hackers] New Autoconf+Automake code > > > Responding to a request from Andreas to automatically track > dependencies, I have added support for Automake to the > current autoconf > code. The procedure is basically the same. Just run > './bootstrap' and > then run configure. The options to configure are the same. > Let me know > if anyone encounters problems. NOTE: This works on my build > server, so > I am sure there are idosyncracies of other systems that I have not > accounted for. Feedback is greatly appreciated. For future > reference, > any new source files will need to be manually added to Makefile.am. > Automake has to have a static list of source files at > "bootstrap" time, > so no getting around it. :) Hi Adam, On my Slackware 9 box I get: + aclocal + autoheader + automake --foreign --add-missing --copy configure.in:5 option `pgAdmin3, ' not recognized Couple of questions if I may: Should we now delete Makefile.in from CVS? With automake, presumably it will/can build dist and distcheck targets as well? Cheers, Dave.
Dave Page wrote:
AM_INIT_AUTOMAKE([pgAdmin3, 0.10])
to:
AM_INIT_AUTOMAKE(pgAdmin3, 0.10)
and see if that makes and difference. Quoting in []'s may be a recent addition to automake, though I don't think so.
ahp
What version of automake are you running? Change the line from:On my Slackware 9 box I get: + aclocal + autoheader + automake --foreign --add-missing --copy configure.in:5 option `pgAdmin3, ' not recognized
AM_INIT_AUTOMAKE([pgAdmin3, 0.10])
to:
AM_INIT_AUTOMAKE(pgAdmin3, 0.10)
and see if that makes and difference. Quoting in []'s may be a recent addition to automake, though I don't think so.
Yes, Makefile.in will go away.Couple of questions if I may: Should we now delete Makefile.in from CVS?
Yup. :)With automake, presumably it will/can build dist and distcheck targets as well?
ahp
Hi Adam,
I have automake 1.7.3 which is the latest I believe. Removing the quotes appears to have fixed it and it seems to compile OK here. make distcheck failed though because of the requirement to pass --with-pgsql and --with-wx to configure. Is it possible to set defaults for them to /usr/local/pgsql and /usr/local/wx2?
Thanks for the code :-)
Regards, Dave.
-----Original Message-----Dave Page wrote:
From: Adam H. Pendleton [mailto:fmonkey@fmonkey.net]
Sent: 16 May 2003 15:27
To: Dave Page
Cc: pgadmin-hackers@postgresql.org
Subject: Re: [pgadmin-hackers] New Autoconf+Automake codeWhat version of automake are you running? Change the line from:On my Slackware 9 box I get: + aclocal + autoheader + automake --foreign --add-missing --copy configure.in:5 option `pgAdmin3, ' not recognized
AM_INIT_AUTOMAKE([pgAdmin3, 0.10])
to:
AM_INIT_AUTOMAKE(pgAdmin3, 0.10)
and see if that makes and difference. Quoting in []'s may be a recent addition to automake, though I don't think so.Yes, Makefile.in will go away.Couple of questions if I may: Should we now delete Makefile.in from CVS?Yup. :)With automake, presumably it will/can build dist and distcheck targets as well?
ahp
Dave Page wrote:
Well, I suppose. :) New code is attached.
ahp
Is it possible to set defaults for them to /usr/local/pgsql and /usr/local/wx2?
ahp
Attachment
:-) Thanks Adam.
A build from CVS works, however a distribution doesn't :-( It looks none of the non-source files are making it into the distribution - i.e. *.h, *.xpm, *.xrc as well as the various readmes and the windoze icon.
BTW, I changed the version number to 0.1.1.
Regards, Dave.
-----Original Message-----Dave Page wrote:
From: Adam H. Pendleton [mailto:fmonkey@fmonkey.net]
Sent: 16 May 2003 15:57
To: Dave Page
Cc: pgadmin-hackers@postgresql.org
Subject: Re: [pgadmin-hackers] New Autoconf+Automake code
Is it possible to set defaults for them to /usr/local/pgsql and /usr/local/wx2?
ahp
It's rumoured that Adam H. Pendleton once said: > I've got all the code done, with the changes to the pgAdmin3 loading of > the xrc and tips files, etc. done. The problem is that the changes > affect a large amount of files. How would you like me to get them to > you? Would you like a tar of my build directory, each of the affected > files, or would you rather that I check the changes into cvs myself? > A patch against CVS (in diff -c format preferrably) please. Regards, Dave.