AC_INIT([libref_array], 0.1.1, [sssd-devel@lists.fedorahosted.org]) AC_CONFIG_SRCDIR([ref_array.c]) AC_CONFIG_AUX_DIR([build]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_CC AC_PROG_LIBTOOL AC_CONFIG_MACRO_DIR([m4]) AC_PROG_INSTALL AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes]) m4_pattern_allow([AM_SILENT_RULES]) AM_SILENT_RULES AC_CONFIG_HEADERS([config.h]) # Enable trace build AC_ARG_ENABLE([trace], [AS_HELP_STRING([--enable-trace[=LEVEL]],[build with low level tracing enabled])], [trace_level="$enableval"], [trace_level="0"]) AS_IF([test ["$trace_level" -gt "0"] -a ["$trace_level" -lt "8"] ],[AC_SUBST([TRACE_VAR],["-DTRACE_LEVEL=$trace_level"])]) AC_PATH_PROG([DOXYGEN], [doxygen], [false]) AM_CONDITIONAL([HAVE_DOXYGEN], [test x$DOXYGEN != xfalse ]) AC_CONFIG_FILES([Makefile ref_array.cfg.doxy ref_array.pc contrib/libref_array.spec]) AC_OUTPUT