On Mo, 2009-09-21 at 01:52 -0500, Austin English wrote:
+#ifdef __HAIKU__
strarray_add(link_args, "-lroot");
+#else
strarray_add(link_args, "-lm");
strarray_add(link_args, "-lc");
+#endif
}
"autoconf.ac" was designed to avoid OS dependant "#ifdef". Test for a function and use the resulting defines from "config.h", when needed.
The linker failure message give you a function-name for testing.