source: emailtotracscript/trunk/configure.in @ 109

Last change on this file since 109 was 109, checked in by bas, 15 years ago

EmailtoTracScript?:

email2trac.py.in:

  • Changed some layout statements

configure, Makefile.in, configure.in:

  • Can set DEBUG value on command line; eg: DEBUG=1 ./configure default is: 0
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1#
2# Author: Bas van der Vlies <basv@sara.nl>
3# Desc. : Simple configure script for email2trac package
4# SVN INFO:
5#       $Id: configure.in 109 2006-09-29 07:27:12Z bas $
6#
7#
8AC_INIT(email2trac.py.in)
9AC_SUBST(prefix)
10AC_SUBST(exec_prefix)
11AC_SUBST(pyexecdir)
12AC_SUBST(trac_user)
13AC_SUBST(mta_user)
14AC_SUBST(sysconfdir)
15
16#DEBUG=0
17
18AM_PATH_PYTHON
19AC_PROG_GCC_TRADITIONAL
20
21if test "x$DEBUG" = "x";then
22  DEBUG=0
23fi
24AC_SUBST(DEBUG)
25
26# Now a user can specify the TRAC user
27#
28AC_ARG_WITH(trac_user,
29[
30  --with-trac_user=USER    Specify the name of the user that trac use,
31                          default=www-data],
32
33  [case "${withval}" in
34        *) trac_user="${withval}" ;;
35  esac],
36
37  [trac_user="www-data"]
38)dnl           
39
40# Now a user can specify MTA TRAC user
41#
42AC_ARG_WITH(mta_user,
43[
44  --with-mta_user=USER    Specify the name of the user that your MTA use,
45                          default=nobody],
46
47  [case "${withval}" in
48        *) mta_user="${withval}" ;;
49  esac],
50
51  [mta_user="nobody"]
52)dnl           
53
54dnl ##### Path to email2trac.conf
55dnl This ugly kludge to get the sysconfdir path is needed because
56dnl autoconf doesn't actually set the prefix variable until later.
57if test "$sysconfdir" = '${prefix}/etc'; then
58  if test "x$prefix" = xNONE; then
59    email2trac_conf="$ac_default_prefix/etc/email2trac.conf"
60  else
61    email2trac_conf="$prefix/etc/email2trac.conf"
62  fi
63else
64  email2trac_conf="$sysconfdir/email2trac.conf"
65fi
66AC_DEFINE_UNQUOTED(SYSTEM_EMAIL2TRAC_CONF, "$email2trac_conf",
67                   [Full path for the system-wide email2trac.conf file.])
68
69AC_SUBST(email2trac_conf)
70AC_SUBST(SYSTEM_EMAIL2TRAC_CONF)
71
72
73AC_OUTPUT(
74        Makefile
75        email2trac.py
76        delete_spam.py
77        )
Note: See TracBrowser for help on using the repository browser.