configure.ac

Wed, 31 May 2017 11:40:07 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 31 May 2017 11:40:07 +0200
changeset 47
e5455e692b45
child 48
0d2c13c24fd0
permissions
-rw-r--r--

replaces Makefiles with autoconf files

     1 #                                               -*- Autoconf -*-
     2 # Process this file with autoconf to produce a configure script.
     4 AC_PREREQ([2.69])
     5 AC_INIT(cline, 1.1, universe@uap-core.de)
     6 AC_CONFIG_SRCDIR([src/cline.c])
     7 AC_CONFIG_HEADERS([config.h])
     8 AM_INIT_AUTOMAKE
    10 # Conditionals
    11 AC_ARG_ENABLE([debug],
    12 [  --enable-debug    Turn on debugging],
    13 [case "${enableval}" in
    14   yes) debug=true ;;
    15   no)  debug=false ;;
    16   *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
    17 esac],[debug=false])
    18 AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
    20 # Checks for programs.
    21 AC_PROG_CC
    23 # Checks for libraries.
    25 # Checks for header files.
    26 AC_CHECK_HEADERS([stdlib.h string.h])
    28 # Checks for typedefs, structures, and compiler characteristics.
    29 AC_CHECK_HEADER_STDBOOL
    30 AC_TYPE_SIZE_T
    32 # Checks for library functions.
    33 AC_FUNC_MALLOC
    34 AC_FUNC_REALLOC
    35 AC_CHECK_FUNCS([memset regcomp strcasecmp strchr])
    37 AC_OUTPUT(Makefile src/Makefile)

mercurial