configure.ac

changeset 51
5acf05940667
parent 48
0d2c13c24fd0
child 52
02816cd75edc
equal deleted inserted replaced
50:63477d92411d 51:5acf05940667
27 AC_CONFIG_HEADERS([config.h]) 27 AC_CONFIG_HEADERS([config.h])
28 AM_INIT_AUTOMAKE 28 AM_INIT_AUTOMAKE
29 29
30 # Conditionals 30 # Conditionals
31 AC_ARG_ENABLE([debug], 31 AC_ARG_ENABLE([debug],
32 [ --enable-debug Turn on debugging], 32 [ --enable-debug Turn on debugging],
33 [case "${enableval}" in 33 [case "${enableval}" in
34 yes) debug=true ;; 34 yes) debug=true ;;
35 no) debug=false ;; 35 no) debug=false ;;
36 *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; 36 *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
37 esac],[debug=false]) 37 esac],[debug=false])
38 AM_CONDITIONAL([DEBUG], [test x$debug = xtrue]) 38 AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
39 39
40 # Checks for programs. 40 # Compiler (empty default options)
41 ${CFLAGS=""}
41 AC_PROG_CC 42 AC_PROG_CC
42 43 AC_PROG_CC_STDC
43 # Checks for libraries.
44 44
45 # Checks for header files. 45 # Checks for header files.
46 AC_CHECK_HEADERS([stdlib.h string.h]) 46 AC_CHECK_HEADERS([stdlib.h string.h dirent.h regex.h])
47 47
48 # Checks for typedefs, structures, and compiler characteristics. 48 # Checks for typedefs, structures, and compiler characteristics.
49 AC_CHECK_HEADER_STDBOOL 49 AC_CHECK_HEADER_STDBOOL
50 AC_TYPE_SIZE_T 50 AC_TYPE_SIZE_T
51 51

mercurial