# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(pnmcurve, 0.0.1, Johannes.Hofmann@gmx.de) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([src/pnmcurve.c]) AC_CONFIG_HEADER(config.h) CPPFLAGS="$CPPFLAGS" CFLAGS="-g -O2 $CFLAGS" LDFLAGS="-g $LDFLAGS" # Checks for programs. AC_PROG_CC AC_LANG_C # Checks for libraries. # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_TYPE_OFF_T AC_TYPE_PID_T # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_REALLOC AC_CHECK_FUNCS([strsep strdup]) # Check for gsl AC_PATH_PROG(GSLCONFIG,gsl-config) if test "x$GSLCONFIG" = x; then echo "gsl-config not found" exit 1 fi CFLAGS="`$GSLCONFIG --cflags` $CFLAGS" LIBS="`$GSLCONFIG --libs` $LIBS" AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT