summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPawel Kowalski <p.kowalski2@partner.samsung.com>2019-08-28 14:31:23 +0200
committerPawel Kowalski <p.kowalski2@partner.samsung.com>2019-08-28 16:56:31 +0200
commitdee455252ad321c660b411b4ecd65aa5e08f8fc1 (patch)
treeb55f9ec039e963e42605e9e9bdc186354cf9df42 /configure.ac
parent5c7e0aaf17a296535495e3431db6a86ad64064b3 (diff)
parent26bea900a531662c6028ecc06f4adea825658434 (diff)
downloadlibtasn1-tizen_6.5.tar.gz
libtasn1-tizen_6.5.tar.bz2
libtasn1-tizen_6.5.zip
Change-Id: I6d4b47b2072db8e7c45daa6e269e2f0cc6f54a7f
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac67
1 files changed, 25 insertions, 42 deletions
diff --git a/configure.ac b/configure.ac
index 6e925d1..f753c2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,10 +16,10 @@ dnl Process this file with autoconf to produce a configure script.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-AC_PREREQ([2.61])
-AC_INIT([GNU Libtasn1],[4.13],[help-libtasn1@gnu.org])
+AC_PREREQ([2.63])
+AC_INIT([GNU Libtasn1],[4.14],[help-libtasn1@gnu.org])
AC_CONFIG_AUX_DIR([build-aux])
-AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_MACRO_DIRS([m4 m4-gl])
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([foreign 1.10 -Wall -Wno-override])
AM_SILENT_RULES([yes])
@@ -29,12 +29,21 @@ AM_SILENT_RULES([yes])
# Interfaces added: AGE++
# Interfaces removed: AGE=0
AC_SUBST(LT_CURRENT, 11)
-AC_SUBST(LT_REVISION, 5)
+AC_SUBST(LT_REVISION, 6)
AC_SUBST(LT_AGE, 5)
+# Generate version defines for include file
+AC_SUBST([ASN1_VERSION_MAJOR], [`echo $VERSION|cut -d'.' -f1`])
+AC_SUBST([ASN1_VERSION_MINOR], [`echo $VERSION|cut -d'.' -f2`])
+# Let's activate the following line as soon as we change to extended version numbering
+#AC_SUBST([ASN1_VERSION_PATCH], [`echo $VERSION|cut -d'.' -f3`])
+AC_SUBST([ASN1_VERSION_PATCH], [`echo 0`])
+AC_SUBST([ASN1_VERSION_NUMBER], [`printf '0x%02x%02x%02x' $ASN1_VERSION_MAJOR $ASN1_VERSION_MINOR $ASN1_VERSION_PATCH`])
+AC_CONFIG_FILES([lib/includes/libtasn1.h])
+
+
AC_PROG_CC
gl_EARLY
-lgl_EARLY
AC_PROG_YACC
AC_ARG_ENABLE(doc,
@@ -42,6 +51,8 @@ AC_ARG_ENABLE(doc,
enable_doc=$enableval, enable_doc=yes)
AM_CONDITIONAL(ENABLE_DOC, test "$enable_doc" != "no")
+AC_CHECK_FUNCS([clock_gettime])
+
dnl Checks for programs.
AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)
AC_LIBTOOL_WIN32_DLL
@@ -52,11 +63,8 @@ GTK_DOC_CHECK(1.2)
AC_CHECK_SIZEOF(unsigned long int, 4)
AC_CHECK_SIZEOF(unsigned int, 4)
-sj_UPDATE_HEADER_VERSION([$srcdir/lib/libtasn1.h])
-
# For gnulib compatibility modules.
gl_INIT
-lgl_INIT
AC_ARG_ENABLE([gcc-warnings],
[AS_HELP_STRING([--disable-gcc-warnings],
@@ -65,51 +73,26 @@ AC_ARG_ENABLE([gcc-warnings],
yes|no) ;;
*) AC_MSG_ERROR([bad value $enableval for gcc-warnings option]) ;;
esac
- gl_gcc_warnings=$enableval],
- [gl_gcc_warnings=yes]
+ gcc_warnings=$enableval],
+ [gcc_warnings=yes]
)
-if test "$gl_gcc_warnings" = yes; then
- nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
- nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers
- nw="$nw -Wtraditional" # Warns on #elif which we use often
- nw="$nw -Wtraditional-conversion" # Too many warnings for now
- nw="$nw -Wconversion" # Too many warnings for now
- nw="$nw -Wsign-conversion" # Too many warnings for now
- nw="$nw -Wold-style-definition" #
- nw="$nw -Wpadded" # Our structs are not padded
- nw="$nw -Wundef" #
- nw="$nw -Wunreachable-code" # Too many false positives
- nw="$nw -Wunused-macros" # Breaks on bison generated ASN1.c
- nw="$nw -Wswitch-default" # Breaks on bison generated ASN1.c
- nw="$nw -Wunsafe-loop-optimizations"
- nw="$nw -Wstrict-overflow"
- nw="$nw -Woverlength-strings" # Some tests use large strings
- nw="$nw -Wsuggest-attribute=pure" # Is it worth using pure attributes?
-
- gl_MANYWARN_ALL_GCC([ws])
- gl_MANYWARN_COMPLEMENT(ws, [$ws], [$nw])
- for w in $ws; do
- gl_WARN_ADD([$w])
- done
-
- gl_WARN_ADD([-Wno-type-limits])
- gl_WARN_ADD([-Wno-missing-field-initializers])
- gl_WARN_ADD([-Wno-unused-parameter])
- gl_WARN_ADD([-Wno-stack-protector]) # Some functions cannot be protected
- gl_WARN_ADD([-fdiagnostics-show-option])
+WARN_CFLAGS=""
+if test "$gcc_warnings" = yes;then
+ WARN_CFLAGS="$WARN_CFLAGS -Wall"
fi
+AC_SUBST([WARN_CFLAGS])
+
+AX_CODE_COVERAGE
AC_CONFIG_FILES([
Makefile
doc/Makefile
doc/cyclo/Makefile
doc/reference/Makefile
- doc/reference/version.xml
examples/Makefile
- gl/Makefile
lib/Makefile
- lib/gllib/Makefile
+ lib/gl/Makefile
lib/libtasn1.pc
src/Makefile
tests/Makefile