Added alp2 as a build option.

This commit is contained in:
b1v1r 2010-07-13 17:03:33 +00:00
parent b186e73490
commit 86e9b42db0
2 changed files with 79 additions and 14 deletions

71
configure vendored
View File

@ -804,6 +804,8 @@ EXTRA_CFLAGS
TOPLEVEL_SUBDIRS
BUILD_DOCS_FALSE
BUILD_DOCS_TRUE
BUILD_ALP2_FALSE
BUILD_ALP2_TRUE
BUILD_MLOGC_FALSE
BUILD_MLOGC_TRUE
BUILD_extentions_FALSE
@ -937,6 +939,7 @@ enable_libtool_lock
enable_apache2_module
enable_extentions
enable_mlogc
enable_alp2
enable_docs
enable_pcre_study
enable_pcre_match_limit
@ -1597,6 +1600,7 @@ Optional Features:
Disable building Apache2 module.
--enable-extentions Enable building extension.
--disable-mlogc Disable building mlogc.
--enable-alp2 Enable building audit log parser lib.
--enable-docs Enable building documentation.
--enable-pcre-study Enable PCRE regex studying during configure.
--enable-pcre-match-limit
@ -4640,13 +4644,13 @@ if test "${lt_cv_nm_interface+set}" = set; then :
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
(eval echo "\"\$as_me:4643: $ac_compile\"" >&5)
(eval echo "\"\$as_me:4647: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
(eval echo "\"\$as_me:4646: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval echo "\"\$as_me:4650: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
(eval echo "\"\$as_me:4649: output\"" >&5)
(eval echo "\"\$as_me:4653: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
@ -5852,7 +5856,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 5855 "configure"' > conftest.$ac_ext
echo '#line 5859 "configure"' > conftest.$ac_ext
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
(eval $ac_compile) 2>&5
ac_status=$?
@ -7381,11 +7385,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:7384: $lt_compile\"" >&5)
(eval echo "\"\$as_me:7388: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:7388: \$? = $ac_status" >&5
echo "$as_me:7392: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@ -7720,11 +7724,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:7723: $lt_compile\"" >&5)
(eval echo "\"\$as_me:7727: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:7727: \$? = $ac_status" >&5
echo "$as_me:7731: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@ -7825,11 +7829,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:7828: $lt_compile\"" >&5)
(eval echo "\"\$as_me:7832: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:7832: \$? = $ac_status" >&5
echo "$as_me:7836: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -7880,11 +7884,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:7883: $lt_compile\"" >&5)
(eval echo "\"\$as_me:7887: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:7887: \$? = $ac_status" >&5
echo "$as_me:7891: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -10263,7 +10267,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 10266 "configure"
#line 10270 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -10359,7 +10363,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 10362 "configure"
#line 10366 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -12241,6 +12245,36 @@ if test "$build_mlogc" -eq 1; then
TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS mlogc"
fi
# Audit Log Parser v2 (ALP2)
# Check whether --enable-alp2 was given.
if test "${enable_alp2+set}" = set; then :
enableval=$enable_alp2;
if test "$enableval" != "no"; then
build_alp2=1
else
build_alp2=0
fi
else
build_alp2=0
fi
if test "$build_alp2" -eq 1; then
BUILD_ALP2_TRUE=
BUILD_ALP2_FALSE='#'
else
BUILD_ALP2_TRUE='#'
BUILD_ALP2_FALSE=
fi
if test "$build_alp2" -eq 1; then
TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS alp2"
fi
# Documentation
# Check whether --enable-docs was given.
if test "${enable_docs+set}" = set; then :
@ -13348,6 +13382,10 @@ ac_config_files="$ac_config_files Makefile"
ac_config_files="$ac_config_files tools/Makefile"
if test "$build_alp2" -ne 0; then
ac_config_files="$ac_config_files alp2/Makefile"
fi
if test "$build_apache2_module" -ne 0; then
ac_config_files="$ac_config_files apache2/Makefile"
@ -13506,6 +13544,10 @@ if test -z "${BUILD_MLOGC_TRUE}" && test -z "${BUILD_MLOGC_FALSE}"; then
as_fn_error "conditional \"BUILD_MLOGC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_ALP2_TRUE}" && test -z "${BUILD_ALP2_FALSE}"; then
as_fn_error "conditional \"BUILD_ALP2\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
as_fn_error "conditional \"BUILD_DOCS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
@ -14366,6 +14408,7 @@ do
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
"alp2/Makefile") CONFIG_FILES="$CONFIG_FILES alp2/Makefile" ;;
"apache2/Makefile") CONFIG_FILES="$CONFIG_FILES apache2/Makefile" ;;
"ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
"build/apxs-wrapper") CONFIG_FILES="$CONFIG_FILES build/apxs-wrapper" ;;

View File

@ -130,6 +130,25 @@ if test "$build_mlogc" -eq 1; then
TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS mlogc"
fi
# Audit Log Parser v2 (ALP2)
AC_ARG_ENABLE(alp2,
AS_HELP_STRING([--enable-alp2],
[Enable building audit log parser lib.]),
[
if test "$enableval" != "no"; then
build_alp2=1
else
build_alp2=0
fi
],
[
build_alp2=0
])
AM_CONDITIONAL([BUILD_ALP2], [test "$build_alp2" -eq 1])
if test "$build_alp2" -eq 1; then
TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS alp2"
fi
# Documentation
AC_ARG_ENABLE(docs,
AS_HELP_STRING([--enable-docs],
@ -516,6 +535,9 @@ fi
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([tools/Makefile])
if test "$build_alp2" -ne 0; then
AC_CONFIG_FILES([alp2/Makefile])
fi
if test "$build_apache2_module" -ne 0; then
AC_CONFIG_FILES([apache2/Makefile])
fi