configure.ac
changeset 353 17bffb57a8c5
child 363 a0fb5d224855
equal deleted inserted replaced
352:4baeb6d13173 353:17bffb57a8c5
       
     1 #                                               -*- Autoconf -*-
       
     2 # Process this file with autoconf to produce a configure script.
       
     3 
       
     4 AC_PREREQ([2.61])
       
     5 AC_INIT([matiec], [0.1], [matteo.facchinetti@sirius-es.it])
       
     6 AC_CONFIG_HEADERS([config/config.h])
       
     7 AC_CONFIG_AUX_DIR(config)
       
     8 
       
     9 AM_INIT_AUTOMAKE([foreign])
       
    10 
       
    11 # Before checking for CXX and CC, set CFLAGS and CXXFLAGS because they
       
    12 # are otherwise initialized to contain -g -O2
       
    13 if test "x$CFLAGS" = "x"; then
       
    14 CFLAGS=
       
    15 fi
       
    16 if test "x$CXXFLAGS" = "x"; then
       
    17 CXXFLAGS=
       
    18 fi
       
    19 
       
    20 # Checks for programs.
       
    21 AC_PROG_YACC
       
    22 AC_PROG_LEX
       
    23 AC_PROG_CXX
       
    24 AC_PROG_INSTALL
       
    25 AC_PROG_LN_S
       
    26 AC_PROG_MAKE_SET
       
    27 AC_PROG_RANLIB
       
    28 
       
    29 # Checks for header files.
       
    30 AC_CHECK_HEADERS([float.h limits.h stdint.h stdlib.h string.h strings.h sys/timeb.h unistd.h])
       
    31 
       
    32 # Checks for typedefs, structures, and compiler characteristics.
       
    33 AC_HEADER_STDBOOL
       
    34 AC_C_INLINE
       
    35 AC_TYPE_INT16_T
       
    36 AC_TYPE_INT32_T
       
    37 AC_TYPE_INT64_T
       
    38 AC_TYPE_INT8_T
       
    39 AC_TYPE_UINT16_T
       
    40 AC_TYPE_UINT32_T
       
    41 AC_TYPE_UINT64_T
       
    42 AC_TYPE_UINT8_T
       
    43 
       
    44 # Checks for library functions.
       
    45 AC_FUNC_MALLOC
       
    46 AC_FUNC_MKTIME
       
    47 AC_FUNC_REALLOC
       
    48 AC_CHECK_FUNCS([clock_gettime memset pow strcasecmp strdup strtoul strtoull])
       
    49 
       
    50 AC_CONFIG_MACRO_DIR([config])
       
    51 
       
    52 AC_CONFIG_FILES([Makefile \
       
    53 	absyntax/Makefile \
       
    54 	absyntax_utils/Makefile \
       
    55 	stage1_2/Makefile \
       
    56 	stage3/Makefile \
       
    57 	stage4/Makefile])
       
    58 AC_OUTPUT
       
    59 
       
    60