-dnl $Id: configure.in,v 1.179.2.3.2.37.2.3 2004-11-09 23:07:03 didg Exp $
+dnl $Id: configure.in,v 1.179.2.3.2.37.2.5 2005-09-27 10:40:40 didg Exp $
dnl configure.in for netatalk
AC_INIT(etc/afpd/main.c)
dnl specific configuration comes in here:
dnl --------------------------------------------------------------------------
-AC_DEFINE(ADMIN_GRP, 1, [Define if the admin group should be enabled])
netatalk_cv_admin_group=yes
AC_MSG_CHECKING([for administrative group support])
-AC_ARG_WITH(admin-group,
+AC_ARG_ENABLE(admin-group,
[ --disable-admin-group disable admin group],[
- if test "$enableval" = "no"; then
+ if test x"$enableval" = x"no"; then
AC_DEFINE(ADMIN_GRP, 0, [Define if the admin group should be enabled])
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
netatalk_cv_admin_group=no
+ AC_MSG_RESULT([no])
+ else
+ AC_DEFINE(ADMIN_GRP, 1, [Define if the admin group should be enabled])
+ AC_MSG_RESULT([yes])
fi],[
+ AC_DEFINE(ADMIN_GRP, 1, [Define if the admin group should be enabled])
AC_MSG_RESULT([yes])
]
)
NETATALK_AC_CUPS
+dnl check if we can use attribute unused (gcc only) from ethereal
+AC_MSG_CHECKING(to see if we can add '__attribute__((unused))' to CFLAGS)
+if test x$GCC != x ; then
+ CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
+ AC_MSG_RESULT(yes)
+else
+ CFLAGS="-D_U_=\"\" $CFLAGS"
+ AC_MSG_RESULT(no)
+fi
+
dnl --------------------------------------------------------------------------
dnl FHS stuff has to be done last because it overrides other defaults
dnl --------------------------------------------------------------------------
#include <sys/socket.h>
#include <asm/types.h>
#include <linux/atalk.h>
-],
-[
-int main() {
- struct atalk_addr foo;
- return 0;
-}
- ], [
+ struct atalk_addr foo;
+],
+[ ], [
ac_have_atalk_addr=yes
AC_MSG_RESULT([yes])
], [