Solaris 10 - configure

Hi,

In ./configure at lines 2928, 2930, 'tail' is given the '-n N' option. /usr/bin/tail on Solaris does not accept this option, but rather the traditional '-N' syntax.

I'd suggest:

   # First line
   ERLANG_EI_DIR=`head -1 conftest.out`
   # Second line
   ERLANG_EI_LIB=`head -2 conftest.out | tail -1`
   # Third line
   ERLANG_DIR=`tail -1 conftest.out`

Unfortunately GNU has deprecated -N, which is a potential Catch-22.

Also, I can't override the location of erl & erlc using --with-erlang, if an erl is already on the PATH. configure always chooses the location on PATH (= `which erl`), unless I set PATH so that erl isn't found there. THEN the option to configure works. Also, from the way other paths (include/, lib/) are constructed from it, it looks like it's assumed that this path is NOT to the binaries themselves, but rather to the Erlang/OTP installation prefix (the help is not very clear on this point).

Also, what is going on at configure line 4503 (tries to execute '/')?

There is also a problem with 'make install' on Solaris. The default /usr/sbin/install will fail with "install: ELDAPv3.beam was not found anywhere!". A workaround is to add /usr/ucb to the PATH:

export PATH=/usr/ucb:$PATH

but it should be noted that /usr/ucb/install does not accept the -b option:

install -b -m 644 ejabberd.cfg.example /mnt/zfs/local/etc/ejabberd/ejabberd.cfg
install: illegal option -- b

A workaround is to edit the Makefile to remove '-b'. (But bewarned, this will overwrite an existing 'ejabberd.cfg' without making a backup.)

The substitution of ("BSD compatible") /usr/ucb/install for /usr/sbin/install is done automatically by Erlang/OTP, perhaps ejabberd could do the same on Solaris.

--Toby

Syndicate content