aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2021-09-12 18:12:47 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2021-09-12 18:12:47 +0000
commit6aa4d33cce95c534665f3f8e057f13a69ab10835 (patch)
treecfb6f1e6a17b8751adf037ab86a1e50594e79fb4 /configure
parent15a477c9f6730cd98e40bbdbb0511cdf3a3c4319 (diff)
downloadsg3_utils-6aa4d33cce95c534665f3f8e057f13a69ab10835.tar.gz
sg_dd: srand48_r() and mrand48_r() are GNU libc specific, put conditional in so non-reentrant version used otherwise
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@913 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 63b95625..fa5bf2ac 100755
--- a/configure
+++ b/configure
@@ -12863,6 +12863,13 @@ then :
fi
+ac_fn_c_check_func "$LINENO" "srand48_r" "ac_cv_func_srand48_r"
+if test "x$ac_cv_func_srand48_r" = xyes
+then :
+ printf "%s\n" "#define HAVE_SRAND48_R 1" >>confdefs.h
+
+fi
+
SAVED_LIBS=$LIBS
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
printf %s "checking for library containing pthread_create... " >&6; }