3 AC_SUBST(GNATS_ROOT)dnl
4 AC_SUBST(GNATS_ADDR)dnl
5 AC_SUBST(GNATS_SITE)dnl
6 AC_SUBST(DEFAULT_RELEASE)dnl
7 AC_SUBST(DEFAULT_ORGANIZATION)dnl
8 AC_SUBST(MAIL_AGENT)dnl
16 if test -z "${GNATS_SITE}"; then
20 if test -z "${GNATS_ADDR}"; then
21 GNATS_ADDR=bugs@cygnus.com
25 AC_FIND_PROGRAM(SENDMAIL,sendmail,/usr/lib:/usr/sbin:/usr/ucblib)
26 if test -n "$SENDMAIL" ; then
27 MAIL_AGENT="$SENDMAIL -oi -t"
32 if test -f ${srcdir}/../release-info ; then
33 DEFAULT_RELEASE=`. ${srcdir}/../release-info ; echo ${RELEASE_TAG}`
35 DEFAULT_RELEASE='gnats-$(VERSION)'
38 # Get GNATS_ROOT from environment, if possible
40 if test -n "$with_gnats_root"; then
41 GNATS_ROOT=$with_gnats_root
44 if test -z "${GNATS_ROOT}"; then
45 GNATS_ROOT=${prefix-/usr/local}/lib/gnats/gnats-root
49 AC_FIND_PROGRAM(SEND_PR,send-pr)
50 if test -n "${SEND_PR}"; then
51 test -n "${_PR}" && eval `grep '^GNATS_ROOT=' ${SEND_PR}`
52 eval `grep '^SUBMITTER=' ${SEND_PR}`
53 eval `egrep '^GNATS_(ADDR|SITE)=' ${SEND_PR}`
54 eval `egrep '^DEFAULT_ORGANIZATION=' ${SEND_PR}`
57 # If the config file exists, it may have more recent info than send-pr
58 echo checking for GNATS configuration file
59 test -f ${GNATS_ROOT}/gnats-adm/config && . ${GNATS_ROOT}/gnats-adm/config
61 if test -n "${_PR}" -a "${GNATS_ROOT}" = "${_PR}"; then
65 if test -n "$verbose"; then
66 echo " setting GNATS_ROOT to $GNATS_ROOT"
67 echo " setting GNATS_SITE to $GNATS_SITE"
68 echo " setting GNATS_ADDR to $GNATS_ADDR"
69 echo " setting SUBMITTER to $SUBMITTER"
70 echo " setting DEFAULT_RELEASE to $DEFAULT_RELEASE"
71 echo " setting DEFAULT_ORGANIZATION to $DEFAULT_ORGANIZATION"
72 echo " setting MAIL_AGENT to $MAIL_AGENT"