summaryrefslogtreecommitdiff
path: root/sysutils/cluster-glue/files/patch-configure.ac
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2016-03-24 16:15:23 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2016-03-24 16:15:23 +0000
commit253c2aa1df0c2fbec12f35dc548df1b36583aca5 (patch)
tree17b94d124eaa513059859dcaec9a5d735048eebb /sysutils/cluster-glue/files/patch-configure.ac
parentCrossGuid is a minimal, cross platform, C++ GUID library. (diff)
Add sysutils/cluster-glue.
Cluster Glue is a set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack.
Notes
Notes: svn path=/head/; revision=411801
Diffstat (limited to 'sysutils/cluster-glue/files/patch-configure.ac')
-rw-r--r--sysutils/cluster-glue/files/patch-configure.ac53
1 files changed, 53 insertions, 0 deletions
diff --git a/sysutils/cluster-glue/files/patch-configure.ac b/sysutils/cluster-glue/files/patch-configure.ac
new file mode 100644
index 000000000000..72c459ea2595
--- /dev/null
+++ b/sysutils/cluster-glue/files/patch-configure.ac
@@ -0,0 +1,53 @@
+--- configure.ac.orig 2014-10-16 17:24:17 UTC
++++ configure.ac
+@@ -320,6 +320,12 @@ REBOOT_OPTIONS="-f"
+ POWEROFF_OPTIONS="-f"
+
+ case "$host_os" in
++*freebsd*|*dragonfly*)
++ POWEROFF_CMD=/sbin/shutdown
++ POWEROFF_OPTIONS="-p now"
++ REBOOT=/sbin/shutdown
++ REBOOT_OPTIONS="-r now"
++ ;;
+ *bsd*) LIBS="-L/usr/local/lib"
+ CPPFLAGS="$CPPFLAGS -I/usr/local/include"
+ INIT_EXT=".sh"
+@@ -497,7 +503,7 @@ export PATH
+
+ dnl Replacing AC_PROG_LIBTOOL with AC_CHECK_PROG because LIBTOOL
+ dnl was NOT being expanded all the time thus causing things to fail.
+-AC_CHECK_PROGS(LIBTOOL, glibtool libtool libtool15 libtool13)
++dnl AC_CHECK_PROGS(LIBTOOL, glibtool libtool libtool15 libtool13)
+
+ AM_PATH_PYTHON
+ AC_CHECK_PROGS(MAKE, gmake make)
+@@ -1230,7 +1236,6 @@ else
+
+ # We had to eliminate -Wnested-externs because of libtool changes
+ EXTRA_FLAGS="-fgnu89-inline
+- -fstack-protector-all
+ -Wall
+ -Waggregate-return
+ -Wbad-function-cast
+@@ -1267,11 +1272,6 @@ else
+ fi
+ done
+
+-dnl In lib/ais/Makefile.am there's a gcc option available as of v4.x
+-
+- GCC_MAJOR=`gcc -v 2>&1 | awk 'END{print $3}' | sed 's/[.].*//'`
+- AM_CONDITIONAL(GCC_4, test "${GCC_MAJOR}" = 4)
+-
+ dnl System specific options
+
+ case "$host_os" in
+@@ -1345,8 +1345,6 @@ AC_MSG_RESULT(Supress make details: ${en
+ AC_MSG_RESULT(Pretty print compiler output: ${enable_pretty})
+
+ dnl Put the above variables to use
+-LIBTOOL="${LIBTOOL} --tag=CC \$(QUIET_LIBTOOL_OPTS)"
+-MAKE="${MAKE} \$(QUIET_MAKE_OPTS)"
+
+ AC_SUBST(CC)
+ AC_SUBST(MAKE)