X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=configure.ac;h=962c1b7e1ce3bcaa3684fb9f4804da6f3f464986;hp=f7bf20d4c653b06b13387d8c1568b787b9724da3;hb=49176fecb4ab0c7a2474d50ff98a6f105c2a638f;hpb=91c78794d872dcac55f93ecbae1e28cec1ca6bf6 diff --git a/configure.ac b/configure.ac index f7bf20d..962c1b7 100644 --- a/configure.ac +++ b/configure.ac @@ -44,7 +44,7 @@ AH_BOTTOM([#endif /* SRD_CONFIG_H */]) # Enable more compiler warnings via -Wall and -Wextra. Add -fvisibility=hidden # and enforce use of SRD_API to explicitly mark all public API functions. -CFLAGS="$CFLAGS -Wall -Wextra -fvisibility=hidden" +CFLAGS="$CFLAGS -Wall -Wextra -Wmissing-prototypes -fvisibility=hidden" # Checks for programs. AC_PROG_CC @@ -110,16 +110,6 @@ PKG_CHECK_MODULES([python3], [python3 >= 3.0], [CPPFLAGS_PYTHON="$CPPFLAGS_PYTHON $python30_CFLAGS"; LDFLAGS_PYTHON="$LDFLAGS_PYTHON $python30_LIBS"], )])])])]) -case "$build" in -*mingw*) - # We currently hardcode the paths to the Python 3.2 default install - # location as there's no 'python-config' script on Windows, it seems. - # Note: We add both the /c/ and c:/ syntax (needed for cmake). - AC_MSG_WARN([using hardcoded Python3 configuration on MinGW]) - CPPFLAGS_PYTHON="-I/c/Python32/include -Ic:/Python32/include" - LDFLAGS_PYTHON="-L/c/Python32/libs -Lc:/Python32/libs -lpython32" - ;; -esac AC_SUBST(CPPFLAGS_PYTHON) AC_SUBST(LDFLAGS_PYTHON) @@ -144,21 +134,6 @@ AC_SUBST([LIBSIGROK_LIBS]) # These are already checked: inttypes.h stdint.h stdlib.h string.h unistd.h. AC_CHECK_HEADER([sys/resource.h], [], [build_runtc="no"]) -# Checks for typedefs, structures, and compiler characteristics. -AC_C_INLINE -AC_TYPE_INT8_T -AC_TYPE_INT16_T -AC_TYPE_INT32_T -AC_TYPE_INT64_T -AC_TYPE_UINT8_T -AC_TYPE_UINT16_T -AC_TYPE_UINT32_T -AC_TYPE_UINT64_T -AC_TYPE_SIZE_T - -# Checks for library functions. -AC_CHECK_FUNCS([memset strtoull]) - AC_SUBST(DECODERS_DIR, "$datadir/libsigrokdecode/decoders") AC_SUBST(MAKEFLAGS, '--no-print-directory') AC_SUBST(AM_LIBTOOLFLAGS, '--silent')