1 --- libredwg-0.12.4/configure.ac.orig 2021-04-11 15:41:32.582128469 +0200
2 +++ libredwg-0.12.4/configure.ac 2021-04-11 16:42:30.718977307 +0200
6 AC_MSG_CHECKING([GPERF version])
7 - [GPERF_VERSION=`"$GPERF" --version | head -n1 2>&1 | sed 's,GNU gperf ,,'`]
8 - case $GPERF_VERSION in
9 - 1.*) GPERF_VERSION=$((100+${GPERF_VERSION:2:1})) ;;
10 - 2.*) GPERF_VERSION=$((200+${GPERF_VERSION:2:1})) ;;
11 - 3.*) GPERF_VERSION=$((300+${GPERF_VERSION:2:1})) ;;
12 - 4.*) GPERF_VERSION=$((400+${GPERF_VERSION:2:1})) ;;
14 + [GPERF_MAJOR=`"$GPERF" --version | head -n1 2>&1 | sed 's,GNU gperf ,,' | cut -d. -f1`]
15 + [GPERF_MINOR=`"$GPERF" --version | head -n1 2>&1 | sed 's,GNU gperf ,,' | cut -d. -f2`]
16 + GPERF_VERSION=$((GPERF_MAJOR * 100 + GPERF_MINOR))
17 AC_MSG_RESULT([$GPERF_VERSION])
18 AC_DEFINE_UNQUOTED([GPERF_VERSION],[$GPERF_VERSION],
19 [versions earlier than 301 will have no size_t])