build: fix libressl detection
build: fix libressl detection

Checking libcrypto for a function after we've already found a (possibly
different) libcrypto is not what we want to do here.

pkg-config might've found a cross lib while AC_CHECK_LIB may find a different
or native one.

Run a link-test against the lib that's already been found instead.

Electronic-Gulden-Foundation/egulden,Electronic-Gulden-Foundation/egulden,pascalguru/florincoin,genavarov/lamacoin,tropa/axecoin,Electronic-Gulden-Foundation/egulden,KibiCoin/kibicoin,upgradeadvice/MUE-Src,OmniLayer/omnicore,genavarov/ladacoin,upgradeadvice/MUE-Src,octocoin-project/octocoin,octocoin-project/octocoin,upgradeadvice/MUE-Src,OstlerDev/florincoin,upgradeadvice/MUE-Src,capitalDIGI/litecoin,koharjidan/litecoin,genavarov/lamacoin,upgradeadvice/MUE-Src,genavarov/brcoin,octocoin-project/octocoin,capitalDIGI/litecoin,octocoin-project/octocoin,MonetaryUnit/MUE-Src,genavarov/brcoin,tropa/axecoin,my-first/octocoin,KibiCoin/kibicoin,OstlerDev/florincoin,OstlerDev/florincoin,MonetaryUnit/MUE-Src,tropa/axecoin,capitalDIGI/DIGI-v-0-10-4,OmniLayer/omnicore,KibiCoin/kibicoin,genavarov/lamacoin,koharjidan/litecoin,genavarov/brcoin,joulecoin/joulecoin,pascalguru/florincoin,KibiCoin/kibicoin,my-first/octocoin,genavarov/brcoin,my-first/octocoin,genavarov/ladacoin,pascalguru/florincoin,florincoin/florincoin,koharjidan/litecoin,genavarov/lamacoin,genavarov/lamacoin,fullcoins/fullcoin,Electronic-Gulden-Foundation/egulden,capitalDIGI/DIGI-v-0-10-4,fullcoins/fullcoin,OstlerDev/florincoin,tropa/axecoin,joulecoin/joulecoin,capitalDIGI/litecoin,MonetaryUnit/MUE-Src,my-first/octocoin,MonetaryUnit/MUE-Src,fullcoins/fullcoin,KibiCoin/kibicoin,capitalDIGI/litecoin,fullcoins/fullcoin,genavarov/ladacoin,genavarov/ladacoin,florincoin/florincoin,OmniLayer/omnicore,fullcoins/fullcoin,my-first/octocoin,MonetaryUnit/MUE-Src,florincoin/florincoin,florincoin/florincoin,Electronic-Gulden-Foundation/egulden,OmniLayer/omnicore,capitalDIGI/DIGI-v-0-10-4,genavarov/brcoin,genavarov/lamacoin,joulecoin/joulecoin,OmniLayer/omnicore,pascalguru/florincoin,genavarov/ladacoin,MonetaryUnit/MUE-Src,tropa/axecoin,OstlerDev/florincoin,koharjidan/litecoin,fullcoins/fullcoin,capitalDIGI/DIGI-v-0-10-4,my-first/octocoin,octocoin-project/octocoin,Electronic-Gulden-Foundation/egulden,capitalDIGI/litecoin,capitalDIGI/DIGI-v-0-10-4,tropa/axecoin,pascalguru/florincoin,OstlerDev/florincoin,florincoin/florincoin,OmniLayer/omnicore,KibiCoin/kibicoin,florincoin/florincoin,genavarov/brcoin,pascalguru/florincoin,capitalDIGI/DIGI-v-0-10-4,genavarov/ladacoin,octocoin-project/octocoin,koharjidan/litecoin,joulecoin/joulecoin,upgradeadvice/MUE-Src,koharjidan/litecoin,joulecoin/joulecoin,joulecoin/joulecoin,capitalDIGI/litecoin