Skip doing checks for some very common headers draft
authorTed Mielczarek <ted@mielczarek.org>
Wed, 20 Sep 2017 12:01:08 -0400
changeset 668602 cecd1dce4eeb2344e5a2777d2801bd4727ed8bb3
parent 668601 b97f8df825b55f7464916d42890b900651d18f6e
child 668603 c08fd8dfa9ca87d7464da500ab110be53469645d
push id81087
push userbmo:ted@mielczarek.org
push dateThu, 21 Sep 2017 20:59:05 +0000
milestone57.0a1
Skip doing checks for some very common headers MozReview-Commit-ID: 4UnNwkGeHnX
build/moz.configure/headers.configure
--- a/build/moz.configure/headers.configure
+++ b/build/moz.configure/headers.configure
@@ -1,30 +1,29 @@
 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
 # vim: set filetype=python:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
-# Check for headers defining standard int types.
-check_header('stdint.h')
-have_inttypes = check_header('inttypes.h')
+set_define('HAVE_STDINT_H', True)
 
 # Assume we have ansi C header files available.
 set_define('STDC_HEADERS', True)
 
-set_config('HAVE_INTTYPES_H', have_inttypes)
+set_define('HAVE_INTTYPES_H', True)
+set_config('HAVE_INTTYPES_H', True)
 
 building_linux = depends(target)(lambda target: target.kernel == 'Linux')
 
-have_malloc = check_header('malloc.h')
+set_define('HAVE_MALLOC_H', True)
 
 check_header('alloca.h')
 
-add_old_configure_assignment('HAVE_MALLOC_H', have_malloc)
+add_old_configure_assignment('HAVE_MALLOC_H', True)
 
 check_headers(
     'sys/byteorder.h',
     'getopt.h',
     'unistd.h',
     'nl_types.h',
     'cpuid.h',
     when=non_msvc_compiler,