You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 4) ||
218
+
(test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18) ||
219
+
test ${AUTOGEN_MAJOR} -lt 5 ; then
220
+
AC_MSG_RESULT(no)
221
+
if test ! "x$enable_local_libopts" = "xyes"; then
222
+
AC_MSG_ERROR([${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.4 or higher])
223
+
fi
224
+
AUTOGEN_VERSION="${AUTOGEN_VERSION} - downlevel"
225
+
else
226
+
AC_MSG_RESULT(yes)
227
+
fi
228
+
229
+
dnl Compare the installed version with the maintainer version if building from GitHub and not using system libopts
230
+
if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
231
+
if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
232
+
AC_MSG_ERROR([Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts])
233
+
fi
234
+
fi
235
+
else
236
+
if test ! -f src/tcpreplay_opts.c ; then
237
+
AC_MSG_ERROR([Please install GNU autogen $MAINTAINER_AUTOGEN_VERSION or higher if you are building from GitHub. To avoid this message download source from https://github.com/appneta/tcpreplay/releases/latest])
238
+
fi
239
+
fi
240
+
AC_DEFINE([AUTOGEN_VERSION], [${AUTOGEN_VERSION}], [What version of autogen is installed on this system])
0 commit comments