[PATCH] configure: look for pre-generated docs in srcdir



This allows the docs to be found when performing an out-of-source build.
---
 configure.ac | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/configure.ac b/configure.ac
index d1f0e9ae7..1b6f3b606 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1240,22 +1240,22 @@ fi
 # check for pregenerated manpages and documentation to be installed
 use_pregen_docs=no
 if test "$build_docs" != "yes" -a \
-        -f man/NetworkManager.8 -a \
-        -f man/NetworkManager.conf.5 -a \
-        -f man/nm-online.1 -a \
-        -f man/nmcli-examples.7 -a \
-        -f man/nmcli.1 -a \
-        -f man/nmtui.1 -a \
+        -f "$srcdir"/man/NetworkManager.8 -a \
+        -f "$srcdir"/man/NetworkManager.conf.5 -a \
+        -f "$srcdir"/man/nm-online.1 -a \
+        -f "$srcdir"/man/nmcli-examples.7 -a \
+        -f "$srcdir"/man/nmcli.1 -a \
+        -f "$srcdir"/man/nmtui.1 -a \
         \
-        -f man/nm-settings-ifcfg-rh.5 -a \
-        -f man/nm-settings-keyfile.5 -a \
-        -f man/nm-settings.5 -a \
+        -f "$srcdir"/man/nm-settings-ifcfg-rh.5 -a \
+        -f "$srcdir"/man/nm-settings-keyfile.5 -a \
+        -f "$srcdir"/man/nm-settings.5 -a \
         \
-        -f man/nm-settings.xml -a \
-        -f man/nm-settings-keyfile.xml -a \
-        -f man/nm-settings-ifcfg-rh.xml -a \
+        -f "$srcdir"/man/nm-settings.xml -a \
+        -f "$srcdir"/man/nm-settings-keyfile.xml -a \
+        -f "$srcdir"/man/nm-settings-ifcfg-rh.xml -a \
         \
-        -f docs/api/settings-spec.xml; then
+        -f "$srcdir"/docs/api/settings-spec.xml; then
        use_pregen_docs=yes
 fi
 
-- 
2.13.0



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]