This repository has been archived on 2024-07-15. You can view files and clone it, but cannot push or open issues or pull requests.
hedera-comparative/configure.ac

93 lines
2.3 KiB
Plaintext

dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta application wizard.
AC_INIT(comparative, 0.1)
AC_CONFIG_AUX_DIR([build])
AC_CONFIG_MACRO_DIR([build/m4])
AC_CONFIG_HEADERS([build/config.h])
AM_INIT_AUTOMAKE([-Wno-portability])
AM_SILENT_RULES([yes])
AC_PROG_CC
dnl Check for vala.
dnl You should change the version manually to match with yours.
AM_PROG_VALAC([0.24.0])
dnl Internationalization
IT_PROG_INTLTOOL([0.35.0])
GETTEXT_PACKAGE=hedera-comparative
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
AM_GLIB_GNU_GETTEXT
AM_XGETTEXT_OPTION([-k_ -kQ_:1g -kN_ -kC_:1c,2 -kNC_:1c,2])
AC_MSG_CHECKING([whether to build with debug information])
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[Enable debug data generation [default = no]])],
[ENABLE_DEBUG="$enableval"],
[ENABLE_DEBUG=no])
AC_MSG_RESULT([$ENABLE_DEBUG])
if test x"$ENABLE_DEBUG" = x"yes"; then
CFLAGS=" -ggdb -O0 "
VALAFLAGS=" -g --save-temps "
else
CFLAGS=" -O2 "
VALAFLAGS=
fi
AC_MSG_CHECKING([whether C warnings will be shown])
AC_ARG_ENABLE([c-warnings],
[AS_HELP_STRING([--enable-c-warnings],
[Enable C warnings to be shown [default = no]])],
[C_WARNINGS="$enableval"],
[C_WARNINGS=no])
AC_MSG_RESULT([$C_WARNINGS])
if test x"$C_WARNINGS" = x"yes"; then
CFLAGS+=" -Wall "
else
CFLAGS+=" -w "
fi
AC_SUBST([CFLAGS])
AC_SUBST([VALAFLAGS])
LT_INIT
AC_ARG_VAR([UNINSTALLED_DIR], [the directory of the uninstalled hedera project])
: ${UNINSTALLED_DIR=''}
PKG_PROG_PKG_CONFIG
if test $UNINSTALLED_DIR; then
VALA_CHECK_MODULES(COMPARATIVE, [gtk+-3.0 ])
COMPARATIVE_CFLAGS+=-I$UNINSTALLED_DIR
COMPARATIVE_LIBS+=$UNINSTALLED_DIR/build/main/libhedera.la
VALAFLAGS+="$COMPARATIVE_VALAFLAGS --pkg gvn --pkg sql --pkg db --pkg vn --vapidir $UNINSTALLED_DIR/build/vapi "
AC_SUBST(comparative_libdir, $libdir/hedera/module)
AC_SUBST(comparative_datadir, $datadir/hedera/module)
AC_SUBST(querydir, $comparative_datadir/sql)
else
VALA_CHECK_MODULES(COMPARATIVE, [hedera ])
VALAFLAGS+=$COMPARATIVE_VALAFLAGS
PKG_CHECK_VAR([comparative_libdir], [hedera], [modulelibdir])
PKG_CHECK_VAR([comparative_datadir], [hedera], [moduledatadir])
PKG_CHECK_VAR([querydir], [hedera], [modulequerydir])
fi
AC_OUTPUT([
Makefile
src/Makefile
data/Makefile
po/Makefile.in])