wxWidgets/setup/rules/generic/needed
Robert Roebling bcf1fa6bb4 Added wxAccelerators (sort of)
Moved configure (once again)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-09-02 22:23:57 +00:00

25 lines
667 B
Plaintext

#SHELL=/bin/sh
MYGREP=$(WXBASEDIR)/setup/general/mygrep
checkneeds::
@if test "x$(NEEDED_DEFINES)" != x ; then \
RESULT=0 ; \
for each in $(NEEDED_DEFINES) xxx; do \
if test "$$each" != xxx ; then \
LINE=`cat $(SETUP_DIR)/wx_setup.h \
| sed "s/ /,/g" \
| $(MYGREP) ",$$each," \
| $(MYGREP) "#define" \
| $(MYGREP) "1" ` ; \
if test "x$$LINE" = x ; then \
(TMPVAR=`pwd`;\
TMPVAR=`dirname $$TMPVAR`;\
echo "$$each needed to compile "`basename $$TMPVAR`"...";\
);\
RESULT=1 ; \
fi; \
fi; \
done ;\
exit $$RESULT; \
fi