summaryrefslogtreecommitdiffstats
path: root/src/build_macros.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/build_macros.m4')
-rw-r--r--src/build_macros.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/src/build_macros.m4 b/src/build_macros.m4
new file mode 100644
index 000000000..37d964392
--- /dev/null
+++ b/src/build_macros.m4
@@ -0,0 +1,21 @@
+AC_DEFUN([BUILD_WITH_SHARED_BUILD_DIR],
+ [ AC_ARG_WITH([shared-build-dir],
+ [AC_HELP_STRING([--with-shared-build-dir=DIR],
+ [temporary build directory where libraries are installed [$srcdir/sharedbuild]])])
+
+ sharedbuilddir="$srcdir/sharedbuild"
+ if test x"$with_shared_build_dir" != x; then
+ sharedbuilddir=$with_shared_build_dir
+ CFLAGS="$CFLAGS -I$with_shared_build_dir/include"
+ CPPFLAGS="$CPPFLAGS -I$with_shared_build_dir/include"
+ LDFLAGS="$LDFLAGS -L$with_shared_build_dir/lib"
+ fi
+ AC_SUBST(sharedbuilddir)
+ ])
+
+AC_DEFUN([BUILD_WITH_AUX_INFO],
+ [ AC_ARG_WITH([aux-info],
+ [AC_HELP_STRING([--with-aux-info],
+ [Build with -aux-info output])])
+ ])
+AM_CONDITIONAL([WANT_AUX_INFO], [test x$with_aux_info = xyes])