File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,22 +7,26 @@ AC_CONFIG_SRCDIR([configure.ac])
77AC_CONFIG_HEADERS ( [ config.h] )
88AC_CONFIG_MACRO_DIR ( [ config] )
99AM_INIT_AUTOMAKE ( [ subdir-objects foreign] )
10- AC_LANG_PUSH ( [ C++] )
10+ AC_LANG ( [ C++] )
1111
1212# Checks for programs.
1313AC_PROG_CXX
14+ AC_LANG_PUSH ( C )
1415AC_PROG_CC
16+ AC_LANG_POP ( C )
1517
1618# Checks for libraries.
1719
1820LT_INIT
1921AC_PROG_LIBTOOL
2022
21- # Check we have -std=c++11 support
22- AX_CXX_COMPILE_STDCXX_11 ( noext ,mandatory )
23-
23+ AC_LANG_PUSH ( C )
2424# Switch the C compiler into C99 mode
2525AC_PROG_CC_C99
26+ AC_LANG_POP ( C )
27+
28+ # Check we have -std=c++11 support
29+ AX_CXX_COMPILE_STDCXX_11 ( noext ,mandatory )
2630
2731# Checks for header files.
2832AC_CHECK_HEADERS ( [ arpa/inet.h stdint.h stdlib.h string.h] )
@@ -117,7 +121,8 @@ echo \
117121${PACKAGE_NAME} Version ${PACKAGE_VERSION}
118122
119123Prefix: '${prefix}'
120- Compiler: '${CXX} ${CXXFLAGS} ${CPPFLAGS}'
124+ C++ Compiler: '${CXX} ${CXXFLAGS} ${CPPFLAGS}'
125+ C Compiler: '${CC} ${CFLAGS} ${CPPFLAGS}'
121126Linker: '${LD} ${LDFLAGS} ${LIBS}'
122127
123128Now type 'make @<:@<target>@:>@'
You can’t perform that action at this time.
0 commit comments