~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/usb/usbip/configure.ac

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/usb/usbip/configure.ac (Version linux-6.12-rc7) and /tools/usb/usbip/configure.ac (Version linux-4.20.17)


  1 dnl Process this file with autoconf to produce      1 dnl Process this file with autoconf to produce a configure script.
  2                                                     2 
  3 AC_PREREQ(2.59)                                     3 AC_PREREQ(2.59)
  4 AC_INIT([usbip-utils], [2.0], [linux-usb@vger.      4 AC_INIT([usbip-utils], [2.0], [linux-usb@vger.kernel.org])
  5 AC_DEFINE([USBIP_VERSION], [0x00000111], [bina      5 AC_DEFINE([USBIP_VERSION], [0x00000111], [binary-coded decimal version number])
  6                                                     6 
  7 CURRENT=0                                           7 CURRENT=0
  8 REVISION=1                                          8 REVISION=1
  9 AGE=0                                               9 AGE=0
 10 AC_SUBST([LIBUSBIP_VERSION], [$CURRENT:$REVISI     10 AC_SUBST([LIBUSBIP_VERSION], [$CURRENT:$REVISION:$AGE], [library version])
 11                                                    11 
 12 AC_CONFIG_SRCDIR([src/usbipd.c])                   12 AC_CONFIG_SRCDIR([src/usbipd.c])
 13 AC_CONFIG_HEADERS([config.h])                      13 AC_CONFIG_HEADERS([config.h])
 14                                                    14 
 15 AM_INIT_AUTOMAKE([foreign])                        15 AM_INIT_AUTOMAKE([foreign])
 16 LT_INIT                                            16 LT_INIT
 17                                                    17 
 18 # Silent build for automake >= 1.11                18 # Silent build for automake >= 1.11
 19 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([     19 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 20                                                    20 
 21 AC_SUBST([EXTRA_CFLAGS], ["-Wall -Werror -Wext     21 AC_SUBST([EXTRA_CFLAGS], ["-Wall -Werror -Wextra -std=gnu99"])
 22                                                    22 
 23 # Checks for programs.                             23 # Checks for programs.
 24 AC_PROG_CC                                         24 AC_PROG_CC
 25 AC_PROG_INSTALL                                    25 AC_PROG_INSTALL
 26 AC_PROG_MAKE_SET                                   26 AC_PROG_MAKE_SET
 27                                                    27 
 28 # Checks for header files.                         28 # Checks for header files.
 29 AC_HEADER_DIRENT                                   29 AC_HEADER_DIRENT
 30 AC_HEADER_STDC                                     30 AC_HEADER_STDC
 31 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h      31 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h dnl
 32                   string.h sys/socket.h syslog     32                   string.h sys/socket.h syslog.h unistd.h])
 33                                                    33 
 34 # Checks for typedefs, structures, and compile     34 # Checks for typedefs, structures, and compiler characteristics.
 35 AC_TYPE_INT32_T                                    35 AC_TYPE_INT32_T
 36 AC_TYPE_SIZE_T                                     36 AC_TYPE_SIZE_T
 37 AC_TYPE_SSIZE_T                                    37 AC_TYPE_SSIZE_T
 38 AC_TYPE_UINT16_T                                   38 AC_TYPE_UINT16_T
 39 AC_TYPE_UINT32_T                                   39 AC_TYPE_UINT32_T
 40 AC_TYPE_UINT8_T                                    40 AC_TYPE_UINT8_T
 41                                                    41 
 42 # Checks for library functions.                    42 # Checks for library functions.
 43 AC_FUNC_REALLOC                                    43 AC_FUNC_REALLOC
 44 AC_CHECK_FUNCS([memset mkdir regcomp socket st     44 AC_CHECK_FUNCS([memset mkdir regcomp socket strchr strerror strstr dnl
 45                 strtoul])                          45                 strtoul])
 46                                                    46 
 47 AC_CHECK_HEADER([libudev.h],                       47 AC_CHECK_HEADER([libudev.h],
 48                 [AC_CHECK_LIB([udev], [udev_ne     48                 [AC_CHECK_LIB([udev], [udev_new],
 49                               [LIBS="$LIBS -lu     49                               [LIBS="$LIBS -ludev"],
 50                               [AC_MSG_ERROR([M     50                               [AC_MSG_ERROR([Missing udev library!])])],
 51                 [AC_MSG_ERROR([Missing /usr/in     51                 [AC_MSG_ERROR([Missing /usr/include/libudev.h])])
 52                                                    52 
 53 # Checks for libwrap library.                      53 # Checks for libwrap library.
 54 AC_MSG_CHECKING([whether to use the libwrap (T     54 AC_MSG_CHECKING([whether to use the libwrap (TCP wrappers) library])
 55 AC_ARG_WITH([tcp-wrappers],                        55 AC_ARG_WITH([tcp-wrappers],
 56             [AS_HELP_STRING([--with-tcp-wrappe     56             [AS_HELP_STRING([--with-tcp-wrappers],
 57                             [use the libwrap (     57                             [use the libwrap (TCP wrappers) library])],
 58             dnl [ACTION-IF-GIVEN]                  58             dnl [ACTION-IF-GIVEN]
 59             [if test "$withval" = "yes"; then      59             [if test "$withval" = "yes"; then
 60                      AC_MSG_RESULT([yes])          60                      AC_MSG_RESULT([yes])
 61                      AC_MSG_CHECKING([for host     61                      AC_MSG_CHECKING([for hosts_access in -lwrap])
 62                      saved_LIBS="$LIBS"            62                      saved_LIBS="$LIBS"
 63                      LIBS="-lwrap $saved_LIBS"     63                      LIBS="-lwrap $saved_LIBS"
 64                      AC_TRY_LINK(                  64                      AC_TRY_LINK(
 65                        [int hosts_access(); in     65                        [int hosts_access(); int allow_severity, deny_severity;],
 66                        [hosts_access()],           66                        [hosts_access()],
 67                        [AC_MSG_RESULT([yes]);      67                        [AC_MSG_RESULT([yes]);
 68                         AC_DEFINE([HAVE_LIBWRA     68                         AC_DEFINE([HAVE_LIBWRAP], [1],
 69                                   [use tcp wra     69                                   [use tcp wrapper]) wrap_LIB="-lwrap"],
 70                        [AC_MSG_RESULT([not fou     70                        [AC_MSG_RESULT([not found]); exit 1])
 71              else                                  71              else
 72                      AC_MSG_RESULT([no]);          72                      AC_MSG_RESULT([no]);
 73              fi],                                  73              fi],
 74             dnl [ACTION-IF-NOT-GIVEN]              74             dnl [ACTION-IF-NOT-GIVEN]
 75             [AC_MSG_RESULT([(default)])            75             [AC_MSG_RESULT([(default)])
 76              AC_MSG_CHECKING([for hosts_access     76              AC_MSG_CHECKING([for hosts_access in -lwrap])
 77              saved_LIBS="$LIBS"                    77              saved_LIBS="$LIBS"
 78              LIBS="-lwrap $saved_LIBS"             78              LIBS="-lwrap $saved_LIBS"
 79              AC_TRY_LINK(                          79              AC_TRY_LINK(
 80                [int hosts_access(); int allow_     80                [int hosts_access(); int allow_severity, deny_severity;],
 81                [hosts_access()],                   81                [hosts_access()],
 82                [AC_MSG_RESULT([yes]);              82                [AC_MSG_RESULT([yes]);
 83                 AC_DEFINE([HAVE_LIBWRAP], [1],     83                 AC_DEFINE([HAVE_LIBWRAP], [1], [use tcp wrapper])],
 84                [AC_MSG_RESULT([no]); LIBS="$sa     84                [AC_MSG_RESULT([no]); LIBS="$saved_LIBS"])])
 85                                                    85 
 86 # Sets directory containing usb.ids.               86 # Sets directory containing usb.ids.
 87 AC_ARG_WITH([usbids-dir],                          87 AC_ARG_WITH([usbids-dir],
 88             [AS_HELP_STRING([--with-usbids-dir     88             [AS_HELP_STRING([--with-usbids-dir=DIR],
 89                [where usb.ids is found (defaul     89                [where usb.ids is found (default /usr/share/hwdata/)])],
 90             [USBIDS_DIR=$withval], [USBIDS_DIR     90             [USBIDS_DIR=$withval], [USBIDS_DIR="/usr/share/hwdata/"])
 91 AC_SUBST([USBIDS_DIR])                             91 AC_SUBST([USBIDS_DIR])
 92                                                    92 
 93 # use _FORTIFY_SOURCE                              93 # use _FORTIFY_SOURCE
 94 AC_MSG_CHECKING([whether to use fortify])          94 AC_MSG_CHECKING([whether to use fortify])
 95 AC_ARG_WITH([fortify],                             95 AC_ARG_WITH([fortify],
 96             [AS_HELP_STRING([--with-fortify],      96             [AS_HELP_STRING([--with-fortify],
 97                             [use _FORTIFY_SOUR !!  97                             [use _FORTIFY_SROUCE option when compiling)])],
 98                             dnl [ACTION-IF-GIV     98                             dnl [ACTION-IF-GIVEN]
 99                             [if test "$withval     99                             [if test "$withval" = "yes"; then
100                                 AC_MSG_RESULT(    100                                 AC_MSG_RESULT([yes])
101                                 CFLAGS="$CFLAG !! 101                                 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE -O"
102                              else                 102                              else
103                                 AC_MSG_RESULT(    103                                 AC_MSG_RESULT([no])
104                                 CFLAGS="$CFLAG    104                                 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"
105                              fi                   105                              fi
106                             ],                    106                             ],
107                             dnl [ACTION-IF-NOT    107                             dnl [ACTION-IF-NOT-GIVEN]
108                             [AC_MSG_RESULT([de    108                             [AC_MSG_RESULT([default])])
109                                                   109 
110 AC_CONFIG_FILES([Makefile libsrc/Makefile src/    110 AC_CONFIG_FILES([Makefile libsrc/Makefile src/Makefile])
111 AC_OUTPUT                                         111 AC_OUTPUT
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php