3131# Define EXPATDIR=/foo/bar if your expat header and library files are in
3232# /foo/bar/include and /foo/bar/lib directories.
3333#
34+ # Define HAVE_PATHS_H if you have paths.h and want to use the default PATH
35+ # it specifies.
36+ #
3437# Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent.
3538#
3639# Define NO_D_TYPE_IN_DIRENT if your platform defines DT_UNKNOWN but lacks
@@ -735,10 +738,12 @@ EXTLIBS =
735738ifeq ($(uname_S ) ,Linux)
736739 NO_STRLCPY = YesPlease
737740 NO_MKSTEMPS = YesPlease
741+ HAVE_PATHS_H = YesPlease
738742endif
739743ifeq ($(uname_S ) ,GNU/kFreeBSD)
740744 NO_STRLCPY = YesPlease
741745 NO_MKSTEMPS = YesPlease
746+ HAVE_PATHS_H = YesPlease
742747endif
743748ifeq ($(uname_S ) ,UnixWare)
744749 CC = cc
@@ -867,6 +872,7 @@ ifeq ($(uname_S),FreeBSD)
867872 NO_STRTOUMAX = YesPlease
868873 endif
869874 PYTHON_PATH = /usr/local/bin/python
875+ HAVE_PATHS_H = YesPlease
870876endif
871877ifeq ($(uname_S ) ,OpenBSD)
872878 NO_STRCASESTR = YesPlease
@@ -875,6 +881,7 @@ ifeq ($(uname_S),OpenBSD)
875881 NEEDS_LIBICONV = YesPlease
876882 BASIC_CFLAGS += -I/usr/local/include
877883 BASIC_LDFLAGS += -L/usr/local/lib
884+ HAVE_PATHS_H = YesPlease
878885endif
879886ifeq ($(uname_S ) ,NetBSD)
880887 ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
@@ -884,6 +891,7 @@ ifeq ($(uname_S),NetBSD)
884891 BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
885892 USE_ST_TIMESPEC = YesPlease
886893 NO_MKSTEMPS = YesPlease
894+ HAVE_PATHS_H = YesPlease
887895endif
888896ifeq ($(uname_S ) ,AIX)
889897 DEFAULT_PAGER = more
@@ -905,6 +913,7 @@ ifeq ($(uname_S),GNU)
905913 # GNU/Hurd
906914 NO_STRLCPY=YesPlease
907915 NO_MKSTEMPS = YesPlease
916+ HAVE_PATHS_H = YesPlease
908917endif
909918ifeq ($(uname_S ) ,IRIX)
910919 NO_SETENV = YesPlease
@@ -1354,6 +1363,10 @@ else
13541363 LIB_OBJS += thread-utils.o
13551364endif
13561365
1366+ ifdef HAVE_PATHS_H
1367+ BASIC_CFLAGS += -DHAVE_PATHS_H
1368+ endif
1369+
13571370ifdef DIR_HAS_BSD_GROUP_SEMANTICS
13581371 COMPAT_CFLAGS += -DDIR_HAS_BSD_GROUP_SEMANTICS
13591372endif
0 commit comments