# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([libsunavl], [1.2], [pashev.igor@gmail.com]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR([usr/src/common/avl/avl.c]) AM_INIT_AUTOMAKE([foreign dist-xz]) AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [enable debugging and asserts])) if test "x$enable_debug" = "xyes" then AC_SUBST([CPPFLAGS], [-DDEBUG]) else AC_SUBST([CPPFLAGS], [-DNDEBUG]) fi # Checks for programs. AC_PROG_CC_C99 LT_INIT AC_MSG_CHECKING([how to pass version script to the linker ($LD)]) VERSION_SCRIPT_FLAGS=none if $LD --help 2>&1 | grep "version-script" >/dev/null 2>/dev/null; then VERSION_SCRIPT_FLAGS=-Wl,--version-script= elif $LD --help 2>&1 | grep "M mapfile" >/dev/null 2>/dev/null; then VERSION_SCRIPT_FLAGS="-Wl,-M -Wl," fi AC_MSG_RESULT([$VERSION_SCRIPT_FLAGS]) AC_SUBST(VERSION_SCRIPT_FLAGS) AM_CONDITIONAL([USE_VERSION_SCRIPT], [test "$VERSION_SCRIPT_FLAGS" != none]) # Checks for libraries. # Checks for header files. # Checks for typedefs, structures, and compiler characteristics. # Checks for library functions. AC_CONFIG_FILES([Makefile]) AC_OUTPUT