diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-03 15:36:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-03 15:36:15 +0300 |
commit | 2d810704bfd100e9565d791fb3681f26c8894a9a (patch) | |
tree | 0b2d556f51edb1416eb4fc782d7454050d9c1bf5 /configure.ac | |
parent | 35d327a5ab3ae2a235e3e045afb321810bb2536a (diff) | |
download | ManaVerse-2d810704bfd100e9565d791fb3681f26c8894a9a.tar.gz ManaVerse-2d810704bfd100e9565d791fb3681f26c8894a9a.tar.bz2 ManaVerse-2d810704bfd100e9565d791fb3681f26c8894a9a.tar.xz ManaVerse-2d810704bfd100e9565d791fb3681f26c8894a9a.zip |
Add configure option --without-librt to disable linking to librt.
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 8141dabdb..7eeb8cf94 100755 --- a/configure.ac +++ b/configure.ac @@ -149,8 +149,14 @@ AM_CONDITIONAL(USE_INTERNALGUICHAN, test x$with_internalguichan = xyes) AC_CHECK_LIB(SDL_net, SDLNet_Init, , AC_MSG_ERROR([ *** Unable to find SDL_net library])) -AC_CHECK_LIB(rt, shm_open, , -AC_MSG_ERROR([ *** Unable to find librt library])) +AC_ARG_WITH(librt,[ --without-librt don't link to librt ] ) +if test "x$with_librt" == "xno"; then + without_librt=yes +else + AC_CHECK_LIB(rt, shm_open, , + AC_MSG_ERROR([ *** Unable to find librt library])) + without_librt=no +fi # Enable manaserv AC_ARG_ENABLE(manaserv, |