# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(levmar, 1.0.0, [foo@molecuilder.de], [levmar], [http://www.molecuilder.de/]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_HEADER([liblevmar_config.h]) AC_CONFIG_SRCDIR([src/lm.c]) AC_CONFIG_MACRO_DIR([m4]) # parallel-tests: use parallel test druver # color-tests: us coloring to indicate success/failure when available # tar-pax: use newer tar implementation with longer filename (>99 chars) AM_INIT_AUTOMAKE([dist-bzip2 1.5 tar-pax subdir-objects]) # Checks for programs. AC_PROG_CC AC_PROG_INSTALL # check for lapack AX_LAPACK # check for blas AX_BLAS # check for math library AC_CHECK_LIB(m, sqrt, , AC_MSG_ERROR([compatible libc math library not found])) # check for f2c #AC_CHECK_LIB(libf2c, c_cos, [ # ], [ # AC_MSG_ERROR(["Could not find libf2c"]) #]) # use libtool LT_INIT([static]) AC_SUBST([LIBTOOL_DEPS]) # Define these substitions here to keep all version information in one place. # For information on how to properly maintain the library version information, # refer to the libtool manual, section "Updating library version information": # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html AC_SUBST([LEVMAR_SO_VERSION], [1:0:0]) AC_SUBST([LEVMAR_API_VERSION], [1.0.0]) # create output files AC_CONFIG_FILES([ Makefile src/Makefile ]) AC_CONFIG_FILES([levmar.pc:levmar.pc.in]) AC_OUTPUT