]> git.deb.at Git - pkg/abook.git/blobdiff - configure.in
Fixed a bug caused by improper cut 'n' paste
[pkg/abook.git] / configure.in
index 0240ca39336e052f3fd807559a8a914737a438ba..a67423cdd814f5bbdca32786682c254ae707df20 100644 (file)
@@ -1,7 +1,7 @@
 dnl abook configure.in
 
 AC_INIT(abook.c)
-AM_INIT_AUTOMAKE(abook, 0.4.12)
+AM_INIT_AUTOMAKE(abook, 0.4.13-cvs)
 AM_CONFIG_HEADER(config.h)
 
 AC_CANONICAL_HOST
@@ -50,7 +50,7 @@ AC_CHECK_FUNCS(resizeterm)
 AC_CHECK_FUNC(snprintf, [AC_DEFINE(HAVE_SNPRINTF)],)
 AC_CHECK_FUNC(vsnprintf, [AC_DEFINE(HAVE_VSNPRINTF)],)
 
-AC_ARG_ENABLE(debug, [  --enable-debug   Enable debugging support ], [case "${enableval}" in
+AC_ARG_ENABLE(debug, [  --enable-debug Enable debugging support ], [case "${enableval}" in
        yes) debug=true ;;
        no) debug=false ;;
        *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
@@ -61,6 +61,16 @@ if test x$debug = xtrue; then
        CFLAGS="-g $CFLAGS"
 fi
 
+AC_ARG_ENABLE(nonascii, [  --disable-nonascii    Disable usage of non-ascii characters ], [case "${enableval}" in
+       yes) nonascii=true ;;
+       no) nonascii=false ;;
+       *) AC_MSG_ERROR(bad value ${enableval} for --disable-nonascii) ;;
+       esac], [nonascii=true])
+
+if test x$nonascii = xfalse; then
+       AC_DEFINE(USE_ASCII_ONLY)
+fi
+
 if test x$GCC = xyes; then
        CFLAGS="-Wall $CFLAGS"
 fi