# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(lwrpcrt, 1.0.0, support@likewisesoftware.com) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_CONFIG_HEADERS([include/config.h]) AC_CONFIG_MACRO_DIR([m4]) AM_CPPFLAGS="" AM_CFLAGS="" AM_LDFLAGS="" PKG_VERSION="1.0.0" AC_USE_SYSTEM_EXTENSIONS # dcerpc AC_ARG_WITH([dcerpc], [AC_HELP_STRING([--with-dcerpc=], [use dcerpc located in prefix ])], [ DCERPC_INCLUDES="-I$withval/include" DCERPC_LDFLAGS="-L$withval/lib" DCERPC_PATH="$withval/bin" ]) AC_ARG_WITH([dcerpc-includes], [AC_HELP_STRING([--with-dcerpc-includes=], [use dcerpc includes located in ])], [ DCERPC_INCLUDES="-I$withval" ]) AC_ARG_WITH([dcerpc-libs], [AC_HELP_STRING([--with-dcerpc-libs=], [use dcerpc libs located in ])], [ DCERPC_LDFLAGS="-L$withval" ]) DCERPC_LIBS="-ldcerpc" AC_SUBST(DCERPC_INCLUDES) AC_SUBST(DCERPC_LDFLAGS) AC_SUBST(DCERPC_LIBS) # debugging AC_ARG_ENABLE([debug], [AC_HELP_STRING([--enable-debug], [enable debugging (default: disabled)])], [ if test x"$enableval" = x"yes" then AM_CFLAGS="$AM_CFLAGS -g -O0" AM_CPPFLAGS="$AM_CPPFLAGS -DDEBUG" fi ]) AC_ARG_ENABLE([profiling], [AC_HELP_STRING([--enable-profiling], [enable profiling (default: disabled)])], [ if test x"$enableval" = x"yes" then AM_CFLAGS="$AM_CFLAGS -fprofile-arcs -ftest-coverage" LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage" fi ]) CPPFLAGS="$CPPFLAGS -D_REENTRANT" AM_CPPFLAGS="$AM_CPPFLAGS -I${top_srcdir}/include" AM_CFLAGS="$AM_CFLAGS -Wall -Werror -fno-strict-aliasing" AC_SUBST(AM_CPPFLAGS) AC_SUBST(AM_CFLAGS) AC_C_BIGENDIAN AC_PROG_CC AC_PROG_INSTALL AC_PROG_LIBTOOL AC_PROG_MKDIR_P # Checks for header files. AC_HEADER_STDC # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_PID_T AC_HEADER_TIME AC_STRUCT_TM AC_CONFIG_FILES([Makefile include/Makefile ]) AC_OUTPUT