Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
703d4fac
Commit
703d4fac
authored
May 14, 2018
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow for Apache 2.4 (yes, we are going there...)
parent
543ab4f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
configure
configure
+10
-3
configure.ac
configure.ac
+10
-3
No files found.
configure
View file @
703d4fac
...
...
@@ -5967,9 +5967,16 @@ else
APACHE_VERSION
=
"1.3"
APACHE_START_COMMAND
=
"/usr/local/etc/rc.d/apache.sh"
else
INSTALL_APACHE_CONFIG
=
"/usr/local/etc/apache22"
APACHE_VERSION
=
"22"
APACHE_START_COMMAND
=
"/usr/local/etc/rc.d/apache22"
foo
=
`
/usr/local/sbin/httpd
-V
|
grep
SERVER_CONFIG_FILE |
grep
'apache24'
`
if
test
"
$foo
"
=
""
;
then
INSTALL_APACHE_CONFIG
=
"/usr/local/etc/apache22"
APACHE_VERSION
=
"22"
APACHE_START_COMMAND
=
"/usr/local/etc/rc.d/apache22"
else
INSTALL_APACHE_CONFIG
=
"/usr/local/etc/apache24"
APACHE_VERSION
=
"24"
APACHE_START_COMMAND
=
"/usr/local/etc/rc.d/apache24"
fi
fi
fi
...
...
configure.ac
View file @
703d4fac
...
...
@@ -940,9 +940,16 @@ AC_ARG_WITH(apache-config-dir,
APACHE_VERSION="1.3"
APACHE_START_COMMAND="/usr/local/etc/rc.d/apache.sh"
else
INSTALL_APACHE_CONFIG="/usr/local/etc/apache22"
APACHE_VERSION="22"
APACHE_START_COMMAND="/usr/local/etc/rc.d/apache22"
foo=`/usr/local/sbin/httpd -V | grep SERVER_CONFIG_FILE | grep 'apache24'`
if test "$foo" = ""; then
INSTALL_APACHE_CONFIG="/usr/local/etc/apache22"
APACHE_VERSION="22"
APACHE_START_COMMAND="/usr/local/etc/rc.d/apache22"
else
INSTALL_APACHE_CONFIG="/usr/local/etc/apache24"
APACHE_VERSION="24"
APACHE_START_COMMAND="/usr/local/etc/rc.d/apache24"
fi
fi
])
AC_SUBST(INSTALL_APACHE_CONFIG)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment