diff --git a/configure.ac b/configure.ac index 424883cd9..f8c1dc672 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,13 @@ AM_INIT_AUTOMAKE($PACKAGE,$VERSION) m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])]) AM_SILENT_RULES([yes]) +CFLAGS="$CFLAGS -D_GNU_SOURCE -pthread" +CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE -pthread" + +CFLAGS="$CFLAGS -I/opt/local/include" +CXXFLAGS="$CXXFLAGS -I/opt/local/include" +LDFLAGS="$LDFLAGS -L/opt/local/lib" + AC_PROG_CXX AC_LANG_CPLUSPLUS AC_PROG_CC @@ -52,13 +59,6 @@ AD_INIT_ASCIIDOC([icinga], [docs]) AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir) -CFLAGS="$CFLAGS -D_GNU_SOURCE -pthread" -CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE -pthread" - -CFLAGS="$CFLAGS -I/opt/local/include" -CXXFLAGS="$CXXFLAGS -I/opt/local/include" -LDFLAGS="$LDFLAGS -L/opt/local/lib" - AC_PROG_INSTALL AC_PROG_LEX AC_PROG_YACC