XGfem is a commercial product. You can use FreeFEM and XGfem together. If you want to do it (i.e. so you have purchased XGfem, congratulations) do the following thing:
configure --with-gfem make make install #if you want to install the software on a site
Note that it will enable the mesh adaptation library also.