Most of the code is MIT licensed, some code is instead licensed under the LGPL and some under the GPL. Each source code file contain a header that describes the license for the code in that specific file. For More information see COPYING.GPL, COPYING.LGPL and COPYING.MIT.