AM_LDFLAGS= @LDEFLAGS@
ACLOCAL_AMFLAGS= -I m4 -I m4-local
AM_YFLAGS= -d
-BUILT_SOURCES= rcfile_y.h
+BUILT_SOURCES= rcfile_y.h fetchmailconf
bin_PROGRAMS= fetchmail
-dist_bin_SCRIPTS= fetchmailconf
+nodist_bin_SCRIPTS= fetchmailconf
+python_PYTHON= fetchmailconf.py
dist_noinst_SCRIPTS= specgen.sh
dist_man1_MANS= fetchmail.man fetchmailconf.man
AC_PREREQ(2.59)
AM_INIT_AUTOMAKE(1.5 foreign no-installinfo)
+dnl the : states that python is optional
+AM_PATH_PYTHON(2.0,,:)
+
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
fi
dnl ----------------------------------------------------------------'
-AC_CONFIG_FILES([Makefile m4/Makefile
+AC_CONFIG_FILES([Makefile m4/Makefile fetchmailconf
po/Makefile.in])
AC_OUTPUT
# Matthias Andree <matthias.andree@gmx.de>
# Requires Python with Tkinter, and the following OS-dependent services:
# posix, posixpath, socket
-version = "1.44"
+version = "1.46"
from Tkinter import *
from Dialog import *
#
# Process options
- (options, arguments) = getopt.getopt(sys.argv[1:], "df:")
+ (options, arguments) = getopt.getopt(sys.argv[1:], "df:h")
dump = rcfile = None;
for (switch, val) in options:
if (switch == '-d'):
dump = TRUE
elif (switch == '-f'):
rcfile = val
+ elif (switch == '-h'):
+ print """
+Usage: fetchmailconf [-d] [-f fetchmailrc]
+-d - dump configuration (for debugging)
+-f fmrc - read alternate fetchmailrc file
+"""
+ sys.exit(0)
# Get client host's FQDN
hostname = socket.gethostbyaddr(socket.gethostname())[0]