Files
rtorrent/configure.ac
T
rakshasa 874e46fc64 Proper '/' on the end of directories in the find-file window.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@381 e378c898-3ddf-0310-93e7-cc216c733640
2005-04-03 16:36:19 +00:00

57 lines
1.2 KiB
Plaintext

AC_INIT(rtorrent, 0.1.5, jaris@ifi.uio.no)
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
sinclude(scripts/checks.m4)
CXXFLAGS="-O3"
AC_ARG_ENABLE(debug,
[ --enable-debug enable debug information [default=yes]],
[
if test "$enableval" = "yes"; then
CXXFLAGS="$CXXFLAGS -Wall -g -DDEBUG"
else
CXXFLAGS="$CXXFLAGS -Wall -DNDEBUG"
fi
],[
CXXFLAGS="$CXXFLAGS -Wall -g -DDEBUG"
]
)
AC_PROG_CXX
AC_PROG_RANLIB
AC_SYS_LARGEFILE
AC_ARG_ENABLE(werror,
[ --enable-werror enable the -Werror flag [default=no]],
[
if test "$enableval" = "yes"; then
CXXFLAGS="$CXXFLAGS -Werror"
fi
]
)
AC_SEARCH_LIBS(wbkgdset, ncurses curses,,echo "*** The ncurses library is required!";exit 1)
TORRENT_CHECK_EXECINFO()
TORRENT_CHECK_CURL()
TORRENT_OTFD()
PKG_CHECK_MODULES(STUFF, sigc++-2.0 libtorrent >= 0.5.4,
CXXFLAGS="$CXXFLAGS $STUFF_CFLAGS $CURL_CFLAGS";
LIBS="$LIBS $STUFF_LIBS $CURL_LIBS")
AC_DEFINE(HAVE_CONFIG_H, 1, true if config.h was included)
AC_OUTPUT([
Makefile
src/Makefile
src/core/Makefile
src/display/Makefile
src/input/Makefile
src/ui/Makefile
src/utils/Makefile
])