1From fc5c889131ff6270e1028cc7edd87e7f10a7da6d Mon Sep 17 00:00:00 2001 2From: Romain Naour <romain.naour@openwide.fr> 3Date: Thu, 22 Jan 2015 15:21:31 +0100 4Subject: [PATCH 2/6] configure: Don't use host CPP 5 6CPP is redefined if a cpp binary (/lib/cpp) is found on the host. 7 8Use the CPP="${CC} -E" allows to pass the following checks: 9Check if we can use asm code (for -DASMV) 10Check if compiler generates underlines (for -DASM_CRC) 11 12Signed-off-by: Romain Naour <romain.naour@openwide.fr> 13--- 14 unix/configure | 7 ------- 15 1 file changed, 7 deletions(-) 16 17diff --git a/unix/configure b/unix/configure 18index 4185fee..489009f 100644 19--- a/unix/configure 20+++ b/unix/configure 21@@ -122,13 +122,6 @@ fi 22 echo Check for the C preprocessor 23 # on SVR4, cc -E does not produce correct assembler files. Need /lib/cpp. 24 CPP="${CC} -E" 25-# solaris as(1) needs -P, maybe others as well ? 26-[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P" 27-[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp 28-[ -f /lib/cpp ] && CPP=/lib/cpp 29-[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp 30-[ -f /xenix ] && CPP="${CC} -E" 31-[ -f /lynx.os ] && CPP="${CC} -E" 32 33 echo "#include <stdio.h>" > conftest.c 34 $CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E" 35-- 361.9.3 37 38