Se você escolher a biblioteca licenciada do AGPL, aparentemente não terá outra opção além de liberar seu software como Open Source sob a AGPL. Veja estas perguntas aqui em Programmers.SE para mais informações:
- Usando uma biblioteca licenciada pela AGPL 3.0 para funcionalidade extra em um aplicativo iOS
- AGPL - o que você pode fazer e o que você não pode
- Perguntas da AGPL sobre vinculação e trabalhos derivados
É claro que você não pode obter aconselhamento jurídico vinculativo a partir daqui, mas as respostas nos links acima de tudo parecem bem claras.
Dado o fato de que você tem outra biblioteca disponível para escolher que está sob a licença MIT, isso é óbvio: escolha a biblioteca licenciada do MIT.
A licença MIT é uma das licenças de software livre mais permissivas. Como Andres F. já disse em sua resposta, basicamente permite tudo.
Citações de Wikipédia :
It is a permissive free software license, meaning that it permits reuse within proprietary software provided all copies of the licensed software include a copy of the MIT License terms.
Assim, você tem permissão para usar uma biblioteca licenciada pelo MIT em seu software, independentemente de seu software ser gratuito / de código aberto ou não.
EDITAR:
Com relação à sua pergunta sobre a GPL, consulte a FAQ sobre GPL .
Cite o link:
Does the GPL require that source code of modified versions be posted to the public?
The GPL does not require you to release your modified version, or any part of it. You are free to make modifications and use them privately, without ever releasing them. This applies to organizations (including companies), too; an organization can make a modified version and use it internally without ever releasing it outside the organization.
But if you release the modified version to the public in some way, the GPL requires you to make the modified source code available to the program's users, under the GPL.
Thus, the GPL gives permission to release the modified program in certain ways, and not in other ways; but the decision of whether to release it is up to you.
Versão resumida:
- se você usar o código GPL de forma particular, faça o que quiser
- se você liberar de qualquer forma, deve estar no código-fonte e sob o GPL