configure.ac
changeset 622 eaa49b276e17
parent 369 569e7d9e2406
child 642 2ca07e3b08d6
equal deleted inserted replaced
621:e3616f6b6959 622:eaa49b276e17
    23 AC_PROG_CXX
    23 AC_PROG_CXX
    24 AC_PROG_INSTALL
    24 AC_PROG_INSTALL
    25 AC_PROG_LN_S
    25 AC_PROG_LN_S
    26 AC_PROG_MAKE_SET
    26 AC_PROG_MAKE_SET
    27 AC_PROG_RANLIB
    27 AC_PROG_RANLIB
       
    28 AC_PROG_AWK
       
    29 
       
    30 # Check bison version, we need a version great or equal than 2.4 to build matiec.
       
    31 [[[ $(bison --version) =~ ([0-9][.][0-9]*) ]]] && version_bison="${BASH_REMATCH[[1]]}"
       
    32 
       
    33 AS_IF([awk -v ver="$version_bison" 'BEGIN { if (ver < 2.4) exit 1; }'],
       
    34 	[have_bison_correct=yes], [have_bison_correct=no])
       
    35 
       
    36 
       
    37 if test "x${have_bison_correct}" = xno; then
       
    38   echo "------------------------------------------"
       
    39   echo " Wrong bison version: $version_bison < 2.4 "
       
    40   echo "------------------------------------------"
       
    41   (exit 1); exit 1;
       
    42 fi
    28 
    43 
    29 # Checks for header files.
    44 # 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])
    45 AC_CHECK_HEADERS([float.h limits.h stdint.h stdlib.h string.h strings.h sys/timeb.h unistd.h])
    31 
    46 
    32 # Checks for typedefs, structures, and compiler characteristics.
    47 # Checks for typedefs, structures, and compiler characteristics.
    45 AC_FUNC_MALLOC
    60 AC_FUNC_MALLOC
    46 AC_FUNC_MKTIME
    61 AC_FUNC_MKTIME
    47 AC_FUNC_REALLOC
    62 AC_FUNC_REALLOC
    48 AC_CHECK_FUNCS([clock_gettime memset pow strcasecmp strdup strtoul strtoull])
    63 AC_CHECK_FUNCS([clock_gettime memset pow strcasecmp strdup strtoul strtoull])
    49 
    64 
       
    65 
    50 AC_CONFIG_MACRO_DIR([config])
    66 AC_CONFIG_MACRO_DIR([config])
    51 
    67 
    52 AC_CONFIG_FILES([Makefile \
    68 AC_CONFIG_FILES([Makefile \
    53 	absyntax/Makefile \
    69 	absyntax/Makefile \
    54 	absyntax_utils/Makefile \
    70 	absyntax_utils/Makefile \