mirror of https://gitee.com/Nocallback/glibc.git
Browse Source
* sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls. * scripts/cpp: New file.cvs/glibc-2-2-branch
3 changed files with 25 additions and 2 deletions
@ -0,0 +1,21 @@ |
|||
#! /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 |
|||
cpp=`gcc -print-file-name=cpp 2>/dev/null` |
|||
if test $? -ne 0; then |
|||
if test -x /lib/cpp; then |
|||
cpp=/lib/cpp |
|||
else |
|||
echo "cpp not found" 1>&2 |
|||
exit 1 |
|||
fi |
|||
fi |
|||
fi |
|||
fi |
|||
|
|||
exec $cpp $* |
|||
Local Variables: |
|||
mode: sh |
|||
End: |
|||
Loading…
Reference in new issue