2 # m17n-config -- helper script for the m17n library. -*- coding: euc-jp; -*-
3 # Copyright (C) 2003, 2004
4 # National Institute of Advanced Industrial Science and Technology (AIST)
5 # Registration Number H15PRO112
6 # See the end for copying conditions.
9 exec_prefix=@exec_prefix@
13 echo "Usage: $0 [CORE | X] [--version | --cflags | --libs | --libtool]"
16 if test $# -eq 0; then
24 CORE) LIBNAME=m17n-core; shift;;
25 X) LIBNAME=m17n-X; shift;;
30 echo "@PACKAGE_VERSION@";;
33 if test "@libdir@" != "/usr/lib"; then
34 echo "-L@libdir@ -l${LIBNAME}"
40 if test "@includedir@" != "/usr/include"; then
45 echo "@libdir@/lib${LIBNAME}.la"
55 /***en @page m17n-config Print compile/link options of the m17n library */
56 /***ja @page m17n-config m17n ¥é¥¤¥Ö¥é¥ê¤Î¥³¥ó¥Ñ¥¤¥ë¡¦¥ê¥ó¥¯¥ª¥×¥·¥ç¥ó¤Îɽ¼¨ */
59 @section synopsis SYNOPSIS
61 m17n-config [CORE | X] [--cflags | --libs | --libtool] [--version]
63 @section description DESCRIPTION
65 The shell script m17n-config prints compile and link options for a
66 program that uses the m17n library.
68 By default, the printed options are for such a program that uses SHELL
69 API of the libray. But, if the first argument is "CORE", the options
70 are for a program that uses only CORE API, if the first argument "X",
71 the options are for a program that uses GUI API on X window.
73 The other arguments are as follows.
76 Print compile option (e.g. -I/usr/local/include)
78 Print link option (e.g. -L/usr/local/lib -lm17n)
80 Print libtool option (e.g. /usr/local/lib/libm17n.la)
82 Print version number of the m17n library.
86 # Copyright (C) 2003, 2004
87 # National Institute of Advanced Industrial Science and Technology (AIST)
88 # Registration Number H15PRO112
90 # This file is part of the m17n library.
92 # The m17n library is free software; you can redistribute it and/or
93 # modify it under the terms of the GNU Lesser General Public License
94 # as published by the Free Software Foundation; either version 2.1 of
95 # the License, or (at your option) any later version.
97 # The m17n library is distributed in the hope that it will be useful,
98 # but WITHOUT ANY WARRANTY; without even the implied warranty of
99 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
100 # Lesser General Public License for more details.
102 # You should have received a copy of the GNU Lesser General Public
103 # License along with the m17n library; if not, write to the Free
104 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA