X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=configure.in;h=7e267e57f8a4bbeb32b3e59b77d4d952c9458567;hb=26b300c73fd81fea51f15d66c0e94d8e32728660;hp=e09564e8c9cf184e7c9eecdef164cec9932cc24c;hpb=d9602547f8937fd71e5caa6039e2053e17c9f865;p=gedcom-parse.git diff --git a/configure.in b/configure.in index e09564e..7e267e5 100644 --- a/configure.in +++ b/configure.in @@ -35,6 +35,16 @@ case "$host_os" in darwin*) AC_MSG_WARN([Disabling smart preprocessing]) EXTRA_CFLAGS="-no-cpp-precomp";; esac + +AC_ARG_ENABLE(debug, +[ --enable-debug Compilation flags to allow debugging [default=yes]], + if test $enableval == "yes" + then + EXTRA_CFLAGS="-g $EXTRA_CFLAGS" + fi, + EXTRA_CFLAGS="-g $EXTRA_CFLAGS" +) + AC_SUBST(EXTRA_CFLAGS) dnl ============================================================= @@ -58,13 +68,6 @@ fi dnl ============================================================= dnl Checks for libraries. AM_GNU_GETTEXT([use-libtool],[need-ngettext]) -AM_WITH_DMALLOC - -dnl == Make statically linked test program for dmalloc tests -if test "$with_dmalloc" = "yes"; then - EXTRA_PROGS=gomtest_static -fi -AC_SUBST(EXTRA_PROGS) dnl ============================================================= dnl Checks for typedefs, structures, and compiler characteristics. @@ -83,6 +86,7 @@ jm_GLIBC21 dnl ========================================================== dnl My local stuff +gedcom_SYS_NEWLINE AM_ICONV gedcom_SANE_ICONV if test "$am_cv_func_iconv" != yes -o "$is_iconv_sane" != yes; then @@ -147,4 +151,5 @@ AC_OUTPUT(GNUmakefile include/Makefile include/gedcom.h intl/Makefile - po/Makefile.in) + po/Makefile.in + m4/Makefile)