From 663bd7ee233bfa3d5ec86e5b3b5a5f700a04176b Mon Sep 17 00:00:00 2001
From: David Leadbeater <dgl@dgl.cx>
Date: Mon, 7 Jul 2014 22:41:38 +0100
Subject: Add some more helpful hints about packages to install to configure
 output

---
 configure.ac | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 29fee0bd..2a7bee0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -303,6 +303,15 @@ if test -z "$GLIB_LIBS"; then
   echo "*** We recommend you get the latest stable GLIB 2 version."
   echo "*** Compile and install it, and make sure pkg-config finds it,"
   echo "*** by adding the path where the .pc file is located to PKG_CONFIG_PATH"
+  echo -n "*** Or alternatively install your distribution's package"
+  if test -f /etc/debian_version; then
+    echo :
+    echo "*** sudo apt-get install libglib2.0-dev"
+  elif test -f /etc/redhat-release; then
+    echo " (glib2-devel)"
+  else
+    echo .
+  fi
   echo
 
   AC_ERROR([GLIB is required to build irssi.])
@@ -384,7 +393,7 @@ if test "x$want_textui" = "xyes"; then
 		  TEXTUI_LIBS="-ltermcap"
 		  want_termcap=yes
 		], [
-		  AC_ERROR(Terminfo/termcap not found - install ncurses-devel package)
+		  AC_ERROR(Terminfo/termcap not found - install libncurses-dev or ncurses-devel package)
 		  want_textui=no
 		])))
 	fi
@@ -741,6 +750,11 @@ else
 	else
 		echo "Building with Perl support ....... : NO!"
 		echo " - $perl_check_error"
+                if test -f /etc/debian_version; then
+                  echo " - Try: sudo apt-get install libperl-dev"
+                elif test -f /etc/redhat-release; then
+                  echo " - Try installing perl-devel"
+                fi
 	fi
 fi
 
@@ -750,7 +764,7 @@ if test "x$want_perl" != "xno" -a "x$perl_mod_error" != "x"; then
 	echo "   $perl_mod_error"
 
 	if test -f /etc/debian_version; then
-		echo " - Try: apt-get install libperl-dev"
+		echo " - Try: sudo apt-get install libperl-dev"
 	fi
 fi
 
@@ -775,6 +789,15 @@ echo
 
 echo "Building with IPv6 support ....... : $have_ipv6"
 echo "Building with SSL support ........ : $have_openssl"
+if test "x$have_openssl" = "xno" -a "x$enable_ssl" = "xyes"; then
+  if test -f /etc/debian_version; then
+    echo " - Try: sudo apt-get install libssl-dev"
+  elif test -f /etc/redhat-release; then
+    echo " - Try installing openssl-devel"
+  else
+    echo " - Try installing OpenSSL development headers"
+  fi
+fi
 echo "Building with 64bit DCC support .. : $offt_64bit"
 echo "Building with garbage collector .. : $have_gc"
 echo "Building with DANE support ....... : $have_dane"
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0