From: Rudolf Polzer Date: Mon, 26 Jul 2010 13:32:52 +0000 (+0200) Subject: fix build of rijndael lib X-Git-Tag: xonotic-v0.1.0preview~38^2~7 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fd0_blind_id.git;a=commitdiff_plain;h=587bbd752e2037d8c1488a51d99c99f29a660f0d;hp=b51d8aba4d184fa4e04a6a70743593d1945b9e16 fix build of rijndael lib --- diff --git a/Makefile.am b/Makefile.am index a97b281..19092c3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,16 +13,16 @@ lib_LTLIBRARIES = libd0_blind_id.la libd0_blind_id_la_SOURCES = d0_bignum-gmp.c d0_blind_id.c d0.c d0_iobuf.c sha2.c libd0_blind_id_la_LDFLAGS = -versioninfo 2:0:2 libd0_blind_id_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement - library_includedir = $(includedir)/d0_blind_id -library_include_HEADERS = d0_blind_id.h d0.h d0_rijndael.h +library_include_HEADERS = d0_blind_id.h d0.h pkgconfigdir = $(libdir)/pkgconfig pkgconfig_HEADERS = d0_blind_id.pc if ENABLE_RIJNDAEL -library_include_HEADERS += d0_rijndael.h lib_LTLIBRARIES += libd0_rijndael.la libd0_rijndael_la_SOURCES = d0_rijndael.c libd0_rijndael_la_LDFLAGS = -versioninfo 0:0:0 libd0_rijndael_la_CFLAGS = -fvisibility=hidden -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement +library_include_HEADERS += d0_rijndael.h +pkgconfig_HEADERS += d0_rijndael.pc endif diff --git a/configure.ac b/configure.ac index 70fecc0..a6e8bbe 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ AC_PROG_LIBTOOL AC_SEARCH_LIBS(__gmpz_init, gmp, , [AC_MSG_ERROR([GNU MP not found, see http://gmplib.org/])]) AC_ARG_ENABLE(rijndael, AS_HELP_STRING([--disable-rijndael], [Disable build of the d0_rijndael library]), [enable_aes=$enableval], [enable_aes=yes]) -AM_CONDITIONAL(ENABLE_RIJNDAEL, [test x$enable_aes = xtrue]) +AM_CONDITIONAL(ENABLE_RIJNDAEL, [test x$enable_aes = xyes]) dnl AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile d0_blind_id.pc]) diff --git a/d0_blind_id.pc.in b/d0_blind_id.pc.in index bfd5097..60fcdc4 100644 --- a/d0_blind_id.pc.in +++ b/d0_blind_id.pc.in @@ -7,5 +7,5 @@ Name: Blind-ID Description: Library for user identification using RSA blind signatures Requires: Version: @VERSION@ -Libs: -L${libdir} -lblind_id -Cflags: -I${includedir}/blind_id +Libs: -L${libdir} -ld0_blind_id +Cflags: -I${includedir}/d0_blind_id diff --git a/d0_rijndael.pc.in b/d0_rijndael.pc.in new file mode 100644 index 0000000..bb735f1 --- /dev/null +++ b/d0_rijndael.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Rijndael +Description: Library for Rijndael encryption +Requires: +Version: @VERSION@ +Libs: -L${libdir} -ld0_rijndael +Cflags: -I${includedir}/d0_blind_id