"Fossies" - the Fresh Open Source Software Archive

Member "usbutils-015/usbhid-dump/configure.ac" (22 Feb 2021, 1469 Bytes) of package /linux/misc/usbutils-015.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "configure.ac": 013_vs_014.

    1 # SPDX-License-Identifier: GPL-2.0-or-later
    2 #
    3 # Copyright (C) 2010-2011 Nikolai Kondrashov
    4 #
    5 # This file is part of usbhid-dump.
    6 
    7 AC_PREREQ(2.61)
    8 AC_INIT([usbhid-dump], [1.4])
    9 AM_INIT_AUTOMAKE([1.9 -Wall foreign])
   10 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
   11 AM_MAINTAINER_MODE
   12 
   13 AC_USE_SYSTEM_EXTENSIONS
   14 
   15 AC_CONFIG_HEADERS([config.h])
   16 
   17 # To have empty CFLAGS instead of undefined and '-g -O2' by default
   18 CFLAGS=$CFLAGS
   19 CFLAGS="-Os -Wall $CFLAGS"
   20 ABS_SRCDIR=`cd ${srcdir} ; pwd`
   21 ABS_BUILDDIR=`pwd`
   22 CPPFLAGS="-I${ABS_BUILDDIR} -DNDEBUG $CPPFLAGS"
   23 
   24 
   25 #
   26 # Checks for programs.
   27 #
   28 
   29 #
   30 # Checks for libraries.
   31 #
   32 PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0.0)
   33 CFLAGS="$CFLAGS $LIBUSB_CFLAGS"
   34 LIBS="$LIBS $LIBUSB_LIBS"
   35 
   36 #
   37 # Checks for features
   38 #
   39 AC_ARG_ENABLE(
   40     debug,
   41     AS_HELP_STRING([--enable-debug], [enable debugging features]),
   42     [], [enable_debug="no"])
   43 
   44 AC_ARG_ENABLE(
   45     tests-install,
   46     AS_HELP_STRING([--enable-tests-install], [enable installation of tests]),
   47     [], [enable_tests_install="no"])
   48 
   49 # Output features to preprocessor and compiler
   50 if test "$enable_debug" = "yes"; then
   51     CPPFLAGS="$CPPFLAGS -UNDEBUG"
   52     CFLAGS="$CFLAGS -Wextra -Werror -g -O0"
   53 fi
   54 
   55 #
   56 # Checks for header files.
   57 #
   58 
   59 #
   60 # Checks for typedefs, structures, and compiler characteristics.
   61 #
   62 
   63 #
   64 # Checks for declarations
   65 #
   66 
   67 #
   68 # Checks for library functions.
   69 #
   70 AC_CHECK_FUNCS(libusb_set_option)
   71 
   72 #
   73 # Output
   74 #
   75 AC_CONFIG_FILES([Makefile
   76                  src/Makefile])
   77 AC_OUTPUT