X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=203cc6bd59e507698b85d97bcd811dcc63653eda;hb=refs%2Fheads%2Fdebian;hp=b8eb66d5806c49f331ea4273fdf0dd4d65e9e3be;hpb=5608a3e72e0968a90322ce78f57d0c1bb0af66fd;p=fw%2Fstlink diff --git a/configure.ac b/configure.ac index b8eb66d..203cc6b 100644 --- a/configure.ac +++ b/configure.ac @@ -13,15 +13,18 @@ AC_PROG_CC AC_PROG_INSTALL AC_CANONICAL_HOST AC_CANONICAL_BUILD +AC_PROG_RANLIB AM_PROG_CC_C_O -AC_CONFIG_MACRO_DIR([m4]) - -LT_INIT AC_CHECK_HEADERS(sys/mman.h) AC_CHECK_HEADERS(sys/poll.h) AC_REPLACE_FUNCS(mmap) +if ! hash pkg-config; then + echo "ERROR: pkg-config is needed..." + exit 1 +fi + # Checks for libraries. PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,, AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***])) @@ -51,11 +54,6 @@ if test "x$with_gtk" = "xyes"; then fi AC_SUBST([MAYBE_GUI]) -AC_ARG_ENABLE([static], AS_HELP_STRING([--enable-static], [enable binaries static linking])) -if test "x$enable_static" = "xyes"; then - LDFLAGS="$LDFLAGS -all-static" -fi - AC_CONFIG_FILES([Makefile]) AC_OUTPUT