From: Andre Noll Date: Sat, 4 Jul 2009 19:45:48 +0000 (+0200) Subject: Add a check for libosl to configure.ac. X-Git-Tag: v0.4.0~69 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=ca659e6bf0d7f783849244105a077e79fcf741ad Add a check for libosl to configure.ac. If libosl is not found, configure will exit with an error message describing how to download and install libosl. We could make it optional and build only the client side of paraslash if libosl is not available, but that seems not be worth the trouble as everyone likely wants to build para_server anyway. --- diff --git a/configure.ac b/configure.ac index f3d57325..fdc0b7ce 100644 --- a/configure.ac +++ b/configure.ac @@ -151,7 +151,17 @@ fade_cmdline_objs="fade.cmdline" fade_errlist_objs="fade exec string fd" - +########################################################################### osl +have_osl=yes +AC_CHECK_HEADER(osl.h, [], have_osl=no) +AC_CHECK_LIB([osl], [osl_open_table], [], have_osl=no) +if test "$have_osl" = "no"; then + AC_MSG_ERROR([libosl not found, type the following to download: + git clone git://git.tuebingen.mpg.de/osl +Install the library with + (cd osl && make && sudo make install) + ]) +fi ########################################################################### ssl dnl @synopsis CHECK_SSL dnl