in a setuid program, then there is something to say for moving them
to the "trusted" directory.)
+ On Solaris, linking usually fails to find "wattr" or something like that.
+ Somehow, I can't seem to be able to automate "configure" finding the right
+ libs on Solaris. So, the solution is that you cut-and-paste the line
+ doing the linking into a terminal window, and add "-lcurses" by hand.
+ Then it will link. Help on how to catch this in autoconf appreciated.
+
WHERE CAN I GET THE LATEST VERSION OR MORE INFORMATION?
the message. To send a message to the mailing list, mail to
'mtr@lists.xmission.com'.
- Bug reports and feature requests should be sent to the mtr
- mailing list.
+ Bug reports and feature requests should be submitted into the
+ jitterbug bug-tracking system at http://www.BitWizard.nl/cgi-bin/mtr .
+ If you don't have web-access, mail the mailinglist.
+
AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.42)
+AM_INIT_AUTOMAKE(mtr, 0.43)
AC_SUBST(GTK_OBJ)
AC_SUBST(CURSES_OBJ)
AC_CHECK_LIB(m, floor, , AC_MSG_ERROR(No math library found))
-AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS"
- LIBS="$LIBS $GTK_LIBS",
- AC_MSG_WARN(Building without GTK+ display support)
- AC_DEFINE(NO_GTK)
- GTK_OBJ=)
+dnl Added ability to cleanly disable GTK+ (12 Jan 2000, Joseph Carter)
+AC_ARG_WITH(gtk,
+[ --without-gtk Do not try to use GTK+ at all],
+WANTS_GTK=$withval, WANTS_GTK=yes)
+
+if test "x$WANTS_GTK" = "xyes"; then
+ AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS"
+ LIBS="$LIBS $GTK_LIBS",
+ AC_MSG_WARN(Building without GTK+ display support)
+ AC_DEFINE(NO_GTK)
+ GTK_OBJ="")
+else
+ AC_DEFINE(NO_GTK)
+ GTK_OBJ=""
+fi
AC_CHECK_FUNC(socket, ,
AC_CHECK_LIB(socket, socket, , AC_MSG_ERROR(No socket library found)))
AC_CHECK_FUNC(gethostbyname, ,
AC_CHECK_LIB(nsl, gethostbyname, , AC_MSG_ERROR(No nameservice library found)))
-AC_CHECK_FUNC(res_init, ,
- AC_CHECK_LIB(bind, res_init, ,
- AC_CHECK_LIB(resolv, res_init, , AC_MSG_ERROR(No resolver library found))))
+#AC_CHECK_FUNC(res_init, ,
+# AC_CHECK_LIB(bind, res_init, ,
+# AC_CHECK_LIB(resolv, res_init, , AC_MSG_ERROR(No resolver library found))))
AC_CHECK_FUNCS(seteuid)
# AC_CHECK_FUNC(setuid, , AC_MSG_ERROR (I Need either seteuid or setuid))
AC_CHECK_FUNC(res_mkquery, ,
- AC_CHECK_LIB(bind, res_init, ,
- AC_CHECK_LIB(resolv, res_init, , AC_MSG_ERROR(No resolver library found))))
+ AC_CHECK_LIB(bind, res_mkquery, ,
+ AC_CHECK_LIB(resolv, res_mkquery, , AC_MSG_ERROR(No resolver library found))))
AC_CHECK_FUNC(herror, , AC_DEFINE(NO_HERROR))
AC_CHECK_FUNC(strerror, , AC_DEFINE(NO_STRERROR))