@@ -23,9 +23,13 @@ AC_CONFIG_SRCDIR([src/encmain.c])
2323#
2424# Here is a somewhat sane guide to lib versioning: http://apr.apache.org/versioning.html
2525ver_major=7
26- ver_minor=5
26+ ver_minor=6
2727ver_release=0
2828
29+ kvz_pjt_ver_major=2
30+ kvz_pjt_ver_minor=3
31+ kvz_pjt_ver_revision=2
32+
2933# Prevents configure from adding a lot of defines to the CFLAGS
3034AC_CONFIG_HEADERS ( [ config.h] )
3135
@@ -75,6 +79,8 @@ AM_CONDITIONAL([HAVE_SSE2], [test x"$flag_sse2" = x"true"])
7579
7680KVZ_CFLAGS="-Wall -Wextra -Wvla -Wno-sign-compare -Wno-unused-parameter -I$srcdir/src -I$srcdir/src/extras -ftree-vectorize -fvisibility=hidden"
7781CFLAGS="$KVZ_CFLAGS $CFLAGS"
82+ CFLAGS="-DKVZ_VERSION_MAJOR=$kvz_pjt_ver_major -DKVZ_VERSION_MINOR=$kvz_pjt_ver_minor -DKVZ_VERSION_REVISION=$kvz_pjt_ver_revision $CFLAGS"
83+
7884
7985AC_SEARCH_LIBS ( [ log] , [ m c] , [ ] , [ exit 1] )
8086AC_SEARCH_LIBS ( [ pow] , [ m c] , [ ] , [ exit 1] )
@@ -103,7 +109,6 @@ LIBS="$LIBS $cryptopp_LIBS"
103109
104110CPPFLAGS="-DKVZ_DLL_EXPORTS $CPPFLAGS"
105111
106-
107112# We need to force AX_PTHREAD to check -pthread -lpthread since otherwise
108113# it only outputs -pthread for GCC. Without -lpthread GCC does not link the
109114# shared library against the pthread library (even though it does link the
@@ -118,6 +123,14 @@ CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
118123LIBS="$PTHREAD_LIBS $LIBS"
119124CC="$PTHREAD_CC"
120125
126+ compiler_name=`basename $CC`
127+ escaped_compiler_name='\"'$compiler_name'\"'
128+ CFLAGS="-DKVZ_COMPILER_STRING=$escaped_compiler_name $CFLAGS"
129+
130+ compile_date=`date -u +"%Y-%m-%d"`
131+ escaped_compile_date='\"'$compile_date'\"'
132+ CFLAGS="-DKVZ_COMPILE_DATE=$escaped_compile_date $CFLAGS"
133+
121134# --enable-werror
122135AC_ARG_ENABLE ( [ werror] , [ AS_HELP_STRING ( [ --enable-werror] , [ treat warnings as errors [ no] ] ) ] ,
123136 [ CFLAGS="-Werror $CFLAGS"] , [ ]
0 commit comments