#!/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=@prefix@ exec_prefix=@exec_prefix@ help () { echo "Usage: $0 [CORE | X] [--version | --cflags | --libs | --libtool]" } if test $# -eq 0; then help 1>&2 exit 0 fi LIBNAME=m17n case $1 in CORE) LIBNAME=m17n-core; shift;; X) LIBNAME=m17n-X; shift;; esac case $1 in --version) echo "@PACKAGE_VERSION@";; --libs) if test "@libdir@" != "/usr/lib"; then echo "-L@libdir@ -l${LIBNAME}" else echo "-lm17n-X" fi;; --cflags) if test "@includedir@" != "/usr/include"; then echo "-I@includedir@" fi;; --libtool) echo "@libdir@/lib${LIBNAME}.la" ;; *) help exit 1;; esac exit 0 cat > /dev/null <