Bugzilla Bug 289015: enable nspr-config to use the --libdir option passed
authorwtchang%redhat.com
Wed, 27 Apr 2005 18:19:11 +0000
changeset 3357 877fce453fee8eee16f2fa6f3136710009a6f7b1
parent 3356 efa0173b29752f21e0dc7f1640ef7f9ed06eb8ee
child 3360 e574fdfb910ff986350646c0b70cb20660a9bea4
push idunknown
push userunknown
push dateunknown
bugs289015
Bugzilla Bug 289015: enable nspr-config to use the --libdir option passed to the configure script. The patch is contributed by Ray Strode <rstrode@redhat.com>. r=wtc,cls.
config/nspr-config.in
--- a/config/nspr-config.in
+++ b/config/nspr-config.in
@@ -1,13 +1,14 @@
 #!/bin/sh
 
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 exec_prefix_set=no
+libdir=@libdir@
 
 major_version=@MOD_MAJOR_VERSION@
 minor_version=@MOD_MINOR_VERSION@
 patch_version=@MOD_PATCH_VERSION@
 
 usage()
 {
 	cat <<EOF
@@ -90,17 +91,17 @@ if test "$echo_exec_prefix" = "yes"; the
 	echo $exec_prefix
 fi
 
 if test "$echo_cflags" = "yes"; then
       echo -I${prefix}/include/nspr
 fi
 
 if test "$echo_libs" = "yes"; then
-      libdirs=-L${exec_prefix}/lib
+      libdirs=-L${libdir}
       if test -n "$lib_plds"; then
 	libdirs="$libdirs -lplds${major_version}"
       fi
       if test -n "$lib_plc"; then
 	libdirs="$libdirs -lplc${major_version}"
       fi
       if test -n "$lib_nspr"; then
 	libdirs="$libdirs -lnspr${major_version}"