]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
macos doesn't like big version numbers
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 18 Nov 2022 13:13:35 +0000 (07:13 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 18 Nov 2022 13:13:46 +0000 (07:13 -0600)
Make.inc.in
configure
configure.ac
scripts/libtool.mk

index 80419312340f55be8d97f5ce71937f08c4e3a49a..11623e6929d2b88cfd33d3bf86d86aae4fe23ba0 100644 (file)
@@ -146,6 +146,10 @@ endif
 #
 RADIUSD_VERSION = @RADIUSD_VERSION@
 
+RADIUSD_VERSION_MAJOR = @RADIUSD_VERSION_MAJOR@
+RADIUSD_VERSION_MINOR = @RADIUSD_VERSION_MINOR@
+RADIUSD_VERSION_INCROM = @RADIUSD_VERSION_INCRM@
+
 #
 #  This allows dlopen to do runtime checks for version mismatches
 #  between what it was originally linked with, and the library it's
index dd0b2ac52428c5e5f3d20811670acbc8ff62e79c..34a67bf3c0ca15f84ea0800793bf1696c189de4e 100755 (executable)
--- a/configure
+++ b/configure
@@ -733,6 +733,10 @@ PANDOC_ENGINE
 PANDOC
 ASCIIDOCTOR
 GIT
+RADIUSD_VERSION_INCRM
+RADIUSD_VERSION_MINOR
+RADIUSD_VERSION_MAJOR
+RADIUSD_VERSION
 target_alias
 host_alias
 build_alias
@@ -2840,6 +2844,11 @@ printf "%s\n" "#define RADIUSD_VERSION_INCRM ${RADIUSD_VERSION_INCRM}" >>confdef
 
 
 
+
+
+
+
+
 unset ASAN_OPTIONS
 unset LSAN_OPTIONS
 
index bd7bd1bb34d2a33c2951160e831806d64e3648e3..fc8ddf2309ff92851736e74f9fb55ef88b435fee 100644 (file)
@@ -53,6 +53,11 @@ AC_DEFINE_UNQUOTED([RADIUSD_VERSION_MAJOR], [${RADIUSD_VERSION_MAJOR}], [Version
 AC_DEFINE_UNQUOTED([RADIUSD_VERSION_MINOR], [${RADIUSD_VERSION_MINOR}], [Version integer in format <mi>])
 AC_DEFINE_UNQUOTED([RADIUSD_VERSION_INCRM], [${RADIUSD_VERSION_INCRM}], [Version integer in format <in>])
 
+AC_SUBST(RADIUSD_VERSION)
+AC_SUBST(RADIUSD_VERSION_MAJOR)
+AC_SUBST(RADIUSD_VERSION_MINOR)
+AC_SUBST(RADIUSD_VERSION_INCRM)
+
 dnl #############################################################
 dnl #
 dnl #  Override some of the default autoconf variables such as
index adb64e698926f108e06d1235f4a7c014d11c8cda..ad31a7ff69cdfb605b46fbaa2028a134c60ba6cd 100644 (file)
@@ -33,7 +33,7 @@ ifneq "${LIBTOOL}" ""
 
 ifeq "${LIBTOOL}" "JLIBTOOL"
     JLIBTOOL := ${BUILD_DIR}/make/jlibtool
-    JLIBTOOL_DEFS := -DPROGRAM_VERSION=$(RADIUSD_VERSION)
+    JLIBTOOL_DEFS := -DPROGRAM_VERSION=$(RADIUSD_VERSION_MAJOR).$(RADIUSD_VERSION_MINOR)
 
     # Pass compiler and ranlib paths through to jlibtool if they're
     # defined in the environment.  This lets us define a separate