spielwiese
Last change
on this file since c70920 was
c70920,
checked in by Oleksandr Motsak <motsak@…>, 10 years ago
|
Better BS: use libtool dependency libs and LIBADD automake feature + cleanup
NOTE: libpolys should not check for flint (only factory works with it)
|
-
Property mode set to
100755
|
File size:
1.7 KB
|
Line | |
---|
1 | #! /bin/bash |
---|
2 | |
---|
3 | #C="$0" |
---|
4 | #O=`pwd` |
---|
5 | # |
---|
6 | ###C=`readlink -f "$C"`::: |
---|
7 | #cd `dirname "$C"` |
---|
8 | #C=`basename "$C"` |
---|
9 | # |
---|
10 | ## Iterate down a (possible) chain of symlinks |
---|
11 | #while [ -L "$C" ] |
---|
12 | #do |
---|
13 | # C=`readlink "$C"` |
---|
14 | # cd `dirname "$C"` |
---|
15 | # C=`basename "$C"` |
---|
16 | #done |
---|
17 | # |
---|
18 | #cd `dirname "$C"` |
---|
19 | #C=`pwd` |
---|
20 | #C=`dirname "$C"` |
---|
21 | #C=`ls -d1 "$C"` |
---|
22 | # |
---|
23 | #cd "$O" |
---|
24 | |
---|
25 | # NOTE: if you moved this config please either use the above or |
---|
26 | # make sure the following variables are up to date |
---|
27 | #prefix="$C" |
---|
28 | #exec_prefix=${prefix} |
---|
29 | #includedir=${prefix}/include |
---|
30 | #libdir=${exec_prefix}/lib |
---|
31 | |
---|
32 | prefix=@prefix@ |
---|
33 | exec_prefix=@exec_prefix@ |
---|
34 | |
---|
35 | includedir=@includedir@ |
---|
36 | libdir=@libdir@ |
---|
37 | |
---|
38 | ECHO="echo" |
---|
39 | ECHOn="printf" |
---|
40 | |
---|
41 | usage() |
---|
42 | { |
---|
43 | cat <<EOF |
---|
44 | Usage: libpolys-config [OPTION] |
---|
45 | |
---|
46 | Known values for OPTION are: |
---|
47 | |
---|
48 | --prefix show libpolys installation prefix |
---|
49 | --libs print library linking information |
---|
50 | --cflags print pre-processor and compiler flags |
---|
51 | --help display this help and exit |
---|
52 | --version output version information |
---|
53 | |
---|
54 | EOF |
---|
55 | |
---|
56 | exit $1 |
---|
57 | } |
---|
58 | |
---|
59 | if test $# -eq 0; then |
---|
60 | usage 1 |
---|
61 | fi |
---|
62 | |
---|
63 | cflags=false |
---|
64 | libs=false |
---|
65 | |
---|
66 | while test $# -gt 0; do |
---|
67 | case "$1" in |
---|
68 | -*=*) optarg=`${ECHO} "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
69 | *) optarg= ;; |
---|
70 | esac |
---|
71 | |
---|
72 | case "$1" in |
---|
73 | --prefix=*) |
---|
74 | prefix=$optarg |
---|
75 | ;; |
---|
76 | |
---|
77 | --prefix) |
---|
78 | ${ECHO} $prefix |
---|
79 | ;; |
---|
80 | |
---|
81 | --version) |
---|
82 | ${ECHO} @VERSION@ |
---|
83 | exit 0 |
---|
84 | ;; |
---|
85 | |
---|
86 | --help) |
---|
87 | usage 0 |
---|
88 | ;; |
---|
89 | |
---|
90 | --cflags) |
---|
91 | ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@ -DSING_NDEBUG -DOM_NDEBUG" |
---|
92 | ;; |
---|
93 | |
---|
94 | --cflagswithdebug) |
---|
95 | ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@" |
---|
96 | ;; |
---|
97 | |
---|
98 | --libs) |
---|
99 | ${ECHOn} " -L${libdir}/singular/libpolys.la" |
---|
100 | ;; |
---|
101 | |
---|
102 | *) |
---|
103 | usage |
---|
104 | exit 1 |
---|
105 | ;; |
---|
106 | esac |
---|
107 | shift |
---|
108 | done |
---|
109 | ${ECHO} |
---|
110 | |
---|
111 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.