blob: f21bc4780d2330d8483a77d772b7d15720dbb44a (
plain) (
tree)
|
|
AC_INIT(foobar, 1.0, me@mail.com)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_SRCDIR(src)
AC_CONFIG_MACRO_DIR([m4])
#AC_CONFIG_SRCDIR(src/foobar.cpp)
AM_INIT_AUTOMAKE([foreign])
#AC_PROG_CXX
AC_PROG_CC
LT_INIT
AC_PROG_LIBTOOL
AC_ENABLE_SHARED
AC_DISABLE_STATIC
AC_ARG_ENABLE(
[static],
AC_HELP_STRING(
[--enable-static],
[
Enables or Disables Statick Linking (STATIC is disabled by default)
]
),
[
enable_static="$enableval"
case $enableval in
"no");;
"yes");;
*) AC_MSG_ERROR([[invalid argument --enable-static=$disableval... stopping]]);;
esac
],
[enable_static="no"]
)
AM_CONDITIONAL(ENABLE_STATIC, test x$enable_static = xyes)
AC_CHECK_FUNC([strnlen],[CFLAGS="$CFLAGS -DHAVE_STRNLEN"])
AC_CHECK_FUNC([setrlimit],[CLAGS="$CFLAGS -DHAVE_SETRLIMIT"])
AC_OUTPUT(Makefile src/Makefile)
|