diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-09-25 10:45:57 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-09-25 10:45:57 (GMT) |
commit | 623047109ab5a069cd34cab6b8c4c343fc70b48d (patch) | |
tree | 2627e14070860c153fbbb78220a9b62e13e7d178 | |
parent | 9b550c5a96c3fb1f312e43c1d29d0e81846c8943 (diff) | |
download | monitoring-plugins-623047109ab5a069cd34cab6b8c4c343fc70b48d.tar.gz |
Using $srcdir is the proper way to go
-rw-r--r-- | configure.in | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 5cc693c..c047b12 100644 --- a/configure.in +++ b/configure.in | |||
@@ -99,10 +99,10 @@ AC_SUBST(REV_DATESTAMP) | |||
99 | AC_SUBST(REV_TIMESTAMP) | 99 | AC_SUBST(REV_TIMESTAMP) |
100 | 100 | ||
101 | dnl Check if version file is present | 101 | dnl Check if version file is present |
102 | AM_CONDITIONAL([RELEASE_PRESENT], [test -f release]) | 102 | AM_CONDITIONAL([RELEASE_PRESENT], [test -f $srcdir/release]) |
103 | 103 | ||
104 | # Also read in the version from it | 104 | # Also read in the version from it |
105 | if test -f release; then | 105 | if test -f $srcdir/release; then |
106 | NP_RELEASE="$(<release)" | 106 | NP_RELEASE="$(<release)" |
107 | else | 107 | else |
108 | NP_RELEASE="$PACKAGE_VERSION" | 108 | NP_RELEASE="$PACKAGE_VERSION" |
@@ -1543,9 +1543,7 @@ if test -n "$PATH_TO_APTGET" ; then | |||
1543 | fi | 1543 | fi |
1544 | 1544 | ||
1545 | 1545 | ||
1546 | if test -f plugins/check_nt.c ; then | 1546 | if test -f $srcdir/plugins/check_nt.c ; then |
1547 | EXTRAS="$EXTRAS check_nt" | ||
1548 | elif test -f ../plugins/check_nt.c ; then | ||
1549 | EXTRAS="$EXTRAS check_nt" | 1547 | EXTRAS="$EXTRAS check_nt" |
1550 | fi | 1548 | fi |
1551 | 1549 | ||