diff options
-rw-r--r-- | configure.ac | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e6ff630..2b4ba54 100644 --- a/configure.ac +++ b/configure.ac @@ -67,7 +67,6 @@ AC_ARG_ENABLE( [AS_HELP_STRING([--enable-debug], [enable debugging])], , [enable_debug=no]) - if test "x${enable_debug}" = 'xyes'; then AC_SEARCH_LIBS([logl], [m], [], [AC_MSG_ERROR([unable to find the logl() function])]) @@ -76,6 +75,20 @@ else AC_DEFINE([MQ_TREE_DEBUG], [0], [Define to 1 to enable tree debugging.]) fi +AC_ARG_ENABLE( + [in-place], + [AS_HELP_STRING([--enable-in-place], + [run executable in place from build directory])], + , + [enable_in_place=no]) +if test "x${enable_in_place}" = 'xyes'; then + AC_DEFINE([RUN_IN_PLACE], [1], + [Define to 1 to run executable in place from build directory.]) +else + AC_DEFINE([RUN_IN_PLACE], [0], + [Define to 1 to run executable in place from build directory.]) +fi + AC_CONFIG_FILES([Makefile]) AC_CONFIG_HEADERS([config.h]) AC_OUTPUT() |