[ragel] [PATCH 1/1] Don't hard-code gcc

Heiko Becker heirecka at exherbo.org
Fri May 5 13:36:39 UTC 2017


It's already searched for via AC_PROG_CC, so gcc only needs to be
replaced with CC. Helpful if gcc has a prefix based on the
architecture, for example.

Signed-off-by: Heiko Becker <heirecka at exherbo.org>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index b86da8c..e865ce9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -117,8 +117,8 @@ cat > conftest.m <<EOF
 int main() { return 0; }
 EOF
 GOBJC=""
-if gcc -x objective-c conftest.m -o conftest.bin 2>/dev/null; then
-	GOBJC="gcc -x objective-c"
+if "$CC" -x objective-c conftest.m -o conftest.bin 2>/dev/null; then
+	GOBJC="$CC -x objective-c"
 	AC_MSG_RESULT([yes])
 else
 	AC_MSG_RESULT([no])
-- 
2.12.2





More information about the ragel-users mailing list