configure.ac 957 Bytes
Newer Older
jben's avatar
jben committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.68])
AC_INIT([rv], [0.0.1], [jben@jben.info])
AM_INIT_AUTOMAKE([rv], [0.0])
AC_CONFIG_SRCDIR([])
#AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_LANG_PUSH([C++])

# Checks for libraries.
AC_CHECK_LIB([pqxx], [main], [], [AC_MSG_ERROR(You need the pqxx library.)])

# Checks for header files.
AC_CHECK_HEADERS([pqxx/pqxx],[],[AC_MSG_ERROR(File needed)])


# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE

# Checks for library functions.
AC_CHECK_FUNCS([sqrt floor])

#AC_CONFIG_FILES([Makefile
#                 man/Makefile
#                 src/Makefile])

AC_OUTPUT([Makefile
           height/Makefile
           route/Makefile
           sql/Makefile
           doc/Makefile
Jean-Benoist Leger's avatar
Jean-Benoist Leger committed
38 39
           utils/Makefile
           herve/Makefile])