Annotation of embedaddon/libnet/libnet-config.in, revision 1.1

1.1     ! misho       1: #!/bin/sh
        !             2: #
        !             3: #   $Id: libnet-config.in,v 1.3 2004/01/03 20:31:00 mike Exp $
        !             4: #
        !             5: #   Libnet 1.1 libnet-config compilation script
        !             6: #   (c) 1998 - 2004  Mike D. Schiffman <mike@infonexus.com>
        !             7: #
        !             8: #   @configure_input@
        !             9: 
        !            10: libnet_defines="@LIBNET_CONFIG_DEFINES@"
        !            11: libnet_cflags="@LIBNET_CONFIG_CFLAGS@"
        !            12: libnet_libs="@LIBNET_CONFIG_LIBS@ -lnet"
        !            13: 
        !            14: usage()
        !            15: {
        !            16:         cat <<EOF
        !            17: Usage: libnet-config [OPTIONS]
        !            18: Options:
        !            19:         [--libs]
        !            20:         [--cflags]
        !            21:         [--defines]
        !            22: EOF
        !            23:         exit
        !            24: }
        !            25: 
        !            26: while test $# -gt 0; do
        !            27:     case "$1" in
        !            28:     -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
        !            29:     *) optarg= ;;
        !            30:     esac 
        !            31: 
        !            32:     case $1 in
        !            33:         --libs)
        !            34:             echo_libs=yes
        !            35:             ;;
        !            36: 
        !            37:         --cflags)
        !            38:             echo_cflags=yes
        !            39:             ;;
        !            40: 
        !            41:         --defines)
        !            42:             echo_defines=yes
        !            43:             ;;
        !            44:         *)
        !            45:             usage 1
        !            46:         esac
        !            47:     shift
        !            48: done
        !            49: 
        !            50: if test "$echo_libs" = "yes"; then
        !            51:     echo $libnet_libs
        !            52: fi
        !            53: 
        !            54: if test "$echo_cflags" = "yes"; then
        !            55:     echo $libnet_cflags
        !            56: fi
        !            57: 
        !            58: if test "$echo_defines" = "yes"; then
        !            59:     echo $libnet_defines
        !            60: fi
        !            61: 
        !            62: # EOF

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>