freetalk-dev
[Top][All Lists]
Advanced

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

[Freetalk-dev] PATCH:configure.ac Add a few error messages


From: Baishampayan Ghose
Subject: [Freetalk-dev] PATCH:configure.ac Add a few error messages
Date: Tue, 29 Nov 2005 15:28:31 +0530

Hello!
There was a bug in the configure.ac due to which even a failure in
finding the required libs won't flag an error.
I have added a few error messages to the configure.ac ... it's
basically a trivial yet important patch.
I am including it here
Regards,
BG


Index: configure.ac
===================================================================
RCS file: /cvsroot/freetalk/freetalk/configure.ac,v
retrieving revision 1.8
diff -a -u -r1.8 configure.ac
--- configure.ac        1 Nov 2005 16:15:19 -0000       1.8
+++ configure.ac        29 Nov 2005 09:19:14 -0000
@@ -15,9 +15,18 @@
 AC_PROG_CC

 AC_SEARCH_LIBS([tgetent],[ncurses termcap curses])
-AC_CHECK_LIB([readline], [readline])
-AC_CHECK_LIB([guile],[gh_enter],,exit)
-AC_CHECK_LIB([glib-2.0],[g_slist_free],,exit)
+AC_CHECK_LIB([readline], [readline],,[
+       echo "ERROR! readline not found."
+       exit -1
+       ])
+AC_CHECK_LIB([guile],[gh_enter],,[
+       echo "ERROR! guile not found."
+       exit -1
+       ])
+AC_CHECK_LIB([glib-2.0],[g_slist_free],,[
+       echo "ERROR! glib-2.0 not found."
+       exit -1
+       ])

 AC_CHECK_PROG([PKGCONFIG], [pkg-config], [yes], [no])
 if test "x$PKGCONFIG" = "xno"; then


--
Baishampayan Ghose
Free Software Foundation of India
b.ghose at gnu.org.in

reply via email to

[Prev in Thread] Current Thread [Next in Thread]