1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
AC_INIT(diction.c)
AC_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
VERSION=1.02
UPDATED='February 25, 2002'
if test "$prefix" = NONE
then
case $host in
*-linux-*)
prefix=/usr
AC_MSG_RESULT([using prefix $prefix])
PIPE="-pipe "
;;
*)
prefix=$ac_default_prefix
;;
esac
fi
AC_PROG_CC
if test "$GCC" = yes
then
CFLAGS="${CFLAGS} ${PIPE}-Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-declarations -Wnested-externs -pedantic -fno-common"
LDFLAGS='-g'
fi
AC_PROG_INSTALL
AC_CHECK_FUNCS(strerror)
AC_MSG_CHECKING(for broken realloc)
AC_TRY_RUN([#include <sys/types.h>
#include <signal.h>
#include <stdlib.h>
static void sigsegv(int n)
{
exit(1);
}
int main(void)
{
signal(SIGSEGV,sigsegv);
realloc((void*)0,1);
exit(0);
}
],AC_MSG_RESULT(no),AC_DEFINE(BROKEN_REALLOC) AC_MSG_RESULT(yes))
AC_CHECK_HEADERS(nl_types.h)
AC_DEFINE_UNQUOTED(VERSION,"$VERSION")
AC_SUBST(VERSION)
AC_SUBST(UPDATED)
eval DATADIR=$datadir
AC_SUBST(DATADIR)
AC_OUTPUT(Makefile diction.1 diction.texi diction.spec style.1)
|