| 1 |
Description: Switch to C++ before determining whether -std=c++14 is required |
| 2 |
Author: Santiago Vila <[email protected]> |
| 3 |
Bug-Debian: https://bugs.debian.org/1119738 |
| 4 |
Last-Update: 2025-12-07 |
| 5 |
|
| 6 |
--- a/configure.in |
| 7 |
+++ b/configure.in |
| 8 |
@@ -52,9 +52,6 @@ |
| 9 |
dnl output all warnings |
| 10 |
CXXFLAGS="-Wall $CXXFLAGS" |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
dnl use libtool |
| 16 |
AM_PROG_LIBTOOL |
| 17 |
|
| 18 |
@@ -62,6 +59,11 @@ |
| 19 |
AC_PROG_CPP |
| 20 |
AC_PROG_CXX |
| 21 |
|
| 22 |
+AC_LANG([C++]) |
| 23 |
+ |
| 24 |
+dnl Debian-specific: Enforce C++14 (not C++17) |
| 25 |
+AX_CHECK_COMPILE_FLAG([-std=c++14], [CXXFLAGS="$CXXFLAGS -std=c++14"]) |
| 26 |
+ |
| 27 |
dnl check for gcc 2.95.x |
| 28 |
AC_TRY_COMPILE([#include <unistd.h>],[ |
| 29 |
#if defined(__GNUC__) && \ |