|
Revision 1073, 1.4 KB
(checked in by kraftche, 2 years ago)
|
|
Update README.CONFIGURE to mention autoheader
|
| Line | |
|---|
| 1 | Where's the configure script? |
|---|
| 2 | |
|---|
| 3 | After installing the GNU autotools suite, execute the following |
|---|
| 4 | command to generate the configure script (and other necessary |
|---|
| 5 | generated files): |
|---|
| 6 | |
|---|
| 7 | autoreconf -fi |
|---|
| 8 | |
|---|
| 9 | If for some reason, the autoreconf command is not available, |
|---|
| 10 | the following sequence of commands should have the same result: |
|---|
| 11 | |
|---|
| 12 | autoheader |
|---|
| 13 | aclocal |
|---|
| 14 | libtoolize |
|---|
| 15 | automake -a |
|---|
| 16 | autoconf |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | Why aren't the configure script and other generated files in the |
|---|
| 20 | CVS repository? |
|---|
| 21 | |
|---|
| 22 | Because they are generated files. Why save a version history for |
|---|
| 23 | them? Further, some of the above commands get re-run automatically |
|---|
| 24 | when Makefile.am's or other files are changed. This could lead to |
|---|
| 25 | compatibility problems if some of the generated files in the CVS |
|---|
| 26 | repository are from a different version of the GNU autotools. |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | Aren't we requiring users to have GNU autotools installed in order |
|---|
| 30 | to configure CGM? |
|---|
| 31 | |
|---|
| 32 | No. Developers (or anyone else using source directly from the CVS |
|---|
| 33 | repository) must have the autotools installed. When creating a |
|---|
| 34 | tarball for distribution of CGM, the commands below should be run. |
|---|
| 35 | The resulting tarball will contain all necessary generated files, |
|---|
| 36 | including the configure script. |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | What needs to be done to prepare CGM for distribution as a tarball? |
|---|
| 40 | |
|---|
| 41 | Check out a clean copy of CGM. |
|---|
| 42 | Execute the following commands in the top-most directory: |
|---|
| 43 | autoreconf -fi |
|---|
| 44 | ./configure |
|---|
| 45 | make dist |
|---|