1 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT(libibcommon, 1.2.0, general@lists.openfabrics.org)
5 AC_CONFIG_SRCDIR([src/stack.c])
6 AC_CONFIG_AUX_DIR(config)
7 AM_CONFIG_HEADER(config.h)
10 AC_SUBST(RELEASE, ${RELEASE:-unknown})
11 AC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})
13 dnl the library version info is available in the file: libibcommon.ver
14 ibcommon_api_version=`grep LIBVERSION $srcdir/libibcommon.ver | sed 's/LIBVERSION=//'`
15 if test -z $ibcommon_api_version; then
16 ibcommon_api_version=1:0:0
18 AC_SUBST(ibcommon_api_version)
20 dnl Checks for programs
28 dnl Checks for header files.
30 AC_CHECK_HEADERS([fcntl.h inttypes.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h syslog.h unistd.h])
32 dnl Checks for library functions
35 AC_CHECK_FUNCS([strrchr strtoul strtoull])
37 dnl Checks for typedefs, structures, and compiler characteristics.
42 AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script,
43 if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then
44 ac_cv_version_script=yes
46 ac_cv_version_script=no
49 AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$ac_cv_version_script" = "yes")
51 AC_CONFIG_FILES([Makefile libibcommon.spec])