spielwiese
Last change
on this file since fc2746 was
8fee84,
checked in by Oleksandr Motsak <motsak@…>, 12 years ago
|
libfindexec separation
CHG: no need in 'ifdef HAVE_CONFIG_H' in omFindExec.c (not used in any
configure anymore)
CHG: separation/removal of omFindExec from omalloc & xalloc
ADD: use new findexec library
|
-
Property mode set to
100755
|
File size:
1.5 KB
|
Line | |
---|
1 | #! /bin/bash |
---|
2 | |
---|
3 | prefix=@prefix@ |
---|
4 | exec_prefix=@exec_prefix@ |
---|
5 | includedir=@includedir@ |
---|
6 | libdir=@libdir@ |
---|
7 | |
---|
8 | ECHO="echo" |
---|
9 | ECHOn="printf" |
---|
10 | |
---|
11 | usage() |
---|
12 | { |
---|
13 | cat <<EOF |
---|
14 | Usage: libpolys-config [OPTION] |
---|
15 | |
---|
16 | Known values for OPTION are: |
---|
17 | |
---|
18 | --prefix show libpolys installation prefix |
---|
19 | --libsg print library linking information (with debug) |
---|
20 | --cflagsg print pre-processor and compiler flags (with debug) |
---|
21 | --libs print library linking information |
---|
22 | --cflags print pre-processor and compiler flags |
---|
23 | --help display this help and exit |
---|
24 | --version output version information |
---|
25 | |
---|
26 | EOF |
---|
27 | |
---|
28 | exit $1 |
---|
29 | } |
---|
30 | |
---|
31 | if test $# -eq 0; then |
---|
32 | usage 1 |
---|
33 | fi |
---|
34 | |
---|
35 | cflags=false |
---|
36 | libs=false |
---|
37 | |
---|
38 | while test $# -gt 0; do |
---|
39 | case "$1" in |
---|
40 | -*=*) optarg=`${ECHO} "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
41 | *) optarg= ;; |
---|
42 | esac |
---|
43 | |
---|
44 | case "$1" in |
---|
45 | --prefix=*) |
---|
46 | prefix=$optarg |
---|
47 | ;; |
---|
48 | |
---|
49 | --prefix) |
---|
50 | ${ECHO} $prefix |
---|
51 | ;; |
---|
52 | |
---|
53 | --version) |
---|
54 | ${ECHO} @VERSION@ |
---|
55 | exit 0 |
---|
56 | ;; |
---|
57 | |
---|
58 | --help) |
---|
59 | usage 0 |
---|
60 | ;; |
---|
61 | |
---|
62 | --cflagsg) |
---|
63 | ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@" |
---|
64 | ;; |
---|
65 | |
---|
66 | --cflags) |
---|
67 | ${ECHOn} " -I${includedir} -I${includedir}/singular @FACTORY_CFLAGS@ @NTL_CFLAGS@ @GMP_CFLAGS@ -DNDEBUG -DOM_NDEBUG" |
---|
68 | ;; |
---|
69 | |
---|
70 | --libsg) |
---|
71 | ${ECHOn} " -L${libdir} -L${libdir}/singular -lpolys_g @FACTORY_LIBS@ -lomalloc_g -lfindexec_g @NTL_LIBS@ @USEPPROCSDYNAMICLD@ @GMP_LIBS@" |
---|
72 | ;; |
---|
73 | |
---|
74 | --libs) |
---|
75 | ${ECHOn} " -L${libdir} -L${libdir}/singular -lpolys @FACTORY_LIBS@ -lomalloc -lfindexec @NTL_LIBS@ @USEPPROCSDYNAMICLD@ @GMP_LIBS@" |
---|
76 | ;; |
---|
77 | |
---|
78 | *) |
---|
79 | usage |
---|
80 | exit 1 |
---|
81 | ;; |
---|
82 | esac |
---|
83 | shift |
---|
84 | done |
---|
85 | ${ECHO} |
---|
86 | |
---|
87 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.