aboutsummaryrefslogtreecommitdiffstats
path: root/mk/Autoconf.mk
diff options
context:
space:
mode:
authorkraxel <kraxel>2008-06-09 14:56:36 +0000
committerkraxel <kraxel>2008-06-09 14:56:36 +0000
commit8dae03a9fefea29e94a8e97f461260522274164a (patch)
tree6d64ea89536eb6a0d7a2f0a71a6d9f9bb31ad397 /mk/Autoconf.mk
parentadbf9e28624a774ba5e488bf7a231dcfb5e2aff6 (diff)
downloadfbida-8dae03a9fefea29e94a8e97f461260522274164a.tar.gz
- fix build error.
- build system updates. - bump version for release.
Diffstat (limited to 'mk/Autoconf.mk')
-rw-r--r--mk/Autoconf.mk19
1 files changed, 18 insertions, 1 deletions
diff --git a/mk/Autoconf.mk b/mk/Autoconf.mk
index 65cd915..27eeb32 100644
--- a/mk/Autoconf.mk
+++ b/mk/Autoconf.mk
@@ -47,6 +47,11 @@ ac_uname = $(shell \
$(call ac_s_cmd,uname -s | tr 'A-Z' 'a-z');\
$(call ac_fini))
+ac_uname_arch = $(shell \
+ $(call ac_init,for arch);\
+ $(call ac_s_cmd,uname -m | tr 'A-Z' 'a-z');\
+ $(call ac_fini))
+
# check for some header file
# args: header file
ac_header = $(shell \
@@ -97,9 +102,14 @@ ac_binary = $(shell \
$(call ac_fini))
# check if lib64 is used
+#ac_lib64 = $(shell \
+# $(call ac_init,for libdir name);\
+# $(call ac_s_cmd,$(CC) -print-search-dirs | grep -q lib64 &&\
+# echo "lib64" || echo "lib");\
+# $(call ac_fini))
ac_lib64 = $(shell \
$(call ac_init,for libdir name);\
- $(call ac_s_cmd,$(CC) -print-search-dirs | grep -q lib64 &&\
+ $(call ac_s_cmd,/sbin/ldconfig -p | grep -q lib64 &&\
echo "lib64" || echo "lib");\
$(call ac_fini))
@@ -122,6 +132,13 @@ ac_pkg_config = $(shell \
$(call ac_b_cmd, pkg-config $(1));\
$(call ac_fini))
+# grep some file
+# args: regex, file
+ac_grep = $(shell \
+ $(call ac_init,for $(1) in $(2));\
+ $(call ac_b_cmd, grep -q $(1) $(2));\
+ $(call ac_fini))
+
########################################################################
# build Make.config