diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-22 03:49:41 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-22 03:49:41 +0000 |
commit | a30c7a43dc8a4ec76d36bae1481901b4cf231646 (patch) | |
tree | 5a2740b164d02c91761b852a2204a3c435adc0d9 /funcs | |
parent | b96d2f1d4252eb8edf4e03b262d5b456da5c8917 (diff) |
don't try to build func_odbc when ODBC headers/libraries are not present
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7589 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/funcs/Makefile b/funcs/Makefile index cb948a3bd..aa11c2059 100644 --- a/funcs/Makefile +++ b/funcs/Makefile @@ -25,7 +25,13 @@ BUILTINS=func_md5.o \ func_language.o \ func_moh.o -STANDALONE_FUNCS=$(filter-out $(BUILTINS),$(patsubst %.c,%.o,$(wildcard func*.c))) +AVAILABLE_FUNCS=$(filter-out $(BUILTINS),$(patsubst %.c,%.o,$(wildcard func*.c))) + +ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/odbcinst.h),) + STANDALONE_FUNCS=$(filter-out func_odbc.o,$(AVAILABLE_FUNCS)) +else + STANDALONE_FUNCS=$(AVAILABLE_FUNCS) +endif FUNCS+=$(STANDALONE_FUNCS:.o=.so) |