X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=configure.in;h=34e93035dd9307f6760488ac19f12cc25a73921f;hb=4b8f9231090ada43f7e16987ec46ac7f45a914ec;hp=f5d609775af8486bb6a49332acd68b33912f165f;hpb=b1b41dce461ab21ae9a2bd26d7a00a381a5f81f8;p=pkg%2Fabook.git diff --git a/configure.in b/configure.in index f5d6097..34e9303 100644 --- a/configure.in +++ b/configure.in @@ -1,13 +1,30 @@ dnl abook configure.in AC_INIT(abook.c) -AM_INIT_AUTOMAKE(abook, 0.5.2pre) +AM_INIT_AUTOMAKE(abook, 0.5.5pre1) AM_CONFIG_HEADER(config.h) -dnl AC_DEFINE(HAVE_STDARG_H, 0, [Define if you have the header file.]) -dnl AC_DEFINE(HAVE_NCURSES_H, 0, [Define if you have the header file.]) +dnl --------------- +dnl gettext support +dnl --------------- -AC_CANONICAL_HOST +AM_GNU_GETTEXT +AM_GNU_GETTEXT_VERSION(0.14.1) + +localedir="$ac_default_prefix/share/locale" +AC_ARG_WITH(localedir, + [ --with-localedir=PATH Where the locale files are installed ]) +if test "x$with_localedir" != "x"; then + localedir="$with_localedir" +elif test "x${prefix}" != "xNONE"; then + localedir="$prefix/share/locale" +fi +AC_DEFINE_UNQUOTED(LOCALEDIR, "$localedir", [locale directory]) +AC_SUBST(localedir) + +dnl ---------------------- +dnl end of gettext support +dnl ---------------------- AC_PROG_CC AC_ISC_POSIX @@ -18,7 +35,7 @@ fi AC_C_INLINE AC_PROG_INSTALL AC_HEADER_STDC -AC_CHECK_HEADERS(unistd.h locale.h termios.h linux/termios.h sys/ioctl.h) +AC_CHECK_HEADERS(unistd.h locale.h sys/ioctl.h) AC_CHECK_HEADER(stdarg.h,AC_DEFINE(HAVE_STDARG_H, 1, [Define if you have the header file.]),AC_MSG_ERROR([*** stdarg.h is missing on your system ***])) AC_FUNC_STRCOLL AC_CHECK_FUNCS(setlocale) @@ -111,7 +128,7 @@ AC_ARG_ENABLE(debug, [ --enable-debug Enable debugging support ], [cas esac], [debug=false]) if test x$debug = xtrue; then - CPPFLAGS="-DDEBUG $CPPFLAGS" + CPPFLAGS="-DDEBUG=1 $CPPFLAGS" CFLAGS="-g $CFLAGS" fi @@ -119,5 +136,5 @@ if test x$GCC = xyes; then CFLAGS="-Wall $CFLAGS" fi -AC_OUTPUT(Makefile abook.spec) +AC_OUTPUT(Makefile abook.spec intl/Makefile po/Makefile.in)