1#! /bin/sh 2 3prefix=@prefix@ 4exec_prefix=@exec_prefix@ 5exec_prefix_set=no 6libdir=@libdir@ 7includedir=@includedir@ 8 9usage="\ 10Usage: libmikmod-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags] [--ldadd]" 11 12if test $# -eq 0 ; then 13 echo "${usage}" 1>&2 14 exit 1 15fi 16 17while test $# -gt 0 ; do 18 case "$1" in 19 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 20 *) optarg= ;; 21 esac 22 23 case $1 in 24 --prefix=*) 25 prefix=$optarg 26 if test $exec_prefix_set = no ; then 27 exec_prefix=$optarg 28 fi 29 ;; 30 --prefix) 31 echo $prefix 32 ;; 33 --exec-prefix=*) 34 exec_prefix=$optarg 35 exec_prefix_set=yes 36 ;; 37 --exec-prefix) 38 echo $exec_prefix 39 ;; 40 --version) 41 echo @LIBMIKMOD_VERSION@ 42 ;; 43 --cflags) 44 if test $includedir != /usr/include ; then 45 includes=-I$includedir 46 fi 47 echo $includes @REENTRANT@ 48 ;; 49 --ldadd) 50 echo @LIB_LDADD@ 51 ;; 52 --libs) 53 echo -L@libdir@ -lmikmod @LIBRARY_LIB@ 54 ;; 55 *) 56 echo "${usage}" 1>&2 57 exit 1 58 ;; 59 esac 60 61 shift 62done 63 64