• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/giblib/giblib-fix-imlib2-detection.patch
Yann E. MORINYann E. MORIN committed d90dd7c5e8416 Mar 2012
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
configure.ac + Makefile.am: fix the imlib2 detection
2
​
3
Although imlib2 is correctly checked for, the variables used to get
4
the CFLAGS and LIBS are wrong (perhaps a remnant of the pre-imlib2
5
era, when giblib was using imlib).
6
​
7
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
8
​
9
diff --git a/configure.ac b/configure.ac
10
index 6807d86..c8874f0 100644
11
--- a/configure.ac
12
+++ b/configure.ac
13
@@ -18,16 +18,10 @@ AM_MAINTAINER_MODE
14
 AM_WITH_DMALLOC
15
 
16
 AC_PATH_GENERIC(imlib2, 1.0.0, [
17
-  AC_SUBST(IMLIB_LIBS)
18
-  AC_SUBST(IMLIB_CFLAGS) ],
19
+  AC_SUBST(IMLIB2_LIBS)
20
+  AC_SUBST(IMLIB2_CFLAGS) ],
21
   AC_MSG_ERROR(Cannot find imlib2: Is imlib2-config in the path?) )
22
 
23
-dnl the above doesn't work for some reason :/
24
-IMLIB_LIBS=`imlib2-config --libs`
25
-IMLIB_CFLAGS=`imlib2-config --cflags`
26
-AC_SUBST(IMLIB_LIBS)
27
-AC_SUBST(IMLIB_CFLAGS)
28
-
29
 LIBS="$LIBS -lm"
30
 CFLAGS="$CFLAGS -Wall"
31
 
32
@@ -48,7 +42,7 @@ $PACKAGE $VERSION
33
 Configuration:
34
 --------------
35
 
36
-Imlib2 libs:   $IMLIB_LIBS
37
-Imlib2 cflags:  $IMLIB_CFLAGS
38
+Imlib2 libs:   $IMLIB2_LIBS
39
+Imlib2 cflags:  $IMLIB2_CFLAGS
40
 CFLAGS:            $CFLAGS
41
 "
42
diff --git a/configure.in b/configure.in
43
index 432cb16..6999095 100644
44
--- a/configure.in
45
+++ b/configure.in
46
@@ -17,16 +17,10 @@ AM_MAINTAINER_MODE
47
 AM_WITH_DMALLOC
48
 
49
 AC_PATH_GENERIC(imlib2, 1.0.0, [
50
-  AC_SUBST(IMLIB_LIBS)
51
-  AC_SUBST(IMLIB_CFLAGS) ],
52
+  AC_SUBST(IMLIB2_LIBS)
53
+  AC_SUBST(IMLIB2_CFLAGS) ],
54
   AC_MSG_ERROR(Cannot find imlib2: Is imlib2-config in the path?) )
55
 
56
-dnl the above doesn't work for some reason :/
57
-IMLIB_LIBS=`imlib2-config --libs`
58
-IMLIB_CFLAGS=`imlib2-config --cflags`
59
-AC_SUBST(IMLIB_LIBS)
60
-AC_SUBST(IMLIB_CFLAGS)
61
-
62
 LIBS="$LIBS -lm"
63
 CFLAGS="$CFLAGS -Wall"
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.