From ce723a8c39b7657baffe6a80c24647ef4286e9f8 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 4 Feb 2010 09:30:42 +0100 Subject: [PATCH] Forcing use of /usr/local on FreeBSD by LDFLAGS and CPPFLAGS. --- acinclude.m4 | 11 +++++++++++ configure.ac | 2 ++ 2 files changed, 13 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 0b2c9af..5551bb8 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,3 +1,14 @@ +AC_DEFUN([LIBBURNIA_SET_FLAGS], +[ +case $target_os in +freebsd*) + LDFLAGS="$LDFLAGS -L/usr/local/lib" + CPPFLAGS="$CPPFLAGS -I/usr/local/include" + ;; +esac +]) + + AC_DEFUN([TARGET_SHIZZLE], [ ARCH="" diff --git a/configure.ac b/configure.ac index d190b5e..a333afc 100644 --- a/configure.ac +++ b/configure.ac @@ -5,6 +5,8 @@ dnl AC_CONFIG_HEADER([config.h]) AC_CANONICAL_HOST AC_CANONICAL_TARGET +LIBBURNIA_SET_FLAGS + AM_INIT_AUTOMAKE([subdir-objects]) dnl A61101 This breaks Linux build (makes 32 bit off_t)