if both "$CPP" (from parent) and "$CC -E" fail, try "cpp" (from $PATH) and
"/usr/libexec/cpp" and "/lib/cpp" last
This commit is contained in:
		
							
								
								
									
										4
									
								
								Build.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Build.sh
									
									
									
									
									
								
							| @@ -1,5 +1,5 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
| # $MirOS: src/bin/mksh/Build.sh,v 1.120 2007/01/17 17:12:43 tg Exp $ | # $MirOS: src/bin/mksh/Build.sh,v 1.121 2007/01/17 17:14:25 tg Exp $ | ||||||
| #- | #- | ||||||
| # Environment: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF | # Environment: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF | ||||||
| # With -x (cross compile): TARGET_OS (default: uname -s) | # With -x (cross compile): TARGET_OS (default: uname -s) | ||||||
| @@ -348,7 +348,7 @@ if test 1 = $NEED_MKSH_SIGNAME; then | |||||||
| 	$e "... checking how to run the C Preprocessor" | 	$e "... checking how to run the C Preprocessor" | ||||||
| 	rm -f x | 	rm -f x | ||||||
| 	save_CPP=$CPP | 	save_CPP=$CPP | ||||||
| 	for i in "$save_CPP" "$CC -E"; do | 	for i in "$save_CPP" "$CC -E" "cpp" "/usr/libexec/cpp" "/lib/cpp"; do | ||||||
| 		CPP=$i | 		CPP=$i | ||||||
| 		test x"$CPP" = x"false" && continue | 		test x"$CPP" = x"false" && continue | ||||||
| 		( ( echo '#if (23 * 2 - 2) == (fnord + 2)' | 		( ( echo '#if (23 * 2 - 2) == (fnord + 2)' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user