OSDN Git Service

Separate vc71 Build* folders from vc100 (expat)
[winmerge-jp/winmerge-jp.git] / Externals / pcre / pcre-config.in
1 #!/bin/sh
2
3 prefix=@prefix@
4 exec_prefix=@exec_prefix@
5 exec_prefix_set=no
6
7 if test @enable_cpp@ = yes ; then
8   usage="Usage: pcre-config [--prefix] [--exec-prefix] [--version] [--libs] [--libs-posix] [--libs-cpp] [--cflags] [--cflags-posix]"
9 else
10   usage="Usage: pcre-config [--prefix] [--exec-prefix] [--version] [--libs] [--libs-posix] [--cflags] [--cflags-posix]"
11 fi
12
13 if test $# -eq 0; then
14       echo "${usage}" 1>&2
15       exit 1
16 fi
17
18 libR=
19 case `uname -s` in
20   *SunOS*)
21   libR=" -R@libdir@"
22   ;;
23   *BSD*)
24   libR=" -Wl,-R@libdir@"
25   ;;
26 esac
27
28 while test $# -gt 0; do
29   case "$1" in
30   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
31   *) optarg= ;;
32   esac
33
34   case $1 in
35     --prefix=*)
36       prefix=$optarg
37       if test $exec_prefix_set = no ; then
38         exec_prefix=$optarg
39       fi
40       ;;
41     --prefix)
42       echo $prefix
43       ;;
44     --exec-prefix=*)
45       exec_prefix=$optarg
46       exec_prefix_set=yes
47       ;;
48     --exec-prefix)
49       echo $exec_prefix
50       ;;
51     --version)
52       echo @PACKAGE_VERSION@
53       ;;
54     --cflags | --cflags-posix)
55       if test @includedir@ != /usr/include ; then
56         includes=-I@includedir@
57       fi
58       echo $includes @PCRE_STATIC_CFLAG@
59       ;;
60     --libs-posix)
61       echo -L@libdir@$libR -lpcreposix -lpcre
62       ;;
63     --libs)
64       echo -L@libdir@$libR -lpcre
65       ;;
66     --libs-cpp)
67       if test @enable_cpp@ = yes ; then
68         echo -L@libdir@$libR -lpcrecpp -lpcre
69       else
70         echo "${usage}" 1>&2
71       fi
72       ;;
73     *)
74       echo "${usage}" 1>&2
75       exit 1
76       ;;
77   esac
78   shift
79 done