31 lines
761 B
Plaintext
31 lines
761 B
Plaintext
# -*- Autoconf -*-
|
|||
|
|
# Process this file with autoconf to produce a configure script.
|
||
|
|
|
||
|
|
AC_PREREQ(2.59)
|
||
|
|
AC_INIT(libg15, 1.2.2, mlampard@users.sourceforge.net)
|
||
|
|
AC_PREFIX_DEFAULT(/usr)
|
||
|
|
AC_CONFIG_AUX_DIR(config)
|
||
|
|
AM_INIT_AUTOMAKE()
|
||
|
|
AC_CONFIG_SRCDIR([libg15.c])
|
||
|
|
AC_CONFIG_HEADER([config.h])
|
||
|
|
|
||
|
|
# Checks for programs.
|
||
|
|
AC_PROG_CC
|
||
|
|
AC_PROG_LIBTOOL
|
||
|
|
|
||
|
|
# Checks for libraries.
|
||
|
|
AC_CHECK_LIB([usb], [main], ,AC_MSG_ERROR(["libusb not found. please install it"]))
|
||
|
|
|
||
|
|
# Checks for header files.
|
||
|
|
AC_HEADER_STDC
|
||
|
|
AC_CHECK_HEADERS([string.h])
|
||
|
|
AC_CHECK_HEADERS([usb.h])
|
||
|
|
|
||
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
||
|
|
AC_C_CONST
|
||
|
|
|
||
|
|
# Checks for library functions.
|
||
|
|
AC_CHECK_FUNCS([memset])
|
||
|
|
|
||
|
|
AC_CONFIG_FILES([Makefile])
|
||
|
|
AC_OUTPUT
|