depends gmp &&
if [ "$STRONGSWAN_IKEV2" = "n" ]; then

if [ STRONGSWAN_CURL == 'y' ]; then
  depends curl
fi &&
if [ "$STRONGSWAN_LDAP" == 'y' ]; then
  depends openldap
fi &&
if [ "$STRONGSWAN_OPSC" == 'y' ]; then
  depends opensc
fi
else
  optional_depends curl     '--enable-http'  \
                            '' \
                            'fetch Certificates and CRLs via http'  &&
  optional_depends openldap '--enable-ldap'  \
                            '' \
                            'fetch CRLs from LDAP'   &&
  optional_depends opensc   '--enable-smartcard'  \
                            '' \
                            'enable smartcard support'
fi    
