Skip to content

Commit 9721d2f

Browse files
committed
Merge branch 'sl/customize-sane-tool-path'
* sl/customize-sane-tool-path: configure: allow user to prevent $PATH "sanitization" on Solaris
2 parents 5087aac + 2136394 commit 9721d2f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

configure.ac

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,23 @@ if test -n "$1"; then
137137
fi
138138
])
139139

140+
# Directories holding "saner" versions of common or POSIX binaries.
141+
AC_ARG_WITH([sane-tool-path],
142+
[AS_HELP_STRING(
143+
[--with-sane-tool-path=DIR-1[[:DIR-2...:DIR-n]]],
144+
[Directories to prepend to PATH in build system and generated scripts])],
145+
[if test "$withval" = "no"; then
146+
withval=''
147+
else
148+
AC_MSG_NOTICE([Setting SANE_TOOL_PATH to '$withval'])
149+
fi
150+
GIT_CONF_APPEND_LINE([SANE_TOOL_PATH=$withval])],
151+
[# If the "--with-sane-tool-path" option was not given, don't touch
152+
# SANE_TOOL_PATH here, but let defaults in Makefile take care of it.
153+
# This should minimize spurious differences in the behaviour of the
154+
# Git build system when configure is used w.r.t. when it is not.
155+
:])
156+
140157
## Site configuration related to programs (before tests)
141158
## --with-PACKAGE[=ARG] and --without-PACKAGE
142159
#

0 commit comments

Comments
 (0)