X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=f9958b329a14f2e7eecb6cc50813a776e6f559fb;hp=3a8b163da3f2a57e99216c856bd2690e28332e9f;hb=650f19467d6e0f864df9960d8696148e90d85b79;hpb=ab88bae1c7b966e686b313625dd799a522e2093e diff --git a/configure.ac b/configure.ac index 3a8b163..f9958b3 100644 --- a/configure.ac +++ b/configure.ac @@ -45,6 +45,11 @@ AC_C_CONST # Required for per-target flags or subdir-objects with C sources. AM_PROG_CC_C_O +# Support building Windows DLLs. +AC_LIBTOOL_WIN32_DLL +AM_PROG_CC_STDC +AM_PROG_LIBTOOL + # Set the standard the C library headers should conform to. AH_VERBATIM([_POSIX_C_SOURCE], [/* The targeted POSIX standard. */ #ifndef _POSIX_C_SOURCE @@ -134,6 +139,17 @@ AC_SYS_LARGEFILE AC_C_BIGENDIAN +######################### +## Optional features. ## +######################### + +# Enable IRMP support by default. Accept user overrides. +AC_ARG_ENABLE([irmp], + [AS_HELP_STRING([--enable-irmp], [enable IRMP shared object [default=yes]])], + [], [enable_irmp_so=yes]) +AM_CONDITIONAL([WITH_IRMP], [test "x$enable_irmp_so" = "xyes"]) +test -n "$enable_irmp_so" || enable_irmp_so=no + ############################## ## Finalize configuration ## ############################## @@ -177,4 +193,6 @@ Detected libraries (required): $srd_pkglibs_summary Detected libraries (optional): $srd_pkglibs_opt_summary +Optional features: + - IRMP support library .......... $enable_irmp_so _EOF