M7350/external/libselinux/configure.ac

52 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2024-09-09 08:57:42 +00:00
AC_PREREQ(2.61)
AC_INIT([libselinux],1.0.0)
AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AM_PROG_AS
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
AC_PROG_AWK
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
#
# Build all components by default
#
# To add new components: add AC_ARG_ENABLE, AM_CONDITIONAL and update AC_OUTPUT
#
AC_MSG_CHECKING(for perl regular expressions support)
AC_ARG_WITH(pcre, AC_HELP_STRING([--with-pcre],[Enable pcre support (default yes)]),
[WITH_PCRE=$withval],[WITH_PCRE=yes])
AC_MSG_RESULT([$WITH_PCRE])
if test "$WITH_PCRE" != "no"; then
PKG_CHECK_MODULES(PCREPKG, [libpcre], [
PCRE_LIB=${PCREPKG_LIBS}
CPPFLAGS="$CPPFLAGS ${PCREPKG_CFLAGS}"
AC_DEFINE([HAVE_LIBPCRE], [1], [libpcre])
AC_DEFINE([HAVE_PCRE_H], [1], [pcre.h])
], [
AC_MSG_ERROR([pcre-config not found, install the pcre-devel package or build with --without-pcre])
])
fi
AC_SUBST(PCRE_LIB)
AC_OUTPUT([ \
Makefile \
libselinux.pc
])