Welcome to LQ.
The usual way to do it goes like this, in a terminal window,
with the command :
Code:
'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/<path-to-sh4>/lib:/<other-sh4-path>/lib:/<third-sh4-path>/lib'
and those new path's will replace the system PATH
( :/lib:/usr/lib:/usr/local/lib etc.)
until you close the terminal window.
( The above command should be done before running ./configure
and / or make in that terminal.)
.....