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)