X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=configure.ac;h=b5b570c163cab155cc3501aa7d071717eeb5e429;hp=fd74535e1490aa6416282d5946a91b7acc33fdb6;hb=d2a7e8528c6835a0b4d57e044e078778c0a54e66;hpb=af3d7ced3407534a36d4365c047a998b17f65591 diff --git a/configure.ac b/configure.ac index fd74535e..b5b570c1 100644 --- a/configure.ac +++ b/configure.ac @@ -125,12 +125,18 @@ AC_CHECK_FUNCS([ \ uname \ ]) -# Check for MinGW32. MINGW32=no -case $host in - *-*-mingw*) - MINGW32=yes;; -esac +DEFAULT_ENABLE_DEBUGINFO=yes +AS_CASE([$host_os], + [solaris*|darwin*], + [ + DEFAULT_ENABLE_DEBUGINFO=no + ], + [mingw*], + [ + MINGW32=yes + ] +) AM_CONDITIONAL([BABELTRACE_BUILD_WITH_MINGW], [test "x$MINGW32" = "xyes"]) @@ -232,7 +238,10 @@ else fi # Optional debuginfo feature (enabled by default) -AC_ARG_ENABLE([debuginfo], [AC_HELP_STRING([--disable-debuginfo], [disable the debuginfo feature])], [], [enable_debuginfo=yes]) +AS_IF([test "x$DEFAULT_ENABLE_DEBUGINFO" = xyes], + [AC_ARG_ENABLE([debuginfo], [AC_HELP_STRING([--disable-debuginfo], [disable the debuginfo feature])], [], [enable_debuginfo=yes])], + [AC_ARG_ENABLE([debuginfo], [AC_HELP_STRING([--enable-debuginfo], [enable the debuginfo feature])], [], [enable_debuginfo=no])] +) AM_CONDITIONAL([ENABLE_DEBUGINFO], [test "x$enable_debuginfo" = xyes]) AS_IF([test "x$enable_debuginfo" = xyes], [