head 1.1; branch 1.1.1; access ; symbols EV_8_2_2:1.1.1.1 vendor:1.1.1; locks ; strict; comment @# @; 1.1 date 99.10.20.19.31.14; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.10.20.19.31.14; author rse; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @#!/bin/sh ## ## ev-config -- EV library build configuration utility ## Copyright (c) 1999 Ralf S. Engelschall, All Rights Reserved. ## DIFS=' ' prefix="@@prefix@@" exec_prefix="@@exec_prefix@@" ev_prefix="$prefix" ev_libdir="@@libdir@@" ev_includedir="@@includedir@@" ev_mandir="@@mandir@@" ev_cflags="@@CFLAGS@@" ev_ldflags="@@LDFLAGS@@" ev_libs="@@LIBS@@" ev_version="@@EV_VERSION@@" help=no version=no usage="$0 [--help] [--version] [--cflags] [--ldflags] [--libs]" if [ $# -eq 0 ]; then echo "$0:Error: Invalid option" 1>&2 echo "$0:Usage: $usage" 1>&2 exit 1 fi prev='' OIFS="$IFS" IFS="$DIFS" for option do if [ ".$prev" != . ]; then eval "$prev=\$option" prev="" continue fi case "$option" in -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg='' ;; esac case "$option" in --help|-h) echo "$0:Usage: $usage" exit 1 ;; --version|-v) echo "EV $ev_version" exit 0 ;; --cflags) echo "-I$ev_includedir" ;; --ldflags) echo "-L$ev_libdir" ;; --libs) echo "-lev" ;; * ) echo "$0:Error: Invalid option" 1>&2 echo "$0:Usage: $usage" 1>&2 exit 1; ;; esac done IFS="$OIFS" if [ ".$prev" != . ]; then echo "$-1:${T_MD}Error${T_ME}: missing argument to --`echo $prev | sed 's/_/-/g'`" 1>&2 exit 1 fi @ 1.1.1.1 log @ @ text @@