#!/bin/sh # m17n-config -- helper script for the m17n library. -*- coding: euc-jp; -*- # Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 # 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 [API-LEVEL ...] [--version | --cflags | --libs | --libtool]" echo " API-LEVEL is CORE, SHELL (default), GUI, or FLT" } if test $# -eq 0; then help 1>&2 exit 0 fi while true; do case $1 in CORE) if test "x$API" = "x"; then API="CORE"; LIBTOOLNAME="m17n-core"; fi; shift;; SHELL) if test "x$API" != "xGUI"; then API="FLT"; LIBSHELL=" -lm17n" if test "x$LIBFLT" = "x"; then LIBTOOLNAME="m17n"; else LIBTOOLNAME="m17n m17n-flt"; fi fi; shift;; FLT) if test "x$API" != "xGUI"; then API="FLT"; LIBFLT=" -lm17n-flt" if test "x$LIBSHELL" = "x"; then LIBTOOLNAME="m17n-flt"; else LIBTOOLNAME="m17n m17n-flt"; fi fi; shift;; GUI|X) API="GUI"; LIBSHELL=" -lm17n"; LIBFLT=" -lm17n-flt"; LIBGUI=" -lm17n-gui"; LIBTOOLNAME="m17n-gui"; shift;; *) break;; esac done LIBNAME="-lm17n-core" if test "x$API" = "x"; then LIBNAME="$LIBNAME -lm17n" LIBTOOLNAME="m17n" else LIBNAME="$LIBNAME$LIBSHELL$LIBFLT$LIBGUI" fi case $1 in --version) echo "@PACKAGE_VERSION@";; --libs) if test "@libdir@" != "/usr/lib"; then echo "-L@libdir@ ${LIBNAME}" else echo "${LIBNAME}" fi;; --cflags) if test "@includedir@" != "/usr/include"; then echo "-I@includedir@" fi;; --libtool) for name in $LIBTOOLNAME; do echo -n "@libdir@/lib${name}.la " done; echo;; *) help exit 1;; esac exit 0 cat > /dev/null <