(gd_render): If gdAlphaTransparent is not defined,
[m17n/m17n-lib.git] / m17n-config.in
index a04d3eb..9117c5f 100644 (file)
@@ -10,7 +10,7 @@ exec_prefix=@exec_prefix@
 
 help ()
 {
-  echo "Usage: $0 [CORE | X] [--version | --cflags | --libs | --libtool]"
+  echo "Usage: $0 [CORE | GUI] [--version | --cflags | --libs | --libtool]"
 }
 
 if test $# -eq 0; then
@@ -18,11 +18,10 @@ if test $# -eq 0; then
   exit 0
 fi
 
-LIBNAME=m17n
-
 case $1 in
-CORE) LIBNAME=m17n-core; shift;;
-X) LIBNAME=m17n-X; shift;;
+CORE) LIBNAME="-lm17n-core"; shift;;
+GUI|X) LIBNAME="-lm17n-core -lm17n -lm17n-gui"; shift;;
+*) LIBNAME="-lm17n-core -lm17n";;
 esac
 
 case $1 in
@@ -31,9 +30,9 @@ case $1 in
 
 --libs)
   if test "@libdir@" != "/usr/lib"; then
-    echo "-L@libdir@ -l${LIBNAME}"
+    echo "-L@libdir@ ${LIBNAME}"
   else
-    echo "-lm17n-X"
+    echo "${LIBNAME}"
   fi;;
 
 --cflags)
@@ -56,19 +55,19 @@ cat > /dev/null <<EOF
 /***ja @page m17n-config m17n ¥é¥¤¥Ö¥é¥ê¤Î¥³¥ó¥Ñ¥¤¥ë¡¦¥ê¥ó¥¯¥ª¥×¥·¥ç¥ó¤Îɽ¼¨ */
 
 /***
-@section synopsis SYNOPSIS
+@section m17n-config-synopsis SYNOPSIS
 
-m17n-config [CORE | X] [--cflags | --libs | --libtool] [--version]
+m17n-config [CORE | GUI] [--cflags | --libs | --libtool] [--version]
 
-@section description DESCRIPTION
+@section m17n-config-description DESCRIPTION
 
 The shell script m17n-config prints compile and link options for a
 program that uses the m17n library.
 
 By default, the printed options are for such a program that uses SHELL
 API of the libray.  But, if the first argument is "CORE", the options
-are for a program that uses only CORE API, if the first argument "X",
-the options are for a program that uses GUI API on X window.
+are for a program that uses only CORE API, if the first argument "GUI",
+the options are for a program that uses GUI API.
 
 The other arguments are as follows.