From 29af62077d5c47671a897c201624ea22e0abbd0b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 31 Jan 2002 19:33:52 +0000 Subject: [PATCH] Update from mainline. --- scripts/cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/cpp b/scripts/cpp index 4a62f1e5ae1..24112c663c0 100755 --- a/scripts/cpp +++ b/scripts/cpp @@ -1,8 +1,9 @@ #! /bin/sh cpp=`which cpp 2>/dev/null` if test $? -ne 0; then - cpp=`type cpp 2>/dev/null | awk '{ print $NF }'` - if test $? -ne 0; then + if type cpp 2>/dev/null >/dev/null; then + cpp=`type cpp 2>/dev/null | awk '{ print $NF }'` + else cpp=`gcc -print-file-name=cpp 2>/dev/null` if test $? -ne 0; then if test -x /lib/cpp; then -- 2.47.2