1# -*- Autoconf -*- 2# Process this file with autoconf to produce a configure script. 3 4AC_PREREQ(2.59) 5AC_INIT(amavis-stats,0.1.11,nomad@null.net) 6 7# Checks for programs. 8AC_PROG_INSTALL 9AC_PROG_LN_S 10 11# Checks for libraries. 12 13# Checks for header files. 14 15# Checks for typedefs, structures, and compiler characteristics. 16 17# Checks for library functions. 18 19# Check for an alternate installation directory 20AC_SUBST(install_prefix, "") 21AC_MSG_CHECKING(for --with-install-prefix) 22AC_ARG_WITH(install-prefix, dnl 23[ --with-install-prefix=DIR installation prefix ]) 24case "$with_install_prefix" in 25 "") ;; 26 *) install_prefix="$with_install_prefix"; 27esac 28AC_MSG_RESULT($install_prefix) 29 30# Check for an alternate data directory, separate from installation dir. 31AC_SUBST(var_prefix, "") 32AC_MSG_CHECKING(for --with-var-prefix) 33AC_ARG_WITH(var-prefix, dnl 34[ --with-var-prefix=DIR /var prefix ]) 35case "$with_var_prefix" in 36 "") ;; 37 *) var_prefix="$with_var_prefix"; 38esac 39AC_MSG_RESULT($var_prefix) 40 41# Check for some other uid to use than `amavis' 42AC_SUBST(amavis_user, "amavis") 43AC_MSG_CHECKING(for --with-amavis-user) 44AC_ARG_WITH(amavis-user, dnl 45[ --with-amavis-user=USER specify user to runs as [amavis] ]) 46case "$with_amavis_user" in 47 "") ;; 48 *) amavis_user="$with_amavis_user"; 49esac 50AC_MSG_RESULT($amavis_user) 51 52# Check for some other gid to use than `amavis' 53AC_SUBST(amavis_group, "amavis") 54AC_MSG_CHECKING(for --with-amavis-group) 55AC_ARG_WITH(amavis-group, dnl 56[ --with-amavis-group=GROUP specify group to run as [amavis] ]) 57case "$with_amavis_group" in 58 "") ;; 59 *) amavis_group="$with_amavis_group"; 60esac 61AC_MSG_RESULT($amavis_group) 62 63# Check for some other uid to use than `www' 64AC_SUBST(web_user, "www") 65AC_MSG_CHECKING(for --with-web-user) 66AC_ARG_WITH(web-user, dnl 67[ --with-web-user=USER specify user which webserver runs as [www] ]) 68case "$with_web_user" in 69 "") ;; 70 *) web_user="$with_web_user"; 71esac 72AC_MSG_RESULT($web_user) 73 74# Check for some other gid to use than `www' 75AC_SUBST(web_group, "www") 76AC_MSG_CHECKING(for --with-web-group) 77AC_ARG_WITH(web-group, dnl 78[ --with-web-group=GROUP specify group which webserver runs as [www] ]) 79case "$with_web_group" in 80 "") ;; 81 *) web_group="$with_web_group"; 82esac 83AC_MSG_RESULT($web_group) 84 85# Check for some other url to use than `/amavis-stats' 86AC_SUBST(web_url, "/amavis-stats") 87AC_MSG_CHECKING(for --with-web-url) 88AC_ARG_WITH(web-url, dnl 89[ --with-web-url=URL specify group which webserver runs as [/amavis-stats] ]) 90case "$with_web_url" in 91 "") ;; 92 *) web_url="$with_web_url"; 93esac 94AC_MSG_RESULT($web_url) 95 96AC_SUBST(vers, `debian/version`) 97AC_SUBST(desc, `debian/version -d`) 98AC_SUBST(perl, `which perl`) 99 100AC_CONFIG_FILES([Makefile]) 101AC_OUTPUT 102