aboutsummaryrefslogtreecommitdiffstats
path: root/mk/Autoconf.mk
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-06-01 09:18:46 +0200
committerGerd Hoffmann <kraxel@redhat.com>2011-06-01 09:18:46 +0200
commit7d7f952a0ad378da5a8f384867d1e4b5709e54d5 (patch)
treee97f0326956ce6282a91e72df5fcba42f7082b31 /mk/Autoconf.mk
parentb615a1555ea2f1e751bee5a042d4433245330cf0 (diff)
downloadfbida-7d7f952a0ad378da5a8f384867d1e4b5709e54d5.tar.gz
makefile update
Diffstat (limited to 'mk/Autoconf.mk')
-rw-r--r--mk/Autoconf.mk3
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