source: git/libsingular-config.in @ 010b3f

spielwiese
Last change on this file since 010b3f was 9f524d, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
reverted library packing with LIBADD chg: correct _LDADD chg: no use of LIBADD in libcoeffs & libpolys chg: install all of libmisc, libreporter, libcoeffs & libpolys NOTE: coeffs & polys should not pack libmisc & libreporter since it causes usage problems for shared libs from an installed package
  • Property mode set to 100755
File size: 1.6 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  --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
26EOF
27
28    exit $1
29}
30
31if test $# -eq 0; then
32    usage 1
33fi
34
35cflags=false
36libs=false
37
38while 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 -lSingular_g -lnumeric_g -lkernel_g -lpolys_g -lcoeffs_g -lreporter_g -lmisc_g @FACTORY_LIBS@ -lomalloc_g -lfindexec_g @NTL_LIBS@ @USEPPROCSDYNAMICLD@ @GMP_LIBS@"
72        ;;
73
74    --libs)
75        ${ECHOn} " -L${libdir} -L${libdir}/singular -lSingular -lnumeric -lkernel -lpolys -lcoeffs -lreporter -lmisc @FACTORY_LIBS@ -lomalloc -lfindexec @NTL_LIBS@ @USEPPROCSDYNAMICLD@ @GMP_LIBS@"
76        ;;
77
78    *)
79        usage
80        exit 1
81        ;;
82    esac
83    shift
84done
85${ECHO}
86
87exit 0
Note: See TracBrowser for help on using the repository browser.