r194: configure.in
[ctsim.git] / configure.in
index 78a67130d2734279b6f8a61dd49c32f6efb69c7f..74d5fecfa53c0091d6e92f739ef3d033e10e9932 100644 (file)
@@ -99,7 +99,7 @@ AC_STRUCT_TM
 
 dnl Checks for library functions.
 AC_FUNC_VPRINTF
-AC_CHECK_FUNCS(strtod strtol snprintf htonl usleep)
+AC_CHECK_FUNCS(strtod strtol snprintf htonl usleep vsprintf vsnprintf)
 AC_CHECK_FUNC(basename)
 AC_CHECK_FUNC(setjmp)
 AC_CHECK_FUNC(setpriority)
@@ -311,7 +311,7 @@ AM_CONDITIONAL(NO_X, test "x$no_x" = "xyes")
 my_includes="$my_includes -I../include -I.."
 AC_SUBST(my_includes)
 
-AC_MSG_CHECKING([interactive graphics])
+AC_MSG_CHECKING([for X])
 if test "$no_x" != "yes" ; then
   AC_DEFINE(HAVE_X11)
   AC_DEFINE(HAVE_SGP)
@@ -321,6 +321,7 @@ if test "$no_x" != "yes" ; then
   AC_MSG_RESULT(yes)
   if test "$g2" = "true" ; then
   ctlibs_graphics="$ctlibs_graphics -lg2"
+  AC_DEFINE(HAVE_G2)
   fi   
   ctlibs_graphics="$ctlibs_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
 else