X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=configure.ac;h=ebcb8c9138061aa1d8e02f115c3bb0872bda188a;hb=07286647fb7446a62e8690675797ba7426b0758b;hp=28bef09c2cda97c470f23de1a3400f50e207312e;hpb=c3440ae0c965a6f90f659e8e40f8b249cb64042b;p=chaz%2Ftar diff --git a/configure.ac b/configure.ac index 28bef09..ebcb8c9 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ # Configure template for GNU tar. -# Copyright (C) 1991, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 -# Free Software Foundation, Inc. +# Copyright (C) 1991, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, +# 2002, 2003 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,10 +25,8 @@ AC_CONFIG_HEADERS([config.h:config.hin]) AC_PREREQ([2.57]) AM_INIT_AUTOMAKE([1.7.5 gnits dist-bzip2 dist-shar]) -AC_GNU_SOURCE +gl_USE_SYSTEM_EXTENSIONS AC_PROG_CC -AC_AIX -AC_MINIX AC_EXEEXT AC_PROG_RANLIB AC_SYS_LARGEFILE @@ -201,6 +199,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