#!/bin/sh # m17n-config -- helper script for the m17n library. -*- coding: euc-jp; -*- # Copyright (C) 2003, 2004 # National Institute of Advanced Industrial Science and Technology (AIST) # Registration Number H15PRO112 # See the end for copying conditions. prefix= exec_prefix=${prefix} help () { echo "Usage: $0 [CORE | GUI] [--version | --cflags | --libs | --libtool]" } if test $# -eq 0; then help 1>&2 exit 0 fi case $1 in CORE) LIBNAME="-lm17n-core"; LIBTOOLNAME="m17n-core"; shift;; GUI|X) LIBNAME="-lm17n-core -lm17n -lm17n-gui"; LIBTOOLNAME="m17n-gui"; shift;; *) LIBNAME="-lm17n-core -lm17n"; LIBTOOLNAME="m17n"; ;; esac case $1 in --version) echo "1.4.0";; --libs) if test "${exec_prefix}/lib" != "/usr/lib"; then echo "-L${exec_prefix}/lib ${LIBNAME}" else echo "${LIBNAME}" fi;; --cflags) if test "${prefix}/include" != "/usr/include"; then echo "-I${prefix}/include" fi;; --libtool) echo "${exec_prefix}/lib/lib${LIBTOOLNAME}.la" ;; *) help exit 1;; esac exit 0 cat > /dev/null <