# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) AC_INIT(senta) AM_INIT_AUTOMAKE(senta, 0.0.3) AC_CONFIG_SRCDIR([Translator/Dictionary.cpp]) AM_CONFIG_HEADER([config.h]) # some terminal codes ... boldface="`tput bold 2>/dev/null`" normal="`tput sgr0 2>/dev/null`" printbold() { echo "" echo -n "$boldface" echo "$@" echo -n "$normal" } AM_MAINTAINER_MODE # Define options AC_ARG_ENABLE(final-v1, [ --enable-final-v1 blah blah ], if test $enableval = "yes"; then enable_FINAL_V1="yes"; else enable_FINAL_V1="no"; fi, enable_FINAL_V1="no") AC_ARG_ENABLE(final-v2, [ --enable-final-v2 blah blah ], if test $enableval = "yes"; then enable_FINAL_V2="yes"; else enable_FINAL_V2="no"; fi, enable_FINAL_V2="no") AC_ARG_ENABLE(ideal-v1, [ --enable-ideal-v1 blah blah ], if test $enableval = "yes"; then enable_IDEAL_V1="yes"; else enable_IDEAL_V1="no"; fi, enable_IDEAL_V1="no") AC_ARG_ENABLE(ideal-v2, [ --enable-ideal-v2 blah blah ], if test $enableval = "yes"; then enable_IDEAL_V2="yes"; else enable_IDEAL_V2="no"; fi, enable_IDEAL_V2="no") if test $enable_FINAL_V1 = "no" -a \ $enable_FINAL_V2 = "no" -a \ $enable_IDEAL_V1 = "no" -a \ $enable_IDEAL_V2 = "no"; then enable_FINAL_V1="yes"; fi if test $enable_FINAL_V1 = "yes"; then enable_FINAL_V2="no"; enable_IDEAL_V1="no"; enable_IDEAL_V2="no"; fi if test $enable_FINAL_V2 = "yes"; then enable_IDEAL_V1="no"; enable_IDEAL_V2="no"; fi if test $enable_IDEAL_V1 = "yes"; then enable_IDEAL_V2="no"; fi AM_CONDITIONAL(FINAL_V1, test $enable_FINAL_V1 = "yes") AM_CONDITIONAL(FINAL_V2, test $enable_FINAL_V2 = "yes") AM_CONDITIONAL(IDEAL_V1, test $enable_IDEAL_V1 = "yes") AM_CONDITIONAL(IDEAL_V2, test $enable_IDEAL_V2 = "yes") # Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_CPP # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([limits.h string.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_STRUCT_TM # Checks for library functions. printbold "Writing files..." AC_CONFIG_FILES([Extractor/Final/V1/Makefile Extractor/Final/V2/Makefile Extractor/Final/Makefile Extractor/Ideal/V1/Makefile Extractor/Ideal/V2/Makefile Extractor/Ideal/Makefile Extractor/Makefile Tokenizer/Makefile Translator/Makefile scripts/Makefile scripts/senta-extract lib/Makefile Makefile senta.pc]) AC_OUTPUT if test $enable_FINAL_V1 = "yes"; then printbold "Building extractor: Final V1" fi if test $enable_FINAL_V2 = "yes"; then printbold "Building extractor: Final V2" fi if test $enable_IDEAL_V1 = "yes"; then printbold "Building extractor: Ideal V1" fi if test $enable_IDEAL_V2 = "yes"; then printbold "Building extractor: Ideal V2" fi echo ""