X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=Makefile.common;h=455f5a47061d8b4ee18ca9701764931983a60628;hp=30be60ead65f4a9f89626ccd1e2ff1a4ef7a2e80;hb=3d86a3b402ae495cddcc5999c5bdd7fe6f586d53;hpb=fe6d36c16c61c855fc3b0c0c7c07f3cf3de4241d diff --git a/Makefile.common b/Makefile.common index 30be60e..455f5a4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -5,7 +5,11 @@ DARWIN_LIBC=$(shell file /usr/lib/libc.dylib) OS_AIX=$(shell expr "$(UNAME)" : '.*AIX.*') OS_SUNOS=$(shell expr "$(UNAME)" : '.*SunOS.*') OS_DARWIN=$(shell expr "$(UNAME)" : '.*Darwin.*') -OS_DARWIN64=$(shell expr "$(DARWIN_LIBC)" : '.*x86_64.*') +ifneq ($(OS_DARWIN),0) + OS_DARWIN64=$(shell expr match "$(DARWIN_LIBC)" '.*x86_64.*') +else + OS_DARWIN64=0 +endif OS_CYGWIN=$(shell expr "$(UNAME)" : '.*CYGWIN.*') OS_LINUX=$(shell expr "$(UNAME)" : '.*Linux.*') OS_LINUX64=$(shell expr "$(UNAME_A)" : '.*Linux.*x86_64.*')