-AC_CHECK_LIB(gslcblas,main,,AC_MSG_ERROR([You must install libgslcblas]))
-AC_CHECK_LIB(gsl, gsl_cdf_chisq_Q,,
- AC_MSG_ERROR([You must install libgsl version 1.4 or later]))
-
-AC_CHECK_LIB(gnugetopt,getopt_long)
-AC_CHECK_FUNC(getopt_long,,
- AC_MSG_ERROR(`This application depends upon getopt_long'))
-
-AC_ARG_WITH(ncurses,
-[ --without-ncurses don't compile in ncurses command line editing])
-
-
-if test "x$with_ncurses" = x"yes"; then
-AC_CHECK_LIB(ncurses, tgetent, LIBS="-lncurses $LIBS" termcap=yes,
- AC_CHECK_LIB(termcap, tgetent, LIBS="-ltermcap $LIBS" termcap=yes,
- termcap=no))
+if test x"$with_gui" != x"no" ; then
+ PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6.0)
+ PKG_CHECK_MODULES(GLADE, libglade-2.0)