spielwiese
Last change
on this file since 8e4601 was
8e4601,
checked in by Adrian <adi_popescum@…>, 11 years ago
|
64 bits for Spielwiese Last
|
-
Property mode set to
100755
|
File size:
1.8 KB
|
Line | |
---|
1 | #! /bin/bash |
---|
2 | |
---|
3 | #C="$0" |
---|
4 | #C=`readlink -f "$C"` |
---|
5 | #C=`dirname "$C"` |
---|
6 | #C=`ls -d1 "$C"` |
---|
7 | |
---|
8 | # NOTE: if you moved this config please either use the above or |
---|
9 | # make sure the following variables are up to date |
---|
10 | prefix=@prefix@ |
---|
11 | exec_prefix=@exec_prefix@ |
---|
12 | includedir=@includedir@ |
---|
13 | libdir=@libdir@ |
---|
14 | |
---|
15 | ECHO="echo" |
---|
16 | ECHOn="printf" |
---|
17 | |
---|
18 | usage() |
---|
19 | { |
---|
20 | cat <<EOF |
---|
21 | Usage: libpolys-config [OPTION] |
---|
22 | |
---|
23 | Known values for OPTION are: |
---|
24 | |
---|
25 | --prefix show libpolys installation prefix |
---|
26 | --libsg print library linking information (with debug) |
---|
27 | --cflagsg print pre-processor and compiler flags (with debug) |
---|
28 | --libs print library linking information |
---|
29 | --cflags print pre-processor and compiler flags |
---|
30 | --help display this help and exit |
---|
31 | --version output version information |
---|
32 | |
---|
33 | EOF |
---|
34 | |
---|
35 | exit $1 |
---|
36 | } |
---|
37 | |
---|
38 | if test $# -eq 0; then |
---|
39 | usage 1 |
---|
40 | fi |
---|
41 | |
---|
42 | cflags=false |
---|
43 | libs=false |
---|
44 | |
---|
45 | while test $# -gt 0; do |
---|
46 | case "$1" in |
---|
47 | -*=*) optarg=`${ECHO} "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
48 | *) optarg= ;; |
---|
49 | esac |
---|
50 | |
---|
51 | case "$1" in |
---|
52 | --prefix=*) |
---|
53 | prefix=$optarg |
---|
54 | ;; |
---|
55 | |
---|
56 | --prefix) |
---|
57 | ${ECHO} $prefix |
---|
58 | ;; |
---|
59 | |
---|
60 | --version) |
---|
61 | ${ECHO} @VERSION@ |
---|
62 | exit 0 |
---|
63 | ;; |
---|
64 | |
---|
65 | --help) |
---|
66 | usage 0 |
---|
67 | ;; |
---|
68 | |
---|
69 | --cflagsg) |
---|
70 | ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@" |
---|
71 | ;; |
---|
72 | |
---|
73 | --cflags) |
---|
74 | ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@ -DNDEBUG -DOM_NDEBUG" |
---|
75 | ;; |
---|
76 | |
---|
77 | --libsg) |
---|
78 | ${ECHOn} " -L${libdir} -L${libdir}/singular -lSingular_g -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g @FACTORY_LIBSG@ -lomalloc_g -lfindexec_g @NTL_LIBS@ @USEPPROCSDYNAMICLD@ @GMP_LIBS@" |
---|
79 | ;; |
---|
80 | |
---|
81 | --libs) |
---|
82 | ${ECHOn} " -L${libdir} -L${libdir}/singular -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc @FACTORY_LIBS@ -lomalloc -lfindexec @NTL_LIBS@ @USEPPROCSDYNAMICLD@ @GMP_LIBS@" |
---|
83 | ;; |
---|
84 | |
---|
85 | *) |
---|
86 | usage |
---|
87 | exit 1 |
---|
88 | ;; |
---|
89 | esac |
---|
90 | shift |
---|
91 | done |
---|
92 | ${ECHO} |
---|
93 | |
---|
94 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.