echo
echo "Initializing Automake:"
-# There's no C++ or Fortran in LZMA Utils:
-CXX=no
-F77=no
-
AM_INIT_AUTOMAKE([1.10 foreign tar-v7 filename-length-max=99])
AC_PROG_LN_S
+
+AC_PROG_CC_C99
+if test x$ac_cv_prog_cc_c99 = xno ; then
+ AC_MSG_ERROR([No C99 compiler was found.])
+fi
+
AM_PROG_CC_C_O
AM_PROG_AS
AC_USE_SYSTEM_EXTENSIONS
echo
echo "Initializing Libtool:"
+CXX=no
+F77=no
AC_PROG_LIBTOOL
# Checks for typedefs, structures, and compiler characteristics.
###############################################################################
-AC_C_INLINE
-AC_C_RESTRICT
+dnl We don't need these as long as we need a C99 compiler anyway.
+dnl AC_C_INLINE
+dnl AC_C_RESTRICT
AC_HEADER_STDBOOL
AC_CHECK_MEMBERS([struct stat.st_atim.tv_nsec, struct stat.st_mtim.tv_nsec,
struct stat.st_atimespec.tv_nsec, struct stat.st_mtimespec.tv_nsec])
-# It is very unlikely that you want to build liblzma without
-# large file support.
AC_SYS_LARGEFILE
-
-# At the moment, the only endian-dependent part should be the integrity checks.
AC_C_BIGENDIAN
-Wformat=2 \
-Wextra \
-Wall \
- -pedantic \
- -std=c99
+ -pedantic
do
AC_MSG_CHECKING([if $CC accepts $NEW_FLAG])
OLD_CFLAGS="$CFLAGS"