Description: Fix a FTBFS on kfreebsd
 on kfreebsd, the execinfo library cannot be found for an unkown
 reason, but this does not affect the ability to build (and hopefully,
 to run).
 .
 So simply ignore that error at config time.
Author: Martin Quinson <mquinson@debian.org>
Forwarded-Upstream: no, and cannot be
 This will probably break for users of freeBSD that are not using the
 libc, so applying it as is would be a bad idea

Index: widelands-1:17~rc2/src/CMakeLists.txt
===================================================================
--- widelands-1:17~rc2.orig/src/CMakeLists.txt	2012-04-13 22:33:58.678928057 -1000
+++ widelands-1:17~rc2/src/CMakeLists.txt	2012-04-13 22:35:09.748114258 -1000
@@ -124,7 +124,11 @@
 target_link_libraries(widelands_all ${GLEW_LIBRARY})
 target_link_libraries(widelands_all ${Boost_LIBRARIES})
 if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
-  target_link_libraries(widelands_all ${EXECINFO_LIBRARY})
+  if (EXECINFO_LIBRARY MATCHES "NOTFOUND")
+    message(STATUS "Warning: cannot find the execinfo library. Let's proceed without it and hope for the best")
+  else(EXECINFO_LIBRARY MATCHES "NOTFOUND")
+    target_link_libraries(widelands_all ${EXECINFO_LIBRARY})
+  endif(EXECINFO_LIBRARY MATCHES "NOTFOUND")
 endif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
 
 if (DEFINED WL_EXTRA_LINK_LIBRARIES)
