Modifications to build lookuplet like a GNOME app rather than an applet.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@281 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-08-16 00:12:11 +00:00
parent 7680869899
commit 0664031824
5 changed files with 66 additions and 27 deletions
+7
View File
@@ -9,3 +9,10 @@ config.status
configure configure
stamp-h stamp-h
stamp-h.in stamp-h.in
ABOUT-NLS
config.guess
config.sub
intl
libtool
ltmain.sh
po
+2 -2
View File
@@ -1,4 +1,4 @@
# #
# $Id: Makefile.am,v 1.2 2001/02/24 02:35:20 mdb Exp $ # $Id: Makefile.am,v 1.3 2001/08/16 00:12:11 mdb Exp $
SUBDIRS = src SUBDIRS = macros intl src
+5
View File
@@ -1 +1,6 @@
#undef ENABLE_NLS
#undef HAVE_GETTEXT
#undef HAVE_LC_MESSAGES
#undef HAVE_LIBSM #undef HAVE_LIBSM
#undef HAVE_LIBINTL_H
#undef VERSION
+44 -16
View File
@@ -1,30 +1,55 @@
dnl $Id: configure.in,v 1.1 2000/12/10 23:38:39 mdb Exp $ dnl $Id: configure.in,v 1.2 2001/08/16 00:12:11 mdb Exp $
dnl dnl
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
AC_INIT(configure.in) AC_INIT(configure.in)
AM_INIT_AUTOMAKE(lookuplet, 0.1)
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h)
dnl Pick up the Gnome macros. dnl Version definitions
AM_ACLOCAL_INCLUDE(macros) LKP_MAJOR=1
LKP_REVISION=0
LKP_PATCHLEVEL=fcs
LKP_RELEASE=1
use_release=no
GNOME_INIT dnl LKP_RELEASE must be specified (1 if nothing else), but
dnl change use_release depending on whether we want it to be
dnl appended to our official version. (no usually, yes for
dnl something like 'pre1' or 'beta4')
if test x"$use_release" = xno ; then
brsffx=
else
brsffx="-${LKP_RELEASE}"
fi
LKP_SHORT_VERSION="$LKP_MAJOR.$LKP_REVISION.${LKP_PATCHLEVEL}"
LKP_VERSION="$LKP_MAJOR.$LKP_REVISION.${LKP_PATCHLEVEL}${brsffx}"
VERSION="$LKP_VERSION"
dnl Now that we have a version
AM_INIT_AUTOMAKE(lookuplet, [$VERSION])
AM_MAINTAINER_MODE
AM_ACLOCAL_INCLUDE(macros)
AC_ISC_POSIX AC_ISC_POSIX
dnl Checks for programs. GNOME_INIT
dnl Check for programs
AC_PROG_CC AC_PROG_CC
AM_PROG_CC_STDC AM_PROG_CC_STDC
dnl AC_PROG_MAKE_SET AC_ARG_PROGRAM
dnl AC_PROG_INSTALL AM_PROG_LIBTOOL
dnl this should come after `AC_PROG_CC'
GNOME_COMPILE_WARNINGS GNOME_COMPILE_WARNINGS
GNOME_X_CHECKS GNOME_X_CHECKS
dnl Checks for libraries. dnl Checks for libraries.
dnl Checks for header files. dnl Checks for header files.
AC_HEADER_STDC AC_STDC_HEADERS
AC_CHECK_HEADERS(fcntl.h) AC_CHECK_HEADERS(fcntl.h)
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.
@@ -34,11 +59,14 @@ AC_TYPE_SIZE_T
dnl Checks for library functions. dnl Checks for library functions.
AC_CHECK_FUNCS(strcspn strstr) AC_CHECK_FUNCS(strcspn strstr)
dnl main thing goes here dnl All the linguas, all the time.
AC_PATH_PROG(sedpath, sed) ALL_LINGUAS="az ca cs da de en_GB el es et fi fr ga hu it ja ko lt nl no nn pl pt pt_BR ro ru sk sl sv tr uk wa zh_CN.GB2312"
LINGUAS="$ALL_LINGUAS"
AM_GNOME_GETTEXT
if test "_$sedpath" = _; then dnl Create files.
AC_MSG_ERROR("Cannot find sed: I need it\!") AC_OUTPUT([
fi Makefile
intl/Makefile
AC_OUTPUT(Makefile src/Makefile) src/Makefile
])
+8 -9
View File
@@ -1,12 +1,5 @@
# #
# $Id: Makefile.am,v 1.2 2001/02/24 02:35:20 mdb Exp $ # $Id: Makefile.am,v 1.3 2001/08/16 00:12:11 mdb Exp $
INCLUDES = \
-I. \
-I$(srcdir) \
-I$(top_srcdir)/intl -I$(top_builddir)/intl \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-I$(includedir) $(GNOME_INCLUDEDIR)
bin_PROGRAMS = lookuplet bin_PROGRAMS = lookuplet
@@ -18,9 +11,15 @@ lookuplet_SOURCES = \
binding.c \ binding.c \
keysym-util.c keysym-util.c
INCLUDES = \
-I. \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir) \
$(GNOME_INCLUDEDIR)
lookuplet_LDADD = \ lookuplet_LDADD = \
$(GNOME_LIBDIR) \ $(GNOME_LIBDIR) \
$(GNOME_APPLETS_LIBS) \ $(GNOMEUI_LIBS) \
$(INTLLIBS) $(INTLLIBS)
# currently the installation of these bitmaps wouldn't be necessary # currently the installation of these bitmaps wouldn't be necessary