X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=configure.ac;h=cdeb3bf473217d6f21c52faa710c8ccad1b6706e;hb=f5461e304cf4a9a7be2cd8d6710f565996f7b567;hp=c60140bb729735d457a901e7c2ad87835f3f2877;hpb=7d31c8176c1bec6ee5bcd981ce577ae2c6e48fdd;p=chaz%2Ftar diff --git a/configure.ac b/configure.ac index c60140b..cdeb3bf 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, 2003 Free Software Foundation, Inc. +# 2002, 2003, 2004 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 @@ -18,7 +18,7 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. -AC_INIT([GNU tar], [1.13.92], [bug-tar@gnu.org]) +AC_INIT([GNU tar], [1.13.94], [bug-tar@gnu.org]) AC_CONFIG_SRCDIR([src/tar.c]) AC_CONFIG_AUX_DIR([config]) AC_CONFIG_HEADERS([config.h:config.hin]) @@ -37,7 +37,7 @@ AC_CHECK_HEADERS(fcntl.h linux/fd.h memory.h net/errno.h \ sgtty.h string.h \ sys/buf.h sys/device.h sys/gentape.h \ sys/inet.h sys/io/trioctl.h \ - sys/mtio.h sys/tprintf.h sys/tape.h \ + sys/mtio.h sys/time.h sys/tprintf.h sys/tape.h \ unistd.h) AC_HEADER_SYS_WAIT @@ -114,10 +114,12 @@ gl_FUNC_MKTIME gl_FUNC_RMDIR gl_FUNC_STRTOL gl_FUNC_STRTOUL +gl_FUNC_STRTOULL gl_FUNC_STRTOIMAX gl_FUNC_STRTOUMAX gl_GETDATE gl_GETOPT +gl_GETTIME gl_HASH gl_HUMAN gl_MODECHANGE @@ -131,6 +133,7 @@ gl_SAVE_CWD gl_SAVEDIR gl_STRCASE gl_TIME_R +gl_TIMESPEC gl_XALLOC gl_XGETCWD gl_XSTRTOL @@ -149,7 +152,7 @@ AC_CHECK_MEMBERS([struct stat.st_spare1, struct stat.st_atim.tv_nsec, struct sta [ #include #include ]) - + # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* # programs in the package would end up linked with that potentially-shared # library, inducing unnecessary run-time overhead. @@ -170,6 +173,7 @@ AC_CHECK_FUNCS(fsync lstat mkfifo readlink strerror symlink setlocale utimes) AC_CHECK_DECLS([getgrgid],,, [#include ]) AC_CHECK_DECLS([getpwuid],,, [#include ]) AC_CHECK_DECLS([valloc]) +AC_CHECK_DECLS([time],,, [#include ]) # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary. tar_save_LIBS=$LIBS @@ -220,7 +224,7 @@ if test -z "$DEFAULT_ARCHIVE_FORMAT"; then DEFAULT_ARCHIVE_FORMAT="GNU" fi case $DEFAULT_ARCHIVE_FORMAT in - V7|OLDGNU|POSIX|GNU) ;; + V7|OLDGNU|USTAR|POSIX|GNU) ;; *) AC_MSG_ERROR(Invalid format name);; esac AC_DEFINE_UNQUOTED(DEFAULT_ARCHIVE_FORMAT, ${DEFAULT_ARCHIVE_FORMAT}_FORMAT, @@ -272,6 +276,18 @@ AC_MSG_RESULT($DEFAULT_BLOCKING) AM_GNU_GETTEXT([external], [need-ngettext]) AM_GNU_GETTEXT_VERSION(0.12.1) +# Iconv +AM_ICONV +AC_CHECK_HEADERS(iconv.h) +AC_CHECK_TYPE(iconv_t,:, + AC_DEFINE(iconv_t, int, + [Conversion descriptor type]), + [ +#ifdef HAVE_ICONV_H +# include +#endif +]) + AC_OUTPUT([Makefile\ doc/Makefile\ lib/Makefile\