This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] Fix obsolete autoconf macros in configure.ac


The gcc configure.ac script is using an obsolete form of the AC_CHECK_TYPE
autoconf macro to check for caddr_t and ssize_t. 

http://www.gnu.org/software/autoconf/manual/autoconf-2.60/html_node/Obsolete-Macros.html#Obsolete-Macros

This usage is causing a build failure for me when building a windows GCC
using the mingw toolset.

I would like to replace the obsolete autoconf macros with a 'proper' one.
Tested with my mingw build and a MIPS targetted linux build.

OK to checkin?

Steve Ellcey
sellcey@mips.com



2014-04-23  Steve Ellcey  <sellcey@mips.com>

	* configure.ac (caddr_t, ssize_t): Use AC_CHECK_TYPES instead
	of obsolete form of AC_CHECK_TYPE.
	* configure: Regenerate.


diff --git a/gcc/configure.ac b/gcc/configure.ac
index d789557..98acb1b 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -1083,8 +1083,8 @@ int main()
   fi
 fi
 
-AC_CHECK_TYPE(ssize_t, int)
-AC_CHECK_TYPE(caddr_t, char *)
+AC_CHECK_TYPES([ssize_t])
+AC_CHECK_TYPES([caddr_t])
 
 GCC_AC_FUNC_MMAP_BLACKLIST
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]