## Saturday, May 10, 2008

### Compiling hfstar on Mac OS X 10.5 Leopard

Oh joy, trying to compile old stuff on a new system. This article describes the hoops I had to jump through before being able to compile hfstar on Mac OS X 10.5 Leopard successfully.

The first problem, before even running the configure script, is that one of the authors, François Pinard, puts his name in the source code in ISO-8859-1 encoding. It needs to be specified when generating gettext .po files. Edit the file po/Makefile.in.in, find the line that reads something like this:
$(srcdir)/$(PACKAGE).pot: $(POTFILES)$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \

And add another option, --from-code=iso-8859-1 after --keyword=N_.
ac_cv_exeext='' configure --prefix=... --program-transform-name=s,tar,hfstar,