Lines 205-230
AC_CHECK_LIB([rt],
Link Here
|
205 |
|
205 |
|
206 |
AC_MSG_CHECKING([µTP]) |
206 |
AC_MSG_CHECKING([µTP]) |
207 |
build_utp="no" |
207 |
build_utp="no" |
208 |
if test "x$CXX" = "x" ; then |
|
|
209 |
have_utp="no" |
210 |
else |
211 |
have_utp="yes" |
212 |
fi |
213 |
AC_ARG_ENABLE([utp], |
208 |
AC_ARG_ENABLE([utp], |
214 |
AS_HELP_STRING([--enable-utp],[build µTP support]), |
209 |
AS_HELP_STRING([--enable-utp],[build µTP support]), |
215 |
[want_utp=${enableval}], |
210 |
[want_utp=${enableval}], |
216 |
[want_utp=${have_utp}]) |
211 |
[want_utp="yes"]) |
217 |
if test "x$want_utp" = "xyes" ; then |
212 |
if test "x$want_utp" = "xyes" ; then |
218 |
if test "x$have_utp" = "xyes"; then |
213 |
if test "x$CXX" != "x" ; then |
219 |
LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/" |
214 |
LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/" |
220 |
LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a" |
215 |
LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a $libutp_extra_libs" |
221 |
if test "x$libutp_extra_libs" != "x" ; then |
|
|
222 |
LIBUTP_LIBS="$LIBUTP_LIBS $libutp_extra_libs" |
223 |
fi |
224 |
AC_DEFINE([WITH_UTP],[1]) |
216 |
AC_DEFINE([WITH_UTP],[1]) |
225 |
build_utp="yes" |
217 |
build_utp="yes" |
226 |
else |
218 |
else |
227 |
AC_MSG_ERROR("Unable to build uTP support -- C++ compiler not found") |
219 |
AC_MSG_ERROR("Unable to build uTP support -- C++ compiler not found; consider --disable-utp") |
228 |
fi |
220 |
fi |
229 |
fi |
221 |
fi |
230 |
AC_SUBST(LIBUTP_CFLAGS) |
222 |
AC_SUBST(LIBUTP_CFLAGS) |
231 |
- |
|
|