to match the name of the executable. In this example, httpd.conf will be
renamed to foo.conf.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85041
13f79535-47bb-0310-9956-
ffa450edef68
< $$i > $(sysconfdir)/$$i; \
chmod 0644 $(sysconfdir)/$$i; \
file=`echo $$i|sed s/-dist//`; \
+ if [ "$$file" = "httpd.conf" ]; then \
+ file=`echo $$file|sed s/.*.conf/$(PROGRAM_NAME).conf/`; \
+ fi; \
if test "$$file" != "$$i" && test ! -f $(sysconfdir)/$$file; then \
$(INSTALL_DATA) $(sysconfdir)/$$i $(sysconfdir)/$$file; \
fi; \
AC_ARG_WITH(program-name,
[ --with-program-name=alternate executable name],[
progname="$withval" ], [
- progname='httpd'] )
+ progname="httpd"] )
AC_OUTPUT_COMMANDS([
echo '/* Generated by configure */' > ${path_h}.new
echo "#define HTTPD_ROOT \"$prefix\"" >> ${path_h}.new
echo "#define SUEXEC_BIN \"$bindir/suexec\"" >> ${path_h}.new
+echo "#define SERVER_CONFIG_FILE \"conf/$progname.conf\"" >> ${path_h}.new
cmp ${path_h}.new ${path_h} >/dev/null 2>&1
if test $? -ne 0 ; then
prefix=$prefix
exec_prefix=$exec_prefix
bindir=$bindir
+progname=$progname
])
AC_OUTPUT($APACHE_OUTPUT_FILES Makefile)