| View previous topic :: View next topic |
| Author |
Message |
bunder Bodhisattva


Joined: 10 Apr 2004 Posts: 5213
|
Posted: Sun Mar 23, 2008 8:27 am Post subject: how do i work automake [solved] |
|
|
i downloaded a tgz file with the following files:
| Code: | authenticate.c check_bacula.c check_bacula.h Makefile.in
|
how do i build it? never used automake before, and i don't see a ./configure...
thanks in advance _________________ goodbye fgo. it was nice knowing you.
Last edited by bunder on Mon Mar 24, 2008 3:59 am; edited 1 time in total |
|
| Back to top |
|
 |
Hu Watchman

Joined: 06 Mar 2007 Posts: 6828
|
Posted: Sun Mar 23, 2008 3:57 pm Post subject: |
|
|
That tgz looks incomplete. Automake would be used to convert a Makefile.am into a Makefile.in. Since you already have a Makefile.in, you can skip Automake and go directly to converting Makefile.in into a Makefile. Unfortunately, that task is typically done by configure. Where did you get the tgz? Are there any supporting files in a secondary tarball?
If not, you will need to convert the Makefile.in into a Makefile by hand. This is usually a time-consuming process, since it was meant to be done by an autoconf-generated configure script. The other option is to write your own configure.ac and hope that Autoconf produces a configure which does all the necessary substitutions. If you want help writing a basic configure.ac, post back. Some autotools guru can probably hack one up, especially if we can see the contents of Makefile.in. |
|
| Back to top |
|
 |
bunder Bodhisattva


Joined: 10 Apr 2004 Posts: 5213
|
Posted: Sun Mar 23, 2008 8:27 pm Post subject: |
|
|
darn. i guess i'll have wait for someone to fix it...
thanks _________________ goodbye fgo. it was nice knowing you. |
|
| Back to top |
|
 |
Hu Watchman

Joined: 06 Mar 2007 Posts: 6828
|
Posted: Sun Mar 23, 2008 9:23 pm Post subject: |
|
|
| Basic configure.ac files are not hard to write. If you point me to a copy of the Makefile.in, I will try to write one. Configure scripts only get complex when they start to support fancy features like conditionally enabling a package feature or searching for a library. |
|
| Back to top |
|
 |
bunder Bodhisattva


Joined: 10 Apr 2004 Posts: 5213
|
Posted: Mon Mar 24, 2008 4:00 am Post subject: |
|
|
solved - i found a website for the tarball, and says i need to compile it using a nagios-plugins source tarball.  _________________ goodbye fgo. it was nice knowing you. |
|
| Back to top |
|
 |
|