/[pcre]/code/trunk/pcre-config.in
ViewVC logotype

Contents of /code/trunk/pcre-config.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 104 - (hide annotations) (download)
Tue Mar 6 16:25:15 2007 UTC (7 years, 8 months ago) by ph10
File size: 1216 byte(s)
Add -Wl,-R... flags in pcre-config.in for *BSD* systems, as I'm told
that is needed.  

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

Properties

Name Value
svn:eol-style native
svn:keywords "Author Date Id Revision Url"

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12