-AM_PATH_GLIB(1.2.0,,,)
-AC_CHECK_LIB(popt,poptGetContext, [POPT_LIB="-lreadline"],
- AC_MSG_ERROR(Popt library not found))
+AM_PATH_GLIB_2_0(1.3.3,,,)
+dnl We don't check popt since we're not using it at the moment, but
+dnl We just might use it later
+dnl AC_CHECK_LIB(popt,poptGetContext, [POPT_LIB="-lpopt"],
+dnl AC_MSG_ERROR(Popt library not found, find it on ftp://ftp.redhat.com/pub/redhat/code/))
+dnl AC_SUBST(POPT_LIB)