Skip to content

Commit b6dc904

Browse files
author
Sebastiano Merlino
committed
Simplifying configure.ac
Removed unused flag c++11. Removed check for presence of standard toolchain libs
1 parent 29c3c2c commit b6dc904

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

configure.ac

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,8 @@ esac
7171

7272
# Checks for header files.
7373
AC_HEADER_STDC
74-
AC_CHECK_HEADER([string],[],[AC_MSG_ERROR("C++ strings not found")])
75-
AC_CHECK_HEADER([vector],[],[AC_MSG_ERROR("C++ vector not found")])
76-
AC_CHECK_HEADER([map],[],[AC_MSG_ERROR("C++ map not found")])
77-
AC_CHECK_HEADER([algorithm],[],[AC_MSG_ERROR("C++ algorithm not found")])
78-
AC_CHECK_HEADER([istream],[],[AC_MSG_ERROR("C++ istream not found")])
79-
AC_CHECK_HEADER([sstream],[],[AC_MSG_ERROR("C++ sstream not found")])
80-
AC_CHECK_HEADER([iostream],[],[AC_MSG_ERROR("C++ iostream not found")])
8174
AC_CHECK_HEADER([stdint.h],[],[AC_MSG_ERROR("stdint.h not found")])
8275
AC_CHECK_HEADER([inttypes.h],[],[AC_MSG_ERROR("inttypes.h not found")])
83-
AC_CHECK_HEADER([stdlib.h],[],[AC_MSG_ERROR("stdlib.h not found")])
84-
AC_CHECK_HEADER([string.h],[],[AC_MSG_ERROR("cstring not found")])
85-
AC_CHECK_HEADER([stdio.h],[],[AC_MSG_ERROR("cstdio not found")])
8676
AC_CHECK_HEADER([errno.h],[],[AC_MSG_ERROR("errno.h not found")])
8777
AC_CHECK_HEADER([unistd.h],[],[AC_MSG_ERROR("unistd.h not found")])
8878
AC_CHECK_HEADER([ctype.h],[],[AC_MSG_ERROR("cctype not found")])
@@ -152,22 +142,6 @@ if test x"have_gnutls" = x"yes"; then
152142
AM_CFLAGS="$AM_CXXFLAGS -DHAVE_GNUTLS"
153143
fi
154144

155-
AC_MSG_CHECKING([whether to use c++0x std classes])
156-
AC_ARG_ENABLE([cpp11],
157-
[AS_HELP_STRING([--enable-cpp11],
158-
[enable c++11 std classes (def=no)])],
159-
[cpp11="$enableval"],
160-
[cpp11=no])
161-
AC_MSG_RESULT([$cpp11])
162-
163-
if test x"$cpp11" = x"yes"; then
164-
AC_DEFINE([CPP11],[],[c++11 Mode])
165-
AM_CXXFLAGS="$AM_CXXFLAGS -DUSE_CPP_11 --std=c++11"
166-
AM_CFLAGS="$AM_CXXFLAGS -DUSE_CPP_11 --std=c++11"
167-
else
168-
AC_DEFINE([NCPP11],[],[standard Mode])
169-
fi
170-
171145
DX_HTML_FEATURE(ON)
172146
DX_CHM_FEATURE(OFF)
173147
DX_CHI_FEATURE(OFF)
@@ -212,5 +186,4 @@ AC_MSG_NOTICE([Configuration Summary:
212186
License : LGPL only
213187
Debug : ${debugit}
214188
TLS Enabled : ${have_gnutls}
215-
C++11 : ${cpp11}
216189
])

0 commit comments

Comments
 (0)