When configuring compilation, the configure script will scan your environment to decide which delegate to activate. So you may firstly install delegates and make them accessible for the configure script.
https://imagemagick.org/script/advanced ... lation.php
So, first of all, install the delegates.(e.g. jpeg)
1. download jpegsrc.v9b.tar.gz
2. tar zxvf jpegsrc.v9b.tar.gz and then cd into what you extracted
3. ./configure
make
make install
By default steps above install your jpeg delegate in /usr/local/bin.
So append environment variables:
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/bin
Now your configure script can detect the installed delegate if everything went well.
Then you can install your ImageMagick distribution as official guidance.
Tips.
if you want to include delegates into ImageMagick distribution,
I personally suggest that you may put delegate libs into IM_Home/lib
because this is a additional dynamic library search path.
Wish this can help.