]> Dogcows Code - chaz/tar/commitdiff
Allow to redefine the default output format.
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 3 Sep 2003 11:02:38 +0000 (11:02 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 3 Sep 2003 11:02:38 +0000 (11:02 +0000)
configure.ac

index 5d94ce201c0117534a39ab1f0e389d07223d33c3..4cd6c89a0184a49c67232c4f9ab00c30ad97ead3 100644 (file)
@@ -201,6 +201,19 @@ else
     [Define to the full path of your rsh, if any.])
 fi
 
+AC_MSG_CHECKING(for default archive format)
+
+if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
+  DEFAULT_ARCHIVE_FORMAT="GNU"
+fi
+case $DEFAULT_ARCHIVE_FORMAT in
+  V7|OLDGNU|POSIX|GNU) ;;
+  *) AC_MSG_ERROR(Invalid format name);;
+esac
+AC_DEFINE_UNQUOTED(DEFAULT_ARCHIVE_FORMAT, ${DEFAULT_ARCHIVE_FORMAT}_FORMAT,
+  [By default produce archives of this format])
+AC_MSG_RESULT($DEFAULT_ARCHIVE_FORMAT)
+
 AC_MSG_CHECKING(for default archive)
 
 if test -z "$DEFAULT_ARCHIVE"; then
This page took 0.027142 seconds and 4 git commands to generate.