331 $(ECHO) "WARNING: This machine appears to only have $(MB_OF_MEMORY)Mb of physical memory, \n" \ 332 " builds on this machine could be slow. \n" \ 333 "" >> $(WARNING_FILE) ; \ 334 fi 335 336 ###################################################### 337 # Check the locale (value of LC_ALL, not being empty or ==C can be a problem) 338 ###################################################### 339 sane-locale: 340 ifneq ($(PLATFORM), windows) 341 @if [ "$(LC_ALL)" != "" -a "$(LC_ALL)" != "C" ]; then \ 342 $(ECHO) "WARNING: LC_ALL has been set to $(LC_ALL), this can cause build failures. \n" \ 343 " Try setting LC_ALL to 'C'. \n" \ 344 "" >> $(WARNING_FILE) ; \ 345 fi 346 @if [ "$(LANG)" != "" -a "$(LANG)" != "C" ]; then \ 347 $(ECHO) "WARNING: LANG has been set to $(LANG), this can cause build failures. \n" \ 348 " Try setting LANG to 'C'. \n" \ 349 "" >> $(WARNING_FILE) ; \ 350 fi 351 endif 352 353 ###################################################### 354 # Check the Windows cygwin version 355 ###################################################### 356 ifeq ($(PLATFORM), windows) 357 CYGWIN_CHECK :=$(call CheckVersions,$(CYGWIN_VER),$(REQUIRED_CYGWIN_VER)) 358 sane-cygwin: 359 ifdef USING_CYGWIN 360 ifeq ($(CYGWIN_CHECK),missing) 361 @$(call OfficialErrorMessage,CYGWIN version,$(CYGWIN_VER),$(REQUIRED_CYGWIN_VER)) 362 endif 363 ifeq ($(CYGWIN_CHECK),older) 364 @$(call OfficialWarningMessage,CYGWIN version,$(CYGWIN_VER),$(REQUIRED_CYGWIN_VER)) 365 endif 366 endif 367 endif 368 369 ###################################################### 370 # Check the cygwin shell is used, not cmd.exe 371 ###################################################### 372 ifeq ($(PLATFORM), windows) | 331 $(ECHO) "WARNING: This machine appears to only have $(MB_OF_MEMORY)Mb of physical memory, \n" \ 332 " builds on this machine could be slow. \n" \ 333 "" >> $(WARNING_FILE) ; \ 334 fi 335 336 ###################################################### 337 # Check the locale (value of LC_ALL, not being empty or ==C can be a problem) 338 ###################################################### 339 sane-locale: 340 ifneq ($(PLATFORM), windows) 341 @if [ "$(LC_ALL)" != "" -a "$(LC_ALL)" != "C" ]; then \ 342 $(ECHO) "WARNING: LC_ALL has been set to $(LC_ALL), this can cause build failures. \n" \ 343 " Try setting LC_ALL to 'C'. \n" \ 344 "" >> $(WARNING_FILE) ; \ 345 fi 346 @if [ "$(LANG)" != "" -a "$(LANG)" != "C" ]; then \ 347 $(ECHO) "WARNING: LANG has been set to $(LANG), this can cause build failures. \n" \ 348 " Try setting LANG to 'C'. \n" \ 349 "" >> $(WARNING_FILE) ; \ 350 fi 351 ifeq ($(PLATFORM), macosx) 352 @if [ "$(LANG)" = "" ]; then \ 353 $(ECHO) "ERROR: LANG must be set on Mac OS X. Recommended value is \"C\"" >> $(ERROR_FILE) ; \ 354 fi 355 endif 356 endif 357 358 359 ###################################################### 360 # Check the Windows cygwin version 361 ###################################################### 362 ifeq ($(PLATFORM), windows) 363 CYGWIN_CHECK :=$(call CheckVersions,$(CYGWIN_VER),$(REQUIRED_CYGWIN_VER)) 364 sane-cygwin: 365 ifdef USING_CYGWIN 366 ifeq ($(CYGWIN_CHECK),missing) 367 @$(call OfficialErrorMessage,CYGWIN version,$(CYGWIN_VER),$(REQUIRED_CYGWIN_VER)) 368 endif 369 ifeq ($(CYGWIN_CHECK),older) 370 @$(call OfficialWarningMessage,CYGWIN version,$(CYGWIN_VER),$(REQUIRED_CYGWIN_VER)) 371 endif 372 endif 373 endif 374 375 ###################################################### 376 # Check the cygwin shell is used, not cmd.exe 377 ###################################################### 378 ifeq ($(PLATFORM), windows) |