1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
AC_PREREQ([2.71])
AC_INIT([uni2ascii],[4.20],[billposer@alum.mit.edu])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE
AC_ARG_ENABLE(newsummary,
[--disable-newsummary Do not use new summary incompatible with u2a.tcl.],
[case "${enableval}" in
yes) newsummary=true ;;
no) newsummary=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-newsummary) ;;
esac],[newsummary=true])
AM_CONDITIONAL(NEWSUMMARY,test "$newsummary" = true)
AC_ARG_ENABLE(debugbuild,
[--enable-debugbuild. Compile for debugging.],
[case "${enableval}" in
yes) debugbuild=true ;;
no) debugbuild=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debugbuild) ;;
esac],[debugbuild=false])
AM_CONDITIONAL(DEBUGBUILD,test "$debugbuild" = true)
# Checks for programs.
AC_PROG_CC
if ${debugbuild}; then
CFLAGS="-ggdb -g3"
else
CFLAGS="-g -O2"
fi
AC_PROG_INSTALL
AC_C_CONST
AC_TYPE_SIZE_T
AC_CHECK_LIB([intl], [gettext],AC_DEFINE([HAVE_LIBINTL], [1],[Define to 1 if you have libintl.]),)
# Autoupdate added the next two lines to ensure that your configure
# script's behavior did not change. They are probably safe to remove.
AC_CHECK_INCLUDES_DEFAULT
AC_PROG_EGREP
AC_CHECK_HEADERS([fcntl.h gnu/libc-version.h libintl.h locale.h regex.h stddef.h stdio.h stdlib.h string.h sys/types.h sys/stat.h type.h unistd.h wchar.h])
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([fgetln getline regcomp setlocale strtoul gettext])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
|