X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fconfigure.ac;h=4c7995aa3d51ace231bd3099ad83f405d14d5d87;hp=8fd2e58aa21c909c894e73967f1c39b3be688ccb;hb=681a340f6be4184b1472a8e1fa9cd5d074f6f325;hpb=1c538bfabc2cd31f27067505f0c3d1a46cba6ef0 diff --git a/rt/configure.ac b/rt/configure.ac index 8fd2e58aa..4c7995aa3 100644 --- a/rt/configure.ac +++ b/rt/configure.ac @@ -34,6 +34,16 @@ if test "$PERL" = 'not found'; then AC_MSG_ERROR([cannot use $PACKAGE_NAME without perl]) fi +dnl BSD find uses -perm +xxxx, GNU find has deprecated this syntax in favour of +dnl -perm /xxx. +AC_MSG_CHECKING([checking version of find]) +AS_IF([find --version 2>&1 | grep 'GNU'], + [ FINDPERM="/" + AC_MSG_RESULT([configuring for GNU find]) ], + [ FINDPERM="+" + AC_MSG_RESULT([configuring for BSD find]) ]) + +AC_SUBST([FINDPERM]) dnl WEB_HANDLER AC_ARG_WITH(web-handler, @@ -461,6 +471,8 @@ AC_CONFIG_FILES([ etc/RT_Config.pm lib/RT/Generated.pm t/data/configs/apache2.2+mod_perl.conf - t/data/configs/apache2.2+fastcgi.conf], + t/data/configs/apache2.2+fastcgi.conf + t/data/configs/apache2.4+mod_perl.conf + t/data/configs/apache2.4+fastcgi.conf], ) AC_OUTPUT