X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fconfigure.ad;h=d9b6ba39fdfea5d7cc848d52b8bb2529e019b656;hp=fefae05bbf48b3636ee5fe9082a59e1463db0c51;hb=c2d3eb61a944452c29c5eeb2e89b9113097422de;hpb=6775a31c494ae3a05c8543cd850c031aa0596a9b diff --git a/lib/configure.ad b/lib/configure.ad index fefae05b..d9b6ba39 100644 --- a/lib/configure.ad +++ b/lib/configure.ad @@ -18,6 +18,8 @@ if test x$compile_libs = xtrue; then +AM_PROG_AS + ## ## Will compile included libs ## @@ -142,6 +144,21 @@ AC_CHECK_FUNC(epoll_wait, ) ]) +# +# Memory alignment. User can specify what alignment memory allocation and +# SilcStack allocation use. Default is system default alignemnt. +# +AC_ARG_WITH(alignment, + [ --with-alignment=NUMBER Memory alignment in bytes], + [ + AC_DEFINE_UNQUOTED([SILC_ALIGNMENT], [$withval], [SILC_ALIGNMENT]) + AC_MSG_RESULT(Memory allocation alignment is $withval bytes) + ], + [ + AC_DEFINE([SILC_ALIGNMENT], SILC_SIZEOF_VOID_P, [SILC_ALIGNMENT]) + ]) + + MODULESDIR="$silc_prefix/lib/modules" #ifdef SILC_DIST_SIM # SIM modules directory