aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-07-09 02:02:56 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-07-09 02:02:56 -0300
commitd6099cb44a0f40601d01a6c5a32cd77b084d7b17 (patch)
tree9fedf2b857f2fcaa166f9d4e17e656f35c984153
parenteina: Created EINA_VALUE_TYPE_OPTIONAL that is a single-element container tha... (diff)
downloadefl-devs/felipealmeida/eina-optional.tar.gz
autotools: Added --disable-unwind optiondevs/felipealmeida/eina-optional
Added --disable-uniwnd option to allow user to disable automatically finding libunwind. This helps with compilation with -m32 without libunwind.
-rw-r--r--configure.ac12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 2069102f58..2781197cf0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -849,8 +849,16 @@ case "${build_profile}" in
;;
esac
-PKG_CHECK_MODULES(UNWIND, [libunwind libunwind-generic],
- [have_unwind=yes], [have_unwind=no])
+want_unwind="yes"
+have_unwind="no"
+AC_ARG_ENABLE([unwind],
+ [AS_HELP_STRING([--disable-unwind],[Disable unwind library. @<:@default=enabled@:>@])],
+ [want_unwind="no"], [])
+
+if test x"${want_unwind}" = "xyes"; then
+ PKG_CHECK_MODULES(UNWIND, [libunwind libunwind-generic],
+ [have_unwind=${want_unwind}], [have_unwind=no])
+fi
AS_IF([test "x$have_unwind" = "xyes"],
[AC_DEFINE([HAVE_UNWIND], [1], [Have libunwind])])
AM_CONDITIONAL(HAVE_UNWIND, test "x$have_unwind" = "xyes")