Skip to content

Commit 59f8674

Browse files
BenabikJunio C Hamano
authored andcommitted
Move Fink and Ports check to after config file
Putting NO_FINK or NO_DARWIN_PORTS in config.mak is ignored because the checks are done before the config is included. Signed-off-by: Brian Gernhardt <benji@silverinsanity.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 9abd46a commit 59f8674

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

Makefile

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -334,18 +334,6 @@ ifeq ($(uname_S),Darwin)
334334
NEEDS_SSL_WITH_CRYPTO = YesPlease
335335
NEEDS_LIBICONV = YesPlease
336336
NO_STRLCPY = YesPlease
337-
ifndef NO_FINK
338-
ifeq ($(shell test -d /sw/lib && echo y),y)
339-
BASIC_CFLAGS += -I/sw/include
340-
BASIC_LDFLAGS += -L/sw/lib
341-
endif
342-
endif
343-
ifndef NO_DARWIN_PORTS
344-
ifeq ($(shell test -d /opt/local/lib && echo y),y)
345-
BASIC_CFLAGS += -I/opt/local/include
346-
BASIC_LDFLAGS += -L/opt/local/lib
347-
endif
348-
endif
349337
endif
350338
ifeq ($(uname_S),SunOS)
351339
NEEDS_SOCKET = YesPlease
@@ -423,6 +411,21 @@ endif
423411
-include config.mak.autogen
424412
-include config.mak
425413

414+
ifeq ($(uname_S),Darwin)
415+
ifndef NO_FINK
416+
ifeq ($(shell test -d /sw/lib && echo y),y)
417+
BASIC_CFLAGS += -I/sw/include
418+
BASIC_LDFLAGS += -L/sw/lib
419+
endif
420+
endif
421+
ifndef NO_DARWIN_PORTS
422+
ifeq ($(shell test -d /opt/local/lib && echo y),y)
423+
BASIC_CFLAGS += -I/opt/local/include
424+
BASIC_LDFLAGS += -L/opt/local/lib
425+
endif
426+
endif
427+
endif
428+
426429
ifdef WITH_OWN_SUBPROCESS_PY
427430
PYMODULES += compat/subprocess.py
428431
else

0 commit comments

Comments
 (0)