Source

xemacs-beta / modules / aclocal.m4

AC_DEFUN(XE_EMACS, [
	dnl
	dnl Apparently, if you run a shell window in Emacs, it sets the EMACS
	dnl environment variable to 't'.  Lets undo the damage.
	dnl
	if test "${EMACS}" = "t"; then
		EMACS=""
	fi

	AC_ARG_WITH(xemacs,           --with-xemacs             Use XEmacs to build, [ if test "${withval}" = "yes"; then EMACS=xemacs; else EMACS=${withval}; fi ])
	AC_ARG_WITH(emacs,            --with-emacs              Use Emacs to build, [ if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi ])
	AC_CHECK_PROG(EMACS, xemacs, xemacs, emacs)
	AC_SUBST(EMACS)
])

AC_DEFUN(XE_CONFIG_VALUE, [
	OUTPUT=./conftest-$$
	rm -f ${OUTPUT}
	${EMACS} -batch -eval "
(let ((hash (config-value-hash-table))
      (desired (split-string \"$1\")))
  (mapcar
     (lambda (key)
       (message \"Checking for %S\" (intern key))
       (if (config-value (intern key))
          (progn
	    (write-region (format \"%s=\\\"%s\\\"\n\" key (config-value (intern key)))
		  	  nil \"${OUTPUT}\" t))))
	desired))
" 2> /dev/null > /dev/null
	test -f ${OUTPUT} && . ${OUTPUT}
	rm -f ${OUTPUT}
	for ac_func in $1; do
                :
	done
])
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.