openbsd-ports/www/fcgi-cgi/patches/patch-configure_ac
brad b74425f50e - Fix autoconf/automake usage. Set CONFIGURE_STYLE or call autogen.sh but
not both.
- Correct the automake bits that were added for static linking. The libraries
  were inserted into the wrong variable so the link order was wrong.
- Tidy up the CONFIGURE_ENV usage.

ok sthen@
2013-03-28 23:40:56 +00:00

19 lines
651 B
Plaintext

$OpenBSD: patch-configure_ac,v 1.2 2013/03/28 23:40:56 brad Exp $
--- configure.ac.orig Thu Oct 28 17:43:23 2010
+++ configure.ac Thu Mar 28 18:57:58 2013
@@ -19,10 +19,13 @@ PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16.0, [
AC_DEFINE([HAVE_GLIB_H], [1], [glib.h])
],[AC_MSG_ERROR("glib-2.0 >= 2.16.0 not found")])
+GLIB_LIBS_STATIC=`$PKG_CONFIG --libs --static glib-2.0`
+AC_SUBST(GLIB_LIBS_STATIC)
+
# lib ev
AC_CHECK_HEADERS([ev.h], [], [AC_MSG_ERROR("ev.h not found")])
AC_CHECK_LIB([ev], [ev_time], [
- LIBS="-lev ${LIBS}"
+ LIBS="-lev -lm ${LIBS}"
AC_DEFINE([HAVE_LIBEV], [1], [ev_time in -lev])
], [AC_MSG_ERROR("libev not found")])