andre@3: #! gmake andre@3: # andre@3: # This Source Code Form is subject to the terms of the Mozilla Public andre@3: # License, v. 2.0. If a copy of the MPL was not distributed with this andre@3: # file, You can obtain one at http://mozilla.org/MPL/2.0/. andre@3: andre@3: # andre@3: # These macros are defined by mozilla's configure script. andre@3: # We define them manually here. andre@3: # andre@3: andre@3: DEFINES += -DSTDC_HEADERS -DHAVE_STRERROR andre@3: andre@3: # andre@3: # Most platforms have snprintf, so it's simpler to list the exceptions. andre@3: # andre@3: HAVE_SNPRINTF = 1 andre@3: # andre@3: # OSF1 V4.0D doesn't have snprintf but V5.0A does. andre@3: # andre@3: ifeq ($(OS_TARGET)$(OS_RELEASE),OSF1V4.0D) andre@3: HAVE_SNPRINTF = andre@3: endif andre@3: ifdef HAVE_SNPRINTF andre@3: DEFINES += -DHAVE_SNPRINTF andre@3: endif andre@3: andre@3: ifeq (,$(filter-out IRIX Linux,$(OS_TARGET))) andre@3: DEFINES += -DHAVE_SYS_CDEFS_H andre@3: endif andre@3: andre@3: ifeq (,$(filter-out DGUX NCR ReliantUNIX SCO_SV SCOOS UNIXWARE,$(OS_TARGET))) andre@3: DEFINES += -DHAVE_SYS_BYTEORDER_H andre@3: endif andre@3: andre@3: # andre@3: # None of the platforms that we are interested in need to andre@3: # define HAVE_MEMORY_H. andre@3: #