X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=configure.ac;h=4cd6c89a0184a49c67232c4f9ab00c30ad97ead3;hb=f3875c4a269a88121e5c1e72d3dc1a1fe545d2e8;hp=28bef09c2cda97c470f23de1a3400f50e207312e;hpb=c3440ae0c965a6f90f659e8e40f8b249cb64042b;p=chaz%2Ftar diff --git a/configure.ac b/configure.ac index 28bef09..4cd6c89 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,7 @@ 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 @@ -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