check for shm_open only if cserve is to be built

SVN revision: 40559
This commit is contained in:
Vincent Torri 2009-05-08 22:01:43 +00:00
parent 7ac68a4283
commit fee240ec62
1 changed files with 15 additions and 14 deletions

View File

@ -156,6 +156,7 @@ AC_ARG_ENABLE(evas-cserve,
) )
AC_MSG_RESULT($want_evas_cserve) AC_MSG_RESULT($want_evas_cserve)
if test "x${want_evas_cserve}" = "xyes" ; then
AC_MSG_CHECKING([whether shm_open() is present]) AC_MSG_CHECKING([whether shm_open() is present])
LIBS_save=${LIBS} LIBS_save=${LIBS}
LIBS="$LIBS -lrt" LIBS="$LIBS -lrt"
@ -175,7 +176,7 @@ shm_unlink("/");
[want_evas_cserve="no"]) [want_evas_cserve="no"])
LIBS=${LIBS_save} LIBS=${LIBS_save}
AC_MSG_RESULT([$want_evas_cserve]) AC_MSG_RESULT([$want_evas_cserve])
fi
AM_CONDITIONAL(EVAS_CSERVE, test "x$want_evas_cserve" = "xyes") AM_CONDITIONAL(EVAS_CSERVE, test "x$want_evas_cserve" = "xyes")
if test "x$want_evas_cserve" = "xyes"; then if test "x$want_evas_cserve" = "xyes"; then