Steps to reproduce:
0. Make sure that the libsodium is installed on your system.
1. Open a fresh bash shell (for example in a nex konsole tab),
preferably in a shadow directory (in order not to mess with your usual
build). Make sure your Makefile is unchanged from the distributed
version.
2. Source the following script:
export CONF_OPT_GUI='--enable-gui=motif'
export CONF_OPT_MULTIBYTE='--enable-multibyte'
export CONF_OPT_AUTOSERVE='--enable-autoservername'
export CONF_OPT_SODIUM='--enable-libsodium'
export CONF_OPT_FEAT='--with-features=normal'
export CONF_ARGS2='--with-vim-name=vim-normal'
export CONF_OPT_COMPBY='"--with-compiledby=
antoine.m...@gmail.com"'
3. make reconfig
4. make install
5. vim-normal --version
Expected result: +sodium in the list of features (i.e. I would have
expected --enable-libsodium to compile with +sodium even in a Normal
build).
Actual result: The list of features includes -sodium at its
alphabetical place, yet the Linking line includes -lsodium near the
end.
Additional info: As shown in the attached log, the only instances of
the string "sodium" in the configure log are when it checks for
--enable-libsodium (and finds it) and for the libsodium (and finds it
installed).
The attached files are:
* the sysout/syserr log from " (date; make -j4 reconfig || echo 'exit
status' $? ; date) 2>&1 " (without the quotes)
* auto/config.cache
* auto/config.h
* auto/
config.mk
* auto/config.status
Maybe some of them are not needed to debug this problem, but better
too much than too little. After searching for "sodium" in all of them,
my only conclusion is that (contrary to my expectation) this feature
is enabled everywhere that I can see, but disabled somewhere in the
code due to FEAT_HUGE not being defined.
Best regards,
Tony.