])dnl
dnl OPTION_DEFAULT_ON(NAME, HELP-STRING)
-dnl Create a new --with option that defaults to $enable_features.
+dnl Create a new --with option that defaults to $with_features.
dnl NAME is the base name of the option. The shell variable with_NAME
dnl will be set either to 'no' (for a plain --without-NAME) or to
dnl 'yes' (if the option is not specified). Note that the shell
esac
with_file_notification=$val
],
- [with_file_notification=yes])
+ [with_file_notification=$with_features])
## For the times when you want to build Emacs but don't have
## a suitable makeinfo, and can live without the manuals.
if test "${opsys}" = "mingw32"; then
with_file_notification=w32
else
- with_file_notification=gfile
+ if test "${with_ns}" != yes; then
+ with_file_notification=gfile
+ fi
fi
fi
AC_MSG_RESULT([$links_glib])
if test "${links_glib}" = "yes"; then
AC_DEFINE(HAVE_GLIB, 1, [Define to 1 if GLib is linked in.])
- XGSELOBJ=xgselect.o
+ if test "$HAVE_NS" = no;then
+ XGSELOBJ=xgselect.o
+ fi
fi
AC_SUBST(XGSELOBJ)