-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
35 lines (27 loc) · 895 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([image-id], [2.1.0], [[email protected]])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([image_id.c])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
# Checks for libraries.
PKG_CHECK_MODULES([IMAGE_ID], [libdiscid libmirage >= 2.1.0])
AC_MSG_CHECKING([if libMirage is 3.0 or later])
PKG_CHECK_EXISTS([libmirage >= 3.0.0],
[libmirage_3_0_api=yes],
[libmirage_3_0_api=no])
if test $libmirage_3_0_api = yes
then
AC_DEFINE([LIBMIRAGE_AT_LEAST_3_0], [1],
[libMirage API is 3.0 or newer])
fi
AC_MSG_RESULT([$libmirage_3_0_api])
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile])
AC_OUTPUT