]> granicus.if.org Git - neomutt/commitdiff
build: drop two more obsolete m4 scripts (#477)
authorPietro Cerutti <gahr@gahr.ch>
Fri, 17 Mar 2017 14:40:08 +0000 (14:40 +0000)
committerRichard Russon <rich@flatcap.org>
Fri, 17 Mar 2017 14:40:08 +0000 (14:40 +0000)
configure.ac
m4/funcs.m4 [deleted file]
m4/types.m4 [deleted file]

index bb9f59dc4a60ebb68b48834bffcf7166be49d9e3..0df4116ec645967b1e760081b0d6e8895d828503 100644 (file)
@@ -120,7 +120,6 @@ AH_BOTTOM([/* fseeko portability defines */
 # define OFF_T_FMT "%ld"
 #endif
 ])
-MUTT_C99_INTTYPES
 AC_TYPE_LONG_LONG_INT
 
 ac_aux_path_sendmail=/usr/sbin:/usr/lib
@@ -519,8 +518,6 @@ if test $ac_cv_func_getopt = yes; then
        AC_CHECK_HEADERS(getopt.h)
 fi
 
-XIPH_FUNC_VA_COPY
-
 dnl SCO uses chsize() instead of ftruncate()
 AC_CHECK_FUNCS(ftruncate, , [AC_CHECK_LIB(x, chsize)])
 
diff --git a/m4/funcs.m4 b/m4/funcs.m4
deleted file mode 100644 (file)
index d7157f3..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-dnl XIPH_ macros are GPL, from http://svn.xiph.org/icecast/trunk/m4
-dnl
-# XIPH_FUNC_VA_COPY
-# Test for implementation of va_copy, or define appropriately if missing
-AC_DEFUN([XIPH_FUNC_VA_COPY],
-[dnl
-AC_MSG_CHECKING([for va_copy])
-AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; va_copy(ap1, ap2);],
-  AC_MSG_RESULT([va_copy]),
-  [dnl
-  AH_TEMPLATE([va_copy], [define if va_copy is not available])
-  AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; __va_copy(ap1, ap2);],
-    [dnl
-    AC_DEFINE([va_copy], [__va_copy])
-    AC_MSG_RESULT([__va_copy])],
-    [dnl
-    AC_DEFINE([va_copy(dest,src)], [memcpy(&dest,&src,sizeof(va_list))])
-    AC_MSG_RESULT([memcpy])
-    ])
-  ])
-])
-])dnl XIPH_FUNC_VA_COPY
diff --git a/m4/types.m4 b/m4/types.m4
deleted file mode 100644 (file)
index e9aa116..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-dnl types.m4
-dnl macros for type checks not covered by autoconf
-
-dnl MUTT_C99_INTTYPES
-dnl Brendan Cully
-dnl
-# MUTT_C99_INTTYPES
-# Check for C99 integer type definitions, or define if missing
-AC_DEFUN([MUTT_C99_INTTYPES],
-[dnl
-AC_CHECK_HEADERS([inttypes.h])
-AC_CHECK_TYPE([uint32_t],
-  [AC_DEFINE(HAVE_C99_INTTYPES, 1, [Define if you have the C99 integer types])])
-AC_CHECK_SIZEOF(short)
-AC_CHECK_SIZEOF(int)
-AC_CHECK_SIZEOF(long)
-AC_CHECK_SIZEOF(long long)])
-AH_VERBATIM([X_HAVE_C99_INTTYPES],
-  [#ifndef HAVE_C99_INTTYPES
-#  if SIZEOF_SHORT == 4
-typedef unsigned short uint32_t;
-#  elif SIZEOF_INT == 4
-typedef unsigned int uint32_t;
-#  elif SIZEOF_LONG == 4
-typedef unsigned long uint32_t;
-#  endif
-#  if SIZEOF_INT == 8
-typedef unsigned int uint64_t;
-#  elif SIZEOF_LONG == 8
-typedef unsigned long uint64_t;
-#  elif SIZEOF_LONG_LONG == 8
-typedef unsigned long long uint64_t;
-#  endif
-#endif
-  ])