summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2016-01-22 14:39:58 -0500
committerMichael Orlitzky <mjo@gentoo.org>2016-01-22 14:39:58 -0500
commit014afaaab8d4343d2da0869392c1a262023b8712 (patch)
treee410fbb931271e4730b9145ac74ba2f87e80ea97 /configure.ac
parentDon't inherit config or multilib. (diff)
downloadeselect-php-014afaaab8d4343d2da0869392c1a262023b8712.tar.gz
eselect-php-014afaaab8d4343d2da0869392c1a262023b8712.tar.bz2
eselect-php-014afaaab8d4343d2da0869392c1a262023b8712.zip
Add --enable-apache2 flag to the configure script.
The latest eselect-php ebuild allows users to avoid 70_mod_php.conf by setting USE="-apache2". Now that the conf file is part of eselect-php, we replicate that ability with --enable-apache2=no, or in fact by default. To install the apache conf file, one passes --enable-apache2 to the configure script.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c118e0e..f977807 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,20 @@ AC_PROG_SED
AC_PATH_PROG(SORT,sort)
AC_PATH_PROG(UNIQ,uniq)
+
+# --enable-apache2 flag, disabled by default, that decides whether or
+# not we install the apache2 module configuration file.
+AC_ARG_ENABLE(
+ [apache2],
+ [ --enable-apache2 install the apache2 conf file [[default=no]]],
+ [case "${enableval}" in
+ yes) apache2=true ;;
+ no) apache2=false ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-apache2]) ;;
+ esac],[apache2=false])
+ AM_CONDITIONAL([APACHE2], [test x$apache2 = xtrue])
+
+
# List of output files.
AC_CONFIG_FILES([Makefile src/php.eselect.in])