root / branches / linbox-2.0.0 / linbox-config.in

Revision 2449, 1.1 kB (checked in by pernet, 3 years ago)

restore the system of blas without #include "cblas.h"
remove old ATLAS_FLAGS in examples/Makefile.am and test/Makefile.am

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#! /bin/sh
2
3prefix=@prefix@
4exec_prefix=@exec_prefix@
5includedir=@includedir@
6libdir=@libdir@
7
8usage()
9{
10    cat <<EOF
11Usage: linbox-config [OPTION]
12
13Known values for OPTION are:
14
15  --prefix              show Linbox installation prefix
16  --libs                print library linking information
17  --cflags              print pre-processor and compiler flags
18  --help                display this help and exit
19  --version             output version information
20
21EOF
22
23    exit $1
24}
25
26if test $# -eq 0; then
27    usage 1
28fi
29
30cflags=false
31libs=false
32
33while test $# -gt 0; do
34    case "$1" in
35    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
36    *) optarg= ;;
37    esac
38
39    case "$1" in
40    --prefix=*)
41        prefix=$optarg
42        ;;
43
44    --prefix)
45        echo $prefix
46        ;;
47
48    --version)
49        echo @VERSION@
50        exit 0
51        ;;
52
53    --help)
54        usage 0
55        ;;
56
57    --cflags)
58        echo -I${includedir} @GMP_CFLAGS@ @NTL_CFLAGS@ @GIVARO_CFLAGS@ @SACLIB_CFLAGS@ @LIDIA_CFLAGS@
59        ;;
60
61    --libs)
62        echo -L${libdir} -llinbox @LIDIA_LIBS@  @NTL_LIBS@ @GIVARO_LIBS@ @SACLIB_LIBS@ @GMP_LIBS@ @BLAS_LIBS@
63        ;;
64
65    *)
66        usage
67        exit 1
68        ;;
69    esac
70    shift
71done
72
73exit 0
Note: See TracBrowser for help on using the browser.