drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / payloads / libpayload / curses / PDCurses / x11 / xcurses-config.in
blob55b4704c6c7fa1c1b5932fc3c846e295acd6d1c3
1 #! /bin/sh
3 # The idea to this kind of setup info script was stolen from numerous
4 # other packages, such as neon, libxml and gnome.
6 # $Id: xcurses-config.in,v 1.6 2007/11/07 23:33:07 wmcbrine Exp $
9 verdot=3.4
11 prefix=@prefix@
12 exec_prefix=@exec_prefix@
13 includedir=@includedir@/xcurses
15 usage()
17 echo "Usage: xcurses-config [OPTION]"
18 echo ""
19 echo "Available values for OPTION include:"
20 echo ""
21 echo " --help display this help and exit"
22 echo " --cflags pre-processor and compiler flags"
23 echo " [-I$includedir]"
24 echo " --libs library linking information"
25 echo " [-L$prefix/lib -lXCurses @LDFLAGS@ @MH_XLIBS@ @MH_EXTRA_LIBS@"
26 echo " --prefix PDCurses install prefix"
27 echo " [$prefix]"
28 echo " --version output version information"
29 echo " [$verdot]"
30 exit $1
33 if test $# -eq 0; then
34 usage 1
37 while test $# -gt 0; do
38 case "$1" in
39 # this deals with options in the style
40 # --option=value and extracts the value part
41 # [not currently used]
42 -*=*) value=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
43 *) value= ;;
44 esac
46 case "$1" in
47 --prefix)
48 echo $prefix
51 --version)
52 echo $verdot
53 exit 0
56 --help)
57 usage 0
60 --cflags)
61 echo -I$includedir
64 --libs)
65 echo -L$prefix/lib -lXCurses @LDFLAGS@ @MH_XLIBS@ @MH_EXTRA_LIBS@
69 usage
70 exit 1
72 esac
73 shift
74 done
76 exit 0