summaryrefslogtreecommitdiff
path: root/legacy/evas/m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2011-05-22 08:53:31 +0000
committerVincent Torri <vincent.torri@gmail.com>2011-05-22 08:53:31 +0000
commit17114374a9e9d5fff14560d6b9f8ebd1e5eaed40 (patch)
treeb851256cb2ed94717462e1367cfa7dbe210288b4 /legacy/evas/m4
parentcee78bdc1fd8571f767275ec98d91ee3450e2ec1 (diff)
improve linbpg detection
SVN revision: 59576
Diffstat (limited to 'legacy/evas/m4')
-rw-r--r--legacy/evas/m4/evas_check_loader.m441
1 files changed, 34 insertions, 7 deletions
diff --git a/legacy/evas/m4/evas_check_loader.m4 b/legacy/evas/m4/evas_check_loader.m4
index 52f953f..0cb3d7b 100644
--- a/legacy/evas/m4/evas_check_loader.m4
+++ b/legacy/evas/m4/evas_check_loader.m4
@@ -176,13 +176,40 @@ have_dep="no"
176evas_image_loader_[]$1[]_cflags="" 176evas_image_loader_[]$1[]_cflags=""
177evas_image_loader_[]$1[]_libs="" 177evas_image_loader_[]$1[]_libs=""
178 178
179PKG_CHECK_EXISTS([libpng14], [PKG_CHECK_MODULES([PNG], [libpng14], [have_dep="yes" requirement="libpng14"], [have_dep="no"])], 179dnl libpng.pc is the latest version of libpng that ahs been installed.
180 [PKG_CHECK_EXISTS([libpng12], [PKG_CHECK_MODULES([PNG], [libpng12], [have_dep="yes" requirement="libpng12"], [have_dep="no"])], 180dnl We check it first.
181 [PKG_CHECK_EXISTS([libpng10], [PKG_CHECK_MODULES([PNG], [libpng10], [have_dep="yes" requirement="libpng10"], [have_dep="no"])], 181PKG_CHECK_MODULES([PNG],
182 [PKG_CHECK_MODULES([PNG], [libpng], [have_dep="yes" requirement="libpng"], [have_dep="no"]) 182 [libpng],
183 ]) 183 [have_dep="yes" requirement="libpng"],
184 ]) 184 [have_dep="no"])
185]) 185
186if test "x${have_dep}" = "xno" ; then
187 PKG_CHECK_MODULES([PNG],
188 [libpng15],
189 [have_dep="yes" requirement="libpng15"],
190 [have_dep="no"])
191fi
192
193if test "x${have_dep}" = "xno" ; then
194 PKG_CHECK_MODULES([PNG],
195 [libpng14],
196 [have_dep="yes" requirement="libpng14"],
197 [have_dep="no"])
198fi
199
200if test "x${have_dep}" = "xno" ; then
201 PKG_CHECK_MODULES([PNG],
202 [libpng12],
203 [have_dep="yes" requirement="libpng12"],
204 [have_dep="no"])
205fi
206
207if test "x${have_dep}" = "xno" ; then
208 PKG_CHECK_MODULES([PNG],
209 [libpng10],
210 [have_dep="yes" requirement="libpng10"],
211 [have_dep="no"])
212fi
186 213
187evas_image_loader_[]$1[]_cflags="${PNG_CFLAGS}" 214evas_image_loader_[]$1[]_cflags="${PNG_CFLAGS}"
188evas_image_loader_[]$1[]_libs="${PNG_LIBS}" 215evas_image_loader_[]$1[]_libs="${PNG_LIBS}"