53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.57)
|
|
AC_INIT(libibcommon, 1.2.0, general@lists.openfabrics.org)
|
|
AC_CONFIG_SRCDIR([src/stack.c])
|
|
AC_CONFIG_AUX_DIR(config)
|
|
AM_CONFIG_HEADER(config.h)
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AC_SUBST(RELEASE, ${RELEASE:-unknown})
|
|
AC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})
|
|
|
|
dnl the library version info is available in the file: libibcommon.ver
|
|
ibcommon_api_version=`grep LIBVERSION $srcdir/libibcommon.ver | sed 's/LIBVERSION=//'`
|
|
if test -z $ibcommon_api_version; then
|
|
ibcommon_api_version=1:0:0
|
|
fi
|
|
AC_SUBST(ibcommon_api_version)
|
|
|
|
dnl Checks for programs
|
|
AC_PROG_CC
|
|
AC_PROG_CPP
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LN_S
|
|
AC_PROG_MAKE_SET
|
|
AM_PROG_LIBTOOL
|
|
|
|
dnl Checks for header files.
|
|
AC_HEADER_STDC
|
|
AC_CHECK_HEADERS([fcntl.h inttypes.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h syslog.h unistd.h])
|
|
|
|
dnl Checks for library functions
|
|
AC_TYPE_SIGNAL
|
|
AC_FUNC_VPRINTF
|
|
AC_CHECK_FUNCS([strrchr strtoul strtoull])
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
AC_C_CONST
|
|
AC_C_INLINE
|
|
AC_STRUCT_TM
|
|
|
|
AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script,
|
|
if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then
|
|
ac_cv_version_script=yes
|
|
else
|
|
ac_cv_version_script=no
|
|
fi)
|
|
|
|
AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$ac_cv_version_script" = "yes")
|
|
|
|
AC_CONFIG_FILES([Makefile libibcommon.spec])
|
|
AC_OUTPUT
|