Annotation of libwww/libwww-config.in, revision 1.1
1.1 ! frystyk 1: #!/bin/sh
! 2: # (c) COPYRIGHT MIT 1995.
! 3: # Please first read the full copyright statement in the file COPYRIGH.
! 4: # @(#) $Id: Makefile.am,v 1.32 1998/08/20 00:51:06 frystyk Exp $
! 5: #
! 6: # Thanks to Soren Sandmann for providing first version of this script!
! 7:
! 8: prefix=@prefix@
! 9: exec_prefix=@exec_prefix@
! 10: exec_prefix_set=no
! 11:
! 12: usage="\
! 13: Usage: libwww-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version]
! 14: [--libs] [--cflags]"
! 15:
! 16: if test $# -eq 0; then
! 17: echo "${usage}" 1>&2
! 18: exit 1
! 19: fi
! 20:
! 21: while test $# -gt 0; do
! 22: case "$1" in
! 23: -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
! 24: *) optarg= ;;
! 25: esac
! 26:
! 27: case $1 in
! 28: --prefix=*)
! 29: prefix=$optarg
! 30: if test $exec_prefix_set = no ; then
! 31: exec_prefix=$optarg
! 32: fi
! 33: ;;
! 34: --prefix)
! 35: echo $prefix
! 36: ;;
! 37: --exec-prefix=*)
! 38: exec_prefix=$optarg
! 39: exec_prefix_set=yes
! 40: ;;
! 41: --exec-prefix)
! 42: echo $exec_prefix
! 43: ;;
! 44: --version)
! 45: echo @VERSION@
! 46: ;;
! 47: --cflags)
! 48: echo -I@includedir@/@PACKAGE@ @DEFS@
! 49: ;;
! 50: --libs)
! 51: echo -L@libdir@ @LIBS@ -lwww
! 52: ;;
! 53: *)
! 54: echo "${usage}" 1>&2
! 55: exit 1
! 56: ;;
! 57: esac
! 58: shift
! 59: done
Webmaster