Skip to content

Commit

Permalink
configure: Fix checks for libjpeg and libexif
Browse files Browse the repository at this point in the history
Use the functions from the respective library instead of using main
function which is not part of library

Upstream-Status: Pending
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Sep 1, 2022
1 parent 8efd57d commit 4e0c626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ AC_SUBST(version_info)
dnl AC_CHECK_FUNCS(fmemopen)
dnl AC_CHECK_FUNCS(open_memstream)

AC_CHECK_LIB([jpeg], [main], [], [echo "libjpeg library not found. Please install it before proceeding"; exit -1])
AC_CHECK_LIB([exif], [main], [], [echo "libexif library not found. Please install it before proceeding"; exit -1])
AC_CHECK_LIB([jpeg], [jpeg_simple_progression], [], [echo "libjpeg library not found. Please install it before proceeding"; exit -1])
AC_CHECK_LIB([exif], [exif_data_new_from_file], [], [echo "libexif library not found. Please install it before proceeding"; exit -1])

my_includes=""
my_libs="-ljpeg -lexif"
Expand Down

0 comments on commit 4e0c626

Please sign in to comment.