Skip to content

Commit 6ee8054

Browse files
committed
Merge pull request osm2pgsql-dev#400 from pnorman/no_extensions
Prefer c++11 over gnu++11
2 parents 9e57c2d + a1c6404 commit 6ee8054

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

configure.ac

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,9 @@ AC_USE_SYSTEM_EXTENSIONS
2323
AC_HEADER_SYS_WAIT
2424
AC_FUNC_MMAP
2525

26-
dnl Find C compiler
27-
dnl AC_PROG_CC_C99
28-
2926
dnl Find C++ compiler
3027
AC_PROG_CXX
31-
AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
32-
if test "$HAVE_CXX" = "no"
33-
then
34-
AC_MSG_ERROR([Could not find a c++ compiler]);
35-
fi
28+
AX_CXX_COMPILE_STDCXX_11([noext],[mandatory])
3629

3730
AX_CFLAGS_WARN_ALL
3831
AX_CXXFLAGS_WARN_ALL
@@ -110,8 +103,6 @@ then
110103
AC_MSG_ERROR([One or more of the mandatory Boost libraries not found.])
111104
fi
112105

113-
AX_CXX_COMPILE_STDCXX_11()
114-
115106
dnl Check for Lua libraries and headers
116107
AX_PROG_LUA([5.0],[],[
117108
AX_LUA_HEADERS([

0 commit comments

Comments
 (0)