aria2/configure.in

49 lines
1.3 KiB
Plaintext
Raw Normal View History

2006-02-17 13:35:04 +00:00
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#
AC_PREREQ(2.59)
2006-03-01 08:22:40 +00:00
AC_INIT(aria2c, 0.2.1, tujikawa@rednoah.com)
2006-02-17 13:35:04 +00:00
AM_INIT_AUTOMAKE()
AM_PATH_CPPUNIT(1.10.2)
AC_CONFIG_SRCDIR([src/Socket.h])
AC_CONFIG_HEADERS([config.h])
AC_PROG_RANLIB
2006-03-07 13:08:09 +00:00
AM_GNU_GETTEXT
AM_GNU_GETTEXT_VERSION(0.12.1)
2006-03-05 06:32:01 +00:00
# Set localedir
localedir=${datadir}/locale
AC_SUBST(localedir)
# Checks for arguments.
AC_ARG_ENABLE([ssl], [ --enable-ssl enalbe SSL support if libssl is installed. Default: yes], [enable_ssl=$enableval], [enable_ssl=yes])
2006-02-17 13:35:04 +00:00
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for libraries.
if test "x$enable_ssl" = "xyes"; then
AC_CHECK_LIB([ssl], [SSL_library_init])
fi
2006-02-17 13:35:04 +00:00
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h string.h sys/socket.h sys/time.h unistd.h limits.h])
2006-02-17 13:35:04 +00:00
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_TIME
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_SELECT_ARGTYPES
AC_FUNC_STAT
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([getpagesize gettimeofday inet_ntoa memset mkdir rmdir select socket strcasecmp strerror strstr strtol])
2006-02-17 13:35:04 +00:00
2006-03-07 13:08:09 +00:00
AC_CONFIG_FILES([Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile ])
2006-02-17 13:35:04 +00:00
AC_OUTPUT