1dnl Process this file with autoconf to produce a configure script.
2
3AC_PREREQ(2.57)
4AC_INIT(libibcommon, 1.2.0, general@lists.openfabrics.org)
5AC_CONFIG_SRCDIR([src/stack.c])
6AC_CONFIG_AUX_DIR(config)
7AM_CONFIG_HEADER(config.h)
8AM_INIT_AUTOMAKE
9
10AC_SUBST(RELEASE, ${RELEASE:-unknown})
11AC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})
12
13dnl the library version info is available in the file: libibcommon.ver
14ibcommon_api_version=`grep LIBVERSION $srcdir/libibcommon.ver | sed 's/LIBVERSION=//'`
15if test -z $ibcommon_api_version; then
16    ibcommon_api_version=1:0:0
17fi
18AC_SUBST(ibcommon_api_version)
19
20dnl Checks for programs
21AC_PROG_CC
22AC_PROG_CPP
23AC_PROG_INSTALL
24AC_PROG_LN_S
25AC_PROG_MAKE_SET
26AM_PROG_LIBTOOL
27
28dnl Checks for header files.
29AC_HEADER_STDC
30AC_CHECK_HEADERS([fcntl.h inttypes.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h syslog.h unistd.h])
31
32dnl Checks for library functions
33AC_TYPE_SIGNAL
34AC_FUNC_VPRINTF
35AC_CHECK_FUNCS([strrchr strtoul strtoull])
36
37dnl Checks for typedefs, structures, and compiler characteristics.
38AC_C_CONST
39AC_C_INLINE
40AC_STRUCT_TM
41
42AC_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
45    else
46        ac_cv_version_script=no
47    fi)
48
49AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$ac_cv_version_script" = "yes")
50
51AC_CONFIG_FILES([Makefile libibcommon.spec])
52AC_OUTPUT
53