summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcls%seawood.org <devnull@localhost>2001-04-08 21:28:10 +0000
committercls%seawood.org <devnull@localhost>2001-04-08 21:28:10 +0000
commit3c25c0b2287cdd81d811918794d3e9dc5a51afc3 (patch)
tree7185a4a4866690dbb9cb8b4f5874b4703d4ac61f
parentab655ad7f65d11ab661e5828c0bd4b29e48fd47a (diff)
downloadnspr-hg-3c25c0b2287cdd81d811918794d3e9dc5a51afc3.tar.gz
Handle --prefix & --exec-prefix properly.
-rwxr-xr-xconfig/nspr-config.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/nspr-config.in b/config/nspr-config.in
index 2f25a94e..23c0d70a 100755
--- a/config/nspr-config.in
+++ b/config/nspr-config.in
@@ -43,6 +43,9 @@ while test $# -gt 0; do
case $1 in
--prefix=*)
prefix=$optarg
+ if test $exec_prefix_set = no ; then
+ exec_prefix=$optarg
+ fi
;;
--prefix)
echo_prefix=yes
@@ -88,11 +91,11 @@ if test "$echo_exec_prefix" = "yes"; then
fi
if test "$echo_cflags" = "yes"; then
- echo -I@includedir@/nspr
+ echo -I${prefix}/include/nspr
fi
if test "$echo_libs" = "yes"; then
- libdirs=-L@libdir@
+ libdirs=-L${exec_prefix}/lib
if test -n "$lib_plds"; then
libdirs="$libdirs -lplds${major_version}"
fi