Hello,

I maintain the configure.in script for LyX and since we have switched
to automake, there is a piece of functionality I cannot get back into
my script. Basically, we used to have an option allowing to install
the binary as (for example) 
  ${prefix}/bin/lyx-devel
and the data as
  ${prefix}/share/lyx-devel
where the "lyx-devel" name can be chosen arbitrarily to avoid clashes
when trying out new versions. 

With autoconf, since I want to use the autogenerated makefile rules, I
figured out that setting PACKAGE to the right value at configure time
should work. Unfortunately, I cannot get the name of the installed
binary to be equal to PACKAGE. The naive solution, like
  [...]
  bin_PROGRAMS = $(PACKAGE)
  $(PACKAGE)_DEPENDENCIES = mathed/libmathed.la insets/libinsets.la 
support/libsupport.la
  $(PACKAGE)_LDADD = $(lyx_DEPENDENCIES) @INTLLIBS@ $(LYX_LIBS)
  [...]
is rejected by automake.

So, how do other people do to change the package name? I apologize in
advance if this problem is explained in the documentation. I did not
find anything, but maybe telling me where to look will suffice :)

Thanks in advance,
JMarc

Reply via email to