Added script front-end for primer-design code
[htsworkflow.git] / htswanalysis / MACS / lib / gsl / gsl-1.11 / gsl-config
1 #! /bin/sh
2
3 prefix=/usr/local
4 exec_prefix=${prefix}
5 includedir=${prefix}/include
6
7 usage()
8 {
9     cat <<EOF
10 Usage: gsl-config [OPTION]
11
12 Known values for OPTION are:
13
14   --prefix              show GSL installation prefix 
15   --libs                print library linking information, with cblas
16   --libs-without-cblas  print library linking information, without cblas
17   --cflags              print pre-processor and compiler flags
18   --help                display this help and exit
19   --version             output version information
20
21 An external CBLAS library can be specified using the GSL_CBLAS_LIB
22 environment variable. The GSL CBLAS library is used by default.
23
24 EOF
25
26     exit $1
27 }
28
29 if test $# -eq 0; then
30     usage 1
31 fi
32
33 cflags=false
34 libs=false
35
36 while test $# -gt 0; do
37     case "$1" in
38     -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
39     *) optarg= ;;
40     esac
41
42     case "$1" in
43     --prefix=*)
44         prefix=$optarg
45         ;;
46
47     --prefix)
48         echo $prefix
49         ;;
50
51     --version)
52         echo 1.11
53         exit 0
54         ;;
55
56     --help)
57         usage 0
58         ;;
59
60     --cflags)
61         echo -I${prefix}/include 
62         ;;
63
64     --libs)
65         : ${GSL_CBLAS_LIB=-lgslcblas}
66         echo -L${exec_prefix}/lib -lgsl $GSL_CBLAS_LIB -lm
67         ;;
68
69     --libs-without-cblas)
70         echo -L${exec_prefix}/lib -lgsl -lm
71         ;;
72     *)
73         usage
74         exit 1
75         ;;
76     esac
77     shift
78 done
79
80 exit 0