Browse Source

adjusted the position of AC_CHECK_DECL

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac251@2251 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 15 years ago
parent
commit
078d183c41
1 changed files with 4 additions and 3 deletions
  1. 4 3
      configure.ac

+ 4 - 3
configure.ac

@@ -11,12 +11,13 @@ AC_CONFIG_HEADERS([config.h])
 AC_PROG_CXX
 AC_PROG_CXX
 AC_PROG_LIBTOOL
 AC_PROG_LIBTOOL
 
 
+# Use C++ language
+AC_LANG([C++])
+
+# Identify the compiler: this check must be after AC_PROG_CXX and AC_LANG.
 AM_CONDITIONAL(USE_GXX, test "X${GXX}" = "Xyes")
 AM_CONDITIONAL(USE_GXX, test "X${GXX}" = "Xyes")
 AC_CHECK_DECL([__SUNPRO_CC], [SUNCXX="yes"], [SUNCXX="no"])
 AC_CHECK_DECL([__SUNPRO_CC], [SUNCXX="yes"], [SUNCXX="no"])
 
 
-# Use C++ language
-AC_LANG_CPLUSPLUS
-
 # OS dependent compiler flags
 # OS dependent compiler flags
 case "$host" in
 case "$host" in
 *-solaris*)
 *-solaris*)