Configure: Introduce d_libname_unique
authorBrian Fraser <fraserbn@gmail.com>
Wed, 20 Nov 2013 05:37:33 +0000 (02:37 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Fri, 3 Jan 2014 22:45:06 +0000 (19:45 -0300)
Configure

index f9cbfe7..5cc5f64 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -575,6 +575,7 @@ d_killpg=''
 d_lchown=''
 d_ldbl_dig=''
 d_libm_lib_version=''
+d_libname_unique=''
 d_link=''
 d_localtime_r=''
 d_localtime_r_needs_tzset=''
@@ -4769,6 +4770,26 @@ rp='What is the file extension used for shared libraries?'
 . ./myread
 so="$ans"
 
+: Does target system insist that shared library basenames are unique
+$cat << EOM
+
+Some dynamic loaders assume that the *basename* of shared
+library filenames are globally unique.
+We'll default this to undef as we assume your system is not this
+weird. Set to defined if you're on one of them.
+
+EOM
+
+dflt='n'
+rp='Make shared library basenames unique?'
+. ./myread
+case "$ans" in
+y|Y)    val="$define" ;;
+*)      val="$undef"  ;;
+esac
+set d_libname_unique
+eval $setvar
+
 : Define several unixisms.
 : Hints files or command line option can be used to override them.
 : The convoluted testing is in case hints files set either the old
@@ -22890,6 +22911,7 @@ d_killpg='$d_killpg'
 d_lchown='$d_lchown'
 d_ldbl_dig='$d_ldbl_dig'
 d_libm_lib_version='$d_libm_lib_version'
+d_libname_unique='$d_libname_unique'
 d_link='$d_link'
 d_localtime64='$d_localtime64'
 d_localtime_r='$d_localtime_r'