source: git/libpolys/libpolys-config.in @ c8204a

spielwiese
Last change on this file since c8204a was 148d3c, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
FIX: fixing the build system (install needed headers on needed places) FIX: libpolys-config is correct now (installed, echo -n-fixed) ADD: trying to use FACTORY_{libs, cflags} as for gmp/ntl CHG: switched from omalloc_debug to omalloc_g ADD: symlink for gftables in libpolys/tests
  • Property mode set to 100755
File size: 1.1 KB
Line 
1#! /bin/bash
2
3prefix=@prefix@
4exec_prefix=@exec_prefix@
5includedir=@includedir@
6libdir=@libdir@
7
8ECHO="echo"
9ECHOn="printf"
10
11usage()
12{
13    cat <<EOF
14Usage: libpolys-config [OPTION]
15
16Known values for OPTION are:
17
18  --prefix              show libpolys installation prefix
19  --libs                print library linking information
20  --cflags              print pre-processor and compiler flags
21  --help                display this help and exit
22  --version             output version information
23
24EOF
25
26    exit $1
27}
28
29if test $# -eq 0; then
30    usage 1
31fi
32
33cflags=false
34libs=false
35
36while 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} @VERSION@
53        exit 0
54        ;;
55
56    --help)
57        usage 0
58        ;;
59
60    --cflags)
61        ${ECHOn} " -I${includedir} -I${includedir}/libpolys @GMP_CFLAGS@ @NTL_CFLAGS@ @FACTORY_CFLAGS@"
62        ;;
63
64    --libs)
65        ${ECHOn} " -L${libdir} -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g -lomalloc_g @USEPPROCSDYNAMICLD@ @GMP_LIBS@ @NTL_LIBS@ @FACTORY_LIBS@"
66        ;;
67
68    *)
69        usage
70        exit 1
71        ;;
72    esac
73    shift
74done
75${ECHO}
76
77exit 0
Note: See TracBrowser for help on using the repository browser.