Skip to content

Commit 2977046

Browse files
committed
New configure.ac
1 parent 33b1175 commit 2977046

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

configure.ac

+24-23
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
1-
dnl Process this file with autoconf to produce a configure script.
2-
AC_INIT([rtp2httpd],[1.0])
3-
AC_CONFIG_SRCDIR([src/rtp2httpd.c])
1+
# -*- Autoconf -*-
2+
# Process this file with autoconf to produce a configure script.
3+
4+
AC_PREREQ([2.69])
5+
AC_INIT([rtp2httpd], [1.0], [[email protected]])
6+
AC_CONFIG_SRCDIR([src/rtp2httpd.h])
7+
AC_CONFIG_HEADERS([src/config.h])
48
AM_INIT_AUTOMAKE
5-
AM_CONFIG_HEADER(src/config.h)
69

7-
dnl Checks for programs.
10+
# Checks for programs.
811
AC_PROG_CC
9-
AC_USE_SYSTEM_EXTENSIONS([_GNU_SOURCE])
10-
AC_CHECK_HEADERS(stdio.h stdlib.h sys/types.h sys/socket.h netdb.h \
11-
stdarg.h errno.h sys/select.h fcntl.h string.h signal.h \
12-
sys/wait.h strings.h netinet/in.h arpa/inet.h, ,
13-
AC_MSG_ERROR(Cannot find all required headers))
1412

15-
AC_CHECK_FUNCS(getopt_long getaddrinfo getnameinfo strndup, ,
16-
AC_MSG_ERROR(Required functions missing))
13+
# Checks for libraries.
1714

18-
# Config location for code to default to
19-
CONFFILE_DIR=$sysconfdir
20-
CONFFILE_DIR=`(
21-
test "$prefix" = NONE && prefix=$ac_default_prefix
22-
test "$exec_prefix" = NONE && exec_prefix=${prefix}
23-
eval echo "$CONFFILE_DIR"
24-
)`
25-
AC_DEFINE_UNQUOTED(CONFPATH, "$CONFFILE_DIR", system config directory)
15+
# Checks for header files.
16+
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h unistd.h])
2617

27-
AC_CONFIG_FILES([Makefile src/Makefile])
18+
# Checks for typedefs, structures, and compiler characteristics.
19+
AC_C_INLINE
20+
AC_TYPE_PID_T
21+
AC_TYPE_SIZE_T
22+
AC_TYPE_UINT16_T
23+
AC_TYPE_UINT8_T
2824

29-
AC_OUTPUT
25+
# Checks for library functions.
26+
AC_FUNC_FORK
27+
AC_FUNC_MALLOC
28+
AC_CHECK_FUNCS([memmove memset select socket strcasecmp strdup strerror strndup getopt_long getaddrinfo getnameinfo])
3029

31-
echo -e "\nAll done. Run make now."
30+
AC_CONFIG_FILES([Makefile
31+
src/Makefile])
32+
AC_OUTPUT

0 commit comments

Comments
 (0)