Skip to content

Commit

Permalink
Unix build: fix detection of minor version number of Poppler with the…
Browse files Browse the repository at this point in the history
… new YY.MM.X numbering scheme (fixes #2823) (#2825)

Authored-by: @chris2553
  • Loading branch information
rouault committed Aug 3, 2020
1 parent a651b7d commit 2b863db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gdal/configure
Original file line number Diff line number Diff line change
Expand Up @@ -40824,8 +40824,8 @@ $as_echo "yes" >&6; }
fi
if test "$POPPLER_VERSION" != ""; then
HAVE_POPPLER=yes
POPPLER_MAJOR_VERSION=`expr $POPPLER_VERSION : '\([0-9]*\)'`
POPPLER_MINOR_VERSION=`expr $POPPLER_VERSION : '[0-9]*\.\([0-9]*\)'`
POPPLER_MAJOR_VERSION=`echo $POPPLER_VERSION | cut -d'.' -f1`
POPPLER_MINOR_VERSION=`echo $POPPLER_VERSION | cut -d'.' -f2 | sed -e 's/^0//'`
POPPLER_CFLAGS=`echo $POPPLER_CFLAGS $POPPLER_CFLAGS | sed "s/include\/poppler/include/"`
fi
else
Expand Down
4 changes: 2 additions & 2 deletions gdal/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4966,8 +4966,8 @@ if test "$with_poppler" != "no" -a "$with_poppler" != ""; then
[POPPLER_VERSION=`$PKG_CONFIG --modversion poppler`], [POPPLER_VERSION=])
if test "$POPPLER_VERSION" != ""; then
HAVE_POPPLER=yes
POPPLER_MAJOR_VERSION=`expr $POPPLER_VERSION : '\([[0-9]]*\)'`
POPPLER_MINOR_VERSION=`expr $POPPLER_VERSION : '[[0-9]]*\.\([[0-9]]*\)'`
POPPLER_MAJOR_VERSION=`echo $POPPLER_VERSION | cut -d'.' -f1`
POPPLER_MINOR_VERSION=`echo $POPPLER_VERSION | cut -d'.' -f2 | sed -e 's/^0//'`
POPPLER_CFLAGS=`echo $POPPLER_CFLAGS $POPPLER_CFLAGS | sed "s/include\/poppler/include/"`
fi
else
Expand Down

0 comments on commit 2b863db

Please sign in to comment.