# # File name: configure.ac # Created: 05/28/2005 # Created by: Ljubomir Buturovic # Purpose: configure.ac file for Pattern Classification Program (PCP). # # Copyright 2005 Ljubomir J. Buturovic # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy, modify, merge, # publish, distribute, sublicense, and/or sell copies of the Software, # and to permit persons to whom the Software is furnished to do so, # subject to the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # AC_PREREQ(2.57) AC_INIT(pcp, 2.2) AC_CONFIG_SRCDIR(src/pcp.c) AM_INIT_AUTOMAKE AC_PROG_CC AC_PROG_CXX AC_PROG_F77 AC_F77_LIBRARY_LDFLAGS # # These are the newer FORTRAN macros. They are not supported on older # distributions such as RH9.0, so we don't use them for the time # being. # # AC_PROG_FC # pcp_libs=`echo $FCLIBS | sed 's/-lgcc_s//'` # pcp_libs=`echo $FLIBS | sed 's/-lgcc_s//'` # PCP_AC # # Make the output variable `pcp_libs' available to Makefile.am. # AC_SUBST(pcp_libs) AC_PROG_RANLIB # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h float.h limits.h stddef.h stdlib.h string.h termios.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_C_INLINE # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_MMAP AC_FUNC_REALLOC AC_FUNC_STAT AC_FUNC_VPRINTF AC_CHECK_FUNCS([memset munmap pow sqrt strchr strcspn strdup strerror strrchr strspn strstr pathconf]) AM_PROG_CC_C_O AC_OUTPUT(Makefile lapack/Makefile)