exit 1;; \
esac; \
am__has_opt=no; \
+ am__flags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
-## GNU make: $(MAKEFLAGS) is quite tricky there, while the older variable
-## $(MFLAGS) behaves much better. So use the latter.
- for am__flg in $$MFLAGS; do \
- case $$am__flg in \
- *=*|--*) ;; \
- -*$$am__target_option*) am__has_opt=yes; break;; \
- esac; \
- done; \
+## The format of $(MAKEFLAGS) is quite tricky with GNU make; the
+## variable $(MFLAGS) behaves much better in that regard. So use it.
+ am__flags=$$MFLAGS; \
else \
## Non-GNU make: we must rely on $(MAKEFLAGS). This is tricker and more
## brittle, but is the best we can do.
am__bs=\\; \
am__flags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$am__bs$$am__bs[$$am__bs $$am__bs ]*//g"`;; \
- *) \
- am__flags=$$MAKEFLAGS;; \
esac; \
- am__skip_next=no; \
- for am__flg in $$am__flags; do \
- if test $$am__skip_next = yes; then \
- am__skip_next=no; \
- continue; \
- fi; \
- case $$am__flg in \
- *=*|--*) ;; \
+ fi; \
+ am__skip_next=no; \
+ for am__flg in $$am__flags; do \
+ if test $$am__skip_next = yes; then \
+ am__skip_next=no; \
+ continue; \
+ fi; \
+ case $$am__flg in \
+ *=*|--*) ;; \
## Quite ugly special-casing. We might need other similar ones actually,
## but let's wait until the need arises.
- -I) am__skip_next=yes;; \
- *$$am__target_option*) am__has_opt=yes; break;; \
- esac; \
- done;\
- fi; \
+ -I) am__skip_next=yes;; \
+ *$$am__target_option*) am__has_opt=yes; break;; \
+ esac; \
+ done;\
unset am__skip_next am__flg am__flags am__target_option; \
test $$am__has_opt = yes; \
}