# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
-AC_PREREQ(2.64)
+AC_PREREQ([2.71])
dnl when updating version also update LT_REVISION in m4/hooks.m4
-AC_INIT([GnuTLS], [3.8.8], [bugs@gnutls.org])
+AC_INIT([GnuTLS],[3.8.8],[bugs@gnutls.org])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIRS([m4 src/gl/m4 lib/unistring/m4])
AC_CANONICAL_HOST
#
# Require C99 support
-#
-AC_PROG_CC_C99
-if test "$ac_cv_prog_cc_c99" = "no"; then
- AC_MSG_WARN([[Compiler does not support C99. It may not be able to compile the project.]])
-fi
+#
+AS_CASE([$ac_prog_cc_stdc],
+ [c11 | c99], [AC_DEFINE([C99_MACROS], 1, [C99 macros are supported])],
+ [AC_MSG_WARN([[Compiler does not support C99. It may not be able to compile the project.]])]
+)
AM_CONDITIONAL(CROSS_COMPILING, test "$cross_compiling" = yes)
dnl C and C++ capabilities
AC_C_INLINE
-AC_HEADER_STDC
+# Autoupdate added the next two lines to ensure that your configure
+# script's behavior did not change. They are probably safe to remove.
+AC_CHECK_INCLUDES_DEFAULT
+AC_PROG_EGREP
+
# For the C++ code
AC_ARG_ENABLE(cxx,
GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
fi
- AC_MSG_CHECKING([whether C99 macros are supported])
- AC_TRY_COMPILE(,
- [
- #define test_mac(...)
- int z,y,x;
- test_mac(x,y,z);
- return 0;
- ], [
- AC_DEFINE([C99_MACROS], 1, [C99 macros are supported])
- AC_MSG_RESULT(yes)
- ], [
- AC_MSG_RESULT(no)
- AC_MSG_WARN([C99 macros not supported. This may affect compiling.])
- ])
-
ac_strict_der_time=yes
AC_MSG_CHECKING([whether to disable strict DER time encodings for backwards compatibility])
AC_ARG_ENABLE(strict-der-time,