summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-12-28 18:41:22 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-12-28 18:41:22 +0100
commit7e4eaae0e5d684a0ccfb1a18ded2d8bf287fd80d (patch)
treee44ba63efbc3e54d2b59d38079a9ef27088c21e6 /configure.ac
parentbda51eefe0ca607de7703da6dc9e9413cf71ab25 (diff)
com_err library may be needed by ext2fs library
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6f2a177..e1daa27 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,6 +55,15 @@ AC_ARG_WITH(ext2fs-includes,
AS_HELP_STRING(--with-ext2fs-includes=DIR,location of the ext2fs includes files),
[CPPFLAGS="${CPPFLAGS} -I${withval}"])
+AC_ARG_WITH(com_err-lib,
+ AS_HELP_STRING(--with-com_err-lib=DIR,location of the com_err library),
+ [ com_err_lib_a="${withval}/libcom_err.a"
+ LDFLAGS="${LDFLAGS} -L${withval}" ])
+
+AC_ARG_WITH(com_err-includes,
+ AS_HELP_STRING(--with-com_err-includes=DIR,location of the com_err includes files),
+ [CPPFLAGS="${CPPFLAGS} -I${withval}"])
+
AC_ARG_WITH([jpeg],
AS_HELP_STRING(--without-jpeg,disabled use of the jpeg library (default is NO)),
[ use_jpeg="n" ])
@@ -364,6 +373,14 @@ if test -z "${use_ext2fs}"; then
LIBS="$LIBS ${ext2fs_lib_a}"
fi
],AC_MSG_WARN(No ext2fs library detected))
+ AC_CHECK_LIB(ext2fs,ext2fs_open,[
+ AC_DEFINE([HAVE_LIBCOMM_ERR],1,[Define to 1 if you have the com_err library (-lcom_err).])
+ if test "${com_err_lib_a}" = ""; then
+ LIBS="$LIBS -lcom_err"
+ else
+ LIBS="$LIBS ${com_err_lib_a}"
+ fi
+ ],AC_MSG_WARN(No com_err library detected))
else
AC_MSG_WARN(Use of ext2fs library disabled)
fi