]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: improve message about pkg-config usage
authorEric Leblond <eric@regit.org>
Mon, 26 Nov 2012 10:14:01 +0000 (11:14 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 27 Nov 2012 09:10:30 +0000 (10:10 +0100)
This patch improve the error message when luajit libraries are not
found. It displays information about the possibility to use
PKG_CONFIG_PATH or the dedicated configure options.

configure.ac

index 950d93f3c6952ca99b30ae6376dcd75a6bec6829..80cf1129b53ce646c10efb4073c312747f7b2277 100644 (file)
@@ -1326,7 +1326,7 @@ AC_INIT(configure.ac)
         if test "$with_libluajit_includes" != "no"; then
             CPPFLAGS="${CPPFLAGS} -I${with_libluajit_includes}"
         else
-            PKG_CHECK_MODULES([LUAJIT], [luajit])
+            PKG_CHECK_MODULES([LUAJIT], [luajit], , LUAJIT="no")
             CPPFLAGS="${CPPFLAGS} ${LUAJIT_CFLAGS}"
         fi
 
@@ -1348,6 +1348,10 @@ AC_INIT(configure.ac)
                 echo
                 echo "   Ubuntu: apt-get install libluajit-5.1-dev"
                 echo
+                echo "   If you installed software in a non-standard prefix"
+                echo "   consider adjusting the PKG_CONFIG_PATH environment variable"
+                echo "   or use --with-libluajit-libraries configure option."
+                echo
                 exit 1
             fi
 
@@ -1360,6 +1364,11 @@ AC_INIT(configure.ac)
                 echo
                 echo "   Ubuntu: apt-get install libluajit-5.1-dev"
                 echo
+                echo "   If you installed software in a non-standard prefix"
+                echo "   consider adjusting the PKG_CONFIG_PATH environment variable"
+                echo "   or use --with-libluajit-includes and --with-libluajit-libraries"
+                echo "   configure option."
+                echo
                 exit 1
         fi
     fi