]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: don't check for pkg-config several times
authorVincent Bernat <vincent@bernat.im>
Mon, 28 Dec 2015 20:27:41 +0000 (21:27 +0100)
committerVincent Bernat <vincent@bernat.im>
Mon, 28 Dec 2015 20:27:41 +0000 (21:27 +0100)
Just check the first time.

autogen.sh

index 7b1ce997e714c16209c5d52f07adfdc2361231be..f58af72f6b5ca67b37fc5e1bdcae362208fc99bd 100755 (executable)
@@ -72,7 +72,9 @@ ${AUTORECONF} -vif -I m4 || {
         [ -f "$dir"/configure.ac ] || [ -f "$dir"/configure.in ] || continue
        echo "autogen.sh: configure `basename $dir`"
        (cd "$dir" && ${ACLOCAL} -I m4 ${ACLOCAL_FLAGS})
-        (cd "$dir" && check_pkg_config)
+        if [ x"$dir" = x"$PWD" ]; then
+            (cd "$dir" && check_pkg_config)
+        fi
        (cd "$dir" && ${LIBTOOLIZE} --automake --copy --force)
        (cd "$dir" && ${ACLOCAL} -I m4 ${ACLOCAL_FLAGS})
        (cd "$dir" && ${AUTOCONF} --force)