diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-06-01 09:18:46 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-06-01 09:18:46 +0200 |
commit | 7d7f952a0ad378da5a8f384867d1e4b5709e54d5 (patch) | |
tree | e97f0326956ce6282a91e72df5fcba42f7082b31 /mk/Autoconf.mk | |
parent | b615a1555ea2f1e751bee5a042d4433245330cf0 (diff) | |
download | fbida-7d7f952a0ad378da5a8f384867d1e4b5709e54d5.tar.gz |
makefile update
Diffstat (limited to 'mk/Autoconf.mk')
-rw-r--r-- | mk/Autoconf.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/Autoconf.mk b/mk/Autoconf.mk index 27eeb32..7608ea5 100644 --- a/mk/Autoconf.mk +++ b/mk/Autoconf.mk @@ -85,11 +85,12 @@ ac_lib = $(shell \ # check if some compiler flag works # args: compiler flag ac_cflag = $(shell \ - $(call ac_init,if $(CC) supports $(1));\ + $(call ac_init,for $(CC) cflags);\ echo 'int main() {return 0;}' > __actest.c;\ $(call ac_b_cmd,$(CC) $(CFLAGS) $(1) $(LDFLAGS) -o \ __actest __actest.c);\ rm -f __actest __actest.c;\ + if test "$${rc}" = "yes"; then rc="$(1)"; else rc="$(2)"; fi;\ $(call ac_fini)) # check for some binary |