File: udm-config.in

package info (click to toggle)
mnogosearch 3.3.7-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 17,484 kB
  • ctags: 4,565
  • sloc: ansic: 94,097; xml: 16,864; sh: 8,915; makefile: 1,727; perl: 801; php: 561; sql: 15
file content (58 lines) | stat: -rw-r--r-- 1,139 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh

udmsearch_cflags="@CFLAGS@ -I@prefix@/include @VIRT_INCLUDE@ @SOLID_INCLUDE@ @UNIXODBC_INCLUDE@ @IODBC_INCLUDE@ @EASYSOFT_INCLUDE@ @MYSQL_INCLUDE@ @PGSQL_INCLUDE@ @IBASE_INCLUDE@ @ORACLE8_INCLUDE@"
udmsearch_libs="@LIBS@ @VIRT_LFLAGS@ @SOLID_LFLAGS@ @UNIXODBC_LFLAGS@ @IODBC_LFLAGS@ @EASYSOFT_LFLAGS@ @MYSQL_LFLAGS@ @PGSQL_LFLAGS@ @IBASE_LFLAGS@ @ORACLE8_LFLAGS@ @SSL_LFLAGS@ -L@prefix@/lib -lmnogosearch -lmnogocharset"
prefix=@prefix@
sysconfdir=@sysconfdir@

usage()
{
	cat <<EOF
Usage: $0 [OPTIONS]
Options:
	[--version]
	[--version-id]
	[--libs]
	[--cflags]
EOF
	exit $1
}

if test $# -eq 0; then
	usage 1 1>&2
fi

while test $# -gt 0; do
  case "$1" in
  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) optarg= ;;
  esac

  case $1 in
    --version)
      echo @VERSION@
      ;;
    --version-id)
      echo @UDM_VERSION_ID@
      ;;
    --cflags)
      echo_cflags=yes
      ;;
    --libs)
      echo_libs=yes
      ;;
    *)
      usage 1 1>&2
      ;;
  esac
  shift
done

if test "$echo_cflags" = "yes"; then
	echo $udmsearch_cflags
fi

if test "$echo_libs" = "yes"; then
	echo $udmsearch_libs
fi