-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.in
51 lines (41 loc) · 919 Bytes
/
configure.in
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
dnl Process this file with autoconf to produce a configure script.
AC_INIT(giblib/gib_list.c)
AM_INIT_AUTOMAKE(giblib, 1.2.4, no-define)
AM_CONFIG_HEADER(giblib/giblib_config.h)
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AM_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AM_SANITY_CHECK
AM_MAINTAINER_MODE
AM_WITH_DMALLOC
AC_PATH_GENERIC(imlib2, 1.0.0, [
AC_SUBST(IMLIB_LIBS)
AC_SUBST(IMLIB_CFLAGS) ],
AC_MSG_ERROR(Cannot find imlib2: Is imlib2-config in the path?) )
dnl the above doesn't work for some reason :/
IMLIB_LIBS=`imlib2-config --libs`
IMLIB_CFLAGS=`imlib2-config --cflags`
AC_SUBST(IMLIB_LIBS)
AC_SUBST(IMLIB_CFLAGS)
LIBS="$LIBS -lm"
CFLAGS="$CFLAGS -Wall"
AC_OUTPUT([
Makefile
giblib-config
giblib.pc
giblib/Makefile
], [
chmod +x giblib-config
])
echo "
$PACKAGE $VERSION
Configuration:
--------------
Imlib2 libs: $IMLIB_LIBS
Imlib2 cflags: $IMLIB_CFLAGS
CFLAGS: $CFLAGS
"