Skip to content
Browse files

Check for InitializeMagick in libMagickCore as well as libMagick.

  • Loading branch information...
1 parent 9ba136a commit 03e1484d1556ad12ab0c9223abcd2127433f3ec1 rmagick committed Feb 14, 2008
Showing with 3 additions and 3 deletions.
  1. +1 −1 configure.ac
  2. +2 −2 lib/RMagick.rb
View
2 configure.ac
@@ -82,7 +82,7 @@ AC_SUBST(CFLAGS, ${rm_saved_CFLAGS})
AC_SUBST(CPPFLAGS, ${CPPFLAGS})
AC_SUBST(LOCAL_LIBS, `${MAGICKCONFIG} --libs`)
-AC_CHECK_LIB($MAGICKLIB, InitializeMagick, [],
+AC_SEARCH_LIBS(InitializeMagick, [$MAGICKLIB MagickCore], [],
[AC_MSG_ERROR([Can't install $PACKAGE_NAME. Can't find lib${MAGICKLIB} or one of the dependent libraries.
Check the config.log file for more detailed information.])],
[`${MAGICKCONFIG} --libs`])
View
4 lib/RMagick.rb
@@ -1,4 +1,4 @@
-# $Id: RMagick.rb,v 1.51 2007/01/20 23:13:50 rmagick Exp $
+# $Id: RMagick.rb,v 1.51.4.1 2008/02/14 00:00:49 rmagick Exp $
#==============================================================================
# Copyright (C) 2007 by Timothy P. Hunter
# Name: RMagick.rb
@@ -800,7 +800,7 @@ def get_exif_by_number(*tag)
end
else
tag.each do |num|
- rval = self["EXIF:#{'#%04X' % num}"]
+ rval = self['#%04X' % num]
hash[num] = rval == 'unknown' ? nil : rval
end
end

0 comments on commit 03e1484

Please sign in to comment.
Something went wrong with that request. Please try again.