coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
518 stars 260 forks source link

chilli: Fix a build error with --enable-json #280

Closed vaibhav92 closed 8 years ago

vaibhav92 commented 8 years ago

This fixes a build error that occurs when --enable-json config flag is set and libjson-c is not available. This adds a check in configure.ac for availability of libjson-c library.

Also libjson-c was not present in the list of linked libraries for chilli binary. Hence a linker error complaining about missing json_object_xxx functions used to occur. To fix this a new m4 macro named LIBJSON is added to configure.ac that expands to -ljson-c and is added to list of libraries to be linked to chill in src/Makefile.am.

Signed-off-by: Vaibhav Jain vaibhav@linux.vnet.ibm.com