Sun's shell: just different enough to cause problems
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 1 Mar 2006 17:57:43 +0000 (17:57 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 1 Mar 2006 17:57:43 +0000 (17:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11505 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/Makefile

index 39ddeaa..e679e68 100644 (file)
@@ -17,9 +17,15 @@ ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h $(CROSS_COMPILE_
   MODS:=$(filter-out func_odbc.so,$(MODS))
 endif
 
+ifeq ($(OSARCH),SunOS)
 ifneq ($(shell if [ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]; then echo "OK" ; fi),)
   CURLLIBS:=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
 endif
+else
+ifneq ($(shell if [[ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]]; then echo "OK" ; fi),)
+  CURLLIBS:=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
+endif
+endif
 
 ifeq (${CURLLIBS},)
   MODS:=$(filter-out func_curl.so,$(MODS))