stlink/configure.ac

40 wiersze
901 B
Plaintext
Czysty Zwykły widok Historia

2012-04-28 01:13:58 +00:00
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
2013-01-06 16:00:57 +00:00
AC_INIT([stlink],[0.5.6],[davem@devkitpro.org])
2012-04-28 01:13:58 +00:00
AC_CONFIG_SRCDIR([src/stlink-common.c])
AC_CONFIG_LIBOBJ_DIR([src])
2012-04-28 01:13:58 +00:00
AM_INIT_AUTOMAKE([1.10])
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_CANONICAL_HOST
AC_CANONICAL_BUILD
AC_PROG_RANLIB
2012-04-28 01:13:58 +00:00
AM_PROG_CC_C_O
AC_CHECK_HEADERS(sys/mman.h)
2012-04-29 13:43:46 +00:00
AC_CHECK_HEADERS(sys/poll.h)
2012-05-16 21:15:38 +00:00
AC_REPLACE_FUNCS(mmap)
2012-04-28 01:13:58 +00:00
# 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 ***]))
AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb)
LIBS="$LIBS $USB_LIBS"
CFLAGS="$CFLAGS $USB_CFLAGS"
2012-04-29 13:43:46 +00:00
case "${host}" in
*-mingw32*)
LIBS="$LIBS -lws2_32"
CPPFLAGS="-D__USE_MINGW_ANSI_STDIO=1 $CPPFLAGS"
2012-04-29 13:43:46 +00:00
;;
esac
2012-04-28 01:13:58 +00:00
AC_CONFIG_FILES([Makefile])
AC_OUTPUT