author | chenpu@localhost |
Mon, 03 May 2010 17:42:21 -0700 | |
changeset 29 | a3050cd175fe |
parent 27 | cd26fa2b171e |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
||
22 |
# |
|
23 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
|
24 |
# Use is subject to license terms. |
|
25 |
# |
|
26 |
||
27 |
# -*- Autoconf -*- |
|
28 |
# Process this file with autoconf to produce a configure script. |
|
29 |
||
27
cd26fa2b171e
Bug fix for #6938970, missing proper help files
chenpu@localhost
parents:
19
diff
changeset
|
30 |
m4_define(cmdassist_version, 2.0) |
0 | 31 |
|
32 |
AC_PREREQ(2.61) |
|
33 |
AC_INIT(CommandAssistant, [cmdassist_version]) |
|
34 |
AM_INIT_AUTOMAKE(CommandAssistant, [cmdassist_version]) |
|
35 |
AC_CONFIG_SRCDIR([config.h.in]) |
|
36 |
AC_CONFIG_HEADER([config.h]) |
|
37 |
||
38 |
# Checks for programs. |
|
39 |
AC_PROG_CC |
|
40 |
AC_HEADER_STDC |
|
41 |
||
42 |
# Checks for libraries. |
|
43 |
PKG_CHECK_MODULES(SEARCH, [libgnome-2.0 >= 2.14 libgnomeui-2.0 >= 2.14 libglade-2.0 >= 2.6.0 libpanelapplet-2.0 ]) |
|
44 |
||
45 |
dnl Checks for i18n |
|
29
a3050cd175fe
Modified configure.in to add 8 more languages to ALL_LINGUAS
chenpu@localhost
parents:
27
diff
changeset
|
46 |
ALL_LINGUAS="de es fr it ja ko pt_BR zh_CN zh_TW" |
0 | 47 |
GETTEXT_PACKAGE=commandAssistant |
48 |
AC_SUBST(GETTEXT_PACKAGE) |
|
49 |
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", |
|
50 |
[domain used for gettext() calls]) |
|
51 |
||
52 |
AM_GLIB_GNU_GETTEXT |
|
53 |
IT_PROG_INTLTOOL([0.35.0]) |
|
54 |
if test "x${prefix}" = "xNONE"; then |
|
55 |
AC_DEFINE_UNQUOTED(CMDASSIST_LOCALEDIR, "${ac_default_prefix}/share/locale", [Locale directory]) |
|
56 |
else |
|
57 |
AC_DEFINE_UNQUOTED(CMDASSIST_LOCALEDIR, "${prefix}/share/locale", [Locale directory]) |
|
58 |
fi |
|
59 |
||
8 | 60 |
# define the pixmapdir |
61 |
if test "x${prefix}" = "xNONE"; then |
|
62 |
AC_DEFINE_UNQUOTED(CMDASSIST_PIXDIR, "${ac_default_prefix}/share/pixmaps", [Data directory]) |
|
63 |
else |
|
64 |
AC_DEFINE_UNQUOTED(CMDASSIST_PIXDIR, "${prefix}/share/pixmaps", [Data directory]) |
|
65 |
fi |
|
66 |
||
0 | 67 |
# define the datadir |
68 |
if test "x${prefix}" = "xNONE"; then |
|
8 | 69 |
AC_DEFINE_UNQUOTED(CMDASSIST_DATADIR, "${ac_default_prefix}/lib/cmdAssist", [Data directory]) |
0 | 70 |
else |
8 | 71 |
AC_DEFINE_UNQUOTED(CMDASSIST_DATADIR, "${prefix}/lib/cmdAssist", [Data directory]) |
0 | 72 |
fi |
73 |
||
27
cd26fa2b171e
Bug fix for #6938970, missing proper help files
chenpu@localhost
parents:
19
diff
changeset
|
74 |
# define helpdir |
cd26fa2b171e
Bug fix for #6938970, missing proper help files
chenpu@localhost
parents:
19
diff
changeset
|
75 |
if test "x${prefix}" = "xNONE"; then |
cd26fa2b171e
Bug fix for #6938970, missing proper help files
chenpu@localhost
parents:
19
diff
changeset
|
76 |
AC_DEFINE_UNQUOTED(CMDASSIST_HELPDIR, "${ac_default_prefix}/share/gnome/help/CommandAssistant", [Data directory]) |
cd26fa2b171e
Bug fix for #6938970, missing proper help files
chenpu@localhost
parents:
19
diff
changeset
|
77 |
else |
cd26fa2b171e
Bug fix for #6938970, missing proper help files
chenpu@localhost
parents:
19
diff
changeset
|
78 |
AC_DEFINE_UNQUOTED(CMDASSIST_HELPDIR, "${prefix}/share/gnome/help/CommandAssistant", [Data directory]) |
cd26fa2b171e
Bug fix for #6938970, missing proper help files
chenpu@localhost
parents:
19
diff
changeset
|
79 |
fi |
cd26fa2b171e
Bug fix for #6938970, missing proper help files
chenpu@localhost
parents:
19
diff
changeset
|
80 |
|
19 | 81 |
AC_CONFIG_MACRO_DIR([m4]) |
82 |
GNOME_DOC_INIT |
|
83 |
||
0 | 84 |
# Checks for header files. |
85 |
||
86 |
# Checks for typedefs, structures, and compiler characteristics. |
|
87 |
||
88 |
# Checks for library functions. |
|
89 |
||
90 |
AC_OUTPUT([ |
|
91 |
Makefile |
|
92 |
src/Makefile |
|
93 |
image/Makefile |
|
94 |
data/Makefile |
|
95 |
po/Makefile.in |
|
19 | 96 |
help/Makefile |
0 | 97 |
]) |
98 |