X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=configure.ad;h=f719d7a3aeb9dfd5fa5745a59592f7496ccf00a3;hp=de959e791d3fc542e2b537025f855ca099175ecb;hb=4f49025cf0989f6c4a06be0b24aeec1d4625d10f;hpb=2b65f4989fc44873b55ce3b8d384488cf911bc4d diff --git a/configure.ad b/configure.ad index de959e79..f719d7a3 100644 --- a/configure.ad +++ b/configure.ad @@ -95,8 +95,26 @@ __SILC_HAVE_SIM="" __SILC_ENABLE_DEBUG="" #ifdef SILC_DIST_TOOLKIT -toolkitver=`echo $VERSION | sed 's/\./_/g'` -__SILC_PACKAGE_VERSION="#define __SILC_TOOLKIT_$toolkitver 1" +toolkitver=`echo $VERSION | sed 's/\./ /g'` +maj=0 +min=0 +bld=0 +for v in $toolkitver +do + if test $maj -eq 0; then + maj=$v + continue + fi + if test $min -eq 0; then + min=$v + continue + fi + if test $bld -eq 0; then + bld=$v + continue + fi +done +__SILC_PACKAGE_VERSION="#define __SILC_TOOLKIT_VERSION SILC_VERSION($maj,$min,$bld)" #endif SILC_DIST_TOOLKIT AC_PROG_RANLIB