1 dnl Configure script for NBD system
2 dnl (c) 1998 Martin Mares <mj@ucw.cz>, (c) 2000 Pavel Machek <pavel@ucw.cz>
3 AC_INIT(nbd, 2.5, wouter@debian.org)
6 AC_MSG_CHECKING(whether warnings should be enabled)
7 if test -n "$GCC" ; then
9 CFLAGS="$CFLAGS -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused"
16 AC_CHECK_SIZEOF(unsigned short int)
17 AC_CHECK_SIZEOF(unsigned int)
18 AC_CHECK_SIZEOF(unsigned long int)
19 AC_CHECK_SIZEOF(unsigned long long int)
20 AC_CHECK_FUNCS(llseek)
21 AC_MSG_CHECKING(whether client should be built)
23 *Linux*) BUILD_CLIENT=nbd-client
26 *) AC_MSG_RESULT(no) ;;
28 AC_CHECK_HEADERS([linux/nbd.h])
29 AC_SUBST(BUILD_CLIENT)
30 AC_CONFIG_HEADER(config.h)