-
Notifications
You must be signed in to change notification settings - Fork 15
/
configure.ac
28 lines (21 loc) · 746 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
AC_INIT([fprint_demo], [0.4])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/main.c])
AC_PREREQ([2.50])
AC_PROG_CC
AM_PROG_CC_C_O
PKG_CHECK_MODULES(FPRINT, "libfprint")
AC_SUBST(FPRINT_LIBS)
AC_SUBST(FPRINT_CFLAGS)
PKG_CHECK_MODULES(GTK, "gtk+-2.0")
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
# Restore gnu89 inline semantics on gcc 4.3 and newer
saved_cflags="$CFLAGS"
CFLAGS="$CFLAGS -fgnu89-inline"
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]), inline_cflags="-fgnu89-inline", inline_cflags="")
CFLAGS="$saved_cflags"
AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow"
AC_SUBST(AM_CFLAGS)
AC_CONFIG_FILES([Makefile] [src/Makefile] [icons/Makefile])
AC_OUTPUT