Functions | |
| char | ACCheckCoreLinuxFramework () |
| Function for autoconf checks. More... | |
|
|
Function for autoconf checks.
This purpose of this function is to provide the autoconf users a symbol to check for in corelinux library. Unfortunately autoconf uses the C compiler to check for symbols into libraries and corelinux is a C++ one so the way the functions and objects are mangled makes it impossible to check for them. The solution is to provide a C symbol to check for using extern "C" {}. To enable corelinux into autoconf, you can put the following lines into the configure.in file.
AC_CHECK_LIB(cl++, ACCheckCoreLinuxFramework,[
CXXFLAGS="${CXXFLAGS} -I/usr/include/clfw"
LDFLAGS="${LDFLAGS} "
LIBS="${LIBS} -lclfw++"
],[
echo "You need to install corelinux framework. See http://corelinux.sourceforge.net"
exit;
],)
|