1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/evtrec.c)
dnl ***************************************************************************
dnl definitions
PACKAGE="eventlog"
VERSION="`cat $srcdir/VERSION`"
dnl ***************************************************************************
dnl Initial setup
if test -r $srcdir/dist.conf; then
# read defaults, dist.conf does not change
# values for parameters that are already set
source $srcdir/dist.conf
fi
if test "`uname -s`" = "Linux";then
CURRDATE=`date -R`
else
CURRDATE=`date +"%a, %d %b %Y %H:%M:%S %Z"`
fi
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, 1)
if test -n "$SNAPSHOT_VERSION"; then
VERSION=$VERSION+$SNAPSHOT_VERSION
fi
AM_CONFIG_HEADER(config.h)
AC_ARG_ENABLE(dlsym-wrapper,
[ --enable-dlsym-wrapper Enable dlsym based syslog wrapper],
enable_dlsym_wrapper=yes)
AC_ARG_ENABLE(debug,
[ --enable-debug Enable debug information],
enable_debug=yes,
enable_debug=no)
dnl Checks for programs.
AC_PROG_CC
AM_PROG_LIBTOOL
dnl Checks for libraries.
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
dnl Checks for library functions.
AC_CHECK_FUNCS(strdup strerror)
if test "x$ac_compiler_gnu" = "xyes"; then
CFLAGS="${CFLAGS} -Wall"
if test "x$enable_debug" = "xyes"; then
CFLAGS="-Wall -g"
fi
CPPFLAGS="-D_GNU_SOURCE"
fi
if test x$enable_dlsym_wrapper = xyes; then
AC_CHECK_LIB(dl, dlsym)
AC_DEFINE(ENABLE_DLSYM_WRAPPER, 1, [enable DLSYM wrapper])
fi
AC_SUBST(CURRDATE)
AC_SUBST(RELEASE_TAG)
AC_SUBST(SNAPSHOT_VERSION)
AC_SUBST(SOURCE_REVISION)
AC_OUTPUT(Makefile
src/Makefile
tests/Makefile
eventlog.pc
eventlog.spec.bb
solbuild/Makefile
)
|