]> arthur.barton.de Git - netatalk.git/commitdiff
Enable --with-did=last by default.
authorsrittau <srittau>
Sat, 17 Nov 2001 23:43:01 +0000 (23:43 +0000)
committersrittau <srittau>
Sat, 17 Nov 2001 23:43:01 +0000 (23:43 +0000)
configure.in

index 58a2f2601bc6b47f193436a4084c9df5c0576bfa..78cc36da444bd6bafc77e1ca62a82e48918d4fe7 100644 (file)
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.126 2001-11-16 15:44:31 srittau Exp $
+dnl $Id: configure.in,v 1.126.2.1 2001-11-17 23:43:01 srittau Exp $
 dnl configure.in for netatalk
 
 AC_INIT(bin/adv1tov2/adv1tov2.c)
@@ -261,20 +261,26 @@ fi
 CFLAGS="$CFLAGS $DB3_CFLAGS"
 LIBS="$LIBS $DB3_LIBS"
 
+dnl Determine DID scheme
+AC_MSG_CHECKING([for DID scheme to use])
 AC_ARG_WITH(did,
        [  --with-did=SCHEME       set DID scheme (last,mtab)],
-       if test "x$withval" != "xno" ; then
-               if test "$withval" = "last"; then
-                       AC_DEFINE(USE_LASTDID, 1)
-                       AC_MSG_RESULT([enabling build without DID dev/inode mapping kludge])
-               fi
-               if test "$withval" = "mtab"; then
-                       AC_DEFINE(DID_MTAB, 1)
-                       AC_MSG_RESULT([enabling mtab-based DID creation support])
-               fi
-       fi
+       [ did_scheme="$withval" ],
+       [ did_scheme="last" ]
 )
 
+if test "x$did_scheme" = "xlast"; then
+       AC_DEFINE(USE_LASTDID, 1)
+       AC_MSG_RESULT([no DID dev/inode mapping kludge])
+elif test "x$did_scheme" = "xmtab"; then
+       AC_DEFINE(DID_MTAB, 1)
+       AC_MSG_RESULT([mtab-based DID creation support])
+elif test "x$did_scheme" != "xno"; then
+       AC_MSG_RESULT([default])
+else
+       AC_MSG_ERROR([unknown DID scheme])
+fi
+
 msg_dir=""
 AC_ARG_WITH(message-dir,
        [  --with-message-dir=PATH path to message files [[PKGCONF/msg]]],