dnl CF_WITH_X_APP_DEFAULTS version: 2 updated: 2009/10/14 20:08:12
dnl ----------------------
dnl Option for specifying the location of the X app-defaults directory.
dnl
dnl The entire feature can be suppressed by --without-app-defaults, 
dnl which makes $no_appsdir become a comment-marker.
AC_DEFUN([CF_WITH_X_APP_DEFAULTS],
[
	AC_MSG_CHECKING(for directory to install resource files)
	CF_WITH_PATH(app-defaults,
		[  --with-app-defaults=DIR directory in which to install resource files],
		[appsdir],[EPREFIX/lib/X11/app-defaults],
		[\$(exec_prefix)/lib/X11/app-defaults])
	AC_MSG_RESULT($appsdir)
	AC_SUBST(appsdir)

	no_appsdir=
	if test "$appsdir" = no ; then
		no_appsdir="#"
	else
		EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)"
	fi
	AC_SUBST(no_appsdir)
])
