Skip to content

Commit 9eae217

Browse files
author
Peter Schiffer
committed
Don't look in weird places for programs during configuration
Also, don't pretend that programs exist if they don't (don't use [value-if-not-found] for some programs).
1 parent 18cc330 commit 9eae217

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configure.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ AC_CHECK_PROG(INSTALL, install, install)
3030
AC_CHECK_PROG(MSGFMT, msgfmt, msgfmt)
3131
AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
3232
AC_CHECK_PROG(MSGMERGE, msgmerge, msgmerge)
33-
AC_CHECK_PROGS(ZIP, xz bzip2 gzip, gzip, /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin)
33+
AC_CHECK_PROGS(ZIP, xz bzip2 gzip, gzip)
3434
INSTALL_DATA="\${INSTALL} -m 644"
3535
AC_SUBST(INSTALL_DATA)
3636
INSTALL_BIN="\${INSTALL} -m 755"
3737
AC_SUBST(INSTALL_BIN)
3838

39-
AC_PATH_PROGS(PATH_CP, cp, cp, /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin)
40-
AC_PATH_PROGS(PATH_CHKCONFIG, chkconfig, chkconfig, /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin)
39+
AC_PATH_PROG(PATH_CP, cp)
40+
AC_PATH_PROG(PATH_CHKCONFIG, chkconfig)
4141

4242
# Check for systemd
4343
AC_CHECK_PROG(PKG_CONFIG, pkg-config, pkg-config)
44-
AC_PATH_PROGS(SYSTEMCTL, systemctl, systemctl, /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin)
44+
AC_PATH_PROG(SYSTEMCTL, systemctl)
4545
AC_ARG_WITH([systemdsystemunitdir],
4646
AS_HELP_STRING([--with-systemdsystemunitdir=DIR],[Directory for systemd service files]),
4747
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])

0 commit comments

Comments
 (0)