2004-12-23 15:16:30 +02:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_INIT(Makefile.am)
|
2009-03-19 00:08:46 +02:00
|
|
|
AM_INIT_AUTOMAKE(cmph, 0.9)
|
2004-12-23 15:16:30 +02:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_AWK
|
|
|
|
AC_PROG_CC
|
2010-06-28 22:01:18 +03:00
|
|
|
AC_PROG_CXX
|
2004-12-23 15:16:30 +02:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_LIBTOOL
|
2005-01-19 14:40:22 +02:00
|
|
|
AC_SYS_EXTRA_LARGEFILE
|
|
|
|
if test "x$ac_cv_sys_largefile_CFLAGS" = "xno" ; then
|
|
|
|
ac_cv_sys_largefile_CFLAGS=""
|
|
|
|
fi
|
|
|
|
if test "x$ac_cv_sys_largefile_LDFLAGS" = "xno" ; then
|
|
|
|
ac_cv_sys_largefile_LDFLAGS=""
|
|
|
|
fi
|
|
|
|
if test "x$ac_cv_sys_largefile_LIBS" = "xno" ; then
|
|
|
|
ac_cv_sys_largefile_LIBS=""
|
|
|
|
fi
|
|
|
|
CFLAGS="$CFLAGS $ac_cv_sys_largefile_CFLAGS"
|
|
|
|
LDFLAGS="$LDFLAGS $ac_cv_sys_largefile_LDFLAGS"
|
|
|
|
LIBS="$LIBS $ac_cv_sys_largefile_LIBS"
|
|
|
|
|
2004-12-23 15:16:30 +02:00
|
|
|
|
|
|
|
dnl Checks for headers
|
|
|
|
AC_CHECK_HEADERS([getopt.h math.h])
|
|
|
|
|
|
|
|
dnl Checks for libraries.
|
|
|
|
AC_CHECK_LIBM
|
|
|
|
LDFLAGS="$LIBM $LDFLAGS"
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
|
2005-01-19 14:40:22 +02:00
|
|
|
AC_CHECK_SPOON
|
2004-12-23 15:16:30 +02:00
|
|
|
dnl AC_OUTPUT(Makefile tests/Makefile samples/Makefile)
|
2010-06-28 22:01:18 +03:00
|
|
|
AC_OUTPUT(Makefile src/Makefile tests/Makefile examples/Makefile man/Makefile cxxmph/Makefile cmph.pc)
|