Reuben Thomas wrote:
> For case 1, am I correct in thinking
> there is no variable that contains this directory, i.e. "the directory
> where shared libraries are installed"?  As far as I can tell, this
> directory is computed by libtool, and I can't see a better way than
> effectively recomputing it, that is, use bindir when the platform is
> cygwin, mingw or cegcc, and libdir otherwise.

Correct. You need to define it by yourself. An Automake conditional
based on "$host_os" will do the trick.

AM_CONDITIONAL([SHLIBS_IN_BINDIR], [case "$host_os" in mingw* | cygwin*) true;; 
*) false;; esac])

if SHLIBS_IN_BINDIR
AM_CPPFLAGS += -DINSTALLDIR=\"$(bindir)\"
else
AM_CPPFLAGS += -DINSTALLDIR=\"$(libdir)\"
endif

Bruno


Reply via email to