
Harold L Hunt II wrote:
parser.test.in.diff is for libsmi/test/parser.test.in:
Substitutes the @srcdir@ variable during the configure process, then turns that into an $abssrcdir by cd'ing to @srcdir@ and running 'pwd' (very common bit of code). The relative references to ../mibs are now changed to point to something relative to $abssrcdir. This allows the parser test to finds the its files. The test completes fine outside of the source tree.
mibs.diff is for libsmi/mibs/* (only touches Makefile.am files):
Removes the mkinstalldirs magic from mibs/Makefile.am and replaces it with directory references in each of the individual Makefile.am's, which causes the build script to automatically create the installation directories. Moves the list of files from mibs/Makefile.am to each individual Makefile.am and specifies their installation directory explicitly. This causes the mibs files to be installed correctly when building outside of the source tree.
Please apply these to HEAD.
I noticed that none of these files have been updated since at least 2000 (I think) and the files in CVS are the same as the files that are in the 0.4.1 release. What are the chances that we could commit these patches (along with a reautotooling so that the shared lib will build on Cygwin) to the 0.4 branch and cut a 0.4.2 release while waiting for the next 0.x release to come out? It would be advantageous for other package maintainers to get these patches in the default source package so that they don't have to build a possibly unstable version from CVS. Awaiting your feedback.
I have applied your patches (along with an additional AC_SUBST(srcdir) in configure.in). Thanks for that!
I will spend some more time on the test suite and when it's ready (i.e. when it completes without errors) I think I will put out a 0.4.2 release.