NetworkInador/configure.ac

73 lines
2.0 KiB
Plaintext
Raw Normal View History

2018-08-07 15:28:22 -05:00
AC_INIT([NetworkInador], [0.1.0], [], [networkinador])
AC_REVISION([Revision 1])
AC_CONFIG_AUX_DIR([build-aux])
2019-12-31 11:05:50 -06:00
AC_CONFIG_SRCDIR([src/main.c])
2018-08-07 15:28:22 -05:00
# For debian systems, /usr as default
AC_PREFIX_DEFAULT([/usr])
# We need Gcc
AC_PROG_CC
2019-12-31 11:05:50 -06:00
2018-08-07 15:28:22 -05:00
# and automake
AM_INIT_AUTOMAKE([-Wall -Werror])
# Translate this program
AM_GNU_GETTEXT_VERSION([0.19.8])
AM_GNU_GETTEXT([external])
ALL_LINGUAS=""
AC_SUBST(ALL_LINGUAS)
AM_PROG_CC_C_O
# Revisar el host
AC_CANONICAL_HOST
case $host_os in
*linux* ) LINUX=yes;;
* )
AC_MSG_ERROR([Only linux systems are supported])
;;
esac
GLIB_VERSION=2.50
2019-12-31 11:05:50 -06:00
LIBNL_VERSION=0.29
GTK3_VERSION=3.24
2018-08-07 15:28:22 -05:00
AC_MSG_CHECKING([if you have Glib installed on your system])
PKG_CHECK_EXISTS([glib-2.0 >= $GLIB_VERSION], [AC_MSG_RESULT([yes])], [AC_MSG_FAILURE([Glib not found in your system])])
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= $GLIB_VERSION], [], [])
AC_MSG_CHECKING([if you have GTK+3 installed on your system])
PKG_CHECK_EXISTS([gtk+-3.0 >= $GTK3_VERSION], [AC_MSG_RESULT([yes])], [AC_MSG_FAILURE([GTK+3 not found in your system])])
PKG_CHECK_MODULES(GTK, [gtk+-3.0 >= $GTK3_VERSION], [], [])
2019-12-31 11:05:50 -06:00
AC_MSG_CHECKING([if you have libnl-3 installed on your system])
PKG_CHECK_EXISTS([libnl-3.0 >= LIBNL_VERSION], [AC_MSG_RESULT([yes])], [AC_MSG_FAILURE([libnl-3 not found in your system])])
PKG_CHECK_MODULES(LIBNL3, [libnl-3.0 >= $LIBNL_VERSION], [], [])
2018-08-07 15:28:22 -05:00
AC_MSG_CHECKING([if you have libnl-gen-3 installed on your system])
PKG_CHECK_EXISTS([libnl-genl-3.0 >= LIBNL_VERSION], [AC_MSG_RESULT([yes])], [AC_MSG_FAILURE([libnl-gen-3 not found in your system])])
PKG_CHECK_MODULES(LIBNLGEN3, [libnl-genl-3.0 >= $LIBNL_VERSION], [], [])
GLIB_GENMARSHAL="$($PKG_CONFIG --variable=glib_genmarshal glib-2.0)"
AC_SUBST([GLIB_GENMARSHAL])
2018-08-07 15:28:22 -05:00
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
client-gtk/Makefile
2018-08-07 15:28:22 -05:00
po/Makefile.in
])
2019-12-31 11:05:50 -06:00
# src/dhcpc/Makefile
# src/client_test/Makefile
2018-08-07 15:28:22 -05:00
# data/Makefile
AC_OUTPUT