]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ofed/management/libibcommon/configure.in
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ofed / management / libibcommon / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 AC_PREREQ(2.57)
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)
8 AM_INIT_AUTOMAKE
9
10 AC_SUBST(RELEASE, ${RELEASE:-unknown})
11 AC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})
12
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
17 fi
18 AC_SUBST(ibcommon_api_version)
19
20 dnl Checks for programs
21 AC_PROG_CC
22 AC_PROG_CPP
23 AC_PROG_INSTALL
24 AC_PROG_LN_S
25 AC_PROG_MAKE_SET
26 AM_PROG_LIBTOOL
27
28 dnl Checks for header files.
29 AC_HEADER_STDC
30 AC_CHECK_HEADERS([fcntl.h inttypes.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h syslog.h unistd.h])
31
32 dnl Checks for library functions
33 AC_TYPE_SIGNAL
34 AC_FUNC_VPRINTF
35 AC_CHECK_FUNCS([strrchr strtoul strtoull])
36
37 dnl Checks for typedefs, structures, and compiler characteristics.
38 AC_C_CONST
39 AC_C_INLINE
40 AC_STRUCT_TM
41
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
45     else
46         ac_cv_version_script=no
47     fi)
48
49 AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$ac_cv_version_script" = "yes")
50
51 AC_CONFIG_FILES([Makefile libibcommon.spec])
52 AC_OUTPUT