root/configure.ac

Revision 662ae783f4b889624897e562deae1621c84f60f4, 2.4 KB (checked in by Neutron Soutmun <neo.neutron@…>, 4 months ago)

Use autopoint to manage the weblogin translation

  • configure.ac:
    • Add AM_GNU_GETTEXT{_VERSION} to initialize gettext.
    • Add weblogin-po/Makefile.in to AC_CONFIG_FILES.
  • autogen.sh:
    • Add autopoint.
  • config.h.in:
    • Update accordingly to new generated by autopoint.
  • weblogin/messages.po, weblogin/th_TH/*:
    • Drop as unneeded.
  • weblogin/locale/*, weblogin-po/*:
    • Move weblogin/locale to weblogin-po.
  • weblogin-po/LINGUAS:
    • Add th to the languages list.
  • weblogin-po/Makevars, weblogin-po/rahunas-weblogin.pot:
    • Add initial setup for gettext translation build.
  • weblogin-po/th.po:
    • Migrate old translation.
  • Makefile.am:
    • Add weblogin-po to SUBDIRS.
  • .gitignore, weblogin-po/.gitignore:
    • Ignore auto-generated files by autopoint.
  • Property mode set to 100644
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4m4_define(rh_major, 0)
5m4_define(rh_minor, 2)
6m4_define(rh_micro, 0)
7
8AC_PREREQ(2.61)
9AC_INIT([RahuNAS], rh_major.rh_minor.rh_micro,[neo.neutron@gmail.com] )
10AM_INIT_AUTOMAKE([-Wall -Werror foreign])
11AM_MAINTAINER_MODE
12AC_CONFIG_SRCDIR([src/rahunasd.h])
13AC_CONFIG_HEADER([config.h])
14AC_CONFIG_MACRO_DIR([m4])
15
16AC_SUBST(RAHUNAS_VERSION, major.minor.micro)
17AC_SUBST(PROGRAM, "RahuNAS")
18
19# gettext
20AM_GNU_GETTEXT_VERSION([0.18.1])
21AM_GNU_GETTEXT([external])
22
23# Checks for programs.
24AC_PROG_CC
25AC_PROG_INSTALL
26AC_PROG_LIBTOOL
27
28# Libtool init
29LT_INIT
30
31# Checks for libraries.
32dnl Check for GNet 2.x
33GNET_REQ=2.0.8
34PKG_CHECK_MODULES(LIBGNET, [ gnet-2.0 >= $GNET_REQ ], , [ AC_MSG_ERROR([GNet is required]) ])
35
36AC_SUBST(LIBGNET_CFLAGS)
37AC_SUBST(LIBGNET_LIBS)
38
39dnl Check for Sqlite3
40LIBSQLITE3_REQ=3.7.3
41PKG_CHECK_MODULES(LIBSQLITE3, [ sqlite3 >= $LIBSQLITE3_REQ ], , [ AC_MSG_ERROR([libsqlite3 is required]) ])
42
43AC_SUBST(LIBSQLITE3_CFLAGS)
44AC_SUBST(LIBSQLITE3_LIBS)
45
46dnl Disable snmp-module build
47AC_ARG_ENABLE(netsnmp-module,
48              [AC_HELP_STRING([--enable-netsnmp-module],
49                              [enable netsnmp-module build])],
50              enable_netsnmp_module="yes")
51
52if test "x$enable_netsnmp_module" = "xyes"; then
53  AC_CHECK_PROG(NETSNMP_CONFIG, net-snmp-config, net-snmp-config, no)
54  if test "x$NETSNMP_CONFIG" = "xno"; then
55    enable_netsnmp_module="no"
56  fi
57fi
58
59AM_CONDITIONAL(ENABLE_NETSNMP_MODULE,test "x$enable_netsnmp_module" = "xyes")
60
61# Checks for header files.
62AC_HEADER_STDC
63AC_HEADER_SYS_WAIT
64AC_CHECK_HEADERS([fcntl.h stdlib.h string.h syslog.h unistd.h])
65
66# Checks for typedefs, structures, and compiler characteristics.
67AC_C_CONST
68AC_TYPE_PID_T
69AC_STRUCT_TM
70
71# Checks for library functions.
72AC_FUNC_FORK
73AC_FUNC_MALLOC
74AC_FUNC_REALLOC
75AC_TYPE_SIGNAL
76AC_FUNC_STRFTIME
77AC_CHECK_FUNCS([dup2])
78AC_CONFIG_FILES([
79  Makefile
80  xmlrpc/Makefile
81  lcfg/Makefile
82  src/Makefile
83  data/Makefile
84  tools/Makefile
85  tools/rahunas-firewall
86  tools/rahunas-bandwidth
87  tools/rahunas-weblogin-config-update
88  netsnmp-module/Makefile
89  netsnmp-module/scripts/rh-checkrad
90  example/Makefile
91  example/rahunas.default
92  example/rahunas.init
93  example/rahunas.conf
94  example/rahunas-vserver.conf
95  example/rahunas-serviceclass.conf
96  weblogin-po/Makefile.in
97])
98
99AC_OUTPUT
Note: See TracBrowser for help on using the browser.