I'm working on replacing a autoconf/automake build with Cmake. One
thing I'm stuck on is replacing AC_SEARCH_LIBS. For example:

  AC_SEARCH_LIBS(dlopen, [dl],
                 [test "$ac_cv_search_dlopen" = "none required" ||
                  LIB_DLOPEN=$ac_cv_search_dlopen])
  AC_SUBST([LIB_DLOPEN])

Essentially, you can look through a list of possible libraries for a
given function/entrypoint. If a library is needed, it's remembered in
LIB_DLOPEN (in the example). But sometimes there's no library needed
to get the desired symbol. So, it's not really the same as
CheckLibraryExists... Is there something that does this in cmake?

Thanks,
-Steve

--
Steve Huston, Riverace Corporation
Check out my networked programming blog at
http://stevehuston.wordpress.com/

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to