ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/src/libopm/configure.ac
Revision: 5210
Committed: Mon Dec 29 19:52:01 2014 UTC (9 years, 3 months ago) by michael
Content type: application/pkix-attr-cert
File size: 1817 byte(s)
Log Message:
- Removed configure header test for strings.h; removed strings.h header includes

File Contents

# Content
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(libopm, [0.1])
3 AC_CONFIG_SRCDIR(src/libopm.h)
4 AC_CONFIG_HEADER(src/setup.h)
5 AM_INIT_AUTOMAKE()
6 AC_PREFIX_DEFAULT([/usr/local/libopm])
7 AM_MAINTAINER_MODE
8
9 AC_ARG_WITH(extra-fascism,
10 AS_HELP_STRING([--with-extra-fascism],
11 [add extra gcc3-specific warning flags]),
12 [CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"])
13
14 dnl AC_ARG_WITH(faldo,
15 dnl AS_HELP_STRING([--with-faldo],
16 dnl [make some use of Nick Faldo]))
17
18 dnl Checks for programs.
19 AC_PROG_CC_C99
20 AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
21 [AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
22 AC_PROG_LIBTOOL
23 AC_SUBST(LIBTOOL_DEPS)
24
25 dnl Checks for header files.
26 AC_CHECK_HEADERS(sys/poll.h, have_poll_sys_h=yes, have_sys_poll_h=no)
27
28 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
29
30 dnl Checks for typedefs, structures, and compiler characteristics.
31 AC_HEADER_TIME
32
33 dnl if they want select() or they don't have poll() then we need to check
34 dnl that we actually have select()
35 if test "$have_sys_poll_h" = "no"; then
36 AC_CHECK_FUNCS(select, have_select=yes, have_select=no)
37 if test "$have_select" = "no"; then
38 AC_MSG_ERROR([No select() implementation found])
39 fi
40 fi
41
42 dnl Check if we can use gethostbyname2 for ipv6
43 AC_CHECK_FUNCS(gethostbyname)
44
45 dnl AIX fun
46 AC_C_BIGENDIAN
47
48 AC_CHECK_FUNC(getaddrinfo, [], AC_SEARCH_LIBS(getaddrinfo, nsl))
49 AC_CHECK_FUNC(getnameinfo, [], AC_SEARCH_LIBS(getnameinfo, nsl))
50 AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([socket library not found])])
51
52 LTLIBOBJS=`echo "$LIB@&t@OBJS" |
53 sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'`
54 AC_SUBST(LTLIBOBJS)
55
56 AC_CONFIG_FILES(Makefile src/Makefile)
57 AC_OUTPUT

Properties

Name Value
svn:eol-style native
svn:keywords Id